blob: 63460c5bc21566f8beee4f3521192de1188e7852 (
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
64
65
66
67
68
69
|
# Created by: Kevin Golding <kevin@caomhin.demon.co.uk>
# $FreeBSD$
PORTNAME= webstats
PORTVERSION= 0.3
PORTREVISION= 4
CATEGORIES= www
MASTER_SITES= http://www.patsplanet.com/software/webstats/files/ \
http://www.caomhin.org/geek/ports/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= kevin@caomhin.demon.co.uk
COMMENT= Automated log file processing
RUN_DEPENDS= analog:${PORTSDIR}/www/analog \
${LOCALBASE}/reportmagic/rmagic.pl:${PORTSDIR}/www/reportmagic
NO_BUILD= yes
USES= perl5 shebangfix
SHEBANG_FILES= scripts/perl/webstats
post-patch:
@${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' \
${WRKSRC}/configfiles/serverwide/webstats.ini \
${WRKSRC}/configfiles/vhosts/analog.cfg \
${WRKSRC}/configfiles/vhosts/rmagic.ini \
${WRKSRC}/scripts/perl/webstats \
${WRKSRC}/scripts/php/webstats.php
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/webstats
@${MKDIR} ${STAGEDIR}${PREFIX}/webstats/stuff
@${MKDIR} ${STAGEDIR}${PREFIX}/webstats/web
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/webstats
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/webstats/vhosts
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/perl/webstats \
${STAGEDIR}${PREFIX}/webstats/webstats
@${INSTALL_DATA} ${WRKSRC}/configfiles/serverwide/webstats.ini \
${STAGEDIR}${PREFIX}/etc/webstats/webstats.ini-dist
@${INSTALL_DATA} ${WRKSRC}/configfiles/serverwide/default.cfg \
${STAGEDIR}${PREFIX}/etc/webstats/default.cfg-dist
@${INSTALL_DATA} ${WRKSRC}/configfiles/serverwide/default.ini \
${STAGEDIR}${PREFIX}/etc/webstats/default.ini-dist
@${INSTALL_DATA} ${WRKSRC}/configfiles/vhosts/analog.cfg \
${STAGEDIR}${PREFIX}/etc/webstats/vhosts/analog.cfg-dist
@${INSTALL_DATA} ${WRKSRC}/configfiles/vhosts/rmagic.ini \
${STAGEDIR}${PREFIX}/etc/webstats/vhosts/rmagic.ini-dist
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/webstats/README
@${INSTALL_DATA} ${WRKSRC}/INSTALL ${STAGEDIR}${PREFIX}/webstats/INSTALL
@${INSTALL_DATA} ${WRKSRC}/VERSION ${STAGEDIR}${PREFIX}/webstats/VERSION
@${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${PREFIX}/webstats/CHANGES
@${INSTALL_DATA} ${WRKSRC}/docs/index.html \
${STAGEDIR}${PREFIX}/share/doc/webstats.html
@${INSTALL_DATA} ${WRKSRC}/scripts/php/bullet.gif \
${STAGEDIR}${PREFIX}/webstats/web/bullet.gif
@${INSTALL_DATA} ${WRKSRC}/scripts/php/class.inifile.php \
${STAGEDIR}${PREFIX}/webstats/web/class.inifile.php
@${INSTALL_DATA} ${WRKSRC}/scripts/php/menu.css \
${STAGEDIR}${PREFIX}/webstats/web/menu.css
@${INSTALL_DATA} ${WRKSRC}/scripts/php/webstats.php \
${STAGEDIR}${PREFIX}/webstats/web/webstats.php
@${INSTALL_DATA} ${WRKSRC}/stuff/README \
${STAGEDIR}${PREFIX}/webstats/stuff/README
@${INSTALL_DATA} ${WRKSRC}/stuff/advxsplitlogfile \
${STAGEDIR}${PREFIX}/webstats/stuff/advxsplitlogfile
@${INSTALL_DATA} ${WRKSRC}/stuff/DynamicVhosts.conf \
${STAGEDIR}${PREFIX}/webstats/stuff/DynamicVhosts.conf
.include <bsd.port.mk>
|