freebsd-ports/mail/spamass-rules/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

97 lines
2.7 KiB
Makefile

PORTNAME= spamass-rules
PORTVERSION= 20190101
CATEGORIES= mail
MASTER_SITES= http://www.ranner.eu/stuff/
MAINTAINER= michael@ranner.eu
COMMENT= Custom rulesets for SpamAssassin
WWW= https://cwiki.apache.org/confluence/display/spamassassin/CustomRulesets
RUN_DEPENDS= spamc:mail/spamassassin
USES= tar:bzip2
OPTIONS_DEFINE= AIRMAX BACKHAIR BOGUS_VIRUS CHICKENPOX DBRACKETS \
EVILNUMBERS MANGLED MIMEVLD RANDOM TRIPWIRE
OPTIONS_SINGLE= WEEDS
OPTIONS_GROUP= LANG BLACKLIST
OPTIONS_SINGLE_WEEDS= WEEDS1 WEEDS2
WEEDS_DESC= Looks at alphanum, hex, lower-, uppercase chars
OPTIONS_GROUP_LANG= CHINESE GERMAN GREEK POLISH
LANG_DESC= Catch spam written in...
OPTIONS_GROUP_BLACKLIST=AHBL MALWARE MSPIKE NIXSPAM
BLACKLIST= DNS Blacklists
OPTIONS_DEFAULT= BOGUS_VIRUS DBRACKETS MIMEVLD MSPIKE NIXSPAM RANDOM TRIPWIRE WEEDS WEEDS2
AHBL_DESC= AHBL Blacklist
MALWARE_DESC= Malware Patrol
MSPIKE_DESC= mailspike.net blacklist
NIXSPAM_DESC= NiX Spam blacklist
AIRMAX_DESC= Some custom rulesets
BACKHAIR_DESC= Catch those ugly, unsightly HTML tags
BOGUS_VIRUS_DESC= Catch 'collateral spam' caused by viruses
CHICKENPOX_DESC= Catch spam like 'l.ooks f|or th.is garb+age'
DBRACKETS_DESC= Double-brackets around To header address
EVILNUMBERS_DESC= Phone numbers, PO boxes, ... from spam
MANGLED_DESC= Looks for obfuscated/gappy words
MIMEVLD_DESC= Some mime validation rules
RANDOM_DESC= Detects spamware mistakes like: %RANDOM_WORD
TRIPWIRE_DESC= Matches 3 chars that shouldn't be together
CHINESE_DESC= Chinese
GERMAN_DESC= German
GREEK_DESC= Greek
POLISH_DESC= Polish
WEEDS1_DESC= Less restrictive rules
WEEDS2_DESC= More restrictive rules
SUB_FILES= pkg-message
NO_BUILD= yes
NO_WRKSUBDIR= yes
DATADIR= ${PREFIX}/etc/mail/spamassassin
AHBL_CONF= 20_dnsbl_ahbl.cf
AIRMAX_CONF= airmax.cf
BACKHAIR_CONF= backhair.cf
BOGUS_VIRUS_CONF= bogus-virus-warnings.cf
CHICKENPOX_CONF= chickenpox.cf
CHINESE_CONF= chinese_rules.cf
DBRACKETS_CONF= 99_SMF_BRACKETS_TO.cf
EVILNUMBERS_CONF= evilnumbers.cf
GERMAN_CONF= 70_zmi_german.cf
GREEK_CONF= gr_domain.cf
MALWARE_CONF= 99_malware_patrol_blocklist.cf
MANGLED_CONF= mangled.cf
MIMEVLD_CONF= mime_validate.cf
MSPIKE_CONF= 10_dnsbl_mspike.cf
NIXSPAM_CONF= 20_dnsbl_nixspam.cf
POLISH_CONF= 25_body_tests_pl.cf
RANDOM_CONF= random.cf
TRIPWIRE_CONF= 99_FVGT_Tripwire.cf
WEEDS1_CONF= weeds.cf
WEEDS2_CONF= weeds2.cf
.include <bsd.port.options.mk>
.for opt in ${PORT_OPTIONS}
. if defined(${opt}_CONF)
PLIST_FILES+= ${DATADIR_REL}/${${opt}_CONF}
. endif
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
.for opt in ${PORT_OPTIONS}
. if defined(${opt}_CONF)
${INSTALL_DATA} ${WRKSRC}/${${opt}_CONF} ${STAGEDIR}${DATADIR}
. endif
.endfor
.include <bsd.port.mk>