r424 - x86/trunk/packages/blfs-bootscripts

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Fri Jul 29 08:45:37 PDT 2005


Author: jhuntwork
Date: 2005-07-29 09:45:36 -0600 (Fri, 29 Jul 2005)
New Revision: 424

Modified:
   x86/trunk/packages/blfs-bootscripts/Makefile
Log:
Updated blfs-bootscripts

Modified: x86/trunk/packages/blfs-bootscripts/Makefile
===================================================================
--- x86/trunk/packages/blfs-bootscripts/Makefile	2005-07-29 15:21:23 UTC (rev 423)
+++ x86/trunk/packages/blfs-bootscripts/Makefile	2005-07-29 15:45:36 UTC (rev 424)
@@ -1,37 +1,55 @@
 # BLFS Bootscripts Makefile
+#==============================================================================
 
-# Package versions
 NM= blfs-bootscripts
 VRS= 20050709
 DIR= $(NM)-$(VRS)
+
 FILE= $(DIR).tar.bz2
-PATCH=$(NM)-add-autosshd-1.patch
-URL= http://www.linuxfromscratch.org/blfs/downloads/svn/$(FILE)
+URL-$(FILE)= http://www.linuxfromscratch.org/blfs/downloads/svn/$(FILE)
+SHA-$(FILE)= 013267af112eed7aa96a68843887fdee639adabc
 
-#RULES
+PATCH1=$(NM)-add-autosshd-1.patch
+SHA-$(PATCH1)= d69c9467e6cfcbff70006ad065f2765dc46c986b
 
-.PHONY: clean chroot stage2
+# 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 /etc/rc.d/init.d/nfs-client ] ; then unpack $(FILE) && cd $(DIR) && \
-	 patch -Np1 -i ../$(PATCH) && \
-	 make install-service-dhcpcd && \
-	 make install-service-pppoe && \
-	 make install-gpm && \
-	 make install-autosshd && \
-	 install -m754 blfs/init.d/sshd /etc/rc.d/init.d/ && \
-	 install -m754 blfs/init.d/random /etc/rc.d/init.d/ && \
-	 install -m754 blfs/init.d/portmap /etc/rc.d/init.d/ && \
-	 install -m754 blfs/init.d/nfs-server /etc/rc.d/init.d/ && \
-	 install -m754 blfs/init.d/nfs-client /etc/rc.d/init.d ; fi
-	@make clean
+stage2: Makefile $(FILE) $(PATCH1)
+	@$(std_build)
 
+compile-stage2:
+	@$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+	 @patch -Np1 -i ../$(PATCH)
+	 @make install-service-dhcpcd >../$(DIR)-$@.log 2>&1
+	 @make install-service-pppoe >>../$(DIR)-$@.log 2>&1
+	 @make install-gpm >>../$(DIR)-$@.log 2>&1
+	 @make install-autosshd >>../$(DIR)-$@.log 2>&1
+	 @install -m754 blfs/init.d/sshd /etc/rc.d/init.d/ \
+	  >>../$(DIR)-$@.log 2>&1
+	 @install -m754 blfs/init.d/random /etc/rc.d/init.d/ \
+	  >>../$(DIR)-$@.log 2>&1
+	 @install -m754 blfs/init.d/portmap /etc/rc.d/init.d/ \
+	  >>../$(DIR)-$@.log 2>&1
+	 @install -m754 blfs/init.d/nfs-server /etc/rc.d/init.d/ \
+	  >>../$(DIR)-$@.log 2>&1
+	 @install -m754 blfs/init.d/nfs-client /etc/rc.d/init.d/ \
+	  >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+
 clean:
 	@-rm -rf $(DIR)
+
+.PHONY: clean chroot compile-stage2




More information about the livecd mailing list