You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
574 B
27 lines
574 B
8 years ago
|
#!/bin/sh
|
||
|
|
||
|
PKGNAM=rocket-config
|
||
|
VERSION=14.2
|
||
|
BUILD=${BUILD:-1rocket}
|
||
|
ARCH=noarch
|
||
|
|
||
|
CWD=$(pwd)
|
||
|
TMP=${TMP:-/tmp}
|
||
|
PKG=$TMP/package-rocket-config
|
||
|
rm -rf $PKG
|
||
|
mkdir -p $TMP $PKG
|
||
|
|
||
|
mkdir -p $PKG/install
|
||
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||
|
|
||
|
find $CWD/etc -type f -printf '%P\n' | while read config; do
|
||
|
echo Installing /etc/$config
|
||
|
install -Dm644 $CWD/etc/$config $PKG/etc/$config.new
|
||
|
echo config etc/$config.new >> $PKG/install/doinst.sh
|
||
|
done
|
||
|
|
||
|
cd $PKG
|
||
|
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
|
||
|
|