diff options
author | Thibaut Notteboom <thibaut.notteboom@gmail.com> | 2023-11-29 06:10:27 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-11-29 11:25:02 +0700 |
commit | 0d3f8bbcc3e6b9706913d8e069ddc7bfc948188c (patch) | |
tree | cac0ff0275b5231305095b8af1759d613312cba7 /network/kea/kea.SlackBuild | |
parent | afcddad3aefe803e4fcc989c8c94410299b473ff (diff) |
network/kea: Updated for version 2.5.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/kea/kea.SlackBuild')
-rw-r--r-- | network/kea/kea.SlackBuild | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/network/kea/kea.SlackBuild b/network/kea/kea.SlackBuild index bae53be524ab5..d9de37586f5bc 100644 --- a/network/kea/kea.SlackBuild +++ b/network/kea/kea.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for kea -# Copyright 2016-2017 Thibaut Notteboom, Paris, FRANCE +# Copyright 2016-2023 Thibaut Notteboom, Paris, FRANCE # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,8 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=kea -VERSION=${VERSION:-2.1.3} -BUILD=${BUILD:-2} +VERSION=${VERSION:-2.5.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -59,6 +56,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -99,12 +99,20 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-static \ --build=$ARCH-slackware-linux -make +make -j7 make install DESTDIR=$PKG mkdir -p $PKG/etc/rc.d cat $CWD/rc.kea > $PKG/etc/rc.d/rc.kea.new +mkdir -p $PKG/etc/kea + +# Change configuration files to .new +find $PKG/etc/kea/ -name *.conf | while read cfg ; do mv $cfg $cfg.new ; done + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/kea/hooks/*.la + 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 @@ -113,16 +121,9 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -rm -f $PKG/usr/lib*/*.la - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh -# add any configs found to doinst.sh -find $PKG/etc/kea -name "*.conf" | xargs -I{} mv '{}' '{}'.new -find $PKG/etc/kea -name "*.new" | xargs -I'{}' echo '{}' | cut -d/ -f5- | - sed "s,^,config ," >> $PKG/install/doinst.sh - cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |