New package: kea-1.1.0

This commit is contained in:
Jürgen Buchmüller 2016-12-06 23:57:28 +01:00
parent 2d3240ee4f
commit 2a5d6c5137
9 changed files with 110 additions and 0 deletions

View file

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

View file

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec kea-dhcp-ddns ${OPTS:=-c /etc/kea/kea.conf}

View file

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec kea-dhcp4 ${OPTS:=-c /etc/kea/kea.conf}

View file

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec kea-dhcp6 ${OPTS:=-c /etc/kea/kea.conf}

View file

@ -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 <exceptions/exceptions.h>
#include <fcntl.h>
#include <linux/filter.h>
+#if defined(__GLIBC__)
#include <linux/if_ether.h>
+#endif
#include <linux/if_packet.h>
#include <net/ethernet.h>

View file

@ -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 <config.h>
#include "command_options.h"
+#include <getopt.h>
#include <exceptions/exceptions.h>
#include <dhcp/iface_mgr.h>
#include <dhcp/duid.h>

60
srcpkgs/kea/template Normal file
View file

@ -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 <pullmoll@t-online.de>"
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
}
}

1
srcpkgs/libkea Symbolic link
View file

@ -0,0 +1 @@
kea

1
srcpkgs/libkea-devel Symbolic link
View file

@ -0,0 +1 @@
kea