aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2009-01-20 03:12:53 +0800
committercy <cy@FreeBSD.org>2009-01-20 03:12:53 +0800
commite95ec3e6476373b3c4550d3e2fc0db5ffa03800c (patch)
tree987415dbae04a62b6e138e0a94fed7b04060c648 /net
parent0a74a5f31156cdc3d7a1b5666418b1c86ae294ba (diff)
downloadfreebsd-ports-gnome-e95ec3e6476373b3c4550d3e2fc0db5ffa03800c.tar.gz
freebsd-ports-gnome-e95ec3e6476373b3c4550d3e2fc0db5ffa03800c.tar.zst
freebsd-ports-gnome-e95ec3e6476373b3c4550d3e2fc0db5ffa03800c.zip
Update 4.2.5p155 --> 4.2.5p156.
NTP autodetects the whether net-mgmt/net-snmp is installed and installs an additional binary and man page if it is installed. The port detects if net-snmp is installed and adjusts the packing list accordingly.
Diffstat (limited to 'net')
-rw-r--r--net/ntp-devel/Makefile26
-rw-r--r--net/ntp-devel/distinfo6
-rw-r--r--net/ntp-devel/pkg-plist2
3 files changed, 27 insertions, 7 deletions
diff --git a/net/ntp-devel/Makefile b/net/ntp-devel/Makefile
index fb40388cd3c5..43ee266cb81a 100644
--- a/net/ntp-devel/Makefile
+++ b/net/ntp-devel/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ntp
-PORTVERSION= 4.2.5p155
+PORTVERSION= 4.2.5p156
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ntp-dev/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ \
@@ -41,7 +41,27 @@ PLIST_SUB+= SSL=""
CONFIGURE_ARGS+= --enable-ipv6
.endif
-MAN1= ntp-keygen.1 ntpd.1 ntpdc.1 ntpq.1 ntpsnmpd.1 sntp.1
+MAN1= ntp-keygen.1 ntpd.1 ntpdc.1 ntpq.1 sntp.1
+
+pre-everything::
+ @${ECHO}
+ @${ECHO} If you wish to build this port with SNMP support, please make
+ @${ECHO} sure that the net-mgmt/net-snmp port is installed before
+ @${ECHO} building and installing this port.
+ @${ECHO}
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/bin/net-snmp-config)
+# NTP autodects net-snmp and if found builds and installs a binary that
+# uses it. If detected, modify dependencies and package list.
+BUILD_DEPENDS= ${LOCALBASE}/bin/net-snmp-config:${PORTSDIR}/net-mgmt/net-snmp
+LIB_DEPENDS= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
+MAN1+= ntpsnmpd.1
+PLIST_SUB+= NETSNMP=""
+.else
+PLIST_SUB+= NETSNMP="@comment "
+.endif
post-install:
@${MKDIR} ${EXAMPLESDIR}
@@ -53,4 +73,4 @@ post-install:
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net/ntp-devel/distinfo b/net/ntp-devel/distinfo
index 3e359f7be838..1b5c83ebd980 100644
--- a/net/ntp-devel/distinfo
+++ b/net/ntp-devel/distinfo
@@ -1,3 +1,3 @@
-MD5 (ntp-dev-4.2.5p155.tar.gz) = 9be85fb2ef2e1dd233523db4558f105b
-SHA256 (ntp-dev-4.2.5p155.tar.gz) = 536589b9c62ca1d4dab577eaf01009bf16c27cb3e1515d2992a280551c9aa64f
-SIZE (ntp-dev-4.2.5p155.tar.gz) = 4126984
+MD5 (ntp-dev-4.2.5p156.tar.gz) = 79c012dcc4930e68f7fe1fde0e6f06ba
+SHA256 (ntp-dev-4.2.5p156.tar.gz) = 29efb4fda7e97f5cb58f4522971ffce9b386f16c4d7d814b8393c53691c6754f
+SIZE (ntp-dev-4.2.5p156.tar.gz) = 4127776
diff --git a/net/ntp-devel/pkg-plist b/net/ntp-devel/pkg-plist
index a69a682112be..7a8d206cb6d2 100644
--- a/net/ntp-devel/pkg-plist
+++ b/net/ntp-devel/pkg-plist
@@ -8,7 +8,7 @@ bin/ntptime
bin/ntptrace
bin/sntp
bin/tickadj
-sbin/ntpsnmpd
+%%NETSNMP%%sbin/ntpsnmpd
%%PORTDOCS%%%%DOCSDIR%%/accopt.html
%%PORTDOCS%%%%DOCSDIR%%/assoc.html
%%PORTDOCS%%%%DOCSDIR%%/audio.html