Convert the USE_LDAP=yes to USES=ldap and adds the following features: - Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as RUN_DEPENDS - Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER - Adds OPENLDAP versions in bsd.default-versions.mk - Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk - Changes consumers to use the features Reviewed by: delphij Approved by: portmgr Differential Revision: https://reviews.freebsd.org/D38233
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
PORTNAME= proxy-suite
|
|
PORTVERSION= 1.9.2.4
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.suse.com/pub/projects/proxy-suite/src/
|
|
|
|
MAINTAINER= thomas@FreeBSD.org
|
|
COMMENT= The SuSE Proxy-Suite, a set of programs to enhance firewall security
|
|
WWW= https://www.suse.com/en/whitepapers/proxy_suite/
|
|
LICENSE= GPLv2
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake tar:bzip2
|
|
|
|
#
|
|
# basic configure args
|
|
#
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
CONFIGURE_ARGS= --with-libwrap=/usr/lib --with-regex \
|
|
--localstatedir=/var/run \
|
|
--enable-warnings --enable-so-linger \
|
|
--disable-proc-mods
|
|
|
|
#
|
|
# OPTIONAL: RFC1579 support -- not complete yet.
|
|
#
|
|
.if defined(WITH_RFC1579)
|
|
CONFIGURE_ARGS+= --enable-rfc1579
|
|
.endif
|
|
|
|
#
|
|
# OPTIONAL: include ldap-support
|
|
#
|
|
.if defined(WITH_LDAP)
|
|
USES+= ldap
|
|
CONFIGURE_ARGS+= --with-libldap=${LOCALBASE}/lib
|
|
.else
|
|
CONFIGURE_ARGS+= --without-libldap
|
|
.endif
|
|
|
|
#
|
|
# OPTIONAL: re-build the sgml documentation (postscript, html)
|
|
# unfortunatenly this docu it is not up to date :-((
|
|
# reading of the manual pages and HOWTO's makes more sense...
|
|
#
|
|
.if !defined(WITH_SGMLDOC)
|
|
ALL_TARGET= -C ftp-proxy
|
|
.endif
|
|
|
|
MAKE_ARGS= INST_ROOT=${STAGEDIR} CONF_DST=ftp-proxy.conf.sample
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's,net/pfvar.h,,' ${WRKSRC}/configure
|
|
|
|
pre-install:
|
|
${STRIP_CMD} ${WRKSRC}/ftp-proxy/ftp-proxy
|
|
|
|
.include <bsd.port.mk>
|