1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Reset maintainership

- While I'm here:
  - Remove unnecessary DISTNAME
  - Use USES=tar:tgz
  - Support STAGEDIR

PR:		ports/189683
Submitted by:	Larry Rosenman <ler@lerctr.org> (maintainer)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2014-05-12 16:25:16 +00:00
parent 7eb7274a9b
commit 2d6332f43f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353862
2 changed files with 18 additions and 26 deletions

View File

@ -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>

View File

@ -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