mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 05:53:00 +02:00
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:
25
src/scripts/make-packages.sh
Executable file
25
src/scripts/make-packages.sh
Executable 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
|
||||
Reference in New Issue
Block a user