summaryrefslogtreecommitdiff
path: root/net/kea-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/kea-devel/Makefile')
-rw-r--r--net/kea-devel/Makefile40
1 files changed, 18 insertions, 22 deletions
diff --git a/net/kea-devel/Makefile b/net/kea-devel/Makefile
index e5592424331a..11a7e2022050 100644
--- a/net/kea-devel/Makefile
+++ b/net/kea-devel/Makefile
@@ -1,8 +1,8 @@
PORTNAME= kea
-DISTVERSION= 2.7.9
+DISTVERSION= 3.0.0
PORTREVISION= 2
CATEGORIES= net
-MASTER_SITES= ISC/kea/cur/2.7
+MASTER_SITES= ISC/kea/cur/3.0
PKGNAMESUFFIX= -devel
MAINTAINER= cy@FreeBSD.org
@@ -12,13 +12,14 @@ WWW= https://kea.isc.org/
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= rst2man:textproc/py-docutils
+BUILD_DEPENDS= rst2man:textproc/py-docutils \
+ python3:lang/python3
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
liblog4cplus.so:devel/log4cplus
-USES= autoreconf compiler:c++11-lang cpe iconv libtool pathfix \
- tar:xz ssl
+USES= compiler:c++11-lang cmake:indirect cpe iconv libtool meson \
+ pathfix python tar:xz ssl
CPE_VENDOR= isc
CPE_VERSION= ${DISTVERSION:C/-.*//}
@@ -28,45 +29,40 @@ CPE_UPDATE= ${DISTVERSION:C/.*-//:tl}
USE_LDCONFIG= yes
USE_RC_SUBR= ${PORTNAME}
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-boost-include=${LOCALBASE}/include \
- --with-boost-lib-dir=${LOCALBASE}/lib \
- --with-log4cplus=${LOCALBASE} \
- --with-openssl=${OPENSSLBASE} \
- --without-werror
INSTALL_TARGET= install-strip
-TEST_TARGET= check
PORTDOCS= AUTHORS CONTRIBUTING.md COPYING ChangeLog README SECURITY.md \
code_of_conduct.md examples platforms.rst
-OPTIONS_DEFINE= DOCS MYSQL PGSQL SHELL
+OPTIONS_DEFINE= DOCS MYSQL PGSQL
OPTIONS_SUB= yes
-SHELL_DESC= Install kea-shell(8) (Python)
-
+MESON_ARGS= --auto-features=disabled \
+ -Dnetconf=disabled \
+ -Drunstatedir=/var/run
+
MYSQL_USES= mysql
-MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}/bin/mysql_config
-MYSQL_CONFIGURE_OFF= --without-mysql
+MYSQL_MESON_ENABLED= mysql
MYSQL_SUB_LIST= REQ_MYSQL=mysql
MYSQL_SUB_LIST_OFF= REQ_MYSQL=""
PGSQL_USES= pgsql
-PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}/bin/pg_config
-PGSQL_CONFIGURE_OFF= --without-pgsql
+PGSQ_MESON_ENABLED= postgresql
PGSQL_SUB_LIST= REQ_PGSQL=postgresql
PGSQL_SUB_LIST_OFF= REQ_PGSQL=""
PGSQL_VARS= WANT_PGSQL=client
-SHELL_USES= python
-SHELL_CONFIGURE_ON= --enable-shell
-
post-build:
cd ${WRKSRC}/doc/sphinx/man; \
for i in *.8.rst; do rst2man $$i > $$(basename $$i .rst); done
post-install:
+ @mkdir -p ${STAGEDIR}${PREFIX}/etc/kea ${STAGEDIR}/var/db/kea \
+ ${STAGEDIR}/var/log/kea ${STAGEDIR}/var/run/kea
+ @rm -rf ${STAGEDIR}${PREFIX}/var
@cd ${WRKSRC}/doc/sphinx/man; \
cp *.8 ${STAGEDIR}${PREFIX}/share/man/man8
+ @cd ${WRKSRC}/_build/src/bin/keactrl; \
+ for i in *.conf; do cp $$i ${STAGEDIR}${PREFIX}/etc/kea/$$i.sample; done
.include <bsd.port.mk>