aboutsummaryrefslogtreecommitdiff
path: root/taler-exchange/taler-exchange.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'taler-exchange/taler-exchange.SlackBuild')
-rwxr-xr-xtaler-exchange/taler-exchange.SlackBuild49
1 files changed, 40 insertions, 9 deletions
diff --git a/taler-exchange/taler-exchange.SlackBuild b/taler-exchange/taler-exchange.SlackBuild
index 5e59b9f..7234194 100755
--- a/taler-exchange/taler-exchange.SlackBuild
+++ b/taler-exchange/taler-exchange.SlackBuild
@@ -1,10 +1,13 @@
#!/bin/sh
PRGNAM=taler-exchange
-VERSION=${VERSION:-0.8.4}
+VERSION=${VERSION:-0.9.4a}
BUILD=${BUILD:-1}
TAG=${TAG:-_slackcoder}
+TALER_GID=${TALER_GID:-704}
+TALER_EXCHANGE_DB_GID=${TALER_EXCHANGE_DB_GID:-705}
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -37,9 +40,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION*.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-0.9.4a
+tar xvf $CWD/$PRGNAM-0.9.4a.tar.gz
+cd $PRGNAM-0.9.4a
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -53,7 +56,7 @@ find -L . \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --docdir=/usr/doc/$PRGNAM-0.9.4a \
--disable-static \
--build=$ARCH-slackware-linux
make
@@ -62,12 +65,40 @@ make DESTDIR="$PKG" install
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-0.9.4a
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-0.9.4a/$PRGNAM.SlackBuild
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-0.9.4a/README_slackware.txt
+cp -a \
+ AUTHORS \
+ COPYING \
+ ChangeLog \
+ INSTALL \
+ NEWS \
+ README \
+ README.1st \
+ $PKG/usr/doc/$PRGNAM-0.9.4a
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+mkdir -p $PKG/etc/taler/secrets
+chown root:$TALER_GID $PKG/etc/taler/secrets
+mkdir -p $PKG/var/cache/taler
+chown root:$TALER_GID $PKG/var/cache/taler
+chmod g+w $PKG/var/cache/taler
+mkdir -p $PKG/var/lib/taler
+chown root:$TALER_GID $PKG/var/lib/taler
+chmod g+w $PKG/var/lib/taler
+mkdir -p $PKG/var/log/taler
+chown root:$TALER_GID $PKG/var/log/taler
+chmod g+w $PKG/var/log/taler
+
+(cd $CWD/root && find . -type f -not -path . -exec install -D -m 755 {} "$PKG/{}" \; )
+chown :$TALER_GID $PKG/etc/taler/secrets/exchange-accountcredentials-1.secret.conf.new
+chown :$TALER_EXCHANGE_DB_GID $PKG/etc/taler/secrets/exchange-db.secret.conf.new
+chown :$TALER_EXCHANGE_DB_GID $PKG/etc/taler/secrets/exchange-db.secret.conf.new
+chmod -R u=rwX,g=rX,o= $PKG/etc/taler/secrets/*
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-0.9.4a-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}