Packager finalisiert.

Cronjobs angepasst, falls die Maschine nicht zu der Zeit (meistens nachts) lief.
Erste Versionen der Tripwire und Samba-Pakete zum testen.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@530 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2007-05-05 13:53:33 +00:00
parent 2d210ae2d1
commit 5c8cfc9949
25 changed files with 705 additions and 61 deletions

View File

@@ -156,5 +156,29 @@ 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 /tmp/* /packagetmp.tar
@mkdir -p /install/packages/package
@cp -f /usr/src/src/paks/$(PROG)/{,un}install.sh /install/packages/package
@cp -f /usr/src/src/paks/$(PROG)/update.sh /install/packages/package
@cp -f /usr/src/config/rootfiles/packages/$(PROG) /install/packages/package/ROOTFILES
@chmod 755 /install/packages/package/{,un}install.sh
cd / && tar --create --directory=/ --files-from=/install/packages/package/ROOTFILES \
--file=/packagetmp.tar --exclude='#*'
cd / && tar -x -C /tmp -f /packagetmp.tar
@rm -f /packagetmp.tar
cd /tmp && tar --create --bzip2 --verbose --file=/install/packages/package/files.tbz2 *
@cd / && rm -rf /tmp/*
@cd /install/packages/package && cat ROOTFILES | grep -v "#" > ROOTFILES
cd /install/packages/package && tar cfj ../$(PROG)-$(VER)_$(PAK_VER).ipfire \
files.tbz2 install.sh uninstall.sh update.sh ROOTFILES
@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