freebsd-ports/www/ufdbguard/Makefile
Danilo G. Baio ae7a554a93 www/ufdbguard: Update to 1.33.4
PR:		223146
Submitted by:	timp87@gmail.com (maintainer)
2017-10-22 11:11:37 +00:00

75 lines
1.7 KiB
Makefile

# Created by: Pavel Timofeev <timp87@gmail.com>
# $FreeBSD$
PORTNAME= ufdbGuard
PORTVERSION= 1.33.4
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME:tl}/1.33
MAINTAINER= timp87@gmail.com
COMMENT= URL filter for the Squid web proxy
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_aarch64= fails to compile: error: regparm is not valid on this platform
BROKEN_SSL= openssl-devel libressl libressl-devel
USES= perl5 shebangfix ssl
SHEBANG_FILES= samples/URLblocked.cgi
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
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= UNIXSOCKETS
UNIXSOCKETS_CONFIGURE_WITH= 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 <bsd.port.mk>