2013-05-05 00:48:03 +02:00
|
|
|
# Created by: Elisey Savateev <b3k@mail.ru>
|
2006-03-27 08:40:18 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= c-icap
|
2014-03-15 04:07:11 +01:00
|
|
|
PORTVERSION= 0.3.3
|
2014-07-02 17:58:13 +02:00
|
|
|
PORTREVISION= 2
|
2012-08-15 02:09:41 +02:00
|
|
|
PORTEPOCH= 2
|
2006-03-27 08:40:18 +02:00
|
|
|
CATEGORIES= www
|
2014-03-15 04:07:11 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.3.x/
|
2012-08-15 02:09:41 +02:00
|
|
|
DISTNAME= c_icap-${PORTVERSION}
|
2006-03-27 08:40:18 +02:00
|
|
|
|
2012-08-15 02:09:41 +02:00
|
|
|
MAINTAINER= mm@FreeBSD.org
|
|
|
|
COMMENT= ICAP server implementation
|
|
|
|
|
|
|
|
LICENSE= LGPL21
|
2006-03-27 08:40:18 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2014-07-02 17:58:13 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USES= libtool
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2012-08-15 02:09:41 +02:00
|
|
|
USE_RC_SUBR= c-icap
|
2006-03-27 08:40:18 +02:00
|
|
|
|
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
|
|
|
|
2012-08-15 02:09:41 +02:00
|
|
|
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
|
2006-03-27 08:40:18 +02:00
|
|
|
|
2012-08-15 02:09:41 +02:00
|
|
|
CICAP_USER= c_icap
|
2014-03-15 04:07:11 +01:00
|
|
|
CICAP_UID= 959
|
2012-08-15 02:09:41 +02:00
|
|
|
CICAP_GROUP= c_icap
|
2014-03-15 04:07:11 +01:00
|
|
|
CICAP_GID= 959
|
2006-03-27 08:40:18 +02:00
|
|
|
|
2012-08-15 02:09:41 +02:00
|
|
|
USERS= ${CICAP_USER}
|
|
|
|
GROUPS= ${CICAP_GROUP}
|
2006-08-03 12:11:32 +02:00
|
|
|
|
2014-07-02 17:58:13 +02:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir="${PREFIX}/etc/c-icap" \
|
2014-03-15 04:07:11 +01:00
|
|
|
--localstatedir=/var
|
2012-08-15 02:09:41 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MBDB}
|
|
|
|
USE_BDB= yes
|
2006-03-27 08:40:18 +02:00
|
|
|
.endif
|
|
|
|
|
2012-08-15 02:09:41 +02:00
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2006-03-27 08:40:18 +02:00
|
|
|
.else
|
2012-08-15 02:09:41 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
2006-03-27 08:40:18 +02:00
|
|
|
.endif
|
|
|
|
|
2012-08-15 02:09:41 +02:00
|
|
|
.if ${PORT_OPTIONS:MLARGE_FILES}
|
2006-06-11 10:33:03 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-large-files
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-large-files
|
|
|
|
.endif
|
|
|
|
|
2012-08-15 02:09:41 +02:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
|
|
USE_OPENLDAP= YES
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-09-14 16:47:56 +02:00
|
|
|
USES+= perl5
|
2012-08-15 02:09:41 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MBDB}
|
|
|
|
CFLAGS+= -I${BDB_INCLUDE_DIR}
|
|
|
|
LDFLAGS+= -L${BDB_LIB_DIR}
|
|
|
|
CONFIGURE_ARGS+= --with-bdb=yes
|
|
|
|
PLIST_SUB+= BDB=""
|
2006-06-11 10:33:03 +02:00
|
|
|
.else
|
2012-08-15 02:09:41 +02:00
|
|
|
CONFIGURE_ARGS+= --with-bdb=no
|
|
|
|
PLIST_SUB+= BDB="@comment "
|
2006-06-11 10:33:03 +02:00
|
|
|
.endif
|
|
|
|
|
2012-08-15 02:09:41 +02:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
|
|
CONFIGURE_ARGS+= --with-ldap=yes
|
|
|
|
PLIST_SUB+= LDAP=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-ldap=no
|
|
|
|
PLIST_SUB+= LDAP="@comment "
|
2006-03-27 08:40:18 +02:00
|
|
|
.endif
|
2012-08-15 02:09:41 +02:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
|
|
|
PLIST_SUB+= PERL=""
|
|
|
|
CONFIGURE_ARGS+= --with-perl=${PERL}
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PERL="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-perl
|
2006-03-27 08:40:18 +02:00
|
|
|
.endif
|
|
|
|
|
2012-08-15 02:09:41 +02:00
|
|
|
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' \
|
2012-08-15 03:01:43 +02:00
|
|
|
-e 's|@prefix@/etc/|@sysconfdir@/|g' \
|
2012-08-15 02:09:41 +02:00
|
|
|
${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
|
2006-03-27 08:40:18 +02:00
|
|
|
|
2014-07-02 17:58:13 +02:00
|
|
|
.include <bsd.port.mk>
|