aboutsummaryrefslogtreecommitdiffstats
path: root/www/sqstat/Makefile
blob: 44b5ade093fd42fd805dab4207a2811911bedcca (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
# Created by: Sergey Matveychuk <sem@FreeBSD.org>
# $FreeBSD$

PORTNAME=   sqstat
PORTVERSION=    1.20
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   http://samm.kiev.ua/sqstat/ \
        SF/sqstat/sqstat/sqstat-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Script which allows to look through active squid users connections

LICENSE=    ISCL
LICENSE_FILE=   ${WRKSRC}/docs/LICENSE

USES=       php
USE_PHP=    pcre session
NO_BUILD=   yes
NO_ARCH=    yes

SQSTATDIR?= share/${PORTNAME}

SUB_FILES=  pkg-message
SUB_LIST=   SQSTATDIR=${SQSTATDIR}

PLIST_FILES=    ${SQSTATDIR}/arrow.gif ${SQSTATDIR}/sqstat.class.php \
        ${SQSTATDIR}/sqstat.css ${SQSTATDIR}/sqstat.php \
        ${SQSTATDIR}/zhabascript.js \
        ${SQSTATDIR}/config.inc.php.defaults
PORTDOCS=   CHANGES FAQ README TODO

OPTIONS_DEFINE= DOCS

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/${SQSTATDIR}
.for f in ${PLIST_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${f:T} ${STAGEDIR}${PREFIX}/${SQSTATDIR}
.endfor

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>