Hinzugefügt:

* Asterisk-Konfigurationsdateien fürs Webinterface.
  * Funktionierender Packager.
  * CUPS-Paket
Geändert:
  * Postfix ohne PostgreSQL


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@177 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2006-06-14 17:35:12 +00:00
parent 904a41b91c
commit 483f59cd33
14 changed files with 1334 additions and 94 deletions

32
src/scripts/packager Normal file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
PROG="$1"
VER="$2"
PAK_VER="$3"
if [ -f /install/packages/$PROG-$VER-$PAK_VER.tar.gz.empty ]; then
echo -e "Package already exists."
else
# 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/ROOTFILES /install/packages/package
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 --gzip --verbose --file=/install/packages/package/files.tgz *
cd / && rm -rf /tmp/*
cd /install/packages/package && cat ROOTFILES | grep -v "#" > ROOTFILES
tar cfz ../$PROG-$VER-$PAK_VER.tar.gz files.tgz install.sh uninstall.sh ROOTFILES
cd /install/packages && md5sum $PROG*.tar.gz > $PROG-$VER-$PAK_VER.tar.gz.md5
rm -rf /install/packages/package
exit 0
fi