2014-04-08 19:06:58 +02:00
|
|
|
# Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= chrony
|
2018-05-09 05:01:58 +02:00
|
|
|
PORTVERSION= 3.3
|
2014-04-08 19:06:58 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://download.tuxfamily.org/chrony/
|
|
|
|
|
2016-06-05 05:35:27 +02:00
|
|
|
MAINTAINER= yonas@fizk.net
|
2014-04-08 19:06:58 +02:00
|
|
|
COMMENT= System clock synchronization client and server
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
2017-01-17 18:37:21 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2014-04-08 19:06:58 +02:00
|
|
|
|
2017-02-13 19:05:34 +01:00
|
|
|
USERS= chronyd
|
|
|
|
GROUPS= chronyd
|
2016-06-12 12:41:45 +02:00
|
|
|
|
2017-02-13 19:05:34 +01:00
|
|
|
USES= cpe gmake libedit
|
2015-04-22 13:43:12 +02:00
|
|
|
CPE_VENDOR= tuxfamily
|
2014-04-08 19:06:58 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2015-11-23 21:04:20 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
2015-12-27 13:53:32 +01:00
|
|
|
--chronyvardir=/var/db/${PORTNAME} \
|
2015-11-23 21:04:20 +01:00
|
|
|
--sysconfdir=${PREFIX}/etc --mandir=${MANPREFIX}/man \
|
2017-02-13 19:05:34 +01:00
|
|
|
--datarootdir=${DATADIR} --docdir=${DOCSDIR} \
|
2018-05-09 05:01:58 +02:00
|
|
|
--with-readline-library=${LOCALBASE}/lib \
|
2017-11-18 23:41:34 +01:00
|
|
|
--with-user=chronyd --without-tomcrypt
|
2014-04-08 19:06:58 +02:00
|
|
|
USE_RC_SUBR= chronyd
|
|
|
|
|
2017-02-13 19:05:34 +01:00
|
|
|
ALL_TARGET= all
|
|
|
|
INSTALL_TARGET= install
|
|
|
|
PORTDOCS= FAQ NEWS README
|
2015-12-27 13:53:32 +01:00
|
|
|
PORTEXAMPLES= chrony.conf.example1 chrony.conf.example2 \
|
2016-06-12 12:41:45 +02:00
|
|
|
chrony.conf.example3 chrony.keys.example
|
2014-04-08 19:06:58 +02:00
|
|
|
|
|
|
|
# XXX: there are also other potentially useful options worth looking into:
|
|
|
|
# --disable-pps Disable PPS API support
|
2018-05-09 05:01:58 +02:00
|
|
|
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
|
2014-04-08 19:06:58 +02:00
|
|
|
|
|
|
|
IPV6_CATEGORIES= ipv6
|
|
|
|
IPV6_CONFIGURE_OFF= --disable-ipv6
|
2018-05-09 05:01:58 +02:00
|
|
|
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
|
2017-11-18 23:41:34 +01:00
|
|
|
NSS_CONFIGURE_OFF= --without-nss
|
2017-11-20 14:49:59 +01:00
|
|
|
NSS_LIB_DEPENDS= libfreebl3.so:security/nss
|
2017-11-18 23:41:34 +01:00
|
|
|
NSS_USES= pkgconfig
|
|
|
|
|
2018-05-09 05:01:58 +02:00
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC}/examples && \
|
|
|
|
${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!g' ${PORTEXAMPLES}
|
|
|
|
|
2016-12-02 12:58:21 +01:00
|
|
|
post-install:
|
2015-05-23 20:59:11 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chronyc
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/chronyd
|
2016-06-06 18:50:14 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/chrony.conf.example3 \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/chrony.conf.sample
|
2014-04-08 19:06:58 +02:00
|
|
|
|
2018-05-09 05:01:58 +02:00
|
|
|
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}
|
|
|
|
|
2014-04-08 19:06:58 +02:00
|
|
|
.include <bsd.port.mk>
|