aboutsummaryrefslogtreecommitdiff
path: root/network/kea
diff options
context:
space:
mode:
authorThibaut Notteboom <thibaut.notteboom@gmail.com>2023-11-29 06:10:27 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-11-29 11:25:02 +0700
commit0d3f8bbcc3e6b9706913d8e069ddc7bfc948188c (patch)
treecac0ff0275b5231305095b8af1759d613312cba7 /network/kea
parentafcddad3aefe803e4fcc989c8c94410299b473ff (diff)
network/kea: Updated for version 2.5.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/kea')
-rw-r--r--network/kea/doinst.sh5
-rw-r--r--network/kea/kea.SlackBuild29
-rw-r--r--network/kea/kea.info6
-rw-r--r--network/kea/rc.kea2
4 files changed, 24 insertions, 18 deletions
diff --git a/network/kea/doinst.sh b/network/kea/doinst.sh
index 1ab6bfac50ed8..40c8fbc08a428 100644
--- a/network/kea/doinst.sh
+++ b/network/kea/doinst.sh
@@ -23,3 +23,8 @@ preserve_perms() {
}
preserve_perms etc/rc.d/rc.kea.new
+config etc/kea/kea-ctrl-agent.conf.new
+config etc/kea/kea-dhcp-ddns.conf.new
+config etc/kea/kea-dhcp4.conf.new
+config etc/kea/kea-dhcp6.conf.new
+config etc/kea/keactrl.conf.new
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
diff --git a/network/kea/kea.info b/network/kea/kea.info
index 9c7f7366ed54a..0949478dd99f0 100644
--- a/network/kea/kea.info
+++ b/network/kea/kea.info
@@ -1,8 +1,8 @@
PRGNAM="kea"
-VERSION="2.1.3"
+VERSION="2.5.3"
HOMEPAGE="http://kea.isc.org/"
-DOWNLOAD="http://ftp.isc.org/isc/kea/2.1.3/kea-2.1.3.tar.gz"
-MD5SUM="f049d0c6bc86c5605bfe99ee9e64e5ca"
+DOWNLOAD="http://ftp.isc.org/isc/kea/2.5.3/kea-2.5.3.tar.gz"
+MD5SUM="3cd3fca641f542c5c908615c332404bf"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="log4cplus"
diff --git a/network/kea/rc.kea b/network/kea/rc.kea
index 2d57a1089bf6f..b7214d2cf7d30 100644
--- a/network/kea/rc.kea
+++ b/network/kea/rc.kea
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
case "$1" in
'start')