LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File oracle-rpmbuild-makefile-changes.patch of Package udhcp (Project openSUSE:Factory)

diff -Naur udhcp-0.9.8-orig/Makefile udhcp-0.9.8/Makefile
--- udhcp-0.9.8-orig/Makefile	2002-10-31 10:46:43.000000000 -0800
+++ udhcp-0.9.8/Makefile	2007-02-06 17:40:57.000000000 -0800
@@ -1,7 +1,8 @@
 # udhcp makefile
 
-prefix=/usr
-SBINDIR=/sbin
+DESTDIR=/
+prefix=${DESTDIR}/usr
+SBINDIR=${DESTDIR}/sbin
 USRSBINDIR=${prefix}/sbin
 USRBINDIR=${prefix}/bin
 USRSHAREDIR=${prefix}/share
@@ -82,6 +83,12 @@
 
 install: all
 
+	mkdir -p $(SBINDIR)
+	mkdir -p $(USRSBINDIR)
+	mkdir -p $(USRBINDIR)
+	mkdir -p $(USRSHAREDIR)
+	mkdir -p $(USRSHAREDIR)/udhcpc
+
 	$(INSTALL) $(DAEMONS) $(USRSBINDIR)
 	$(INSTALL) $(COMMANDS) $(USRBINDIR)
 ifdef COMBINED_BINARY
@@ -89,7 +96,6 @@
 else
 	$(INSTALL) $(BOOT_PROGRAMS) $(SBINDIR)
 endif
-	mkdir -p $(USRSHAREDIR)/udhcpc
 	for name in bound deconfig renew script ; do \
 		$(INSTALL) samples/sample.$$name \
 			$(USRSHAREDIR)/udhcpc/default.$$name ; \