blob: fb8ee5b771bf8fc1887c1be64ceb397c22b59235 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: amavis-stats
# Date created: 12 July 2004
# Whom: Mantas Kaulakys <stone@tainet.lt>
#
# $FreeBSD$
#
PORTNAME= amavis-stats
PORTVERSION= 0.1.12
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://rekudos.net/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= A simple AMaViS statistics generator based on rrdtool
RUN_DEPENDS= ${SITE_PERL}/mach/RRDs.pm:${PORTSDIR}/databases/rrdtool
USE_PERL5_RUN= yes
USE_PHP= pcre
MAN1= amavis-stats.1
NO_BUILD= yes
PORTDOCS= README
WEBOWN?= www
WEBGRP?= www
AMAVISUSER?= amavis
AMAVISGROUP?= amavis
PKGINSTALL= ${WRKDIR}/INSTALL
PKGDEINSTALL= ${WRKDIR}/DEINSTALL
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= INSTALL DEINSTALL pkg-message
SUB_LIST+= AMAVISUSER=${AMAVISUSER} AMAVISGROUP=${AMAVISGROUP}
pre-install: apply-slist
@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/amavis-stats ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/amavis-stats.1 ${MAN1PREFIX}/man/man1
${MKDIR} ${PREFIX}/www/amavis-stats
${MKDIR} ${PREFIX}/www/amavis-stats/img
${TOUCH} ${PREFIX}/www/amavis-stats/img/.keep
${INSTALL_DATA} ${WRKSRC}/amavis-stats.php ${PREFIX}/www/amavis-stats
cd ${PREFIX}/www/amavis-stats && ${LN} -s amavis-stats.php index.php
${CHOWN} -R ${AMAVISUSER}:${AMAVISGROUP} ${PREFIX}/www/amavis-stats
${CHOWN} ${WEBOWN}:${WEBGRP} ${PREFIX}/www/amavis-stats/img
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|