From 2a5d6c5137f9d93ec01b57dcc765426ff4adf7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 6 Dec 2016 23:57:28 +0100 Subject: [PATCH] New package: kea-1.1.0 --- common/shlibs | 17 ++++++ srcpkgs/kea/files/kea-dhcp-ddns/run | 3 ++ srcpkgs/kea/files/kea-dhcp4/run | 3 ++ srcpkgs/kea/files/kea-dhcp6/run | 3 ++ srcpkgs/kea/patches/fix-musl-ethaddr.patch | 12 +++++ srcpkgs/kea/patches/fix-musl-getopt.patch | 10 ++++ srcpkgs/kea/template | 60 ++++++++++++++++++++++ srcpkgs/libkea | 1 + srcpkgs/libkea-devel | 1 + 9 files changed, 110 insertions(+) create mode 100755 srcpkgs/kea/files/kea-dhcp-ddns/run create mode 100755 srcpkgs/kea/files/kea-dhcp4/run create mode 100755 srcpkgs/kea/files/kea-dhcp6/run create mode 100644 srcpkgs/kea/patches/fix-musl-ethaddr.patch create mode 100644 srcpkgs/kea/patches/fix-musl-getopt.patch create mode 100644 srcpkgs/kea/template create mode 120000 srcpkgs/libkea create mode 120000 srcpkgs/libkea-devel diff --git a/common/shlibs b/common/shlibs index 2bb692c51e..b681f8dbbd 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2719,3 +2719,20 @@ libcapnp-rpc-0.5.3.so capnproto-0.5.3_1 libcapnpc-0.5.3.so capnproto-0.5.3_1 libkj-0.5.3.so capnproto-0.5.3_1 libkj-async-0.5.3.so capnproto-0.5.3_1 +libkea-log.so.2 libkea-1.1.0_1 +libkea-util.so.2 libkea-1.1.0_1 +libkea-exceptions.so.0 libkea-1.1.0_1 +libkea-dhcpsrv.so.6 libkea-1.1.0_1 +libkea-eval.so.4 libkea-1.1.0_1 +libkea-dhcp_ddns.so.1 libkea-1.1.0_1 +libkea-stats.so.1 libkea-1.1.0_1 +libkea-cfgclient.so.2 libkea-1.1.0_1 +libkea-dhcp++.so.4 libkea-1.1.0_1 +libkea-asiolink.so.3 libkea-1.1.0_1 +libkea-cc.so.1 libkea-1.1.0_1 +libkea-cryptolink.so.1 libkea-1.1.0_1 +libkea-hooks.so.2 libkea-1.1.0_1 +libkea-asiodns.so.0 libkea-1.1.0_1 +libkea-dns++.so.1 libkea-1.1.0_1 +libkea-util-io.so.0 libkea-1.1.0_1 +libkea-threads.so.1 libkea-1.1.0_1 diff --git a/srcpkgs/kea/files/kea-dhcp-ddns/run b/srcpkgs/kea/files/kea-dhcp-ddns/run new file mode 100755 index 0000000000..dcadad028f --- /dev/null +++ b/srcpkgs/kea/files/kea-dhcp-ddns/run @@ -0,0 +1,3 @@ +#!/bin/sh +[ -r conf ] && . ./conf +exec kea-dhcp-ddns ${OPTS:=-c /etc/kea/kea.conf} diff --git a/srcpkgs/kea/files/kea-dhcp4/run b/srcpkgs/kea/files/kea-dhcp4/run new file mode 100755 index 0000000000..b1ea9ebda4 --- /dev/null +++ b/srcpkgs/kea/files/kea-dhcp4/run @@ -0,0 +1,3 @@ +#!/bin/sh +[ -r conf ] && . ./conf +exec kea-dhcp4 ${OPTS:=-c /etc/kea/kea.conf} diff --git a/srcpkgs/kea/files/kea-dhcp6/run b/srcpkgs/kea/files/kea-dhcp6/run new file mode 100755 index 0000000000..975923c083 --- /dev/null +++ b/srcpkgs/kea/files/kea-dhcp6/run @@ -0,0 +1,3 @@ +#!/bin/sh +[ -r conf ] && . ./conf +exec kea-dhcp6 ${OPTS:=-c /etc/kea/kea.conf} diff --git a/srcpkgs/kea/patches/fix-musl-ethaddr.patch b/srcpkgs/kea/patches/fix-musl-ethaddr.patch new file mode 100644 index 0000000000..1f6400bef6 --- /dev/null +++ b/srcpkgs/kea/patches/fix-musl-ethaddr.patch @@ -0,0 +1,12 @@ +--- src/lib/dhcp/pkt_filter_lpf.cc 2016-09-27 12:32:02.000000000 +0200 ++++ src/lib/dhcp/pkt_filter_lpf.cc 2016-12-07 12:14:25.850716385 +0100 +@@ -13,7 +13,9 @@ + #include + #include + #include ++#if defined(__GLIBC__) + #include ++#endif + #include + #include + diff --git a/srcpkgs/kea/patches/fix-musl-getopt.patch b/srcpkgs/kea/patches/fix-musl-getopt.patch new file mode 100644 index 0000000000..273e126c68 --- /dev/null +++ b/srcpkgs/kea/patches/fix-musl-getopt.patch @@ -0,0 +1,10 @@ +--- src/bin/perfdhcp/command_options.cc 2016-09-27 12:32:02.000000000 +0200 ++++ src/bin/perfdhcp/command_options.cc 2016-12-07 12:19:55.784883734 +0100 +@@ -7,6 +7,7 @@ + #include + + #include "command_options.h" ++#include + #include + #include + #include diff --git a/srcpkgs/kea/template b/srcpkgs/kea/template new file mode 100644 index 0000000000..c142c67821 --- /dev/null +++ b/srcpkgs/kea/template @@ -0,0 +1,60 @@ +# Template file for 'kea' +pkgname=kea +version=1.1.0 +revision=1 +build_style=gnu-configure +configure_args="--enable-generate-docs --with-openssl=${XBPS_CROSS_BASE}/usr + $(vopt_if mysql --with-dhcp-mysql) + $(vopt_if pgsql --with-dhcp-pgsql)" +hostmakedepends="flex bison perl pkg-config + doxygen elinks libxslt docbook-xsl" +makedepends="boost-devel log4cplus-devel python3-devel + $(vopt_if botan botan-devel libressl-devel) + $(vopt_if mysql libmysqlclient-devel) + $(vopt_if pgsql postgresql-libs-devel)" +depends="libkea>=0" +conf_files="/etc/kea/kea.conf" +short_desc="Next generation DHCPv4/v6 server" +maintainer="Jürgen Buchmüller " +license="MPL-2" +homepage="http://kea.isc.org/wiki" +distfiles="http://ftp.isc.org/isc/kea/${version}/kea-${version}.tar.gz" +checksum="c3d97aee4faa19653ffe6d37e797e2fbf632124cd0b98bb502f9b97b5a383c2d" +nocross="Tools required for messages are not built for the host arch" + +build_options="botan mysql pgsql" +desc_option_botan="With Botan SSL support" +desc_option_mysql="With MySQL lease information database" +desc_option_pgsql="With PostgreSQL lease information database" + +# Reduce log spamming for deprecated auto_ptr +CXXFLAGS="-Wno-deprecated-declarations -O2" + +post_install() { + vsv kea-dhcp4 + vsv kea-dhcp6 + vsv kea-dhcp-ddns + + # Since sv is used to control the kea servers, + # keactrl and its config file is useless for us + rm ${DESTDIR}/usr/bin/keactrl + rm ${DESTDIR}/etc/kea/keactrl.conf +} + +libkea_package() { + short_desc+=" - libraries" + pkg_install() { + vmove usr/lib/*.so.* + } +} + +libkea-devel_package() { + short_desc+=" - development files" + depends="${makedepends} libkea>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + } +} diff --git a/srcpkgs/libkea b/srcpkgs/libkea new file mode 120000 index 0000000000..bf454a0a6d --- /dev/null +++ b/srcpkgs/libkea @@ -0,0 +1 @@ +kea \ No newline at end of file diff --git a/srcpkgs/libkea-devel b/srcpkgs/libkea-devel new file mode 120000 index 0000000000..bf454a0a6d --- /dev/null +++ b/srcpkgs/libkea-devel @@ -0,0 +1 @@ +kea \ No newline at end of file