Changeset View
Changeset View
Standalone View
Standalone View
head/net/chrony/Makefile
# Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp> | # Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= chrony | PORTNAME= chrony | ||||
PORTVERSION= 3.0 | PORTVERSION= 3.0 | ||||
CATEGORIES= net | CATEGORIES= net | ||||
MASTER_SITES= http://download.tuxfamily.org/chrony/ | MASTER_SITES= http://download.tuxfamily.org/chrony/ | ||||
MAINTAINER= yonas@fizk.net | MAINTAINER= yonas@fizk.net | ||||
COMMENT= System clock synchronization client and server | COMMENT= System clock synchronization client and server | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
BUILD_DEPENDS= rubygem-asciidoctor>=0:textproc/rubygem-asciidoctor | USERS= chronyd | ||||
GROUPS= chronyd | |||||
USES= cpe gmake makeinfo readline | USES= cpe gmake libedit | ||||
CPE_VENDOR= tuxfamily | CPE_VENDOR= tuxfamily | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --prefix=${PREFIX} \ | CONFIGURE_ARGS= --prefix=${PREFIX} \ | ||||
--chronyvardir=/var/db/${PORTNAME} \ | --chronyvardir=/var/db/${PORTNAME} \ | ||||
--infodir=${PREFIX}/info \ | --infodir=${PREFIX}/info \ | ||||
--sysconfdir=${PREFIX}/etc --mandir=${MANPREFIX}/man \ | --sysconfdir=${PREFIX}/etc --mandir=${MANPREFIX}/man \ | ||||
--datarootdir=${DATADIR} --docdir=${DOCSDIR} | --datarootdir=${DATADIR} --docdir=${DOCSDIR} \ | ||||
--with-user=chronyd | |||||
LDFLAGS+= -L${LOCALBASE}/lib | |||||
USE_RC_SUBR= chronyd | USE_RC_SUBR= chronyd | ||||
ALL_TARGET= all docs | ALL_TARGET= all | ||||
INSTALL_TARGET= install install-docs | INSTALL_TARGET= install | ||||
EXTRAPORTDOCS= FAQ NEWS README | PORTDOCS= FAQ NEWS README | ||||
PORTDOCS= chrony.conf.html chronyc.html chronyd.html faq.html \ | |||||
installation.html ${EXTRAPORTDOCS} | |||||
PORTEXAMPLES= chrony.conf.example1 chrony.conf.example2 \ | PORTEXAMPLES= chrony.conf.example1 chrony.conf.example2 \ | ||||
chrony.conf.example3 chrony.keys.example | chrony.conf.example3 chrony.keys.example | ||||
# XXX: there are also other potentially useful options worth looking into: | # XXX: there are also other potentially useful options worth looking into: | ||||
# --without-nss Don't use NSS even if it is available | # --without-nss Don't use NSS even if it is available | ||||
# --without-tomcrypt Don't use libtomcrypt even if it is available | # --without-tomcrypt Don't use libtomcrypt even if it is available | ||||
# --disable-pps Disable PPS API support | # --disable-pps Disable PPS API support | ||||
OPTIONS_DEFINE= IPV6 | OPTIONS_DEFINE= IPV6 | ||||
IPV6_CATEGORIES= ipv6 | IPV6_CATEGORIES= ipv6 | ||||
IPV6_CONFIGURE_OFF= --disable-ipv6 | IPV6_CONFIGURE_OFF= --disable-ipv6 | ||||
BROKEN_aarch64= Fails to compile: invalid operands to binary expression (double and double) | BROKEN_aarch64= Fails to compile: invalid operands to binary expression (double and double) | ||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chronyc | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chronyc | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/chronyd | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/chronyd | ||||
${INSTALL_DATA} ${EXTRAPORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} | |||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | ||||
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} \ | ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} \ | ||||
${STAGEDIR}${EXAMPLESDIR} | ${STAGEDIR}${EXAMPLESDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/examples/chrony.conf.example3 \ | ${INSTALL_DATA} ${WRKSRC}/examples/chrony.conf.example3 \ | ||||
${STAGEDIR}${PREFIX}/etc/chrony.conf.sample | ${STAGEDIR}${PREFIX}/etc/chrony.conf.sample | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |