Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / smtpd / Makefile
blobbc7136a20b965fa6527ede0911ac99c85874aa60
1 # $NetBSD: Makefile,v 1.23 2011/03/18 20:30:12 zafer Exp $
4 DISTNAME= smtpd-2.0
5 PKGREVISION= 3
6 CATEGORIES= mail security
7 MASTER_SITES= # http://www.netsw.org/net/ip/firewall/proxy/smtpd/
9 PATCHFILES= patch-smtpd-2.0-RBL.gz
10 PATCH_SITES= ftp://ftp.42.org/pub/OLD/p/
12 MAINTAINER= pkgsrc-users@NetBSD.org
13 # "Obtuse smtpd hasn't been developed further since 1997."
14 # google for osmtpd
15 HOMEPAGE= http://www.obtuse.com/smtpd.html
16 COMMENT= Store and forward SMTP proxy
18 SPOOL= /var/spool/smtpd
20 RCD_SCRIPTS= smtpfwdd
21 FILES_SUBST+= SPOOL=${SPOOL:Q}
23 # taken directly from the Makefile.
24 CFLAGS.NetBSD+= -DUSE_FLOCK -DUSE_MKSTEMP
25 CFLAGS.DragonFly+= -DUSE_FLOCK -DUSE_MKSTEMP
26 CFLAGS.SunOS+= -DUSE_LOCKF -DNEEDS_FCNTL_H -DNEEDS_STRINGS_H -DBROKEN_SUN_INCLUDES
27 CFLAGS.IRIX+= -DGETOPT_EOF -DUSE_FLOCK -DNEEDS_FCNTL_H -DNEEDS_BSTRING_H -DIRIX_BROKEN_INCLUDES
28 CFLAGS.AIX+= -DGETOPT_EOF -DUSE_LOCKF -DNEEDS_FCNTL_H -DNEEDS_LOCKF_H -DNEEDS_STRINGS_H -DNEEDS_SELECT_H
29 OPSYSVARS+= LD_LIBS
30 LD_LIBS.SunOS+= -lnsl -lsocket -lresolv
31 MAKE_ENV+= LD_LIBS=${LD_LIBS:Q}
33 INSTALLATION_DIRS= sbin share/doc/smtpd share/examples/smtpd
34 OWN_DIRS= ${SPOOL}/etc
36 do-install:
37 ${INSTALL_PROGRAM} -m 500 ${WRKSRC}/smtpd ${DESTDIR}${PREFIX}/sbin/smtpd
38 ${INSTALL_PROGRAM} -m 500 ${WRKSRC}/smtpfwdd ${DESTDIR}${PREFIX}/sbin/smtpfwdd
39 ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/INSTALL \
40 ${DESTDIR}${PREFIX}/share/doc/smtpd
41 .for f in antirelay_check_rules_example antispam_check_rules.example \
42 smtpd_check_rules.example
43 ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/examples/smtpd
44 .endfor
46 .include "../../devel/sysexits/buildlink3.mk"
47 .include "../../mk/bsd.pkg.mk"