linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Andreas Kostyrka <andreas@mtg.co.at>
To: Linux LVM Mailinglist <linux-lvm@msede.com>
Subject: [linux-lvm] Another patch.
Date: Sat, 25 Sep 1999 09:49:32 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.10.9909250947150.12228-100000@gatekeeper.zwax.mtg.co.at> (raw)

I've done this patch to facilate RPM building. It basically allows
to provide a BuildRoot prefix when installing. It is included with my LVM
user tools RPM. (Could this or something similiar be included with the
standard distribution?)

Andreas

diff -uNr LVM.org/0.7/make.tmpl LVM/0.7/make.tmpl
--- LVM.org/0.7/make.tmpl	Mon Jul 12 23:21:26 1999
+++ LVM/0.7/make.tmpl	Sat Sep 25 01:55:26 1999
@@ -34,6 +34,7 @@
 TOP = /root/LVM/0.7
 
 KERNEL_LOCATION = /usr/src/linux
+PREFIX = 
 
 .SUFFIXES =
 .SUFFIXES = .o.c
@@ -49,7 +50,7 @@
 
 CFLAGS = -Wall -I$(TOP)/tools -I$(TOP)/tools/lib -D__KERNEL__ -O2
 
-BINDIR = /sbin
+BINDIR = ${PREFIX}/sbin
 ALL_SOURCES = $(shell ls *.c)
 ALL_TARGETS = $(ALL_SOURCES:.c=)
 ALL_EXECS = $(ALL_TARGETS)
diff -uNr LVM.org/0.7/tools/lib/Makefile LVM/0.7/tools/lib/Makefile
--- LVM.org/0.7/tools/lib/Makefile	Mon Jul 12 23:21:26 1999
+++ LVM/0.7/tools/lib/Makefile	Sat Sep 25 01:56:21 1999
@@ -38,14 +38,14 @@
 
 install_this:
 	@echo "*** Installing $(ARCHIVE) and $(SO) in /lib ***"
-	rm -f /lib/$(ARCHIVE) /lib/$(SO)
-	cp -p $(ARCHIVE) $(SO) /lib
-	chmod 444 /lib/$(ARCHIVE)
-	chmod 555 /lib/$(SO)
+	rm -f /lib/$(ARCHIVE) ${PREFIX}/lib/$(SO)
+	cp -p $(ARCHIVE) $(SO) ${PREFIX}/lib
+	chmod 444 ${PREFIX}/lib/$(ARCHIVE)
+	chmod 555 ${PREFIX}/lib/$(SO)
 
 remove_this:
 	@echo "*** Removing $(ARCHIVE) and $(SO) in /lib ***"
-	rm -f /lib/$(ARCHIVE) /lib/$(SO)
+	rm -f /lib/$(ARCHIVE) ${PREFIX}/lib/$(SO)
 
 $(ALL_SOURCES):	liblvm.h $(OTHER_DEP)
 
diff -uNr LVM.org/0.7/tools/man8/Makefile LVM/0.7/tools/man8/Makefile
--- LVM.org/0.7/tools/man8/Makefile	Mon Jul 12 23:21:27 1999
+++ LVM/0.7/tools/man8/Makefile	Sat Sep 25 01:56:33 1999
@@ -25,7 +25,7 @@
 include ../../make.tmpl
 
 ALL_MANUALS=$(shell ls *.8)
-MAN8DIR=/usr/man/man8
+MAN8DIR=${PREFIX}/usr/man/man8
 
 all_this:
 	@true

--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +43/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA        

                 reply	other threads:[~1999-09-25  7:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.10.9909250947150.12228-100000@gatekeeper.zwax.mtg.co.at \
    --to=andreas@mtg.co.at \
    --cc=linux-lvm@msede.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).