summaryrefslogtreecommitdiffstats
path: root/network/postfix/postfix.SlackBuild
diff options
context:
space:
mode:
author Alan Hicks <alan@lizella.net>2010-05-12 17:44:09 +0200
committer David Somero <xgizzmo@slackbuilds.org>2010-05-12 17:44:09 +0200
commit8f1d80487b8d9de9c7ee52a62c76b60dc5bb20e5 (patch)
treec314e495dbc9cb28d56459b3141a7b5069e83ff5 /network/postfix/postfix.SlackBuild
parent8497f2d5d4766f694473ce4ee57a5bb47a14f542 (diff)
downloadslackbuilds-8f1d80487b8d9de9c7ee52a62c76b60dc5bb20e5.tar.gz
slackbuilds-8f1d80487b8d9de9c7ee52a62c76b60dc5bb20e5.tar.xz
network/postfix: Updated for version 2.6.1
Diffstat (limited to 'network/postfix/postfix.SlackBuild')
-rw-r--r--network/postfix/postfix.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/network/postfix/postfix.SlackBuild b/network/postfix/postfix.SlackBuild
index 0c5b1ac7c6..ecde0b3979 100644
--- a/network/postfix/postfix.SlackBuild
+++ b/network/postfix/postfix.SlackBuild
@@ -20,20 +20,25 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="postfix"
-VERSION="2.5.5"
+VERSION="2.6.1"
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG="$TMP/pkg-$PRGNAM"
+PKG="$TMP/package-$PRGNAM"
OUTPUT=${OUTPUT:-/tmp}
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
@@ -215,15 +220,17 @@ gzip -9 $PKG/usr/man/*/*
cd $PKG/etc/postfix
# Since we gzip the manpages, let's fix the postfix-files to reflect that
# so it won't throw errors during post-install
+( cd $PKG/usr/libexec/postfix
grep manpage postfix-files | while read line;
do MANPAGE="$(echo "$line" | cut -d: -f1)"
sed -i s#"$MANPAGE"#"$MANPAGE.gz"# postfix-files ;
done
+)
# Create .new files
for i in \
access aliases canonical generic header_checks main.cf main.cf.default \
- makedefs.out master.cf postfix-files relocated transport virtual ;
+ makedefs.out master.cf relocated transport virtual ;
do \
mv $i $i.new ;
done