blob: b8a9a6af2a08bbe1abaf4dac7b99fc257b7464e7 (
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
|
# New ports collection makefile for: sams
# Date created: 12 December 2006
# Whom: dindin
#
# $FreeBSD$
#
PORTNAME= sams
DISTVERSION= 20070524
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://sams.irc.perm.ru/downloads/ \
http://www.dindin.ru/download/
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= dindin@dindin.ru
COMMENT= Squid Accounting Management System
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
USE_RC_SUBR= sams.sh
USE_PHP= gd mysql ldap
USE_MYSQL= 4.1
OPTIONS= NTLM "NTLM autorization/ActiveDirectory support" off \
APACHE2 "Use apache version 2" off
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options
.if exists(${OPTIONSFILE})
.include "${OPTIONSFILE}"
.endif
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS=--with-configfile=${LOCALBASE}/etc/sams.conf \
--with-rcd-locations=${LOCALBASE}/etc/rc.d/ \
--with-httpd-locations=${DOCUMENT_ROOT}
SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
.if defined(WITH_NTLM)
RUN_DEPENDS= ${LOCALBASE}/bin/ntlm_auth:${PORTSDIR}/net/samba3
.endif
.if defined(WITH_APACHE2)
RUN_DEPENDS+= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13
.else
RUN_DEPENDS+= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache22
.endif
post-extract:
${INSTALL_SCRIPT} ${FILESDIR}/setup.sh ${WRKSRC}/
post-install:
@${CAT} ${PKGMESSAGE}
setup:
@cd ${WRKSRC}; ${WRKSRC}/setup.sh
.include <bsd.port.post.mk>
|