]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/Config
Am Pakfire weitergearbeitet.
[people/pmueller/ipfire-2.x.git] / lfs / Config
index a66406c65d80d9c05f947273da7e6d4dc73aa910..7260a0641c1d74290a43df7669a2d0bf4075fd51 100644 (file)
@@ -13,8 +13,8 @@
 # URLs that are common sources of downloads.  If you're having trouble with
 # a site you should change its URL to that of a suitable mirror site.
 #
-URL_IPFIRE  = http://source.ipfire.eu/othersrc
-URL_TOOLCHAIN = http://source.ipfire.eu/toolchain
+URL_IPFIRE  = http://source.ipfire.org/othersrc
+URL_TOOLCHAIN = http://source.ipfire.org/toolchain
 URL_IPCOP   = http://ipcop.ath.cx
 
 # Default compiler optimizations.
@@ -156,5 +156,22 @@ define MD5
 endef
 
 define PAK
-       /usr/local/bin/packager $(PROG) $(VER) $(PAK_VER)
+       # Bringing the files to their right place.
+       @rm -rf /install/packages/package
+       @mkdir -p /install/packages/package
+       @cp -f /usr/src/src/paks/$(PROG)/{,un}install.sh /usr/src/src/paks/$(PROG)/update.sh \
+               /install/packages/package
+       -grep -v "#" < /usr/src/config/rootfiles/packages/$(PROG) > /install/packages/package/ROOTFILES
+       @chmod 755 /install/packages/package/{,un}install.sh
+       @cd / && cpio -o < /install/packages/package/ROOTFILES > /install/packages/package/files
+       cd /install/packages/package && cpio -o < /usr/src/src/paks/files > ../$(PROG)-$(VER)-$(PAK_VER).ipfire
+       rm -rf /install/packages/package
+       sed -e s/NAME/$(PROG)/g \
+                       -e s/VER/$(VER)/g \
+                       -e s/RELEASE/$(PAK_VER)/g \
+                       -e s/DEPS/$(DEPS)/g \
+                       -e s/DESCDE/$(DESCDE)/g \
+                       -e s/DESCEN/$(DESCEN)/g \
+                       -e s/SIZE/`ls -l \/install\/packages\/$(PROG)-$(VER)-$(PAK_VER).ipfire | awk '{ print $$5 }'`/g \
+         < /usr/src/src/pakfire/meta > /install/packages/meta-$(PROG)
 endef