mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Use ports framework to create iog user
- Bump portrevision as both configuration file and sample configuration file were packaged
This commit is contained in:
parent
42d4e1b7c0
commit
fa8b34d548
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=369292
4 changed files with 6 additions and 35 deletions
1
UIDs
1
UIDs
|
@ -94,6 +94,7 @@ ipv6mon:*:148:148::0:0:IPv6 Address Monitoring Daemon:/nonexistent:/usr/sbin/nol
|
|||
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
|
||||
|
|
|
@ -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/routers/etc
|
|||
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>
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
if [ "$2" != "PRE-INSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
USER=iog
|
||||
# group selected to be www since the webserver has to be able to serve it
|
||||
GROUP=www
|
||||
|
||||
if ! pw usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
if pw useradd ${USER} -g ${GROUP} -h - \
|
||||
-s "/sbin/nologin" -d "${PREFIX}/iog" \
|
||||
-c "iog Monitoring Owner"; \
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
else
|
||||
echo "Adding user \"${USER}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
exit 0
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue