freebsd-ports/security/openconnect/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

64 lines
1.8 KiB
Makefile

PORTNAME= openconnect
PORTVERSION= 9.01
PORTREVISION= 1
CATEGORIES= security net-vpn
MASTER_SITES= ftp://ftp.infradead.org/pub/openconnect/ \
ZI
MAINTAINER= zi@FreeBSD.org
COMMENT= Client for Cisco's AnyConnect SSL VPN
WWW= https://www.infradead.org/openconnect/
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING.LGPL
LIB_DEPENDS= libxml2.so:textproc/libxml2
RUN_DEPENDS= vpnc-script:sysutils/vpnc-scripts
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-nls --with-vpnc-script=${LOCALBASE}/sbin/vpnc-script \
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
--without-openssl-version-check --without-libpcsclite \
--without-libpskc
USES= cpe gmake iconv libtool pkgconfig python:build ssl shebangfix
CPE_VENDOR= infradead
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
SHEBANG_LANG+= SH
SH_OLD_CMD+= /system/bin/sh
SHEBANG_FILES= trojans/csd-post.sh trojans/csd-wrapper.sh \
trojans/tncc-emulate.py \
trojans/hipreport-android.sh trojans/tncc-wrapper.py
PORTDOCS= *
OPTIONS_DEFINE= DOCS PROXY GNUTLS GSSAPI LZ4 P11 STOKEN
OPTIONS_DEFAULT=GSSAPI
LZ4_DESC= LZ4-based compression
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
LZ4_CONFIGURE_WITH= lz4
PROXY_DESC= Automatic proxy configuration via libproxy
PROXY_LIB_DEPENDS= libproxy.so:net/libproxy
PROXY_CONFIGURE_WITH= libproxy
GNUTLS_DESC= Use GnuTLS instead of OpenSSL (experimental)
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
GNUTLS_CONFIGURE_WITH= gnutls
GSSAPI_CONFIGURE_WITH= gssapi
P11_DESC= PKCS \#11 support via libp11
P11_LIB_DEPENDS= libp11.so:security/libp11
STOKEN_DESC= With RSA soft token support via libstoken
STOKEN_LIB_DEPENDS= libstoken.so:security/stoken \
libtomcrypt.so:security/libtomcrypt
STOKEN_CONFIGURE_WITH= stoken
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/TODO ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>