diff options
Diffstat (limited to 'net/kea/Makefile')
-rw-r--r-- | net/kea/Makefile | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/net/kea/Makefile b/net/kea/Makefile index 49e11a579c41..a937964fc4ab 100644 --- a/net/kea/Makefile +++ b/net/kea/Makefile @@ -1,6 +1,5 @@ PORTNAME= kea -DISTVERSION= 2.6.3 -PORTREVISION= 1 +DISTVERSION= 3.0.1 CATEGORIES= net MASTER_SITES= ISC/kea/${DISTVERSION} @@ -14,7 +13,13 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libboost_system.so:devel/boost-libs \ liblog4cplus.so:devel/log4cplus -USES= autoreconf compiler:c++11-lang cpe iconv libtool pathfix ssl +USES= compiler:c++11-lang cpe iconv libtool pathfix ssl python tar:xz meson pkgconfig cmake:indirect shebangfix +MESON_ARGS= --auto-features=disabled \ + -Dcrypto=openssl \ + -Dnetconf=disabled + +BUILD_DEPENDS= googletest>0:devel/googletest \ + rst2man:textproc/py-docutils@${PY_FLAVOR} CPE_VENDOR= isc CPE_VERSION= ${DISTVERSION:C/-.*//} @@ -24,37 +29,38 @@ 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_SUB= yes +SHEBANG_GLOB= *.py *.in +python_OLD_CMD+=@PYTHON@ -SHELL_DESC= Install kea-shell(8) (Python) +OPTIONS_DEFINE= DOCS MYSQL PGSQL +OPTIONS_SUB= yes 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 +PGSQL_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} ${STAGEDIR}${PREFIX}/etc/kea ${STAGEDIR}/var/db/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> |