1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/www/c-icap/Makefile
Rodrigo Osorio c27d2322b0 www/c-icap: update to 0.6.3
Switch c-icap server from branch 5.X to 6.X

Full changelog:
  0.6.2 changelog:
   - link c-icap server binaries with the math library
   - Add new records to c-icap.magic, which are required for virus
     scan service.
  0.6.1 changelog:
   - Internal web server for use with services
   - Improved statistics and statistics API
   - Support histograms creation from statistic values
   - The pthread inter-process locking scheme
   - The new lmdb_tables module, to provide support for lmdb based
     lookup tables
   - Extended changes and fixes to the ldap support module
   - The ci_server_shared_memblob_* functions to access small memory
     blocks which are shared across c-icap processes.
   - Many fixes/improvements and new API functions.
  0.6.0 changelog:
   - Support for lmdb based databases as an alternate to BerkeleyDB.
   - Improved info service to show c-icap statistics
   - Internal web server
   - The pthread inter-process locking scheme.
   - New development APIs: c-icap server shared memblocks, flat arrays
   - C-icap statistics for server and services: Time based statistics,
     histograms, API to retrieve statistics values, improved update operations
2024-10-06 11:38:55 +02:00

96 lines
2.3 KiB
Makefile

PORTNAME= c-icap
PORTVERSION= 0.6.3
PORTEPOCH= 2
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.6.x/
DISTNAME= c_icap-${PORTVERSION}
PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}-server/commit/
PATCHFILES+= aa28041.patch:-p1 # https://github.com/c-icap/c-icap-server/pull/67
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= ICAP server implementation
WWW= https://c-icap.sourceforge.net/
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libbrotlicommon.so:archivers/brotli \
libpcre.so:devel/pcre
USES= cpe libtool localbase
CPE_VENDOR= c-icap_project
USE_LDCONFIG= yes
USE_RC_SUBR= c-icap
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var \
--sysconfdir="${PREFIX}/etc/c-icap"
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
INSTALL_TARGET= install-strip
SUB_LIST= CICAP_USER=${CICAP_USER} \
RUN_DIR=${RUN_DIR}
CICAP_USER= c_icap
CICAP_UID= 959
CICAP_GROUP= c_icap
CICAP_GID= 959
LOG_DIR= /var/log/c-icap
RUN_DIR= /var/run/c-icap
USERS= ${CICAP_USER}
GROUPS= ${CICAP_GROUP}
PLIST_SUB= CICAP_GROUP=${CICAP_GROUP} \
CICAP_USER=${CICAP_USER} \
LOG_DIR=${LOG_DIR} \
RUN_DIR=${RUN_DIR}
OPTIONS_DEFINE= BDB IPV6 LARGE_FILES LDAP MEMCACHE PERL POSIXSEM
OPTIONS_SUB= yes
LARGE_FILES_DESC= Enable large files support
MEMCACHE_DESC= Enable memcached
POSIXSEM_DESC= Use POSIX Semaphores instead of SYSV IPC
BDB_USES= bdb
BDB_CONFIGURE_ON= --with-bdb=yes
BDB_CONFIGURE_OFF= --with-bdb=no
BDB_CFLAGS= -I${BDB_INCLUDE_DIR}
BDB_LDFLAGS= -L${BDB_LIB_DIR}
IPV6_CONFIGURE_ENABLE= ipv6
LARGE_FILES_CONFIGURE_ENABLE= large-files
LDAP_USES= ldap
LDAP_CONFIGURE_ON= --with-ldap=yes
LDAP_CONFIGURE_OFF= --with-ldap=no
MEMCACHE_LIB_DEPENDS= libmemcached.so:databases/libmemcached
MEMCACHE_CONFIGURE_WITH= memcached
PERL_USES= perl5
PERL_CONFIGURE_ON= --with-perl=${PERL}
PERL_CONFIGURE_OFF= --without-perl
.include <bsd.port.pre.mk>
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
@${REINPLACE_CMD} \
-e 's|\.default|.sample|g' \
${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
post-patch-POSIXSEM-on:
@${REINPLACE_CMD} \
-e 's|@SYSV_IPC@|0|g' \
${WRKSRC}/include/c-icap-conf.h.in
post-install:
@${MKDIR} ${STAGEDIR}/${LOG_DIR} ${STAGEDIR}/${RUN_DIR}
.include <bsd.port.post.mk>