f73023b7d8
- Rename the files installed to /usr/local/etc/newsyslog.conf.d/ to end with a '.conf' suffix. - Add pkg-install script to automatically move any copies of the old newsyslog file to the new location if it was modified from the default or delete the old file if it is has not been modified. - Add a note to UPDATING and pkg-message to warn users of this, in case they are using provisioning/configuration management tools which need to be modified. Note the UPDATING entry was committed in r485721. Recent changes to /etc/newsyslog.conf (r340318) will only include files from the /usr/local/etc/newsyslog.conf.d/ directory which end with '.conf' and do not beginning with a '.' character. Approved by: portmgr blanket
72 lines
2.3 KiB
Makefile
72 lines
2.3 KiB
Makefile
# Created by: Carsten Larsen <cs@innolan.dk>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ntpa
|
|
PORTVERSION= 0.8.2
|
|
PORTREVISION= 4
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://dist1.innolan.net/ \
|
|
http://dist2.innolan.net/
|
|
|
|
MAINTAINER= cs@innolan.net
|
|
COMMENT= NTP data collection and charting
|
|
|
|
LICENSE= MIT BSD3CLAUSE PostgreSQL GPLv2
|
|
LICENSE_COMB= multi
|
|
|
|
BUILD_DEPENDS= newtonsoft-json>=0:devel/newtonsoft-json
|
|
RUN_DEPENDS= newtonsoft-json>=0:devel/newtonsoft-json
|
|
|
|
USES= mono pkgconfig autoreconf gmake
|
|
GNU_CONFIGURE= yes
|
|
NO_ARCH= yes
|
|
OPTIONS_SUB= yes
|
|
USE_RC_SUBR= ntpa
|
|
|
|
USERS= ntpa
|
|
GROUPS= ntpa
|
|
|
|
SUB_FILES= ntpad ntpav ntpac ntpag
|
|
|
|
OPTIONS_DEFINE= WEBFILES GRAPH
|
|
WEBFILES_DESC= Install web files
|
|
GRAPH_DESC= Graph generation (requires Cairo)
|
|
|
|
GRAPH_BUILD_DEPENDS= nplot>=0:graphics/nplot
|
|
GRAPH_RUN_DEPENDS= nplot>=0:graphics/nplot
|
|
|
|
CONFIGURE_ARGS+= --libdir=${LOCALBASE}/libexec --bindir=${LOCALBASE}/libexec/ntpa
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ! ${PORT_OPTIONS:MGRAPH}
|
|
CONFIGURE_ENV+= NPLOT_CFLAGS=" " NPLOT_LIBS="-r:../packages/NPlot.0.9.10.0/lib/net20/NPlot.dll"
|
|
.endif
|
|
|
|
post-install-WEBFILES-on:
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
(cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/ntpad ${STAGEDIR}${PREFIX}/sbin/ntpa
|
|
${INSTALL_SCRIPT} ${WRKDIR}/ntpav ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_SCRIPT} ${WRKDIR}/ntpag ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_SCRIPT} ${WRKDIR}/ntpac ${STAGEDIR}${PREFIX}/sbin
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/graph.conf ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/ntpd.conf ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/openntp.conf ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/small.conf ${STAGEDIR}${EXAMPLESDIR}
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/ntpa/
|
|
${INSTALL_DATA} ${WRKSRC}/examples/ntpa.conf ${STAGEDIR}${PREFIX}/etc/ntpa/ntpa.conf.sample
|
|
${INSTALL_MAN} ${WRKSRC}/docs/ntpa.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/DATABASE ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}
|
|
${MKDIR} ${STAGEDIR}/var/log/ntpa
|
|
${MKDIR} ${STAGEDIR}/var/run/ntpa
|
|
${INSTALL_DATA} ${FILESDIR}/newsyslog ${STAGEDIR}${ETCDIR}/ntpa.newsyslog
|
|
|
|
.include <bsd.port.mk>
|