summaryrefslogtreecommitdiff
path: root/system/clamsmtp/clamsmtp.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2010-05-13 00:39:55 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:39:55 +0200
commit5a39e732dfcbb09ba61a9a9cff54e2d5170da951 (patch)
tree91bfe2204f735cf6a42b85f8a0c38ac2ad9e24cb /system/clamsmtp/clamsmtp.SlackBuild
parent8b9fb0d47dbe3761753a21493b737829a96bd146 (diff)
downloadslackbuilds-5a39e732dfcbb09ba61a9a9cff54e2d5170da951.tar.gz
system/clamsmtp: Updated for version 1.10
Diffstat (limited to 'system/clamsmtp/clamsmtp.SlackBuild')
-rw-r--r--system/clamsmtp/clamsmtp.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/system/clamsmtp/clamsmtp.SlackBuild b/system/clamsmtp/clamsmtp.SlackBuild
index 7ccdf0b9ee..86083aff0b 100644
--- a/system/clamsmtp/clamsmtp.SlackBuild
+++ b/system/clamsmtp/clamsmtp.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
# Slackware Package Build Script for clamsmtp
-# Home Page http://memberwebs.com/stef/software/clamsmtp/
# Copyright (c) 2008-2009, Nishant Limbachia (nishant@mnspace.net)
# All rights reserved.
@@ -37,10 +36,13 @@ CWD=$(pwd)
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -61,13 +63,12 @@ find . \
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--exec-prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--datarootdir=/usr \
- --program-prefix="" \
- --program-suffix="" \
--build=${ARCH}-slackware-linux
make
@@ -76,11 +77,14 @@ make install DESTDIR=$PKG
# Install init script and config file
mkdir -p $PKG/etc/rc.d
cat $CWD/rc.clamsmtpd > $PKG/etc/rc.d/rc.clamsmtpd.new
+chmod 0755 $PKG/etc/rc.d/rc.clamsmtpd.new
cat doc/clamsmtpd.conf > $PKG/etc/clamsmtpd.conf.new
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@@ -97,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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}