2005-12-29 07:21:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.15 2005/12/29 06:22:11 jlam Exp $
|
2000-04-21 12:57:33 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= smtpd-2.0
|
2005-10-29 21:49:40 +02:00
|
|
|
PKGREVISION= 2
|
2000-04-21 12:57:33 +02:00
|
|
|
CATEGORIES= mail security
|
|
|
|
MASTER_SITES= ftp://ftp.obtuse.com/pub/smtpd/
|
|
|
|
|
|
|
|
PATCHFILES= patch-smtpd-2.0-RBL.gz
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2000-04-21 12:57:33 +02:00
|
|
|
HOMEPAGE= http://www.obtuse.com/smtpd.html
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Store and forward SMTP proxy
|
2000-04-21 12:57:33 +02:00
|
|
|
|
|
|
|
SPOOL= /var/spool/smtpd
|
|
|
|
|
2005-10-29 21:49:40 +02:00
|
|
|
RCD_SCRIPTS= smtpfwdd
|
|
|
|
FILES_SUBST+= SPOOL=${SPOOL:Q}
|
|
|
|
|
2004-02-08 15:27:35 +01:00
|
|
|
# taken directly from the Makefile.
|
2005-12-05 21:49:47 +01:00
|
|
|
CFLAGS.NetBSD+= -DUSE_FLOCK -DUSE_MKSTEMP
|
|
|
|
CFLAGS.DragonFly+= -DUSE_FLOCK -DUSE_MKSTEMP
|
|
|
|
CFLAGS.SunOS+= -DUSE_LOCKF -DNEEDS_FCNTL_H -DNEEDS_STRINGS_H -DBROKEN_SUN_INCLUDES
|
|
|
|
CFLAGS.IRIX+= -DGETOPT_EOF -DUSE_FLOCK -DNEEDS_FCNTL_H -DNEEDS_BSTRING_H -DIRIX_BROKEN_INCLUDES
|
|
|
|
CFLAGS.AIX+= -DGETOPT_EOF -DUSE_LOCKF -DNEEDS_FCNTL_H -DNEEDS_LOCKF_H -DNEEDS_STRINGS_H -DNEEDS_SELECT_H
|
|
|
|
OPSYSVARS+= LD_LIBS
|
|
|
|
LD_LIBS.SunOS+= -lnsl -lsocket -lresolv
|
|
|
|
MAKE_ENV+= LD_LIBS=${LD_LIBS:Q}
|
2000-04-21 12:57:33 +02:00
|
|
|
|
2004-02-08 15:27:35 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= sbin
|
|
|
|
|
2004-02-08 15:27:35 +01:00
|
|
|
do-install:
|
2005-12-05 21:49:47 +01:00
|
|
|
${INSTALL_DATA_DIR} ${SPOOL}/etc
|
2004-02-08 15:27:35 +01:00
|
|
|
${INSTALL} -m 500 ${WRKSRC}/smtpd ${PREFIX}/sbin/smtpd
|
|
|
|
${INSTALL} -m 500 ${WRKSRC}/smtpfwdd ${PREFIX}/sbin/smtpfwdd
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smtpd
|
2001-04-27 15:52:18 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/smtpd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/smtpd
|
2005-10-29 21:49:40 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/smtpd
|
2004-02-08 15:27:35 +01:00
|
|
|
.for f in antirelay_check_rules_example antispam_check_rules.example \
|
2005-10-29 21:49:40 +02:00
|
|
|
smtpd_check_rules.example
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/smtpd
|
2004-02-08 15:27:35 +01:00
|
|
|
.endfor
|
|
|
|
|
2000-04-21 12:57:33 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|