r1923 - in trunk: . packages packages/net-tools

alexander at linuxfromscratch.org alexander at linuxfromscratch.org
Sat Jun 16 22:30:42 PDT 2007


Author: alexander
Date: 2007-06-16 23:30:41 -0600 (Sat, 16 Jun 2007)
New Revision: 1923

Added:
   trunk/packages/net-tools/
   trunk/packages/net-tools/Makefile
Modified:
   trunk/Makefile
Log:
Added net-tools

Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2007-06-14 16:01:14 UTC (rev 1922)
+++ trunk/Makefile	2007-06-17 05:30:41 UTC (rev 1923)
@@ -255,7 +255,7 @@
 	ch-libtheora ch-librcd ch-librcc ch-taglib ch-xine-lib \
 	ch-pciutils ch-libusb ch-usbutils ch-dbus ch-dbus-glib ch-parted \
 	ch-librsvg ch-startup-notification chroot-gvim ch-vte ch-URI ch-xfce \
-	ch-xfmedia ch-irssi ch-pidgin \
+	ch-xfmedia ch-irssi ch-pidgin ch-net-tools \
 	ch-xchat ch-wireless_tools ch-tcpwrappers ch-portmap ch-nfs-utils \
 	ch-traceroute ch-rsync ch-jhalfs ch-sudo ch-bc ch-dialog ch-ncftp  \
 	ch-device-mapper ch-LVM2 ch-dmraid \

Added: trunk/packages/net-tools/Makefile
===================================================================
--- trunk/packages/net-tools/Makefile	                        (rev 0)
+++ trunk/packages/net-tools/Makefile	2007-06-17 05:30:41 UTC (rev 1923)
@@ -0,0 +1,47 @@
+# net-tools Makefile
+
+NM= net-tools
+VRS= 1.60
+DIR= $(NM)-$(VRS)
+
+FILE= $(DIR).tar.bz2
+URL-$(FILE)= http://www.tazenda.demon.co.uk/phil/net-tools/$(FILE)
+SHA-$(FILE)= 944fb70641505d5d1139dba3aeb81ba124574b83
+
+PATCH1= $(DIR)-gcc34-3.patch
+URL-$(PATCH1)= http://www.linuxfromscratch.org/patches/blfs/svn/$(PATCH1)
+SHA-$(PATCH1)= a92286932a423fc987f2a152931d05b0a9a312bd
+
+PATCH2= $(DIR)-kernel_headers-2.patch
+URL-$(PATCH2)= http://www.linuxfromscratch.org/patches/blfs/svn/$(PATCH2)
+SHA-$(PATCH2)= 3e59577e904582503b25c7b21f6e3b77b165f84a
+
+PATCH3= $(DIR)-mii_ioctl-1.patch
+URL-$(PATCH3)= http://www.linuxfromscratch.org/patches/blfs/svn/$(PATCH3)
+SHA-$(PATCH3)= 912613acbf3a000a2935391a14e55b5ccdeeae6b
+
+# Targets
+
+include $(ROOT)/scripts/functions
+
+chroot:
+	chroot "$(MP)" $(chenv-post-bash) \
+	'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
+
+stage2: Makefile $(FILE) $(PATCH1) $(PATCH2) $(PATCH3)
+	$(std_build)
+
+compile-stage2:
+	patch -Np1 -i ../$(PATCH1)
+	patch -Np1 -i ../$(PATCH2)
+	patch -Np1 -i ../$(PATCH3)
+	yes "" | make config
+	sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' -e 's|HAVE_MII 0|HAVE_MII 1|g' config.h
+	sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' -e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make
+	make
+	make update
+
+clean:
+	-rm -rf $(DIR)
+
+.PHONY: clean chroot compile-stage2




More information about the livecd mailing list