Erste Version des Paketerstellers.

Bisher nur Postfix. :(



git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@84 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2006-03-25 15:06:35 +00:00
parent 3ea75603a6
commit e7164bb4ab
8 changed files with 363 additions and 166 deletions

25
src/scripts/make-packages.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
########################################################
## ##
## Make packages ##
## ##
## (c) www.ipfire.org - GPL ##
## ##
########################################################
echo "`date -u '+%b %e %T'`: Packing $1" | tee -a $LOGFILE
cd / && mkdir -p /paks/$1
## Copy install.sh/uninstall.sh to pak-dir and make executeable
#
cp -f /usr/src/src/paks/$1/{,un}install.sh /paks/$1
chmod 755 /paks/$1/{,un}install.sh
tar cfz /paks/$1/files.tgz --files=/usr/src/src/paks/$1/ROOTFILES --exclude='#*'
tar cfz /paks/$1/conf.tgz --files=/usr/src/src/paks/$1/CONFFILES --exclude='#*'
cd /paks/$1 && tar cfz ../$2.tar.gz files.tgz conf.tgz install.sh uninstall.sh && cd ..
md5sum $2.tar.gz >> $2.tar.gz.md5
## Clean up!
#
rm -rf /paks/$1
exit 0