* [linux-lvm] Another patch.
@ 1999-09-25 7:49 Andreas Kostyrka
0 siblings, 0 replies; only message in thread
From: Andreas Kostyrka @ 1999-09-25 7:49 UTC (permalink / raw)
To: Linux LVM Mailinglist
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-09-25 7:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-25 7:49 [linux-lvm] Another patch Andreas Kostyrka
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).