mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@104 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
24 lines
791 B
Bash
Executable File
24 lines
791 B
Bash
Executable File
#!/bin/bash
|
|
########################################################
|
|
## ##
|
|
## Make packages ##
|
|
## ##
|
|
## (c) www.ipfire.org - GPL v2 ##
|
|
## ##
|
|
########################################################
|
|
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 cvfz /paks/$1/files.tgz --files=/usr/src/src/paks/$1/ROOTFILES --exclude='#*'
|
|
|
|
tar cvfz /paks/$1/conf.tgz --files=/usr/src/src/paks/$1/CONFFILES --exclude='#*'
|
|
|
|
cd /paks/$1 && tar cvfz ../$2.tar.gz files.tgz conf.tgz install.sh uninstall.sh
|
|
cd .. && md5sum $2.tar.gz >> $2.tar.gz.md5
|
|
|
|
exit 0 |