2017-09-04 20:00:49 +02:00
|
|
|
# $NetBSD: Makefile,v 1.25 2017/09/04 18:01:00 wiz Exp $
|
2000-04-21 12:57:33 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= smtpd-2.0
|
2006-07-20 22:07:13 +02:00
|
|
|
PKGREVISION= 3
|
2000-04-21 12:57:33 +02:00
|
|
|
CATEGORIES= mail security
|
2011-03-18 21:28:21 +01:00
|
|
|
MASTER_SITES= # http://www.netsw.org/net/ip/firewall/proxy/smtpd/
|
2000-04-21 12:57:33 +02:00
|
|
|
|
|
|
|
PATCHFILES= patch-smtpd-2.0-RBL.gz
|
2007-07-23 00:26:04 +02:00
|
|
|
PATCH_SITES= ftp://ftp.42.org/pub/OLD/p/
|
2000-04-21 12:57:33 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2007-02-22 20:01:13 +01:00
|
|
|
# "Obtuse smtpd hasn't been developed further since 1997."
|
|
|
|
# google for osmtpd
|
2017-09-04 20:00:49 +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}
|
2004-02-08 15:27:35 +01:00
|
|
|
|
2010-01-27 17:41:59 +01:00
|
|
|
INSTALLATION_DIRS= sbin share/doc/smtpd share/examples/smtpd
|
|
|
|
OWN_DIRS= ${SPOOL}/etc
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2004-02-08 15:27:35 +01:00
|
|
|
do-install:
|
2010-01-27 17:41:59 +01:00
|
|
|
${INSTALL_PROGRAM} -m 500 ${WRKSRC}/smtpd ${DESTDIR}${PREFIX}/sbin/smtpd
|
|
|
|
${INSTALL_PROGRAM} -m 500 ${WRKSRC}/smtpfwdd ${DESTDIR}${PREFIX}/sbin/smtpfwdd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/INSTALL \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/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
|
2010-01-27 17:41:59 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/examples/smtpd
|
2004-02-08 15:27:35 +01:00
|
|
|
.endfor
|
|
|
|
|
2006-11-28 17:38:00 +01:00
|
|
|
.include "../../devel/sysexits/buildlink3.mk"
|
2000-04-21 12:57:33 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|