b7f05445c0
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)
110 lines
3.1 KiB
Makefile
110 lines
3.1 KiB
Makefile
PORTNAME= dcc-dccd
|
|
PORTVERSION= 2.3.168
|
|
CATEGORIES= mail
|
|
MASTER_SITES= https://www.dcc-servers.net/dcc/source/old/
|
|
DISTNAME= dcc-${PORTVERSION}
|
|
|
|
MAINTAINER= pkubaj@FreeBSD.org
|
|
COMMENT= Distributed Checksum Clearinghouse bulk email detector
|
|
WWW= https://www.rhyolite.com/dcc/
|
|
|
|
LICENSE= DCC
|
|
LICENSE_NAME= DCC
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
LICENSE_PERMS= no-pkg-sell no-dist-mirror no-pkg-mirror no-dist-sell
|
|
|
|
USES= tar:Z
|
|
|
|
USERS= ${DCCUSER}
|
|
GROUPS= ${DCCGROUP}
|
|
|
|
PLIST_SUB= DCCDATA="${DCCDATA}" DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}"
|
|
SUB_FILES= pkg-install pkg-message
|
|
SUB_LIST= DCCDATA="${DCCDATA}" DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}" WRKSRC=${WRKSRC} DCCHOME=${DCCHOME}
|
|
|
|
## Use the configure script to explicitly set the locations of all files,
|
|
## in case the standard locations have been locally overridden
|
|
## Also, use a similar hack to USES=desthack.
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= -q \
|
|
--without-DCC-MD5 \
|
|
--with-uid=${DCCUSER} \
|
|
--bindir=${PREFIX}/bin \
|
|
--mandir=${MANPREFIX}/man \
|
|
--with-installroot=\$${${DESTDIRNAME}} \
|
|
--with-configsuffix=.sample \
|
|
--with-make-cmd=${MAKE_CMD} \
|
|
--with-install-cmd=${BSD_INSTALL_PROGRAM} \
|
|
--enable-pkg-make \
|
|
--homedir=${DCCDATA} \
|
|
--libexecdir=${PREFIX}/libexec \
|
|
--with-cgibin=${DCCHOME}/cgi-bin
|
|
|
|
CONFIGURE_ENV= ac_cv_header_histedit_h=no # disable libedit detection
|
|
|
|
OPTIONS_DEFINE= DCCIFD DCCD DCCGREY IPV6
|
|
OPTIONS_DEFAULT= DCCIFD DCCM DCCD DCCGREY
|
|
OPTIONS_GROUP= MILTER
|
|
OPTIONS_GROUP_MILTER= DCCM PORTS_MILTER
|
|
OPTIONS_SUB= yes
|
|
|
|
DCCD_DESC= DCC server
|
|
DCCGREY_DESC= DCC greylisting server
|
|
DCCIFD_DESC= DCC interface daemon (for SpamAssassin etc)
|
|
DCCM_DESC= DCC milter
|
|
PORTS_MILTER_DESC= Use ports milter instead of base
|
|
|
|
DCCD_USE= rc_subr=dccd
|
|
DCCD_CONFIGURE_ENABLE= server
|
|
DCCGREY_USE= rc_subr=dccgrey
|
|
DCCIFD_USE= rc_subr=dccifd
|
|
DCCIFD_CONFIGURE_ENABLE= dccifd
|
|
DCCM_USE= rc_subr=dccm
|
|
DCCM_CONFIGURE_ENABLE= dccm
|
|
IPV6_CONFIGURE_OFF= --disable-IPv6
|
|
PORTS_MILTER_BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:mail/libmilter
|
|
PORTS_MILTER_CONFIGURE_ON= --with-sendmail=yes
|
|
|
|
## User for DCC files and SUID binaries
|
|
#
|
|
DCCUSER?= dcc
|
|
DCCGROUP?= dcc
|
|
|
|
DCCHOME= ${PREFIX}/dcc
|
|
DCCDATA= /var/db/dcc
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
## dccm milter support
|
|
#
|
|
.if ${PORT_OPTIONS:MPORTS_MILTER}
|
|
MILTERBASE?= ${LOCALBASE}
|
|
|
|
MILTERINC= ${MILTERBASE}/include
|
|
MILTERLIB= ${MILTERBASE}/lib
|
|
|
|
CPPFLAGS+= -I${MILTERINC}
|
|
CFLAGS+= -I${MILTERINC}
|
|
LDFLAGS+= -L${MILTERLIB}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDCCIFD} || ${PORT_OPTIONS:MDCCM}
|
|
PLIST_SUB+= IFD_MILT=""
|
|
.else
|
|
PLIST_SUB+= IFD_MILT="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,md5.c ,,' ${WRKSRC}/clntlib/Makefile.in
|
|
${REINPLACE_CMD} -E -e 's,^(BININSTALL.*),\1 -s,p' \
|
|
-e 's,^BIN(INSTALL[:space:]*=[:space:]*.*) -s$$,SCRIPT\1,' ${WRKSRC}/Makefile.inc.in
|
|
${REINPLACE_CMD} -e 's,BININSTALL,SCRIPTINSTALL,g' \
|
|
${WRKSRC}/homedir/Makefile.in ${WRKSRC}/misc/Makefile.in
|
|
|
|
post-install:
|
|
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer-dist \
|
|
${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer.sample
|
|
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/header-dist \
|
|
${STAGEDIR}${PREFIX}/dcc/cgi-bin/header.sample
|
|
|
|
.include <bsd.port.mk>
|