summaryrefslogtreecommitdiff
path: root/network/leafnode/leafnode.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/leafnode/leafnode.SlackBuild')
-rw-r--r--network/leafnode/leafnode.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/network/leafnode/leafnode.SlackBuild b/network/leafnode/leafnode.SlackBuild
index fab008351a..846ec1da72 100644
--- a/network/leafnode/leafnode.SlackBuild
+++ b/network/leafnode/leafnode.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Slackware 12 build script for Leafnode 2
+# Slackware build script for Leafnode 2
# Copyright 2008-2009 Andrew Strong (http://www.andrews-corner.org)
# All rights reserved.
@@ -22,12 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Build script modified by the SlackBuilds.org project
-
PRGNAM=leafnode
-VERSION=2.0.0.alpha20070602a
+VERSION=2.0.0.alpha20081110a
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -39,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -64,7 +64,9 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc/leafnode \
--mandir=/usr/man \
--localstatedir=/var \
- --enable-runas-user=news
+ --enable-runas-user=news \
+ --enable-spooldir=/var/spool/news \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -94,3 +96,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+