freebsd-ports/net/chrony/Makefile
Rodrigo Osorio fe2c3d3d52 Add missing lib dependency in the original patch
Bump PORTREVISION

PR:		217691
Submitted by:	John Hein  <z7dr6ut7gs@snkmail.com>
Approved by:	Yonas Yanfa <yonas@fizk.net>
2017-11-20 13:49:59 +00:00

59 lines
1.6 KiB
Makefile

# Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
# $FreeBSD$
PORTNAME= chrony
PORTVERSION= 3.1
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= http://download.tuxfamily.org/chrony/
MAINTAINER= yonas@fizk.net
COMMENT= System clock synchronization client and server
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USERS= chronyd
GROUPS= chronyd
USES= cpe gmake libedit
CPE_VENDOR= tuxfamily
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--chronyvardir=/var/db/${PORTNAME} \
--sysconfdir=${PREFIX}/etc --mandir=${MANPREFIX}/man \
--datarootdir=${DATADIR} --docdir=${DOCSDIR} \
--with-user=chronyd --without-tomcrypt
USE_RC_SUBR= chronyd
ALL_TARGET= all
INSTALL_TARGET= install
PORTDOCS= FAQ NEWS README
PORTEXAMPLES= chrony.conf.example1 chrony.conf.example2 \
chrony.conf.example3 chrony.keys.example
# XXX: there are also other potentially useful options worth looking into:
# --disable-pps Disable PPS API support
OPTIONS_DEFINE= IPV6 NSS
OPTIONS_DEFAULT= NSS
IPV6_CATEGORIES= ipv6
IPV6_CONFIGURE_OFF= --disable-ipv6
NSS_DESC= Add support for more hashing algorithms
NSS_CONFIGURE_OFF= --without-nss
NSS_LIB_DEPENDS= libfreebl3.so:security/nss
NSS_USES= pkgconfig
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
.include <bsd.port.mk>