mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
44a6f9affb
. Drop .la files . Since lib version was downgraded, bump portrevision on ports that depends of clamav . Fix REQUIRE names on rc.d scripts
65 lines
1.6 KiB
Makefile
65 lines
1.6 KiB
Makefile
# Created by: Elisey Savateev <b3k@mail.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= havp
|
|
PORTVERSION= 0.91
|
|
PORTREVISION= 3
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.server-side.de/download/ \
|
|
http://bio3k.softboard.ru/uploads/arch/ \
|
|
http://havp.hege.li/download/
|
|
|
|
MAINTAINER= ayu@commun.jp
|
|
COMMENT= HTTP Antivirus Proxy
|
|
|
|
LIB_DEPENDS= libclamav.so:${PORTSDIR}/security/clamav
|
|
|
|
USES= gmake perl5
|
|
GNU_CONFIGURE= yes
|
|
USE_PERL5= build
|
|
USE_RC_SUBR= havp
|
|
CONFIGURE_ARGS= --disable-locking
|
|
|
|
LOG_DIR= /var/log/havp
|
|
TMP_DIR= /var/tmp/havp
|
|
RUN_DIR= /var/run/havp
|
|
PLIST_SUB+= LOG_DIR=${LOG_DIR} TMP_DIR=${TMP_DIR} RUN_DIR=${RUN_DIR}
|
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
|
SUB_LIST= LOG_DIR=${LOG_DIR} TMP_DIR=${TMP_DIR} RUN_DIR=${RUN_DIR}
|
|
|
|
OPTIONS_DEFINE= SSL CLAMAV TROPHIE
|
|
OPTIONS_DEFAULT= SSL CLAMAV
|
|
SSL_DESC= SSL proxying (not scanned, only forwarded!)
|
|
CLAMAV_DESC= libclamav support
|
|
TROPHIE_DESC= Trend Micro (Trophie) support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
|
CONFIGURE_ARGS+= --enable-ssl-tunnel
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ssl-tunnel
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCLAMAV}
|
|
CONFIGURE_ARGS+= --enable-clamav
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-clamav
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTROPHIE}
|
|
CONFIGURE_ARGS+= --enable-trophie
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-trophie
|
|
.endif
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
@${CP} ${WRKSRC}/etc/havp/blacklist ${STAGEDIR}${EXAMPLESDIR}/blacklist.sample
|
|
@${CP} -R ${WRKSRC}/etc/havp/templates ${STAGEDIR}${EXAMPLESDIR}
|
|
@${CP} ${WRKSRC}/etc/havp/whitelist ${STAGEDIR}${EXAMPLESDIR}/whitelist.sample
|
|
@${MKDIR} ${STAGEDIR}${LOG_DIR} ${STAGEDIR}${TMP_DIR} ${STAGEDIR}${RUN_DIR}
|
|
|
|
.include <bsd.port.mk>
|