diff options
Diffstat (limited to 'taler-merchant/taler-merchant.SlackBuild')
-rwxr-xr-x | taler-merchant/taler-merchant.SlackBuild | 45 |
1 files changed, 29 insertions, 16 deletions
diff --git a/taler-merchant/taler-merchant.SlackBuild b/taler-merchant/taler-merchant.SlackBuild index 33d9a8d..bfeb870 100755 --- a/taler-merchant/taler-merchant.SlackBuild +++ b/taler-merchant/taler-merchant.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh PRGNAM=taler-merchant -VERSION=${VERSION:-0.8.3} +VERSION=${VERSION:-0.9.4b} BUILD=${BUILD:-1} TAG=${TAG:-_slackcoder} @@ -37,9 +37,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.4b +tar xvf $CWD/$PRGNAM-0.9.4b.tar.gz +cd $PRGNAM-0.9.4b chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -53,28 +53,41 @@ find -L . \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ + --docdir=/usr/doc/$PRGNAM-0.9.4b \ --disable-static \ --build=$ARCH-slackware-linux make make DESTDIR="$PKG" install -# make install does not exist for this project - 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 -# A soon to be fixed bug expects this file, causing it to exit early with -# error. -mkdir -p "$PKG/usr/share/taler/merchant/spa" -touch "$PKG/usr/share/taler/merchant/spa/spa.html" - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING COPYING.* 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.4b +cp -a COPYING COPYING.* README $PKG/usr/doc/$PRGNAM-0.9.4b +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-0.9.4b/$PRGNAM.SlackBuild +cat $CWD/README > $PKG/usr/doc/$PRGNAM-0.9.4b/README_slackware.txt +cp -a \ + AUTHORS \ + COPYING* \ + ChangeLog \ + NEWS \ + README \ + $PKG/usr/doc/$PRGNAM-0.9.4b 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 +mkdir -p $PKG/var/cache/taler +chmod g+w $PKG/var/cache/taler +mkdir -p $PKG/var/lib/taler +chmod g+w $PKG/var/lib/taler +mkdir -p $PKG/var/log/taler +chmod g+w $PKG/var/log/taler + +(cd $CWD/root && find . -type f -exec install -D -m 755 {} "$PKG/{}" \; ) +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.4b-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} |