r340 - in x86/branches/6.1: . packages packages/gcc packages/hdparm

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Mon Jul 11 04:33:39 PDT 2005


Author: jhuntwork
Date: 2005-07-11 05:33:39 -0600 (Mon, 11 Jul 2005)
New Revision: 340

Added:
   x86/branches/6.1/packages/hdparm/
   x86/branches/6.1/packages/hdparm/Makefile
Modified:
   x86/branches/6.1/Makefile
   x86/branches/6.1/packages/gcc/Makefile
Log:
Added hdparm

Modified: x86/branches/6.1/Makefile
===================================================================
--- x86/branches/6.1/Makefile	2005-07-11 11:24:04 UTC (rev 339)
+++ x86/branches/6.1/Makefile	2005-07-11 11:33:39 UTC (rev 340)
@@ -180,8 +180,8 @@
 	ch-startup-notification ch-gvim ch-xfce ch-lua ch-ion ch-irssi ch-xchat ch-tcpwrappers ch-portmap \
 	ch-nfs-utils ch-traceroute ch-dialog ch-ncftp ch-pciutils ch-nALFS ch-device-mapper ch-LVM2 ch-dhcpcd \
 	ch-distcc ch-ppp ch-rp-pppoe ch-libaal ch-reiser4progs ch-squashfs ch-cpio ch-mutt ch-msmtp ch-slrn \
-	ch-raidtools ch-eject ch-linux ch-klibc ch-unionfs ch-initramfs ch-cdrtools ch-blfs-bootscripts ch-syslinux \
-	ch-nALFS-profile
+	ch-hdparm ch-raidtools ch-eject ch-linux ch-klibc ch-unionfs ch-initramfs ch-cdrtools \
+	ch-blfs-bootscripts ch-syslinux ch-nALFS-profile
 
 # Rules for building tools/stage1
 # These can be called individually, if necessary
@@ -868,6 +868,10 @@
 	make -C $(PKG)/$@ chroot
 	make unmount
 
+hdparm: prep-chroot
+	make -C $(PKG)/$@ chroot
+	make unmount
+
 linux: prep-chroot
 	make -C $(PKG)/$@ chroot
 	make unmount
@@ -1400,6 +1404,9 @@
 ch-eject: popdev
 	make -C $(PKG)/eject stage2
 
+ch-hdparm: popdev
+	make -C $(PKG)/hdparm stage2
+
 ch-linux: popdev
 	make -C $(PKG)/linux stage2
 

Modified: x86/branches/6.1/packages/gcc/Makefile
===================================================================
--- x86/branches/6.1/packages/gcc/Makefile	2005-07-11 11:24:04 UTC (rev 339)
+++ x86/branches/6.1/packages/gcc/Makefile	2005-07-11 11:33:39 UTC (rev 340)
@@ -27,7 +27,7 @@
 	 mkdir ../$(NM)-build && cd ../$(NM)-build && \
 	 ../$(DIR)/configure --prefix=$(WD) --libexecdir=$(WD)/lib --with-local-prefix=$(WD) \
 	 --disable-nls --enable-shared --enable-languages=c && \
-	 make -j3 bootstrap && \
+	 make bootstrap && \
 	 make install && ln -s gcc $(WD)/bin/cc ; fi
 	@make clean
 

Added: x86/branches/6.1/packages/hdparm/Makefile
===================================================================
--- x86/branches/6.1/packages/hdparm/Makefile	2005-07-11 11:24:04 UTC (rev 339)
+++ x86/branches/6.1/packages/hdparm/Makefile	2005-07-11 11:33:39 UTC (rev 340)
@@ -0,0 +1,28 @@
+# hdparm Makefile
+
+# Package versions
+NM= hdparm
+VRS= 6.1
+DIR= $(NM)-$(VRS)
+FILE= $(DIR).tar.bz2
+URL= http://ftp.lfs-matrix.de/pub/BLFS/SVN/F-H/$(FILE)
+
+# RULES
+
+.PHONY: clean stage2 chroot
+
+chroot:
+	@chroot "$(MP)" $(chenv3) 'cd $(ROOT) && make ch-$(NM) $(chbash2)'
+
+stage2:
+	@echo ""
+	@echo "=====> Building $(NM) in chroot"
+	@echo ""
+	@if [ ! -f $(SRC)/$(FILE) ] ; then $(WGET) $(URL) ; fi
+	@if [ ! -f /usr/bin/hdparm ] ; then unpack $(SRC)/$(FILE) && cd $(DIR) && \
+	 make && make binprefix=/usr install ; fi
+	@make clean
+	 
+# Does what it says
+clean:
+	@-rm -rf $(DIR)




More information about the livecd mailing list