5ce204e36b
DRAC (Dynamic Relay Authorization Control) is a daemon that dynamically updates a relay authorization map for sendmail. It provides a way to allow legitimate users to relay mail through an SMTP server, while still preventing others from using it as a spam relay. User's IP addresses are added to the map immediately after they have authenticated to the POP or IMAP server. By default, map entries expire after 30 minutes, but can be renewed by additional authentication. Periodically checking mail on a POP server is sufficient to do this. The POP and SMTP servers can be on different hosts. From Antoine Jacoutot <ajacoutot@lphp.org>
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2005/01/27 20:51:41 alek Exp $
|
|
|
|
COMMENT= "dynamic relay authorization control daemon"
|
|
|
|
DISTNAME= drac
|
|
PKGNAME= ${DISTNAME}-1.12
|
|
CATEGORIES= mail
|
|
|
|
HOMEPAGE= http://mail.cc.umanitoba.ca/drac/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@lphp.org>
|
|
|
|
# BSD alike
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c
|
|
|
|
MASTER_SITES= ftp://ftp.cc.umanitoba.ca/src/
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
MAKE_ENV= SYSCONFDIR=${SYSCONFDIR}
|
|
|
|
pre-build:
|
|
cd ${WRKSRC} && perl -pi -e "s,/etc,${SYSCONFDIR},g" rpc.dracd.1m
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rpc.dracd ${PREFIX}/libexec
|
|
${INSTALL_DATA} ${WRKSRC}/drac.h ${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/libdrac.a ${PREFIX}/lib
|
|
${INSTALL_MAN} ${WRKSRC}/dracauth.3 ${PREFIX}/man/man3
|
|
${INSTALL_MAN} ${WRKSRC}/rpc.dracd.1m ${PREFIX}/man/man1/rpc.dracd.1
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/drac
|
|
${INSTALL_DATA} ${WRKSRC}/dracd.allow-sample ${PREFIX}/share/examples/drac/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/drac
|
|
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/drac/
|
|
|
|
.include <bsd.port.mk>
|