summaryrefslogtreecommitdiff
path: root/network/postfix/postfix.SlackBuild
diff options
context:
space:
mode:
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