Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Sep 2014 20:24:41 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r369292 - in head: . net-mgmt/iog
Message-ID:  <201409252024.s8PKOf99077887@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Thu Sep 25 20:24:41 2014
New Revision: 369292
URL: http://svnweb.freebsd.org/changeset/ports/369292
QAT: https://qat.redports.org/buildarchive/r369292/

Log:
  - Use ports framework to create iog user
  - Bump portrevision as both configuration file and sample configuration file
  were packaged

Deleted:
  head/net-mgmt/iog/pkg-install
Modified:
  head/UIDs
  head/net-mgmt/iog/Makefile
  head/net-mgmt/iog/pkg-plist

Modified: head/UIDs
==============================================================================
--- head/UIDs	Thu Sep 25 20:18:05 2014	(r369291)
+++ head/UIDs	Thu Sep 25 20:24:41 2014	(r369292)
@@ -94,6 +94,7 @@ ipv6mon:*:148:148::0:0:IPv6 Address Moni
 avenger:*:149:149::0:0:Mail Avenger:/var/spool/avenger:/usr/sbin/nologin
 cbsd:*:150:150::0:0:Cbsd user:/nonexistent:/bin/sh
 pop3vscan:*:151:6::0:0:POP3VScan Daemon:/var/spool/pop3vscan:/usr/sbin/nologin
+iog:*:152:80::0:0:iog Monitoring Owner:/usr/local/iog:/usr/sbin/nologin
 rbldns:*:153:153::0:0:rbldnsd pseudo-user:/nonexistent:/usr/sbin/nologin
 trircd:*:154:154::0:0:& user:/usr/local/etc/tr-ircd:/usr/sbin/nologin
 monetdb:*:156:156::0:0:MonetDB user:/usr/local/monetdb5:/bin/sh

Modified: head/net-mgmt/iog/Makefile
==============================================================================
--- head/net-mgmt/iog/Makefile	Thu Sep 25 20:18:05 2014	(r369291)
+++ head/net-mgmt/iog/Makefile	Thu Sep 25 20:24:41 2014	(r369292)
@@ -3,7 +3,7 @@
 
 PORTNAME=	iog
 PORTVERSION=	1.03
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://www.dynw.com/iog/
 
@@ -13,19 +13,15 @@ COMMENT=	Graphs Byte Counts for switches
 NO_BUILD=	yes
 USES=		perl5 tar:tgz
 PLIST_SUB=	VERSION=${PORTVERSION}
-IOG_USER=	iog
-IOG_GROUP=	www
+USERS=		iog
 
 IOGDIR=		${PREFIX}/iog/iog-${PORTVERSION}
 
 do-install:
-	PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
+	${FIND} ${WRKSRC} -name '*.bak' -or -name '*.orig' -delete
 	${MKDIR} -m 755 ${STAGEDIR}${IOGDIR}
-	${CHMOD} 0600 ${WRKSRC}/iog.cfg
-	${CP} ${WRKSRC}/iog.cfg ${WRKSRC}/iog.cfg.sample
+	${INSTALL} ${COPY} -m 0600 ${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	Thu Sep 25 20:18:05 2014	(r369291)
+++ head/net-mgmt/iog/pkg-plist	Thu Sep 25 20:24:41 2014	(r369292)
@@ -9,11 +9,9 @@ iog/iog-%%VERSION%%/howto-iog.html
 iog/iog-%%VERSION%%/in.gif
 iog/iog-%%VERSION%%/index.php
 iog/iog-%%VERSION%%/iog
-iog/iog-%%VERSION%%/iog.cfg
 @sample iog/iog-%%VERSION%%/iog.cfg.sample
 iog/iog-%%VERSION%%/ioglogo.gif
 iog/iog-%%VERSION%%/out.gif
-@dirrmtry iog/iog-%%VERSION%%
-@dirrmtry iog
+@dir iog/iog-%%VERSION%%
 @owner
 @group



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409252024.s8PKOf99077887>