freebsd-ports/www/c-icap/Makefile
Matthias Andree b50a4b0708 Berkeley DB cleanup, remove versions 4.0 ... 4.7.
- Mk/bsd.database.mk rewrite, new default to db5.
- db6 is eligible by default only if installed on the system.
- Bump PORTREVISION of all ports that directly depend on BerkeleyDB or
  where USE_BDB is found in the port's directory
- Patch a few ports such that they will pick up or work with newer
  versions.
- Add UPDATING entry
- Drive-by format fix for pks
- Drop BerkeleyDB option from mail/popular for now, requires more work.
- Exp-run logs linked from the PR below.
- Ports that do not build (IGNORE, BROKEN, etc.) have pro-forma changes
  for new Berkeley DB, but are untested.

NOTE: please read UPDATING and the Wiki page before proceeding!

Announcement:	http://lists.freebsd.org/pipermail/freebsd-ports-announce/2014-August/000090.html
Wiki reference:	https://wiki.freebsd.org/Ports/BerkeleyDBCleanup
PR:		192690
Approved by:	portmgr (implicit, PORTREVISION bump on unstaged ports)
2014-08-21 22:50:29 +00:00

115 lines
2.3 KiB
Makefile

# Created by: Elisey Savateev <b3k@mail.ru>
# $FreeBSD$
PORTNAME= c-icap
PORTVERSION= 0.3.3
PORTREVISION= 4
PORTEPOCH= 2
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.3.x/
DISTNAME= c_icap-${PORTVERSION}
MAINTAINER= mm@FreeBSD.org
COMMENT= ICAP server implementation
LICENSE= LGPL21
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USES= libtool
USE_LDCONFIG= yes
USE_RC_SUBR= c-icap
SUB_FILES= pkg-install pkg-deinstall
OPTIONS_DEFINE= BDB IPV6 LDAP PERL POSIXSEM LARGE_FILES
OPTIONS_DEFAULT= IPV6
LARGE_FILES_DESC= Enable large files support
POSIXSEM_DESC= Use POSIX Semaphores instead of SYSV IPC
CICAP_USER= c_icap
CICAP_UID= 959
CICAP_GROUP= c_icap
CICAP_GID= 959
USERS= ${CICAP_USER}
GROUPS= ${CICAP_GROUP}
CONFIGURE_ARGS+= --sysconfdir="${PREFIX}/etc/c-icap" \
--localstatedir=/var
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBDB}
USE_BDB= yes
.endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if ${PORT_OPTIONS:MLARGE_FILES}
CONFIGURE_ARGS+= --enable-large-files
.else
CONFIGURE_ARGS+= --disable-large-files
.endif
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= YES
.endif
.if ${PORT_OPTIONS:MPERL}
USES+= perl5
.endif
.if ${PORT_OPTIONS:MBDB}
CFLAGS+= -I${BDB_INCLUDE_DIR}
LDFLAGS+= -L${BDB_LIB_DIR}
CONFIGURE_ARGS+= --with-bdb=yes
PLIST_SUB+= BDB=""
.else
CONFIGURE_ARGS+= --with-bdb=no
PLIST_SUB+= BDB="@comment "
.endif
.if ${PORT_OPTIONS:MLDAP}
CONFIGURE_ARGS+= --with-ldap=yes
PLIST_SUB+= LDAP=""
.else
CONFIGURE_ARGS+= --with-ldap=no
PLIST_SUB+= LDAP="@comment "
.endif
.if ${PORT_OPTIONS:MPERL}
PLIST_SUB+= PERL=""
CONFIGURE_ARGS+= --with-perl=${PERL}
.else
PLIST_SUB+= PERL="@comment "
CONFIGURE_ARGS+= --without-perl
.endif
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
LOG_DIR= /var/log/c-icap
RUN_DIR= /var/run/c-icap
PLIST_SUB+= LOG_DIR=${LOG_DIR} RUN_DIR=${RUN_DIR}
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= CICAP_USER=${CICAP_USER} CICAP_GROUP=${CICAP_GROUP} \
LOG_DIR=${LOG_DIR} RUN_DIR=${RUN_DIR}
post-patch:
@${REINPLACE_CMD} \
-e 's|@prefix@/var/log|/var/log/c-icap|g' \
-e 's|@prefix@/etc/|@sysconfdir@/|g' \
${WRKSRC}/c-icap.conf.in
.if ${PORT_OPTIONS:MPOSIXSEM}
@${REINPLACE_CMD} \
-e 's|@SYSV_IPC@|0|g' \
${WRKSRC}/include/c-icap-conf.h.in
.endif
.include <bsd.port.mk>