diff options
Diffstat (limited to 'network/ngircd/ngircd.SlackBuild')
-rw-r--r-- | network/ngircd/ngircd.SlackBuild | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/network/ngircd/ngircd.SlackBuild b/network/ngircd/ngircd.SlackBuild index 0b52da5332..0cf54b3854 100644 --- a/network/ngircd/ngircd.SlackBuild +++ b/network/ngircd/ngircd.SlackBuild @@ -1,13 +1,16 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for ngircd # Written by /dev/rob0 <rob0@slackbuilds.org> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=ngircd -VERSION=${VERSION:-24} +VERSION=${VERSION:-26.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -17,7 +20,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -45,7 +55,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -68,7 +78,7 @@ CXXFLAGS="$SLKCFLAGS" \ --with-syslog \ --without-tcp-wrappers \ --with-iconv \ - --without-pam \ + --with-pam \ --${do_ident} \ --build=$ARCH-slackware-linux @@ -82,7 +92,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog README COPYING INSTALL NEWS doc/*.txt \ +cp -a AUTHORS ChangeLog README.md COPYING INSTALL.md NEWS doc/*.txt \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -91,4 +101,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |