# New ports collection makefile for: mail/dcc-dccd # Date created: Wed Oct 9 19:30:00 WST 2002 # Whom: Dean Hollister # # $FreeBSD$ # PORTNAME= dcc-dccd PORTVERSION= 1.3.50 PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.rhyolite.com/anti-spam/dcc/source/ \ http://www.wa.apana.org.au/~dean/sources/ EXTRACT_SUFX= .tar.Z MAINTAINER= dean@odyssey.apana.org.au COMMENT= Distributed Checksum Clearinghouse procmail, sendmail support HAS_CONFIGURE= yes MANCOMPRESSED= yes MAN8= cdcc.8 dbclean.8 dblist.8 dcc.8 dccd.8 dccifd.8 dccm.8 \ dccproc.8 dccsight.8 PKGINSTALL= ${WRKDIR}/pkg-install PKGDEINSTALL= ${WRKDIR}/pkg-deinstall USE_RC_SUBR= dcc-start.sh # # User for dcc files and SUID binaries # DCCUSER?= dcc DCCUID?= 112 DCCGROUP?= dcc DCCGID?= 112 # # Use configure script to set locations of all files. Use of # sed scripting breaks things. # CONFIGURE_ARGS= --homedir=${PREFIX}/dcc --bindir=${PREFIX}/bin --mandir=${MANPREFIX}/man --with-rundir=/var/run/dcc .include .if !defined(WITH_SENDMAIL_BASE) && !defined(WITH_SENDMAIL_PORT) && !exists(${LOCALBASE}/lib/libmilter.a) WITH_SENDMAIL_BASE=yes .endif .if defined(WITH_SENDMAIL_BASE) .if exists(/usr/lib/libmilter.a) MILTERBASE= /usr WITH_SENDMAIL= yes .else .if !defined(WITHOUT_SENDMAIL) IGNORE= base system sendmail not found or too old, rebuild with WITH_SENDMAIL_PORT=yes or WITHOUT_SENDMAIL=yes .endif .endif .else BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail MILTERBASE?= ${LOCALBASE} WITH_SENDMAIL= yes .endif .if !defined(WITHOUT_SENDMAIL) && defined(WITH_SENDMAIL) MILTERINC= ${MILTERBASE}/include MILTERLIB= ${MILTERBASE}/lib CPPFLAGS+= -I${MILTERINC} LDFLAGS+= -L${MILTERLIB} CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS+= --with-sendmail=${MILTERBASE} PLIST_SUB+= WITH_SENDMAIL="" .else CONFIGURE_ARGS+= --disable-dccm PLIST_SUB+= WITH_SENDMAIL="@comment " .endif .if defined(WITHOUT_DCCIFD) CONFIGURE_ARGS+= --disable-dccifd PLIST_SUB+= WITH_DCCIFD="@comment " .else PLIST_SUB+= WITH_DCCIFD="" .endif CONFIGURE_ARGS+= --with-uid=${DCCUSER} SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' \ -e 's|%%DCCUSER%%|${DCCUSER}|g' -e 's|%%DCCUID%%|${DCCUID}|g' \ -e 's|%%DCCGROUP%%|${DCCGROUP}|g' -e 's|%%DCCGID%%|${DCCGID}|g' pre-everything:: @${ECHO_MSG} ' ' @${ECHO_MSG} 'You can choose the sendmail to be used by specifying:' @${ECHO_MSG} ' ' @${ECHO_MSG} 'WITH_SENDMAIL_BASE=yes' @${ECHO_MSG} 'or' @${ECHO_MSG} 'WITH_SENDMAIL_PORT=yes' @${ECHO_MSG} 'or' @${ECHO_MSG} 'WITHOUT_SENDMAIL=yes' @${ECHO_MSG} '' post-build: @${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-install >${PKGINSTALL} @${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-deinstall >${PKGDEINSTALL} pre-install: @${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL .include