summaryrefslogtreecommitdiff
path: root/security/smtpd/Makefile
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-02-08 14:27:35 +0000
committergrant <grant@pkgsrc.org>2004-02-08 14:27:35 +0000
commitb8ec6d9c5214161c2862f9e14bf79130d1d211bb (patch)
treed5615649b7f575ea579d910ac453b3dfb0747c16 /security/smtpd/Makefile
parent4b75fea360c51bfc1b089e7bb77a4b43351f27c1 (diff)
downloadpkgsrc-b8ec6d9c5214161c2862f9e14bf79130d1d211bb.tar.gz
move CFLAGS and LD_LIBS to pkgsrc Makefile and clean up install
targets so platforms other than *BSD have a chance of building. install /etc/TIMEZONE on Solaris. XXX this package still needs more work to be useful on Solaris and other platforms.
Diffstat (limited to 'security/smtpd/Makefile')
-rw-r--r--security/smtpd/Makefile40
1 files changed, 31 insertions, 9 deletions
diff --git a/security/smtpd/Makefile b/security/smtpd/Makefile
index cfe63d9ac4f..c558175ed79 100644
--- a/security/smtpd/Makefile
+++ b/security/smtpd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2003/07/17 22:53:15 grant Exp $
+# $NetBSD: Makefile,v 1.11 2004/02/08 14:27:35 grant Exp $
#
DISTNAME= smtpd-2.0
@@ -14,16 +14,38 @@ COMMENT= Store and forward SMTP proxy
SPOOL= /var/spool/smtpd
-pre-install:
- -${INSTALL_DATA_DIR} ${SPOOL}/etc
- for f in antirelay_check_rules_example antispam_check_rules.example smtpd_check_rules.example ; do ${INSTALL_DATA} ${WRKSRC}/$$f ${SPOOL}/etc; done
- ${CHOWN} -R uucp.mail ${SPOOL}
- ${CHMOD} -R g=,o= ${SPOOL}
- ${CP} /etc/localtime /etc/resolv.conf ${SPOOL}/etc
+# taken directly from the Makefile.
+CFLAGS.NetBSD= -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}"
-post-install:
- @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smtpd
+.include "../../mk/bsd.prefs.mk"
+
+do-install:
+ -${INSTALL_DATA_DIR} ${SPOOL}/etc
+ ${INSTALL} -m 500 ${WRKSRC}/smtpd ${PREFIX}/sbin/smtpd
+ ${INSTALL} -m 500 ${WRKSRC}/smtpfwdd ${PREFIX}/sbin/smtpfwdd
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smtpd
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/smtpd
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/smtpd
+post-install:
+.for f in antirelay_check_rules_example antispam_check_rules.example \
+ smtpd_check_rules.example
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${SPOOL}/etc
+.endfor
+ ${CHOWN} -R uucp ${SPOOL}
+ ${CHGRP} -R mail ${SPOOL}
+ ${CHMOD} -R g=,o= ${SPOOL}
+ ${CP} /etc/resolv.conf ${SPOOL}/etc
+.if ${OPSYS} == "SunOS"
+ ${CP} /etc/TIMEZONE ${SPOOL}/etc
+.else
+ ${CP} /etc/localtime ${SPOOL}/etc
+.endif
+
.include "../../mk/bsd.pkg.mk"