diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-05-09 03:01:58 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-05-09 03:01:58 +0000 |
commit | 40870c8a7b6659abf36fce64f19ec27a7495e55b (patch) | |
tree | 81c277416661ed550a5811ffab9287d7d29faec0 /net/chrony | |
parent | bfc6693cd08a125175baf1b546f59c07c3986ee7 (diff) | |
download | ports-40870c8a7b6659abf36fce64f19ec27a7495e55b.tar.gz ports-40870c8a7b6659abf36fce64f19ec27a7495e55b.zip |
net/chrony: Update to 3.3
- Add explicit DOCS, EXAMPLES options
- Replace %%PREFIX%% in sample files
- Make sure chronyc is really linked with libedit from ports
- Add support for security/nettle and use it by default since chrony crashes
on startup when built with NSS. [1]
PR: 227779, 223840 [1]
Submitted by: takefu@airport.fm
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=469426
Diffstat (limited to 'net/chrony')
-rw-r--r-- | net/chrony/Makefile | 34 | ||||
-rw-r--r-- | net/chrony/distinfo | 6 |
2 files changed, 26 insertions, 14 deletions
diff --git a/net/chrony/Makefile b/net/chrony/Makefile index 7648f353f5b0..48399dfcdc02 100644 --- a/net/chrony/Makefile +++ b/net/chrony/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= chrony -PORTVERSION= 3.1 -PORTREVISION= 3 +PORTVERSION= 3.3 CATEGORIES= net MASTER_SITES= http://download.tuxfamily.org/chrony/ @@ -23,6 +22,7 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \ --chronyvardir=/var/db/${PORTNAME} \ --sysconfdir=${PREFIX}/etc --mandir=${MANPREFIX}/man \ --datarootdir=${DATADIR} --docdir=${DOCSDIR} \ + --with-readline-library=${LOCALBASE}/lib \ --with-user=chronyd --without-tomcrypt USE_RC_SUBR= chronyd @@ -34,26 +34,38 @@ PORTEXAMPLES= chrony.conf.example1 chrony.conf.example2 \ # XXX: there are also other potentially useful options worth looking into: # --disable-pps Disable PPS API support -OPTIONS_DEFINE= IPV6 NSS -OPTIONS_DEFAULT= NSS +OPTIONS_DEFINE= DOCS EXAMPLES IPV6 NETTLE NSS +OPTIONS_DEFAULT= IPV6 NETTLE + +NETTLE_DESC= Nettle crypto library support +NSS_DESC= Add support for more hashing algorithms IPV6_CATEGORIES= ipv6 IPV6_CONFIGURE_OFF= --disable-ipv6 - -NSS_DESC= Add support for more hashing algorithms +NETTLE_CONFIGURE_OFF= --without-nettle +NETTLE_LIB_DEPENDS= libnettle.so:security/nettle +NSS_BROKEN= Crashes on startup with NSS. See https://bugs.freebsd.org/223840 NSS_CONFIGURE_OFF= --without-nss NSS_LIB_DEPENDS= libfreebl3.so:security/nss NSS_USES= pkgconfig +post-patch: + @cd ${WRKSRC}/examples && \ + ${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!g' ${PORTEXAMPLES} + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chronyc ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/chronyd - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} \ - ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/chrony.conf.example3 \ ${STAGEDIR}${PREFIX}/etc/chrony.conf.sample +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/examples && \ + ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} + .include <bsd.port.mk> diff --git a/net/chrony/distinfo b/net/chrony/distinfo index 38348f935d6c..bf727bc63ae7 100644 --- a/net/chrony/distinfo +++ b/net/chrony/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1488375273 -SHA256 (chrony-3.1.tar.gz) = 9d9107dcdb7768a03dc129d33b2a7a25f1eea2f5620bc85eb00cfea07c1b6075 -SIZE (chrony-3.1.tar.gz) = 424109 +TIMESTAMP = 1524659947 +SHA256 (chrony-3.3.tar.gz) = 0d1fb2d5875032f2d5a86f3770374c87ee4c941916f64171e81f7684f2a73128 +SIZE (chrony-3.3.tar.gz) = 443571 |