aboutsummaryrefslogtreecommitdiff
path: root/net/hsflowd
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2013-10-14 00:15:06 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2013-10-14 00:15:06 +0000
commitbc17d6806062b7c62a585b941bc1ddd426226d35 (patch)
tree1e9f8e397c2c2cc20d01036cdfdf77b5a4290583 /net/hsflowd
parenta7e52d9aca82e8dfa38a4a3ba6fe6982afc1908d (diff)
downloadports-bc17d6806062b7c62a585b941bc1ddd426226d35.tar.gz
ports-bc17d6806062b7c62a585b941bc1ddd426226d35.zip
- Update to 1.23.3
- Add STAGE support PR: ports/182617 Submitted by: ohauer@FreeBSD.org
Notes
Notes: svn path=/head/; revision=330270
Diffstat (limited to 'net/hsflowd')
-rw-r--r--net/hsflowd/Makefile15
-rw-r--r--net/hsflowd/distinfo4
-rw-r--r--net/hsflowd/pkg-plist7
3 files changed, 11 insertions, 15 deletions
diff --git a/net/hsflowd/Makefile b/net/hsflowd/Makefile
index e7f7e95aa574..ad61b29d737a 100644
--- a/net/hsflowd/Makefile
+++ b/net/hsflowd/Makefile
@@ -2,21 +2,21 @@
# $FreeBSD$
PORTNAME= hsflowd
-PORTVERSION= 1.22.2
+PORTVERSION= 1.23.3
CATEGORIES= net
-MASTER_SITES= SF/host-sflow/REL-1_22/ \
+MASTER_SITES= SF/host-sflow/Latest/ \
http://mirrors.rit.edu/zi/
MAINTAINER= zi@FreeBSD.org
COMMENT= Agent that exports metrics using the sFlow protocol
-MAKE_JOBS_UNSAFE= no
SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
MAKE_ENV= BINDIR=${PREFIX}/sbin INITDIR=${PREFIX}/etc/rc.d \
- CONFDIR=${ETCDIR}
+ CONFDIR=${ETCDIR} INSTROOT=${STAGEDIR}
+
+MAKE_JOBS_UNSAFE= yes
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|g' \
-e '/scripts\/hsflowd /d' \
@@ -29,9 +29,4 @@ post-patch:
@${MV} ${WRKSRC}/src/FreeBSD/scripts/hsflowd.conf \
${WRKSRC}/src/FreeBSD/scripts/hsflowd.conf.sample
-post-install:
- @if [ ! -f ${ETCDIR}/hsflowd.conf ]; then \
- ${CP} ${ETCDIR}/hsflowd.conf.sample ${ETCDIR}/hsflowd.conf ; \
- fi
-
.include <bsd.port.mk>
diff --git a/net/hsflowd/distinfo b/net/hsflowd/distinfo
index c0f3217c5801..68325583c9bf 100644
--- a/net/hsflowd/distinfo
+++ b/net/hsflowd/distinfo
@@ -1,2 +1,2 @@
-SHA256 (hsflowd-1.22.2.tar.gz) = 648806afa02cb5588dd69aba54be0d5810f56af112003a861df0aadd6c28611c
-SIZE (hsflowd-1.22.2.tar.gz) = 1841547
+SHA256 (hsflowd-1.23.3.tar.gz) = f930888a90ba0e129afd853eeb534b40c7c05b79ae61723a4c4bb8980b17d730
+SIZE (hsflowd-1.23.3.tar.gz) = 2052688
diff --git a/net/hsflowd/pkg-plist b/net/hsflowd/pkg-plist
index beefeb2203c3..a98d1227509e 100644
--- a/net/hsflowd/pkg-plist
+++ b/net/hsflowd/pkg-plist
@@ -1,6 +1,7 @@
@comment $FreeBSD$
-etc/hsflowd/hsflowd.conf.sample
+@unexec if cmp -s %D/%%ETCDIR%%/hsflowd.conf %D/%%ETCDIR%%/hsflowd.conf.sample; then rm -f %D/%%ETCDIR%%/hsflowd.conf; fi
+%%ETCDIR%%/hsflowd.conf.sample
+@exec if [ ! -f %D/%%ETCDIR%%/hsflowd.conf ]; then cp -p %D/%F %B/hsflowd.conf; fi
sbin/hsflowd
-@dirrmtry etc/hsflowd
-@unexec if cmp -s %D/etc/hsflowd/hsflowd.conf %D/etc/hsflowd.conf.sample; then rm -f %D/etc/hsflowd.conf; fi
+@dirrmtry %%ETCDIR%%
@unexec if [ -d %%ETCDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%ETCDIR%%`` to remove any configuration files."; fi