Changeset View
Changeset View
Standalone View
Standalone View
mail/dcc-dccd/Makefile
# Created by: Dean Hollister <dean@odyssey.apana.org.au> | # Created by: Dean Hollister <dean@odyssey.apana.org.au> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= dcc-dccd | PORTNAME= dcc-dccd | ||||
PORTVERSION= 1.3.159 | PORTVERSION= 1.3.159 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= mail | CATEGORIES= mail | ||||
MASTER_SITES= http://www.dcc-servers.net/dcc/source/old/ \ | MASTER_SITES= http://www.dcc-servers.net/dcc/source/old/ \ | ||||
ftp://ftp.dcc-servers.net/src/dcc/old/ \ | ftp://ftp.dcc-servers.net/src/dcc/old/ \ | ||||
LOCAL/mat/${PORTNAME} | LOCAL/mat/${PORTNAME} | ||||
DISTNAME= dcc-${PORTVERSION} | DISTNAME= dcc-${PORTVERSION} | ||||
MAINTAINER= pkubaj@anongoth.pl | MAINTAINER= pkubaj@anongoth.pl | ||||
COMMENT= Distributed Checksum Clearinghouse bulk email detector | COMMENT= Distributed Checksum Clearinghouse bulk email detector | ||||
.if ! defined(PACKAGE_BUILDING) | .if ! defined(PACKAGE_BUILDING) | ||||
LICENSE= DCC | LICENSE= DCC | ||||
LICENSE_NAME= DCC | LICENSE_NAME= DCC | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
LICENSE_PERMS= no-pkg-sell no-dist-mirror no-pkg-mirror no-dist-sell | LICENSE_PERMS= no-pkg-sell no-dist-mirror no-pkg-mirror no-dist-sell | ||||
.endif | .endif | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
USES= tar:Z | USES= tar:Z | ||||
OPTIONS_DEFINE= DCCIFD DCCD DCCGREY IPV6 ALT_HOME | OPTIONS_DEFINE= DCCIFD DCCD DCCGREY IPV6 | ||||
OPTIONS_DEFAULT= DCCIFD DCCM DCCD DCCGREY | OPTIONS_DEFAULT= DCCIFD DCCM DCCD DCCGREY | ||||
OPTIONS_GROUP= MILTER | OPTIONS_GROUP= MILTER | ||||
OPTIONS_GROUP_MILTER= DCCM PORTS_SENDMAIL | OPTIONS_GROUP_MILTER= DCCM PORTS_MILTER | ||||
DCCIFD_DESC= DCC interface daemon (for SpamAssassin etc) | DCCIFD_DESC= DCC interface daemon (for SpamAssassin etc) | ||||
DCCM_DESC= DCC milter (for Sendmail only) | DCCM_DESC= DCC milter | ||||
DCCD_DESC= DCC server | DCCD_DESC= DCC server | ||||
DCCGREY_DESC= DCC greylisting server | DCCGREY_DESC= DCC greylisting server | ||||
ALT_HOME_DESC= DCC home in /var/dcc (see help) | PORTS_MILTER_DESC= Use ports milter instead of base | ||||
PORTS_SENDMAIL_DESC= Use ports Sendmail instead of base | |||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
## User for DCC files and SUID binaries | ## User for DCC files and SUID binaries | ||||
# | # | ||||
DCCUSER?= dcc | DCCUSER?= dcc | ||||
DCCGROUP?= dcc | DCCGROUP?= dcc | ||||
USERS= ${DCCUSER} | USERS= ${DCCUSER} | ||||
GROUPS= ${DCCGROUP} | GROUPS= ${DCCGROUP} | ||||
DCCHOME= ${PREFIX}/dcc | |||||
PLIST_SUB+= DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}" | PLIST_SUB+= DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}" | ||||
SUB_FILES= pkg-install pkg-message | SUB_FILES= pkg-install pkg-message | ||||
SUB_LIST+= WRKSRC=${WRKSRC} DCCHOME=${DCCHOME} | SUB_LIST+= WRKSRC=${WRKSRC} DCCHOME=${DCCHOME} | ||||
## Use the configure script to explicitly set the locations of all files, | ## Use the configure script to explicitly set the locations of all files, | ||||
## in case the standard locations have been locally overridden | ## in case the standard locations have been locally overridden | ||||
## Also, use a similar hack to USES=desthack. | ## Also, use a similar hack to USES=desthack. | ||||
CONFIGURE_ARGS= -q \ | CONFIGURE_ARGS= -q \ | ||||
--with-uid=${DCCUSER} \ | --with-uid=${DCCUSER} \ | ||||
--bindir=${PREFIX}/bin \ | --bindir=${PREFIX}/bin \ | ||||
--mandir=${MANPREFIX}/man \ | --mandir=${MANPREFIX}/man \ | ||||
--with-installroot=\$${${DESTDIRNAME}} \ | --with-installroot=\$${${DESTDIRNAME}} \ | ||||
--with-configsuffix=.sample \ | --with-configsuffix=.sample \ | ||||
--with-make-cmd=${MAKE_CMD} \ | --with-make-cmd=${MAKE_CMD} \ | ||||
--with-install-cmd=${BSD_INSTALL_PROGRAM} \ | --with-install-cmd=${BSD_INSTALL_PROGRAM} \ | ||||
--enable-pkg-make | --enable-pkg-make \ | ||||
--homedir=${DCCHOME} \ | |||||
--libexecdir=${DCCHOME}/libexec \ | |||||
--with-cgibin=${DCCHOME}/cgi-bin | |||||
CONFIGURE_ENV= ac_cv_header_histedit_h=no # disable libedit detection | CONFIGURE_ENV= ac_cv_header_histedit_h=no # disable libedit detection | ||||
ALT_HOME_CONFIGURE_ON= --libexecdir=${PREFIX}/dcc/libexec --with-cgibin=${PREFIX}/dcc/cgi-bin | |||||
DCCM_CONFIGURE_ENABLE= dccm | DCCM_CONFIGURE_ENABLE= dccm | ||||
DCCM_USE= rc_subr=dccm | DCCM_USE= rc_subr=dccm | ||||
PORTS_SENDMAIL_BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:mail/libmilter | PORTS_MILTER_BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:mail/libmilter | ||||
PORTS_SENDMAIL_CONFIGURE_ON= --with-sendmail=yes | PORTS_MILTER_CONFIGURE_ON= --with-sendmail=yes | ||||
DCCIFD_CONFIGURE_ENABLE= dccifd | DCCIFD_CONFIGURE_ENABLE= dccifd | ||||
DCCIFD_USE= rc_subr=dccifd | DCCIFD_USE= rc_subr=dccifd | ||||
DCCD_CONFIGURE_ENABLE= server | DCCD_CONFIGURE_ENABLE= server | ||||
IPV6_CONFIGURE_OFF= --disable-IPv6 | IPV6_CONFIGURE_OFF= --disable-IPv6 | ||||
DCCD_USE= rc_subr=dccd | DCCD_USE= rc_subr=dccd | ||||
DCCGREY_USE= rc_subr=dccgrey | DCCGREY_USE= rc_subr=dccgrey | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MALT_HOME} | |||||
DCCHOME= /var/dcc | |||||
.else | |||||
DCCHOME= ${PREFIX}/dcc | |||||
.endif | |||||
CONFIGURE_ARGS+= --homedir=${DCCHOME} | |||||
## dccm milter support | ## dccm milter support | ||||
# | # | ||||
.if ${PORT_OPTIONS:MDCCM} | .if ${PORT_OPTIONS:MPORTS_MILTER} | ||||
.if !exists(/usr/lib/libmilter.a) && !exists(${LOCALBASE}/lib/libmilter.a) | |||||
IGNORE= neither base system nor Ports version of Sendmail installed, cannot build milter | |||||
.endif | |||||
.if ! ${PORT_OPTIONS:MPORTS_SENDMAIL} && !exists(/usr/lib/libmilter.a) | |||||
IGNORE= base system Sendmail not found or too old, rebuild with WITH_PORTS_SENDMAIL=yes or WITHOUT_DCCM=yes | |||||
.endif | |||||
.if ${PORT_OPTIONS:MPORTS_SENDMAIL} && !exists(${LOCALBASE}/lib/libmilter.a) | |||||
IGNORE= ports Sendmail not found, rebuild with WITHOUT_PORTS_SENDMAIL=yes or WITHOUT_DCCM=yes | |||||
.endif | |||||
.if ! ${PORT_OPTIONS:MPORTS_SENDMAIL} | |||||
MILTERBASE= /usr | |||||
.else | |||||
MILTERBASE?= ${LOCALBASE} | MILTERBASE?= ${LOCALBASE} | ||||
.endif | |||||
MILTERINC= ${MILTERBASE}/include | MILTERINC= ${MILTERBASE}/include | ||||
MILTERLIB= ${MILTERBASE}/lib | MILTERLIB= ${MILTERBASE}/lib | ||||
CPPFLAGS+= -I${MILTERINC} | CPPFLAGS+= -I${MILTERINC} | ||||
CFLAGS+= -I${MILTERINC} | CFLAGS+= -I${MILTERINC} | ||||
LDFLAGS+= -L${MILTERLIB} | LDFLAGS+= -L${MILTERLIB} | ||||
.endif | .endif | ||||
Show All 35 Lines |