]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/Config
GeƤndert:
[ipfire-2.x.git] / lfs / Config
index ab299403eb89180f4002444dc4b0c3a78f7f22b2..7f3cf2beaac30e3a82d28ba85b3f3708850f642f 100644 (file)
@@ -21,7 +21,9 @@ URL_KERNEL  = http://www.kernel.org/pub
 URL_TUE     = ftp://ftp.win.tue.nl/pub
 URL_LFS_FTP = http://ftp.at.linuxfromscratch.org/pub/lfs/lfs-packages/5.1.1
 URL_LFS     = http://www.linuxfromscratch.org/patches/downloads
-URL_SFNET   = http://switch.dl.sourceforge.net/sourceforge
+URL_SFNET   = http://kent.dl.sourceforge.net/sourceforge
+URL_IPFIRE  = http://mirror.ipfire.org/source
+URL_IPCOP   = http://ipcop.ath.cx
 
 # Default compiler optimizations.
 #
@@ -45,8 +47,9 @@ DIR_SRC = $(ROOT)/usr/src
 #
 DIR_DL      = $(LFS_BASEDIR)/cache
 DIR_CHK     = $(LFS_BASEDIR)/cache/check
+DIR_CONF    = $(LFS_BASEDIR)/config
 DIR_INFO    = $(LFS_BASEDIR)/log
-DIR_TMP     = /tmp
+DIR_TMP     = /var/tmp
 
 KGCC = ccache /usr/bin/gcc
 
@@ -118,7 +121,7 @@ endef
 
 define LOAD
        @echo -e "$(MESSAGE)Download: $($(notdir $@))"
-       wget -T 120 -t 1 -c -nv $($(notdir $@)) -O $(DIR_TMP)/$(notdir $@)
+       wget -T 60 -t 1 -c -nv $($(notdir $@)) -O $(DIR_TMP)/$(notdir $@)
        [ "$($(notdir $@)_MD5)" = `md5sum $(DIR_TMP)/$(notdir $@) | awk '{ print $$1 }'` ] # detect page not found answer
        mv $(DIR_TMP)/$(notdir $@) $(DIR_DL)
 endef
@@ -128,3 +131,19 @@ define MD5
        [ "$($@_MD5)" = `md5sum $(DIR_DL)/$@ | awk '{ print $$1 }'` ]
        echo "$@ checksum OK"
 endef
+
+define PAK
+       @rm -rf /install/packages/package /tmp/* /packagetmp.tar
+       cd /
+       mkdir -p  /install/packages/package
+       cp -f $(DIR_SRC)/src/paks/$(PROG)/{,un}install.sh /install/packages/package
+       cp -f $(DIR_SRC)/src/paks/$(PROG)/ROOTFILES       /install/packages/package
+       chmod 755 /install/packages/package/{,un}install.sh
+       tar --create -C / --files-from=/install/packages/package/ROOTFILES -f /packagetmp.tar --exclude='#*'
+       tar -x -C /tmp -f /packagetmp.tar
+       @rm -f /packagetmp.tar
+       @cd /tmp && tar zcf /install/packages/package/files.tgz * && rm -rf *
+       cd /install/packages/package && cat ROOTFILES | grep -v "#" > ROOTFILES && tar cfz ../$(THISAPP)-$(PAK_VER).tar.gz files.tgz install.sh uninstall.sh ROOTFILES
+       cd /install/packages && md5sum $(THISAPP)-$(PAK_VER).tar.gz > $(THISAPP)-$(PAK_VER).tar.gz.md5
+       @rm -rf /install/packages/package
+endef