diff options
Diffstat (limited to 'net/kea/Makefile')
| -rw-r--r-- | net/kea/Makefile | 77 |
1 files changed, 41 insertions, 36 deletions
diff --git a/net/kea/Makefile b/net/kea/Makefile index c4545b8eff2d..28e65ad38749 100644 --- a/net/kea/Makefile +++ b/net/kea/Makefile @@ -1,9 +1,7 @@ PORTNAME= kea -PORTVERSION= ${ISCVERSION:S/-P/P/:S/-beta/b/:S/a/.a/:S/rc/.rc/} -PORTREVISION= 3 +DISTVERSION= 3.0.2 CATEGORIES= net -MASTER_SITES= ISC/kea/${ISCVERSION} -DISTNAME= ${PORTNAME}-${ISCVERSION} +MASTER_SITES= ISC/kea/${DISTVERSION} MAINTAINER= apevnev@me.com COMMENT= Alternative DHCP implementation by ISC @@ -12,50 +10,57 @@ WWW= https://kea.isc.org/ LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= liblog4cplus.so:devel/log4cplus \ - libboost_system.so:devel/boost-libs +LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \ + liblog4cplus.so:devel/log4cplus -USES= autoreconf compiler:c++11-lang iconv libtool pathfix ssl cpe +USES= compiler:c++11-lang cpe iconv pathfix ssl python tar:xz meson pkgconfig cmake:indirect shebangfix +MESON_ARGS= --auto-features=disabled \ + -Dcrypto=openssl \ + -Dnetconf=disabled -# ISC releases things like 1.4.0-P1, which our versioning doesn't like -ISCVERSION= 2.2.0 +BUILD_DEPENDS= googletest>0:devel/googletest \ + rst2man:textproc/py-docutils@${PY_FLAVOR} CPE_VENDOR= isc -CPE_VERSION= ${ISCVERSION:C/-.*//} -.if ${ISCVERSION:M*-*} -CPE_UPDATE= ${ISCVERSION:C/.*-//:tl} +CPE_VERSION= ${DISTVERSION:C/-.*//} +.if ${DISTVERSION:M*-*} +CPE_UPDATE= ${DISTVERSION:C/.*-//:tl} .endif USE_LDCONFIG= yes USE_RC_SUBR= ${PORTNAME} -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE} \ - --with-log4cplus=${LOCALBASE} \ - --with-boost-include=${LOCALBASE}/include \ - --with-boost-lib-dir=${LOCALBASE}/lib \ - --without-werror -INSTALL_TARGET= install-strip -TEST_TARGET= check - -PORTDOCS= AUTHORS COPYING ChangeLog README \ - CONTRIBUTING.md examples code_of_conduct.md \ - platforms.rst - -OPTIONS_DEFINE= DOCS MYSQL PGSQL SHELL + +PORTDOCS= AUTHORS CONTRIBUTING.md COPYING ChangeLog README SECURITY.md \ + code_of_conduct.md examples platforms.rst + +SHEBANG_GLOB= *.py *.in +python_OLD_CMD+=@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_USES= mysql +MYSQL_MESON_ENABLED= mysql MYSQL_SUB_LIST= REQ_MYSQL=mysql MYSQL_SUB_LIST_OFF= REQ_MYSQL="" -PGSQL_USES= pgsql -WANT_PGSQL= client -PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}/bin/pg_config -PGSQL_CONFIGURE_OFF= --without-pgsql + +PGSQL_USES= pgsql +PGSQL_MESON_ENABLED= postgresql PGSQL_SUB_LIST= REQ_PGSQL=postgresql PGSQL_SUB_LIST_OFF= REQ_PGSQL="" -SHELL_DESC= Install kea-shell(8) (Python) -SHELL_USES= python -SHELL_CONFIGURE_ON= --enable-shell +PGSQL_VARS= WANT_PGSQL=client + +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> |
