network/pdns: Bump BUILD for new lua.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-10-25 16:25:01 -04:00 committed by Willy Sudiarto Raharjo
parent bdb518f0df
commit b193c42f42
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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