aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2016-12-11 18:20:09 +0800
committerpi <pi@FreeBSD.org>2016-12-11 18:20:09 +0800
commit907a797170f9c9105842b72ed33fa0d7638e8e30 (patch)
tree852aa3916639f1fcef9ba2b2d248521587915825
parentab47d19037a4ed47fafce016e062f51c9b11260e (diff)
downloadfreebsd-ports-gnome-907a797170f9c9105842b72ed33fa0d7638e8e30.tar.gz
freebsd-ports-gnome-907a797170f9c9105842b72ed33fa0d7638e8e30.tar.zst
freebsd-ports-gnome-907a797170f9c9105842b72ed33fa0d7638e8e30.zip
net/ntpa: update 0.7.4 -> 0.7.6
- Added BSD3CLAUSE PostgreSQL GPLv2 to license list - Updated PostgreSQL data provider to v3.1.9 - Build with NPlot from ports tree - Improved logging of database errors - Sanitized default configuration - Change build script to autotools - Fixed threadpool issue in mono 2.6 PR: 215181 Submitted by: Carsten Larsen <cs@innolan.dk> (maintainer)
-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