r445 - x86/trunk/packages/dhcpcd

justin at linuxfromscratch.org justin at linuxfromscratch.org
Mon Aug 1 01:14:04 PDT 2005


Author: justin
Date: 2005-08-01 02:13:58 -0600 (Mon, 01 Aug 2005)
New Revision: 445

Modified:
   x86/trunk/packages/dhcpcd/Makefile
Log:
Updated dhcpcd Makefile.

Modified: x86/trunk/packages/dhcpcd/Makefile
===================================================================
--- x86/trunk/packages/dhcpcd/Makefile	2005-08-01 08:06:13 UTC (rev 444)
+++ x86/trunk/packages/dhcpcd/Makefile	2005-08-01 08:13:58 UTC (rev 445)
@@ -1,33 +1,62 @@
 # dhcpcd Makefile
+#==============================================================================
 
-# Package versions
 NM= dhcpcd
 VRS= 1.3.22-pl4
 DIR= $(NM)-$(VRS)
-FILE= $(DIR).tar.gz
-PATCH= $(DIR)-fhs-1.patch
-URL= http://www.phystech.com/ftp/$(FILE)
-URL1= http://www.linuxfromscratch.org/blfs/downloads/svn/$(PATCH)
 
-#RULES
+FILE= $(DIR).tar.bz2
+URL-$(FILE)= $(HTTPBLFS)/D-E/$(FILE)
+SHA-$(FILE)= f4462063c7b392f1899bc9e6ada3309d42e92794
 
-.PHONY: clean chroot stage2
+PATCH1= $(DIR)-fhs-1.patch
+URL-$(PATCH1)= $(HTTPBLFS)/D-E/$(PATCH1)
+SHA-$(PATCH1)= cec6d31a5146993cee6b147723c66742a24eed85
 
+# Targets
+# =============================================================================
+
+include $(ROOT)/scripts/functions
+
 chroot:
-	@chroot "$(MP)" $(chenv-blfs) 'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
+	@chroot "$(MP)" $(chenv-blfs) \
+	'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
 
-stage2:
-	@echo ""
-	@echo "=====> Building $(NM) in chroot"
-	@echo ""
-	@if [ ! -f $(FILE) ] ; then $(WGET) $(URL) ; fi
-	@if [ ! -f $(PATCH) ] ; then $(WGET) $(URL1) ; fi
-	@if [ ! -f /sbin/dhcpcd ] ; then unpack $(FILE) && cd $(DIR) && \
-	 patch -Np1 -i ../$(PATCH) && \
-	 ./configure --prefix="" --sysconfdir=/var/lib --mandir=/usr/share/man && \
-	 make -j3 && \
-	 make install ; fi
-	@make clean
+stage2: Makefile $(FILE) $(PATCH1)
+	@$(std_build)
 
+compile-stage2:
+	@$(call echo_message, Configuring)
+#==============================================================================
+# Configure commands below \/
+#==============================================================================
+	@patch -Np1 -i ../$(PATCH1)
+	@./configure --prefix="" --sysconfdir=/var/lib \
+	 --mandir=/usr/share/man >../$(DIR)-$@.log 2>&1
+#
+#==Status Messages==========================================
+#
+	@$(OK)
+	@$(call echo_message, Making)
+#==============================================================================
+# Make commands below \/
+#==============================================================================
+	@make $(PM) >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+	@$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+	@make install >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+
 clean:
 	@-rm -rf $(DIR)
+
+.PHONY: clean chroot compile-stage2




More information about the livecd mailing list