From 9ecea32e5ff87919b95d0ca9660fd8f06413bfc9 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 11 May 2010 22:55:12 +0200 Subject: system/bonnie++: Added to 12.1 repository --- system/bonnie++/Makefile.in_DESTDIR.diff | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 system/bonnie++/Makefile.in_DESTDIR.diff (limited to 'system/bonnie++/Makefile.in_DESTDIR.diff') diff --git a/system/bonnie++/Makefile.in_DESTDIR.diff b/system/bonnie++/Makefile.in_DESTDIR.diff new file mode 100644 index 0000000000..3b556e0b09 --- /dev/null +++ b/system/bonnie++/Makefile.in_DESTDIR.diff @@ -0,0 +1,34 @@ +Small patch to add DESTDIR support for easier packaging +Use as you wish. --Robby Workman + +--- orig/Makefile.in 2008-02-20 13:53:26.319108308 -0600 ++++ new/Makefile.in 2008-02-20 14:17:25.875109567 -0600 +@@ -4,6 +4,7 @@ + + SCRIPTS=bon_csv2html bon_csv2txt + ++DESTDIR = + prefix=@prefix@ + eprefix=@exec_prefix@ + #MORE_WARNINGS=-Weffc++ -Wcast-align +@@ -33,14 +34,14 @@ + $(CXX) zcav.cpp -o zcav $(ZCAVOBJS) $(LFLAGS) + + install-bin: $(EXES) +- mkdir -p $(eprefix)/bin $(eprefix)/sbin +- @INSTALL_PROGRAM@ @stripping@ $(EXES) $(eprefix)/sbin +- @INSTALL_SCRIPT@ $(SCRIPTS) $(eprefix)/bin ++ mkdir -p $(DESTDIR)/$(eprefix)/bin $(DESTDIR)/$(eprefix)/sbin ++ @INSTALL_PROGRAM@ @stripping@ $(EXES) $(DESTDIR)/$(eprefix)/sbin ++ @INSTALL_SCRIPT@ $(SCRIPTS) $(DESTDIR)/$(eprefix)/bin + + install: install-bin +- mkdir -p @mandir@/man1 @mandir@/man8 +- @INSTALL_DATA@ $(MAN1) @mandir@/man1 +- @INSTALL_DATA@ $(MAN8) @mandir@/man8 ++ mkdir -p $(DESTDIR)/@mandir@/man1 $(DESTDIR)/@mandir@/man8 ++ @INSTALL_DATA@ $(MAN1) $(DESTDIR)/@mandir@/man1 ++ @INSTALL_DATA@ $(MAN8) $(DESTDIR)/@mandir@/man8 + + %.o: %.cpp %.h bonnie.h port.h + $(CXX) -c $< -- cgit v1.2.3