a96f477131
Closes: #776 [via git-merge-pr] Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
70 lines
2.1 KiB
Bash
70 lines
2.1 KiB
Bash
# Template file for 'kea'
|
|
pkgname=kea
|
|
version=1.3.0
|
|
revision=5
|
|
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=${XBPS_CROSS_BASE}/usr/bin/pg_config)"
|
|
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)"
|
|
checkdepends="procps-ng" #needs pgrep
|
|
depends="libkea>=0"
|
|
conf_files="/etc/kea/*.conf"
|
|
short_desc="Next generation DHCPv4/v6 server"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="MPL-2 Apache-2.0"
|
|
homepage="http://kea.isc.org/wiki"
|
|
distfiles="http://ftp.isc.org/isc/kea/${version}/kea-${version}.tar.gz"
|
|
checksum=6edfcdbf2526c218426a1d1a6a6694a4050c97bb8412953a230285d63415c391
|
|
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"
|
|
build_options_default="pgsql"
|
|
|
|
# Reduce log spamming for deprecated auto_ptr
|
|
CXXFLAGS="-Wno-deprecated-declarations -O2"
|
|
|
|
post_install() {
|
|
vsv kea-dhcp4
|
|
vsv kea-dhcp6
|
|
vsv kea-dhcp-ddns
|
|
|
|
# We don't have the MPL-2.0 standard license
|
|
vlicense COPYING
|
|
|
|
# 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
|
|
rm ${DESTDIR}/usr/bin/kea-ctrl-agent
|
|
|
|
# Modify the logging output to stdout
|
|
sed -i ${DESTDIR}/etc/kea/*.conf \
|
|
-e 's;"output": "/var/log/.*";"output": "stdout";'
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|