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

81 lines
2.7 KiB
Makefile

PORTNAME= qsheff-II
DISTVERSION= 2.1-r3
PORTREVISION= 9
CATEGORIES= mail
MASTER_SITES= http://www.enderunix.org/qsheff/ \
SF/qsheff/qsheff/II-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Qmail-queue replacement to filter mail traffic
WWW= http://www.enderunix.org/qsheff/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_FreeBSD_13= ld: error: duplicate symbol: CUSTOM_PROG
BROKEN_FreeBSD_14= ld: error: duplicate symbol: CUSTOM_PROG
BUILD_DEPENDS= ${LOCALBASE}/bin/ripmime:mail/ripmime
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= qmail
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-qmaildir=${QMAIL_PREFIX}
DOCS= README AUTHORS ChangeLog INSTALL THANKS TODO
EXAMPLES= sample-OK.msg sample-SPAM.msg sample-VIRUS.msg
CONTRIB= README qq-custom-error-patch.diff qq-patch.diff \
qsheff-patch.diff
FILES= handbook.en.txt handbook.tr.txt spamass-qsheff.en.html
ETCFILES= install-wrapper.sh uninstall-wrapper.sh qsheff.attach-default \
qsheff.conf-default qsheff.ignore-default qsheff.rules-default
OPTIONS_DEFINE= CLAMAV SPAMTAG VIRUSTAG DISABLELOCAL SYSLOG BACKUP \
CUSTOMERROR DEBUG DOCS EXAMPLES
OPTIONS_DEFAULT= CLAMAV
CLAMAV_DESC= Integrate with ClamAV
SPAMTAG_DESC= Spam tagging
VIRUSTAG_DESC= Virus tagging
DISABLELOCAL_DESC= Disable filters for local users
BACKUP_DESC= Logging of incoming/outgoing mail
CUSTOMERROR_DESC= Custom error patch
CLAMAV_BUILD_DEPENDS= ${LOCALBASE}/bin/clamdscan:security/clamav
CLAMAV_RUN_DEPENDS= ${CLAMAV_BUILD_DEPENDS}
CLAMAV_CONFIGURE_ON= --with-clamav --with-clamd-socket=/var/run/clamav/clamd
SPAMTAG_CONFIGURE_ON= --enable-spam-tag
VIRUSTAG_CONFIGURE_ON= --enable-virus-tag
SYSLOG_CONFIGURE_ON= --enable-syslog
DISABLELOCAL_CONFIGURE_ON=--disable-local-users
BACKUP_CONFIGURE_ON= --enable-backup
CUSTOMERROR_CONFIGURE_ON=--enable-custom-error
DEBUG_CONFIGURE_ON= --enable-debug
post-patch:
@${REINPLACE_CMD} -e '/^CFLAGS=""/d' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's/ -ansi//' ${WRKSRC}/src/Makefile.in
post-build-CLAMAV-off:
@${REINPLACE_CMD} -e '/enable_clamd/s|1|0|' \
${WRKSRC}/etc/qsheff.conf-default
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/qsheff ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${ETCFILES:S,^,${WRKSRC}/etc/,} ${STAGEDIR}${ETCDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/doc
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${FILES:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}/doc
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/contrib
${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/samples/,} \
${STAGEDIR}${EXAMPLESDIR}/
${INSTALL_DATA} ${CONTRIB:S,^,${WRKSRC}/contrib/,} \
${STAGEDIR}${EXAMPLESDIR}/contrib
.include <bsd.port.mk>