summaryrefslogtreecommitdiff
path: root/source/ap/sudo/sudo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/sudo/sudo.SlackBuild')
-rwxr-xr-xsource/ap/sudo/sudo.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/ap/sudo/sudo.SlackBuild b/source/ap/sudo/sudo.SlackBuild
index 8081e917..fda0c80a 100755
--- a/source/ap/sudo/sudo.SlackBuild
+++ b/source/ap/sudo/sudo.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2008, 2009, 2010, 2011, 2012 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011, 2012, 2015, 2016 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,7 +28,7 @@ BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
@@ -42,12 +42,12 @@ TMP=${TMP:-/tmp}
PKG=$TMP/package-sudo
rm -rf $PKG
-mkdir -p $TMP $PKG/var/{lib,db}
+mkdir -p $TMP $PKG/var/db
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
-elif [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
@@ -75,7 +75,10 @@ CFLAGS="$SLKCFLAGS" \
--with-env-editor \
--disable-pam-session \
--with-pam=no \
- --with-timedir=/var/db/sudo \
+ --with-rundir=/var/db/sudo \
+ --with-insults \
+ --with-all-insults \
+ --with-pc-insults \
--build=$ARCH-slackware-linux
make $NUMJOBS || make || exit 1