mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
2d93ec971c
manage users of SQUID proxy server. Main features are: * manage users access to SQUID - proxy with NTLM, NCSA authorization or IP address * manage prohibition of users to access to URL * manage to rewrite requested URL to graphical resources (banners, counters) * save and build reports of users statistic * switch of users access to SQUID proxy if his traffic quota is off * manage a delay pools for users groups WWW: http://sams.irc.perm.ru/ - Dindin dindin@freebsd.org.ua PR: ports/107102 Submitted by: Denis Barov<dindin@freebsd.org.ua>
67 lines
1.4 KiB
Makefile
67 lines
1.4 KiB
Makefile
# New ports collection makefile for: sams
|
|
# Date created: 12 December 2006
|
|
# Whom: dindin
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= sams
|
|
PORTVERSION= 20060417
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://sams.irc.perm.ru/downloads/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= dindin@FreeBSD.org.ua
|
|
COMMENT= Squid Accounting Management System
|
|
|
|
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
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_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
|
|
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>
|