blob: a216a13e3e5271dd5cf1ffdc46be1a59d880152a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Created by: Larry Rosenman <ler@lerctr.org>
# $FreeBSD$
PORTNAME= iog
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
COMMENT= Graphs Byte Counts for switches/routers/etc
NO_BUILD= yes
USES= perl5
PLIST_SUB+= VERSION=${PORTVERSION}
IOG_USER= iog
IOG_GROUP= www
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
.include <bsd.port.mk>
|