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

59 lines
1.6 KiB
Makefile

PORTNAME= i2p
DISTVERSION= 0.9.48
CATEGORIES= security java net-p2p
MASTER_SITES= http://download.i2p2.de/releases/${PORTVERSION}/
DISTNAME= i2psource_${PORTVERSION}
MAINTAINER= m.muenz@gmail.com
COMMENT= Anonymizing network
WWW= https://geti2p.net/
LICENSE= EULA
LICENSE_NAME= End User License Agreement
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_DISTFILES= i2psource_${PORTVERSION}${EXTRACT_SUFX}
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= i2p libwrapper.so library binary only available for i386 and amd64
BUILD_DEPENDS= ${LOCALBASE}/lib/libgmp.a:math/gmp
LIB_DEPENDS= libiconv.so:converters/libiconv
USES= cpe gettext tar:bz2
CPE_VENDOR= geti2p
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
USE_RC_SUBR= i2p
USE_ANT= yes
USE_JAVA= yes
NO_ARCH= yes
JAVA_BUILD= jdk
USE_LOCALE= en_US.UTF-8
ALL_TARGET= updater tarball
SUB_FILES= wrapper.sh
PORTDATA= *
PLIST_FILES= sbin/i2prouter
post-patch:
# postinstall.sh SHOULD only do post installation house keeping
@${REINPLACE_CMD} -E \
-e 's|./i2prouter[[:space:]]+start||' \
${WRKSRC}/installer/resources/postinstall.sh
@${REINPLACE_CMD} -E \
-e 's|%INSTALL_PATH|$${HOME}/i2p|' \
-e 's|%USER_HOME|$${HOME}|' \
${WRKSRC}/installer/resources/i2prouter \
${WRKSRC}/installer/resources/runplain.sh
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/i2p.tar.bz2 ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/i2pupdate.zip ${STAGEDIR}${DATADIR}/
${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/sbin/i2prouter
.include <bsd.port.mk>