blob: 97ba1491b68240d27705a31b024f79d98fabe254 (
plain)
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
43
44
45
46
47
48
49
50
51
|
# Created by: Mantas Kaulakys <stone@tainet.lt>
# $FreeBSD$
PORTNAME= amavis-stats
PORTVERSION= 0.1.12
PORTREVISION= 5
CATEGORIES= security
MASTER_SITES= LOCAL/feld
MAINTAINER= feld@FreeBSD.org
COMMENT= Simple AMaViS statistics generator based on rrdtool
RUN_DEPENDS= rrdtool>=0:databases/rrdtool
USES= perl5 shebangfix
USE_PERL5= run
SHEBANG_FILES= amavis-stats
perl_CMD= ${PERL} -w
USE_PHP= pcre
NO_BUILD= yes
NO_ARCH= yes
PORTDOCS= README
AMAVISUSER?= amavis
AMAVISGROUP?= amavis
USERS= ${AMAVISUSER}
GROUPS= ${AMAVISGROUP}
PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} USERS=${USERS} GROUPS=${GROUPS}
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/amavis-stats ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/amavis-stats.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${MKDIR} ${STAGEDIR}${PREFIX}/www/amavis-stats
${MKDIR} ${STAGEDIR}${PREFIX}/www/amavis-stats/img
${TOUCH} ${STAGEDIR}${PREFIX}/www/amavis-stats/img/.keep
${INSTALL_DATA} ${WRKSRC}/amavis-stats.php ${STAGEDIR}${PREFIX}/www/amavis-stats
cd ${STAGEDIR}${PREFIX}/www/amavis-stats && ${LN} -s amavis-stats.php index.php
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|