Update www/ufdbguard to version 1.33.1
[dports.git] / www / ufdbguard / Makefile
1 # Created by: Pavel Timofeev <timp87@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       ufdbGuard
5 PORTVERSION=    1.33.1
6 CATEGORIES=     www
7 MASTER_SITES=   SF/ufdbguard/1.33
8
9 MAINTAINER=     timp87@gmail.com
10 COMMENT=        URL filter for the Squid web proxy
11
12 LICENSE=        GPLv2
13 LICENSE_FILE=   ${WRKSRC}/COPYING
14
15 BROKEN_aarch64=         fails to compile: error: regparm is not valid on this platform
16
17 USES=           perl5 shebangfix ssl
18 SHEBANG_FILES=  samples/URLblocked.cgi
19 GNU_CONFIGURE=  yes
20 USE_RC_SUBR=    ufdbguardd
21
22 USERS=          ufdb
23 GROUPS=         ${USERS}
24
25 RUNDIR=         /var/run/${PORTNAME}
26 DBDIR=          /var/db/${PORTNAME}
27 LOGDIR=         /var/log/${PORTNAME}
28
29 PLIST_SUB=      USERS=${USERS} \
30                 GROUPS=${GROUPS} \
31                 RUNDIR=${RUNDIR} \
32                 DBDIR=${DBDIR} \
33                 LOGDIR=${LOGDIR}
34
35 SUB_LIST=       PORTNAME=${PORTNAME} \
36                 USERS=${USERS} \
37                 RUNDIR=${RUNDIR} \
38                 DBDIR=${DBDIR}
39
40 SUB_FILES=      pkg-message
41
42 CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE} \
43                 --with-ssl-lib=${OPENSSLLIB} \
44                 --with-ssl-inc=${OPENSSLINC} \
45                 --with-bz2=/usr \
46                 --with-bz2-lib=/usr/lib \
47                 --with-bz2-inc=/usr/include \
48                 --with-ufdb-user=root \
49                 --with-ufdb-mandir=${MANPREFIX}/man \
50                 --with-ufdb-logdir=${LOGDIR} \
51                 --with-ufdb-piddir=${RUNDIR} \
52                 --with-ufdb-samplesdir=${EXAMPLESDIR} \
53                 --with-ufdb-config=${ETCDIR} \
54                 --with-ufdb-dbhome=${DBDIR} \
55                 --with-ufdb-images_dir=${EXAMPLESDIR}/images
56
57 MAKE_JOBS_UNSAFE=       yes
58
59 OPTIONS_DEFINE= UNIXSOCKETS
60 OPTIONS_DEFAULT=        UNIXSOCKETS
61
62 UNIXSOCKETS_CONFIGURE_ON=       --with-unix-sockets
63 UNIXSOCKETS_CONFIGURE_OFF=      --without-unix-sockets
64
65 UNIXSOCKETS_DESC=       Unix sockets support
66
67 .include <bsd.port.pre.mk>
68
69 .if ${SSL_DEFAULT:Mopenssl-devel}
70 BROKEN=         Does not build with openssl-devel
71 .endif
72
73 .if ${SSL_DEFAULT:Mlibressl-devel}              
74 BROKEN=         Does not build with libressl-devel
75 .endif
76
77 post-install:
78         @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ufdbguardd \
79                 ${STAGEDIR}${PREFIX}/bin/ufdbgclient \
80                 ${STAGEDIR}${PREFIX}/bin/ufdbsignal \
81                 ${STAGEDIR}${PREFIX}/bin/ufdbGenTable \
82                 ${STAGEDIR}${PREFIX}/bin/ufdbAnalyse \
83                 ${STAGEDIR}${PREFIX}/bin/ufdbhttpd
84
85 .include <bsd.port.post.mk>