mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
9b7942ca36
PR: ports/150782 Submitted by: Pavel Pankov <pankov_p@mail.ru> (maintainer)
104 lines
2.6 KiB
Makefile
104 lines
2.6 KiB
Makefile
# New ports collection makefile for: ziproxy
|
|
# Date created: 2006-07-28
|
|
# Whom: Pankov Pavel <pankov_p@mail.ru>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ziproxy
|
|
PORTVERSION= 3.2.0
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= pankov_p@mail.ru
|
|
COMMENT= A forwarding, non-caching, compressing proxy server
|
|
|
|
LIB_DEPENDS= ungif.5:${PORTSDIR}/graphics/libungif \
|
|
png.6:${PORTSDIR}/graphics/png \
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg
|
|
|
|
USE_BZIP2= yes
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-cfgfile="${PREFIX}/etc/ziproxy/ziproxy.conf"
|
|
|
|
PORTDOCS= README README.tools JPEG2000.txt
|
|
|
|
MAN1= ziproxy.1 ziproxylogtool.1
|
|
MANCOMPRESSED= no
|
|
|
|
USE_RC_SUBR= ziproxy
|
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
OPTIONS+= JPEG2000 "Build with JPEG2000 support" on \
|
|
SASL "Build with SASL auth support" on \
|
|
NAMESERVERS "Enable Nameservers config option" on
|
|
|
|
ERROR_FILES= 400.html 403.html 404.html 407.html 408.html 409.html \
|
|
500.html 503.html
|
|
SAMPLE_CONFIG_FILES= bo_exception.list change_tos.list deny.list http.passwd \
|
|
noprocess.list replace.list replace_ct.list \
|
|
ziproxy.conf sasl/ziproxy.conf
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
-e 's|%%DATADIR%%|${DATADIR}|g' \
|
|
${WRKSRC}/etc/ziproxy/ziproxy.conf
|
|
|
|
post-install:
|
|
${MKDIR} ${PREFIX}/etc/ziproxy/sasl
|
|
.for FILE in ${SAMPLE_CONFIG_FILES}
|
|
${INSTALL_DATA} ${WRKSRC}/etc/ziproxy/${FILE} ${PREFIX}/etc/ziproxy/${FILE}.sample
|
|
.endfor
|
|
if [ ! -f ${PREFIX}/etc/ziproxy/ziproxy.conf ]; then \
|
|
${CP} -p ${WRKSRC}/etc/ziproxy/ziproxy.conf ${PREFIX}/etc/ziproxy/ziproxy.conf ; \
|
|
fi
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for FILE in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/${FILE}
|
|
.endfor
|
|
.endif
|
|
|
|
${MKDIR} ${DATADIR}/error
|
|
.for FILE in ${ERROR_FILES}
|
|
${INSTALL_DATA} ${WRKSRC}/var/ziproxy/error/${FILE} ${DATADIR}/error/${FILE}
|
|
.endfor
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/tools/ziproxy_genhtml_stats.sh ${PREFIX}/bin
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_JPEG2000)
|
|
CONFIGURE_ARGS+= --with-jasper
|
|
LIB_DEPENDS+= jasper.4:${PORTSDIR}/graphics/jasper
|
|
.else
|
|
CONFIGURE_ARGS+= --without-jasper
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SASL)
|
|
CONFIGURE_ARGS+= --with-sasl2
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
|
.else
|
|
CONFIGURE_ARGS+= --without-sasl2
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_NAMESERVERS)
|
|
CONFIGURE_ARGS+= --enable-nameservers
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nameservers
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|