blob: f4e033d76caec70db8f8b5e680ef006e27d73058 (
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
72
73
74
|
# Created by: Pavel Timofeev <timp87@gmail.com>
# $FreeBSD$
PORTNAME= ufdbGuard
PORTVERSION= 1.33.6
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>
|