blob: 4e8aa2ac896cda4dd76e4b5fc830e209c6bbe246 (
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
70
71
|
# Created by: dindin
# $FreeBSD$
PORTNAME= sams
DISTVERSION= 1.0.5
PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= http://sams.perm.ru/download/ \
http://gateway11.ath.cx/sams/
MAINTAINER= ports@FreeBSD.org
COMMENT= Squid 2.x Accounting Management System
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
SAMBA_PORT?= net/samba36
USE_RC_SUBR= sams
OPTIONS_DEFINE= APACHE NTLM GD
OPTIONS_DEFAULT=GD
INSTALLGD_DESC= Graphic reports
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE= 22+
.endif
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_PHP= ctype curl gettext hash iconv json mysql \
pcre pdo pdo_sqlite posix session \
simplexml spl sqlite tokenizer \
xmlwriter zlib xmlreader
DEFAULT_PHP_VER=53
IGNORE_WITH_PHP=5
MANUAL_PACKAGE_BUILD= it needs an old PHP version
USE_MYSQL= 5.0
CONFIGURE_ARGS= --with-configfile=${PREFIX}/etc/sams.conf \
--with-rcd-locations=${PREFIX}/etc/rc.d/
SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MNTLM}
RUN_DEPENDS= ${LOCALBASE}/bin/ntlm_auth:${PORTSDIR}/${SAMBA_PORT}
USE_PHP+= ldap
.endif
.if ${PORT_OPTIONS:MGD}
USE_PHP+= pdf gd
.endif
post-extract:
${INSTALL_SCRIPT} ${FILESDIR}/setup.sh ${WRKSRC}/
post-install:
@${CAT} ${PKGMESSAGE}
setup:
@cd ${WRKSRC}; ${WRKSRC}/setup.sh
.include <bsd.port.post.mk>
|