freebsd-ports/www/c-icap/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

87 lines
2.1 KiB
Makefile

PORTNAME= c-icap
PORTVERSION= 0.5.10
PORTEPOCH= 2
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.5.x/
DISTNAME= c_icap-${PORTVERSION}
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= ICAP server implementation
WWW= http://c-icap.sourceforge.net/
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libbrotlicommon.so:archivers/brotli \
libpcre.so:devel/pcre
USES= cpe libtool localbase
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir="${PREFIX}/etc/c-icap" \
--localstatedir=/var
INSTALL_TARGET= install-strip
CPE_VENDOR= c-icap_project
USE_LDCONFIG= yes
USE_RC_SUBR= c-icap
USERS= ${CICAP_USER}
GROUPS= ${CICAP_GROUP}
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
PLIST_SUB= LOG_DIR=${LOG_DIR} RUN_DIR=${RUN_DIR} \
CICAP_USER=${CICAP_USER} CICAP_GROUP=${CICAP_GROUP}
SUB_LIST= RUN_DIR=${RUN_DIR} CICAP_USER=${CICAP_USER}
OPTIONS_DEFINE= BDB IPV6 LDAP PERL POSIXSEM LARGE_FILES MEMCACHE
OPTIONS_SUB= yes
LARGE_FILES_DESC= Enable large files support
POSIXSEM_DESC= Use POSIX Semaphores instead of SYSV IPC
MEMCACHE_DESC= Enable memcached
IPV6_CONFIGURE_ENABLE= ipv6
LARGE_FILES_CONFIGURE_ENABLE= large-files
MEMCACHE_CONFIGURE_WITH= memcached
MEMCACHE_LIB_DEPENDS= libmemcached.so:databases/libmemcached
LDAP_USE= OPENLDAP=yes
LDAP_CONFIGURE_ON= --with-ldap=yes
LDAP_CONFIGURE_OFF= --with-ldap=no
PERL_USES= perl5
PERL_CONFIGURE_ON= --with-perl=${PERL}
PERL_CONFIGURE_OFF= --without-perl
BDB_USES= bdb
BDB_CFLAGS= -I${BDB_INCLUDE_DIR}
BDB_LDFLAGS= -L${BDB_LIB_DIR}
BDB_CONFIGURE_ON= --with-bdb=yes
BDB_CONFIGURE_OFF= --with-bdb=no
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.mk>