r463 - x86/trunk/packages/iproute2

thomasp at linuxfromscratch.org thomasp at linuxfromscratch.org
Mon Aug 1 11:52:34 PDT 2005


Author: thomasp
Date: 2005-08-01 12:52:31 -0600 (Mon, 01 Aug 2005)
New Revision: 463

Modified:
   x86/trunk/packages/iproute2/Makefile
Log:
Updated iproute2 Makefile

Modified: x86/trunk/packages/iproute2/Makefile
===================================================================
--- x86/trunk/packages/iproute2/Makefile	2005-08-01 18:38:05 UTC (rev 462)
+++ x86/trunk/packages/iproute2/Makefile	2005-08-01 18:52:31 UTC (rev 463)
@@ -1,36 +1,59 @@
 # Iproute2 Makefile
+#==============================================================================
 
-# Package versions
 NM= iproute2
 VRS= 2.6.11
 DATE= 050330
 DIR= $(NM)-$(VRS)
-FILE= $(NM)-$(VRS)-$(DATE).tar.bz2
-PATCH= $(NM)-$(VRS)_$(DATE)-remove_db-1.patch
-URL= $(HTTP)/$(NM)/$(FILE)
-URL1= $(HTTP)/$(NM)/$(PATCH)
 
-# RULES
+FILE= $(DIR)-$(DATE).tar.bz2
+URL-$(FILE)= $(HTTP)/$(NM)/$(FILE)
+SHA-$(FILE)= 99671963174b31fc3ddac6ea168b2bc31d8f6c98
 
-.PHONY: chroot stage2 clean
+# Targets
+# =============================================================================
 
+include $(ROOT)/scripts/functions
+
 chroot:
-	@chroot "$(MP)" $(chenv-pre-bash) 'cd $(ROOT) && make ch-$(NM) $(chbash-pre-bash)'
+	@chroot "$(MP)" $(chenv-pre-bash) \
+	'cd $(ROOT) && make ch-$(NM) $(chbash-pre-bash)'
 
-stage2:
-	@echo ""
-	@echo "=====> Building $(NM) in chroot"
-	@echo ""
-	@if [ ! -f $(SRC)/$(FILE) ] ; then $(WGET) $(URL) && \
-	 mv $(FILE) $(SRC) ; fi
-	@if [ ! -f $(SRC)/$(PATCH) ] ; then $(WGET) $(URL1) && \
-	 mv $(PATCH) $(SRC) ; fi
-	@if [ ! -f /sbin/ip ] ; then unpack $(SRC)/$(FILE) && cd $(DIR) && \
-	 patch -Np1 -i $(SRC)/$(PATCH) && \
-	 ./configure && \
-	 make -j3 SBINDIR=/sbin && make SBINDIR=/sbin install ; fi
-	@make clean
-	 
+stage2: Makefile $(FILE)
+	@$(std_build) 
+	@cp $(SRC)/$(FILE) $(LFSSRC)
 
+compile-stage2:
+	@$(call echo_message, Configuring)
+#==============================================================================
+# Configure commands below \/
+#==============================================================================
+	@sed -i '/^TARGETS/s at arpd@@g' misc/Makefile
+	@./configure >../$(DIR)-$@.log 2>&1
+#
+#==Status Messages==========================================
+#
+	@$(OK)
+	@$(call echo_message, Making)
+#==============================================================================
+# Make commands below \/
+#==============================================================================
+	@make $(PM) SBINDIR=/sbin >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+	@$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+	@make SBINDIR=/sbin install >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+
 clean:
 	@-rm -rf $(DIR)
+
+.PHONY: clean chroot compile-stage2




More information about the livecd mailing list