2001-02-09 21:32:37 +01:00
|
|
|
# New ports collection makefile for: drac
|
|
|
|
# Date created: 07 January 2001
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= drac
|
2004-04-10 19:26:55 +02:00
|
|
|
PORTVERSION= 1.12
|
2008-06-04 14:12:43 +02:00
|
|
|
PORTREVISION= 8
|
2001-02-09 21:32:37 +01:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ftp://ftp.cc.umanitoba.ca/src/ \
|
2006-11-22 02:23:30 +01:00
|
|
|
ftp://ftp.parodius.com/pub/umanitoba/ \
|
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
|
|
|
|
|
2006-11-22 02:23:30 +01:00
|
|
|
MAINTAINER= koitsu@FreeBSD.org
|
|
|
|
COMMENT= Dynamic Relay Authorization Control, a POP-before-SMTP implementation
|
2001-02-09 21:32:37 +01:00
|
|
|
|
2002-01-02 23:19:38 +01:00
|
|
|
.if defined(WITH_POSTFIX_DB3)
|
2002-08-22 21:13:46 +02:00
|
|
|
LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
|
2002-01-02 23:19:38 +01:00
|
|
|
.endif
|
2006-03-27 07:16:49 +02:00
|
|
|
.if defined(WITH_POSTFIX_DB41)
|
|
|
|
LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41
|
|
|
|
.endif
|
2002-01-02 23:19:38 +01:00
|
|
|
|
2001-02-09 21:32:37 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
2005-04-22 15:51:40 +02:00
|
|
|
USE_RC_SUBR= dracd.sh
|
2001-02-09 21:32:37 +01:00
|
|
|
|
2008-06-04 14:12:43 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-02-09 21:32:37 +01:00
|
|
|
MAN3= dracauth.3
|
|
|
|
MAN1= rpc.dracd.1
|
2008-06-04 14:12:43 +02:00
|
|
|
.endif
|
2001-02-09 21:32:37 +01:00
|
|
|
|
2008-06-04 13:18:46 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-05-09 13:15:57 +02:00
|
|
|
MAKE_ARGS+= -DWITH_TI_RPC
|
2001-05-09 11:52:44 +02:00
|
|
|
|
2002-03-16 18:36:56 +01:00
|
|
|
pre-everything::
|
2003-09-27 02:50:09 +02:00
|
|
|
@${ECHO_MSG} "============================================================="
|
|
|
|
@${ECHO_MSG} "For databases compatible with other MTAs than sendmail, use:"
|
|
|
|
@${ECHO_MSG}
|
2004-05-04 14:56:56 +02:00
|
|
|
@${ECHO_MSG} "WITH_POSTFIX=yes (Postfix)"
|
|
|
|
@${ECHO_MSG} "WITH_POSTFIX_DB3=yes (Postfix with DB3 database maps)"
|
2006-03-27 07:16:49 +02:00
|
|
|
@${ECHO_MSG} "WITH_POSTFIX_DB41=yes (Postfix with DB41 database maps)"
|
2004-05-04 14:56:56 +02:00
|
|
|
@${ECHO_MSG} "WITH_EXIM=yes (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:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/rpc.dracd ${PREFIX}/sbin/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/drac.h ${PREFIX}/include/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/libdrac.a ${PREFIX}/lib/
|
2004-11-01 23:39:06 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/dracd.allow-sample ${PREFIX}/etc/
|
2001-02-09 21:32:37 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/dracauth.3 ${PREFIX}/man/man3/
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/rpc.dracd.1m ${PREFIX}/man/man1/rpc.dracd.1
|
|
|
|
.endif
|
2004-05-04 14:56:56 +02:00
|
|
|
|
2001-05-09 11:52:44 +02:00
|
|
|
.include <bsd.port.post.mk>
|