aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-10-25 16:25:01 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-02 19:28:43 +0700
commitb193c42f423f5642c67b97a2c8975a5cf5ec8b6a (patch)
tree39afe76cd23bda199528701abd2daf1bab185a43
parentbdb518f0dfd1061b20db394466285d32ded9e8dc (diff)
network/pdns: Bump BUILD for new lua.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/pdns/pdns.SlackBuild27
1 files changed, 13 insertions, 14 deletions
diff --git a/network/pdns/pdns.SlackBuild b/network/pdns/pdns.SlackBuild
index 813d12fe77..bd5767af43 100644
--- a/network/pdns/pdns.SlackBuild
+++ b/network/pdns/pdns.SlackBuild
@@ -21,6 +21,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20240925 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - Build with lua 5.4 by default.
+# - Bump BUILD for lua 5.4.
+
# 20220320 bkw: Modified by SlackBuilds.org: fix 32-bit build.
# It will break again in 2038.
@@ -28,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pdns
VERSION=${VERSION:-4.6.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -72,11 +76,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \+ -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
# 20220320 bkw: configure script fails on 32-bit because
# sizeof(time_t) is 4, (y2k38 bug). patch it to ignore this, since
@@ -88,9 +89,12 @@ sed -i '/y2k38/s,as_fn_error,$as_echo,' configure
DEFAULT_MODULES="bind gsqlite3"
MODULES=${MODULES:-$DEFAULT_MODULES}
+# 20241025 bkw: LUA can be set to either "lua" or "lua51". No need to
+# use lua51, except for testing, so not documented in README.
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
+ --with-lua=${LUA:-lua} \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -103,14 +107,9 @@ CXXFLAGS="$SLKCFLAGS" \
--target=$ARCH \
--host=$ARCH-slackware-linux
-make
-make install DESTDIR=$PKG
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+make V=1
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a NOTICE COPYING README $PKG/usr/doc/$PRGNAM-$VERSION