2013-09-20 21:59:12 +02:00
|
|
|
# Created by: Anders Nordby <anders@fix.no>
|
2001-02-09 21:32:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= drac
|
2004-04-10 19:26:55 +02:00
|
|
|
PORTVERSION= 1.12
|
2014-08-22 00:50:29 +02:00
|
|
|
PORTREVISION= 9
|
2001-02-09 21:32:37 +01:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ftp://ftp.cc.umanitoba.ca/src/ \
|
2002-03-15 01:31:54 +01:00
|
|
|
http://atreides.freenix.no/~anders/ \
|
2001-02-09 21:32:37 +01:00
|
|
|
ftp://totem.fix.no/pub/mirrors/misc/
|
|
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
2008-11-20 12:06:24 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-11-22 02:23:30 +01:00
|
|
|
COMMENT= Dynamic Relay Authorization Control, a POP-before-SMTP implementation
|
2001-02-09 21:32:37 +01:00
|
|
|
|
2014-04-04 23:39:08 +02:00
|
|
|
PLIST_FILES= sbin/rpc.dracd include/drac.h lib/libdrac.a \
|
|
|
|
etc/dracd.allow-sample
|
2013-10-06 23:51:02 +02:00
|
|
|
|
2014-04-04 23:39:08 +02:00
|
|
|
USE_CSTD= gnu89
|
|
|
|
|
2014-05-06 19:14:39 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2014-07-15 18:14:15 +02:00
|
|
|
OPTIONS_DEFINE= DB DOCS
|
2014-04-04 23:39:08 +02:00
|
|
|
OPTIONS_RADIO= MUA
|
|
|
|
OPTIONS_RADIO_MUA= POSTFIX EXIM
|
|
|
|
POSTFIX_DESC= Use POSTFIX
|
|
|
|
EXIM_DESC= Use EXIM
|
|
|
|
DB_DESC= Use database with POSTFIX
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
DEFS= -DWITH_TI_RPC -DFLOCK_LOCK -DGETHOST -DDASH_C
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPOSTFIX}
|
|
|
|
DEFS+= -DTERM_KD
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS+= postfix:mail/postfix
|
2014-04-04 23:39:08 +02:00
|
|
|
.if ${PORT_OPTIONS:MDB}
|
2016-08-08 15:46:50 +02:00
|
|
|
USES+= bdb
|
2002-01-02 23:19:38 +01:00
|
|
|
.endif
|
2014-04-04 23:39:08 +02:00
|
|
|
.elif ${PORT_OPTIONS:MEXIM}
|
|
|
|
DEFS+= -DTERM_KD -DREQ_HASH -DCIDR_KEY
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS+= exim:mail/exim
|
2006-03-27 07:16:49 +02:00
|
|
|
.endif
|
2002-01-02 23:19:38 +01:00
|
|
|
|
2001-02-09 21:32:37 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= dracd
|
2001-02-09 21:32:37 +01:00
|
|
|
|
2014-04-04 23:39:08 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
PLIST_FILES+= man/man3/dracauth.3.gz man/man1/rpc.dracd.1.gz
|
2008-06-04 14:12:43 +02:00
|
|
|
.endif
|
2001-02-09 21:32:37 +01:00
|
|
|
|
2014-04-04 23:39:08 +02:00
|
|
|
.if defined(WITH_TI_RPC)
|
|
|
|
DEFS+= -DTI_RPC
|
|
|
|
.else
|
|
|
|
DEFS+= -DSOCK_RPC
|
|
|
|
.endif
|
2008-06-04 13:18:46 +02:00
|
|
|
|
2014-04-04 23:39:08 +02:00
|
|
|
.if defined(WITH_FOREGROUND)
|
|
|
|
DEFS+= -DRPC_SVC_FG
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKE_ARGS+= DEFS="${DEFS}"
|
2001-05-09 11:52:44 +02:00
|
|
|
|
2002-03-16 18:36:56 +01:00
|
|
|
pre-everything::
|
2014-04-04 23:39:08 +02:00
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
|
|
|
@${ECHO_MSG} "============================================================="
|
|
|
|
@${ECHO_MSG} "It is IPv6 non-correspondence."
|
|
|
|
@${ECHO_MSG} "After it understands, it is possible to use it with IPv4."
|
|
|
|
@${ECHO_MSG} "============================================================="
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
2003-09-27 02:50:09 +02:00
|
|
|
@${ECHO_MSG} "============================================================="
|
|
|
|
@${ECHO_MSG} "For databases compatible with other MTAs than sendmail, use:"
|
|
|
|
@${ECHO_MSG}
|
2014-04-04 23:39:08 +02:00
|
|
|
@${ECHO_MSG} "mail/postfix"
|
|
|
|
@${ECHO_MSG} "mail/exim"
|
2003-09-27 02:50:09 +02:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "Define WITH_FOREGROUND to make the rpc.dracd daemon stay in"
|
|
|
|
@${ECHO_MSG} "foreground instead of detaching itself. This breaks the"
|
|
|
|
@${ECHO_MSG} "startup script."
|
|
|
|
@${ECHO_MSG} "============================================================="
|
2001-02-09 21:32:37 +01:00
|
|
|
|
2002-01-02 23:19:38 +01:00
|
|
|
post-patch:
|
2002-11-04 02:37:23 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/rpc.dracd.1m
|
2002-01-02 23:19:38 +01:00
|
|
|
|
2001-02-09 21:32:37 +01:00
|
|
|
do-install:
|
2014-04-04 23:39:08 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/rpc.dracd ${STAGEDIR}${PREFIX}/sbin/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/drac.h ${STAGEDIR}${PREFIX}/include/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/libdrac.a ${STAGEDIR}${PREFIX}/lib/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/dracd.allow-sample \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/dracauth.3 ${STAGEDIR}${PREFIX}/man/man3/
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/rpc.dracd.1m \
|
|
|
|
${STAGEDIR}${PREFIX}/man/man1/rpc.dracd.1
|
2001-02-09 21:32:37 +01:00
|
|
|
.endif
|
2004-05-04 14:56:56 +02:00
|
|
|
|
2014-04-04 23:39:08 +02:00
|
|
|
.include <bsd.port.mk>
|