# 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.
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