aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ntpa/Makefile28
-rw-r--r--net/ntpa/distinfo6
-rw-r--r--net/ntpa/pkg-plist1
3 files changed, 19 insertions, 16 deletions
diff --git a/net/ntpa/Makefile b/net/ntpa/Makefile
index 66a417427c4b..2368637448ea 100644
--- a/net/ntpa/Makefile
+++ b/net/ntpa/Makefile
@@ -2,16 +2,18 @@
# $FreeBSD$
PORTNAME= ntpa
-PORTVERSION= 0.7.4
+PORTVERSION= 0.7.6
CATEGORIES= net
MASTER_SITES= http://dist.innolan.net/
MAINTAINER= cs@innolan.dk
COMMENT= NTP data collection and charting
-LICENSE= MIT
+LICENSE= MIT BSD3CLAUSE PostgreSQL GPLv2
+LICENSE_COMB= multi
-USES= mono
+USES= mono pkgconfig autoreconf gmake
+GNU_CONFIGURE= yes
NO_ARCH= yes
OPTIONS_SUB= yes
USE_RC_SUBR= ntpa
@@ -25,13 +27,16 @@ OPTIONS_DEFINE= WEBFILES GRAPH
WEBFILES_DESC= Install web files
GRAPH_DESC= Graph generation (requires Cairo)
+GRAPH_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/NPlot.pc:graphics/nplot
GRAPH_RUN_DEPENDS= nplot>=0:graphics/nplot
-do-patch:
- @${REINPLACE_CMD} 's|NPlot.0.9.10.0\\lib\\net20|NPlot.0.9.10.1|' \
- ${WRKSRC}/Ntp.Analyzer/Ntp.Analyzer.csproj
- @${REINPLACE_CMD} '/Mono.Posix.4.0.0.0/d' \
- ${WRKSRC}/Ntp.Common/Ntp.Common.csproj
+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}
@@ -47,10 +52,9 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/examples/ntpd.conf ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/openntp.conf ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/small.conf ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/bin/MySql.Data.dll ${STAGEDIR}${PREFIX}/libexec/ntpa
- ${INSTALL_DATA} ${WRKSRC}/bin/Npgsql.dll ${STAGEDIR}${PREFIX}/libexec/ntpa
- ${INSTALL_DATA} ${WRKSRC}/bin/NPlot.dll ${STAGEDIR}${PREFIX}/libexec/ntpa
- ${INSTALL_MAN} ${WRKSRC}/docs/ntpa.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+ ${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}/var/log/ntpa
${MKDIR} ${STAGEDIR}/var/run/ntpa
diff --git a/net/ntpa/distinfo b/net/ntpa/distinfo
index 197e06e3c27c..4327963e66f8 100644
--- a/net/ntpa/distinfo
+++ b/net/ntpa/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1473636210
-SHA256 (ntpa-0.7.4.tar.gz) = 21e755203552df6f27f38f1d58d06dcd71a4a113db97b89f1578217e69d5e544
-SIZE (ntpa-0.7.4.tar.gz) = 1095489
+TIMESTAMP = 1481372685
+SHA256 (ntpa-0.7.6.tar.gz) = 0c24c2640dc78edf8bdcb405df02f81835e6938eb5c4ca2780106091d057bfb5
+SIZE (ntpa-0.7.6.tar.gz) = 3245250
diff --git a/net/ntpa/pkg-plist b/net/ntpa/pkg-plist
index 5a3016d915fe..0a9a3ff56b15 100644
--- a/net/ntpa/pkg-plist
+++ b/net/ntpa/pkg-plist
@@ -4,7 +4,6 @@ sbin/ntpag
sbin/ntpav
libexec/ntpa/MySql.Data.dll
libexec/ntpa/Npgsql.dll
-libexec/ntpa/NPlot.dll
libexec/ntpa/Ntp.Analyzer.dll
libexec/ntpa/Ntp.Analyzer.Cli.exe
libexec/ntpa/Ntp.Analyzer.Data.dll