freebsd-ports/mail/dcc-dccd/Makefile
Sergei Kolobov 51b1b372f9 - Update to 1.2.48
Versions prior to 1.2.46 contain a serious packet flood bug,
  as indicated in the changelog:

  "Fix infinite packet flood from DCC clients including dccproc
  observed by Benji Spencer, Clive Cleland, and Andrew Kent.
  I introduced this serious bug with the WIN32 changes in 1.2.33."

This update resolves the issue. Updating is strongly recommended
for any users currently using this port and paying for their traffic
by the byte.

PR:		ports/66797
Submitted by:	Dean Hollister (maintainer)
2004-05-23 21:39:44 +00:00

42 lines
1.4 KiB
Makefile

# New ports collection makefile for: mail/dcc-dccd
# Date created: Wed Oct 9 19:30:00 WST 2002
# Whom: Dean Hollister <dean@odyssey.apana.org.au>
#
# $FreeBSD$
#
PORTNAME= dcc-dccd
PORTVERSION= 1.2.48
CATEGORIES= mail
MASTER_SITES= http://www.rhyolite.com/anti-spam/dcc/source/old/ \
http://www.wa.apana.org.au/~dean/sources/ \
ftp://ftp.wa.apana.org.au/pub/unix/packages/
EXTRACT_SUFX= .tar.Z
MAINTAINER= dean@odyssey.apana.org.au
COMMENT= Distributed Checksum Clearinghouse procmail, sendmail support
USE_REINPLACE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --homedir=${PREFIX}/dcc
MANCOMPRESSED= yes
MAN8= cdcc.8 dbclean.8 dblist.8 dcc.8 dccd.8 dccifd.8 dccm.8 \
dccproc.8 dccsight.8
.if exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a)
PLIST_SUB+= WITH_SENDMAIL=""
.else
CONFIGURE_ARGS+= --disable-dccm --disable-dccifd
PLIST_SUB+= WITH_SENDMAIL="@comment "
.endif
.include <bsd.port.pre.mk>
post-patch:
${FIND} ${WRKSRC} -type f -exec \
${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' {} \;
${REINPLACE_CMD} -e 's,PTHREAD_LDFLAGS="$$PTHREAD_LDFLAGS -pthread,PTHREAD_LDFLAGS="$$PTHREAD_LDFLAGS,g' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's,FreeBSD)\n\tPTHREAD_LDFLAGS,FreeBSD)\n\tDCC_CFLAGS="${PTHREAD_CFLAGS} $$DCC_CFLAGS"\n\tPTHREAD_LDFLAGS,g' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's,PTHREAD_LIBS="$$PTHREAD_LIBS -lc_r,PTHREAD_LIBS=" ${PTHREAD_LIBS},g' ${WRKSRC}/configure
.include <bsd.port.post.mk>