svn commit: r353862 - head/net-mgmt/iog

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Mon May 12 16:25:17 UTC 2014


Author: sunpoet
Date: Mon May 12 16:25:16 2014
New Revision: 353862
URL: http://svnweb.freebsd.org/changeset/ports/353862
QAT: https://qat.redports.org/buildarchive/r353862/

Log:
  - Reset maintainership
  - While I'm here:
    - Remove unnecessary DISTNAME
    - Use USES=tar:tgz
    - Support STAGEDIR
  
  PR:		ports/189683
  Submitted by:	Larry Rosenman <ler at lerctr.org> (maintainer)

Modified:
  head/net-mgmt/iog/Makefile
  head/net-mgmt/iog/pkg-plist

Modified: head/net-mgmt/iog/Makefile
==============================================================================
--- head/net-mgmt/iog/Makefile	Mon May 12 16:19:06 2014	(r353861)
+++ head/net-mgmt/iog/Makefile	Mon May 12 16:25:16 2014	(r353862)
@@ -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 at lerctr.org
+MAINTAINER=	ports at 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>

Modified: head/net-mgmt/iog/pkg-plist
==============================================================================
--- head/net-mgmt/iog/pkg-plist	Mon May 12 16:19:06 2014	(r353861)
+++ head/net-mgmt/iog/pkg-plist	Mon May 12 16:25:16 2014	(r353862)
@@ -1,3 +1,6 @@
+ at owner iog
+ at 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
- at 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
+ at 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
+ at owner
+ at group


More information about the svn-ports-all mailing list