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

74 lines
2.1 KiB
Makefile

PORTNAME= vpnc
PORTVERSION= 0.5.3
PORTREVISION= 14
CATEGORIES= security net-vpn
MASTER_SITES= http://www.unix-ag.uni-kl.de/~massar/vpnc/ \
LOCAL/ehaupt
MAINTAINER= ports@FreeBSD.org
COMMENT= Client for Cisco 3000 VPN Concentrator
WWW= https://www.unix-ag.uni-kl.de/~massar/vpnc/
LICENSE= BSD2CLAUSE GPLv2+
LICENSE_COMB= multi
LICENSE_NAME_VPNC= vpnc
LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/COPYING
LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING
LICENSE_TEXT_VPNC= Redistribution is not allowed if linked against OpenSSL
LICENSE_PERMS_VPNC= auto-accept
LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error
RUN_DEPENDS= vpnc-script:sysutils/vpnc-scripts
USES= gmake perl5 shebangfix
USE_PERL5= build
USE_RC_SUBR= vpnc
ALL_TARGET= all
SHEBANG_FILES= makeman.pl
PORTDOCS= README TODO
MAKE_ENV= BINS="${EXTRABUILDS}"
OPTIONS_DEFINE= CISCOVERSION DECRYPT DOCS SSL
OPTIONS_DEFAULT= DECRYPT
OPTIONS_SUB= yes
CISCOVERSION_DESC= Mask linux presentation string
CISCOVERSION_CFLAGS= -DCISCO_PATCH_VERSION
DECRYPT_DESC= cisco-decypt password decrypt utility
DECRYPT_VARS= EXTRABUILDS+=cisco-decrypt
SSL_VARS= NO_PACKAGE="binary linked against OpenSSL must not be redistributed" \
LICENSE+=VPNC
SSL_CFLAGS= -DOPENSSL_GPL_VIOLATION
SSL_LDFLAGS= -lcrypto
post-patch:
@${REINPLACE_CMD} \
-e 's|.*%%FREEBSD_IPLEN_FIX%%.*|#define NEED_IPLEN_FIX 1|' \
${WRKSRC}/sysdep.h
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/config.c
@${REINPLACE_CMD} -e 's|\(/etc/vpnc\)|${PREFIX}\1|' \
${WRKSRC}/vpnc.8.template
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vpnc ${STAGEDIR}${PREFIX}/sbin/vpnc
${INSTALL_SCRIPT} ${WRKSRC}/vpnc-disconnect \
${STAGEDIR}${PREFIX}/sbin/vpnc-disconnect
${INSTALL_DATA} ${WRKSRC}/vpnc.conf \
${STAGEDIR}${PREFIX}/etc/vpnc.conf.sample
${INSTALL_MAN} ${WRKSRC}/vpnc.8 ${STAGEDIR}${MANPREFIX}/man/man8
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
do-install-DECRYPT-on:
${INSTALL_PROGRAM} ${WRKSRC}/cisco-decrypt ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/cisco-decrypt.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>