aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/iog
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-05-12 16:25:16 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-05-12 16:25:16 +0000
commit2d6332f43f21722a8bf064998a7bb2e1f100e28f (patch)
tree7f2e0fe2fecd34dc911b369545d0dc24d446ba49 /net-mgmt/iog
parent7eb7274a9bbedb4c377f551fb41881092edeffc9 (diff)
downloadports-2d6332f43f21722a8bf064998a7bb2e1f100e28f.tar.gz
ports-2d6332f43f21722a8bf064998a7bb2e1f100e28f.zip
Notes
Diffstat (limited to 'net-mgmt/iog')
-rw-r--r--net-mgmt/iog/Makefile35
-rw-r--r--net-mgmt/iog/pkg-plist9
2 files changed, 18 insertions, 26 deletions
diff --git a/net-mgmt/iog/Makefile b/net-mgmt/iog/Makefile
index a216a13e3e52..b3f962e10f54 100644
--- a/net-mgmt/iog/Makefile
+++ b/net-mgmt/iog/Makefile
@@ -6,37 +6,26 @@ PORTVERSION= 1.03
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://www.dynw.com/iog/
-DISTNAME= iog-${PORTVERSION}
-EXTRACT_SUFX= .tgz
-MAINTAINER= ler@lerctr.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= Graphs Byte Counts for switches/routers/etc
NO_BUILD= yes
-USES= perl5
-PLIST_SUB+= VERSION=${PORTVERSION}
+USES= perl5 tar:tgz
+PLIST_SUB= VERSION=${PORTVERSION}
IOG_USER= iog
IOG_GROUP= www
-IOGDIR= ${PREFIX}/iog/iog-${PORTVERSION}
+IOGDIR= ${PREFIX}/iog/iog-${PORTVERSION}
-NO_STAGE= yes
do-install:
- @PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
- @${MKDIR} -m 755 ${IOGDIR}
- @${CHMOD} 0600 ${WRKSRC}/iog.cfg
- @${CP} ${WRKSRC}/iog.cfg ${WRKSRC}/iog.cfg.sample
- @${CP} -R ${WRKSRC}/* ${IOGDIR}
- @if [ ! -x ${IOGDIR}/iog.cfg ]; then \
- ${CP} ${IOGDIR}/iog.cfg.sample ${IOGDIR}/iog.cfg ; \
- fi
- @${FIND} ${IOGDIR} -name \*.orig -or \
- -name \*.bak | ${XARGS} ${RM} -f
- ${CHOWN} -R ${IOG_USER}:${IOG_GROUP} ${PREFIX}/iog
- @if [ -L ${PREFIX}/iog/iog ]; then \
- ${ECHO} "Updating ${PREFIX}/iog/iog symbolic link" ; \
- ${RM} ${PREFIX}/iog/iog ; \
- fi
- ${LN} -sf ${IOGDIR} ${PREFIX}/iog/iog
+ PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
+ ${MKDIR} -m 755 ${STAGEDIR}${IOGDIR}
+ ${CHMOD} 0600 ${WRKSRC}/iog.cfg
+ ${CP} ${WRKSRC}/iog.cfg ${WRKSRC}/iog.cfg.sample
+ ${CP} -R ${WRKSRC}/* ${STAGEDIR}${IOGDIR}
+ ${CP} ${STAGEDIR}${IOGDIR}/iog.cfg.sample ${STAGEDIR}${IOGDIR}/iog.cfg
+ ${FIND} ${STAGEDIR}${IOGDIR} -name '*.bak' -or -name '*.orig' -delete
+ ${LN} -sf ${IOGDIR} ${STAGEDIR}${PREFIX}/iog/iog
.include <bsd.port.mk>
diff --git a/net-mgmt/iog/pkg-plist b/net-mgmt/iog/pkg-plist
index 01aba84a50f6..9b0edb0eeee2 100644
--- a/net-mgmt/iog/pkg-plist
+++ b/net-mgmt/iog/pkg-plist
@@ -1,3 +1,6 @@
+@owner iog
+@group www
+iog/iog
iog/iog-%%VERSION%%/Artistic
iog/iog-%%VERSION%%/BER.pm
iog/iog-%%VERSION%%/README
@@ -6,10 +9,10 @@ iog/iog-%%VERSION%%/howto-iog.html
iog/iog-%%VERSION%%/in.gif
iog/iog-%%VERSION%%/index.php
iog/iog-%%VERSION%%/iog
-@unexec if cmp -s %D/iog/iog-%%VERSION%%/iog.cfg %D/iog/iog-%%VERSION%%/iog.cfg.sample; then rm -f %D/iog/iog-%%VERSION%%/iog.cfg; fi
-iog/iog-%%VERSION%%/iog.cfg.sample
+@sample iog/iog-%%VERSION%%/iog.cfg.sample
iog/iog-%%VERSION%%/ioglogo.gif
iog/iog-%%VERSION%%/out.gif
-iog/iog
@dirrmtry iog/iog-%%VERSION%%
@dirrmtry iog
+@owner
+@group