freebsd-ports/mail/popfile/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.8 KiB
Makefile

PORTNAME= popfile
PORTVERSION= 1.1.3
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://getpopfile.org/downloads/%SUBDIR%/
MASTER_SITE_SUBDIR= . archive
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Automatic mail classification tool, acts as a POP3 proxy
WWW= http://getpopfile.org/
LICENSE= GPLv2
RUN_DEPENDS= p5-DBD-SQLite>=0:databases/p5-DBD-SQLite \
p5-TimeDate>=0:devel/p5-TimeDate \
p5-HTML-Tagset>=0:www/p5-HTML-Tagset \
p5-HTML-Template>=0:www/p5-HTML-Template
NO_WRKSUBDIR= yes
NO_BUILD= yes
NO_ARCH= yes
USES= perl5 shebangfix zip
USE_PERL5= run
SHEBANG_FILES= bayes.pl insert.pl \
pipe.pl popfile.pl
PLIST_SUB= VERSION="${PORTVERSION}"
SUB_FILES= popfile.sh
OPTIONS_DEFINE= SSL XMLRPC UPGRADE_FROM_0_20 KAKASI MECABU SOCKS
# POPFile works with IO::Socket::SSL version 1.07 (and not 0.97/0.99).
SSL_RUN_DEPENDS=p5-IO-Socket-SSL>=1.07:security/p5-IO-Socket-SSL
XMLRPC_DESC= POPFile as XMLRPC server
XMLRPC_RUN_DEPENDS= p5-SOAP-Lite>=0:net/p5-SOAP-Lite
UPGRADE_FROM_0_20_DESC= Upgrade old POPFile corpus
UPGRADE_FROM_0_20_RUN_DEPENDS= p5-BerkeleyDB>=0:databases/p5-BerkeleyDB
KAKASI_DESC= Handle Japanese text via Kakasi library
KAKASI_RUN_DEPENDS= p5-Text-Kakasi>=0:japanese/p5-Text-Kakasi
MECABU_DESC= Handle Japanese text via MeCab library
MECABU_RUN_DEPENDS= p5-MeCab>=0:japanese/p5-MeCab
SOCKS_RUN_DEPENDS= p5-IO-Socket-Socks>=0:net/p5-IO-Socket-Socks
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/popfile.sh ${STAGEDIR}${PREFIX}/sbin
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${INSTALL_SCRIPT} *.pl ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${INSTALL_DATA} stopwords *.change* *.gif *.ico \
*.pck *.png ${STAGEDIR}${DATADIR})
.for i in Classifier POPFile Proxy Services UI languages skins
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${DATADIR})
.endfor
.include <bsd.port.mk>