summaryrefslogtreecommitdiff
path: root/network/znc/znc.SlackBuild
diff options
context:
space:
mode:
authorSean Donner <sean.donner at gmail dot com>2010-03-03 14:24:28 -0600
committerErik Hanson <erik@slackbuilds.org>2010-05-13 13:25:08 +0200
commit359180cba878a4110a7f20b24a86bd2afba84980 (patch)
tree49509c608f6adb3c6b118fc661d523f21eaa3ea6 /network/znc/znc.SlackBuild
parente6796da6d47c74a6ed387a00e4c8a3186fb13b43 (diff)
downloadslackbuilds-359180cba878a4110a7f20b24a86bd2afba84980.tar.gz
network/znc: Updated for version 0.076.
Diffstat (limited to 'network/znc/znc.SlackBuild')
-rw-r--r--network/znc/znc.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/network/znc/znc.SlackBuild b/network/znc/znc.SlackBuild
index 3fdacedec2..3b5388be8f 100644
--- a/network/znc/znc.SlackBuild
+++ b/network/znc/znc.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
# Slackware build script for ZNC
@@ -59,8 +59,6 @@ if ! grep -q "^$ZNC_USER:" /etc/passwd; then
exit 1
fi
-set -e
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -92,7 +90,6 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -118,7 +115,7 @@ chown -R $ZNC_USER $PKG/etc/znc
# Install an init script
mkdir -p $PKG/etc/rc.d
-sed -e "s/@ZNC_USER@/$ZNC_USER/g" -e "s/@VERSION@/$VERSION/g" $CWD/rc.znc \
+sed -e "s/_ZNC_USER_/$ZNC_USER/g" -e "s/_VERSION_/$VERSION/g" $CWD/rc.znc \
> $PKG/etc/rc.d/rc.znc.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -126,12 +123,12 @@ cp -a \
AUTHORS LICENSE* README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-sed s/@ZNC_USER@/$ZNC_USER/g $CWD/README.SLACKWARE > \
- $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
+sed s/_ZNC_USER_/$ZNC_USER/g $CWD/README.SBo > \
+ $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo
mkdir -p $PKG/install
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.tgz