freebsd-ports/irc/ngircd/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

61 lines
1.6 KiB
Makefile

PORTNAME= ngircd
PORTVERSION= 26.1
PORTEPOCH= 1
CATEGORIES= irc
MASTER_SITES= https://ngircd.barton.de/pub/ngircd/ \
https://ngircd.mirror.3rz.de/pub/ngircd/
MAINTAINER= fgsch@lodoss.net
COMMENT= Free open source daemon for Internet Relay Chat (IRC)
WWW= https://ngircd.barton.de/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe localbase:ldflags tar:xz
GNU_CONFIGURE= yes
USE_RC_SUBR= ngircd
CPE_VENDOR= barton
CPE_VERSION= ${PORTVERSION:C/^([0-9]+)$/\1.0/}
PORTDOCS= *
PLIST_FILES= etc/ngircd.conf.sample \
man/man5/ngircd.conf.5.gz \
man/man8/ngircd.8.gz \
sbin/ngircd
OPTIONS_DEFINE= DEBUG DOCS ICONV IDENT IPV6 IRCPLUS LIBWRAP PAM \
SNIFFER SYSLOG ZLIB
OPTIONS_RADIO= TLS
OPTIONS_RADIO_TLS= GNUTLS OPENSSL
OPTIONS_DEFAULT= ICONV IRCPLUS LIBWRAP OPENSSL PAM SYSLOG ZLIB
DEBUG_CONFIGURE_ENABLE= debug
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
GNUTLS_CONFIGURE_WITH= gnutls
ICONV_USES= iconv
ICONV_CONFIGURE_WITH= iconv
IDENT_DESC= IDENT (AUTH) protocol support
IDENT_LIB_DEPENDS= libident.so:security/libident
IDENT_CONFIGURE_WITH= ident
IPV6_CONFIGURE_ENABLE= ipv6
IRCPLUS_DESC= IRC+ protocol
IRCPLUS_CONFIGURE_ENABLE= ircplus
LIBWRAP_CONFIGURE_WITH= tcp-wrappers
OPENSSL_USES= ssl
OPENSSL_CONFIGURE_WITH= openssl
PAM_CONFIGURE_WITH= pam
SNIFFER_DESC= IRC traffic sniffer
SNIFFER_CONFIGURE_ENABLE= sniffer
SYSLOG_CONFIGURE_WITH= syslog
ZLIB_CONFIGURE_WITH= zlib
post-patch:
@${REINPLACE_CMD} -e \
'/LIBS/s|-liconv|${ICONV_LIB}|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/toplevel/s| \.\./COPYING|| ; \
/INSTALL/s|.conf$$|.conf.sample|' ${WRKSRC}/doc/Makefile.in
.include <bsd.port.mk>