# Created by: Pavel Timofeev # $FreeBSD$ PORTNAME= ufdbGuard PORTVERSION= 1.31 DISTVERSIONSUFFIX= -16 CATEGORIES= www MASTER_SITES= SF/ufdbguard/${PORTVERSION} MAINTAINER= timp87@gmail.com COMMENT= URL filter for the Squid web proxy LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USES= perl5 shebangfix ssl SHEBANG_FILES= samples/URLblocked.cgi src/ufdb_analyse_urls.pl \ src/ufdb_top_urls.pl src/ufdb_analyse_users.pl \ src/ufdb_top_users.pl GNU_CONFIGURE= yes USE_RC_SUBR= ufdbguardd USERS= ufdb GROUPS= ${USERS} RUNDIR= /var/run/${PORTNAME} DBDIR= /var/db/${PORTNAME} LOGDIR= /var/log/${PORTNAME} PLIST_SUB= USERS=${USERS} \ GROUPS=${GROUPS} \ RUNDIR=${RUNDIR} \ DBDIR=${DBDIR} \ LOGDIR=${LOGDIR} SUB_LIST= PORTNAME=${PORTNAME} \ USERS=${USERS} \ RUNDIR=${RUNDIR} \ DBDIR=${DBDIR} SUB_FILES= pkg-message CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE} \ --with-ssl-lib=${OPENSSLLIB} \ --with-ssl-inc=${OPENSSLINC} \ --with-bz2=/usr \ --with-bz2-lib=/usr/lib \ --with-bz2-inc=/usr/include \ --with-ufdb-user=root \ --with-ufdb-mandir=${MANPREFIX}/man \ --with-ufdb-logdir=${LOGDIR} \ --with-ufdb-piddir=${RUNDIR} \ --with-ufdb-samplesdir=${EXAMPLESDIR} \ --with-ufdb-config=${ETCDIR} \ --with-ufdb-dbhome=${DBDIR} \ --with-ufdb-images_dir=${EXAMPLESDIR}/images OPTIONS_DEFINE= UNIXSOCKETS OPTIONS_DEFAULT= UNIXSOCKETS UNIXSOCKETS_CONFIGURE_ON= --with-unix-sockets UNIXSOCKETS_CONFIGURE_OFF= --without-unix-sockets UNIXSOCKETS_DESC= Unix sockets support post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ufdbguardd \ ${STAGEDIR}${PREFIX}/bin/ufdbgclient \ ${STAGEDIR}${PREFIX}/bin/ufdbsignal \ ${STAGEDIR}${PREFIX}/bin/ufdbGenTable \ ${STAGEDIR}${PREFIX}/bin/ufdbAnalyse \ ${STAGEDIR}${PREFIX}/bin/ufdbhttpd .include