freebsd-ports/net/kea/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

62 lines
1.6 KiB
Makefile

PORTNAME= kea
PORTVERSION= ${ISCVERSION:S/-P/P/:S/-beta/b/:S/a/.a/:S/rc/.rc/}
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ISC/kea/${ISCVERSION}
DISTNAME= ${PORTNAME}-${ISCVERSION}
MAINTAINER= apevnev@me.com
COMMENT= Alternative DHCP implementation by ISC
WWW= https://kea.isc.org/
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= liblog4cplus.so:devel/log4cplus \
libboost_system.so:devel/boost-libs
USES= autoreconf compiler:c++11-lang iconv libtool pathfix ssl cpe
# ISC releases things like 1.4.0-P1, which our versioning doesn't like
ISCVERSION= 2.2.0
CPE_VENDOR= isc
CPE_VERSION= ${ISCVERSION:C/-.*//}
.if ${ISCVERSION:M*-*}
CPE_UPDATE= ${ISCVERSION:C/.*-//:tl}
.endif
USE_LDCONFIG= yes
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE} \
--with-log4cplus=${LOCALBASE} \
--with-boost-include=${LOCALBASE}/include \
--with-boost-lib-dir=${LOCALBASE}/lib \
--without-werror
INSTALL_TARGET= install-strip
TEST_TARGET= check
PORTDOCS= AUTHORS COPYING ChangeLog README \
CONTRIBUTING.md examples code_of_conduct.md \
platforms.rst
OPTIONS_DEFINE= DOCS MYSQL PGSQL SHELL
OPTIONS_SUB= yes
MYSQL_USES= mysql
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}/bin/mysql_config
MYSQL_CONFIGURE_OFF= --without-mysql
MYSQL_SUB_LIST= REQ_MYSQL=mysql
MYSQL_SUB_LIST_OFF= REQ_MYSQL=""
PGSQL_USES= pgsql
WANT_PGSQL= client
PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}/bin/pg_config
PGSQL_CONFIGURE_OFF= --without-pgsql
PGSQL_SUB_LIST= REQ_PGSQL=postgresql
PGSQL_SUB_LIST_OFF= REQ_PGSQL=""
SHELL_DESC= Install kea-shell(8) (Python)
SHELL_USES= python:3.5+
SHELL_CONFIGURE_ON= --enable-shell
.include <bsd.port.mk>