summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorrichard <richard@pkgsrc.org>2014-05-10 14:38:26 +0000
committerrichard <richard@pkgsrc.org>2014-05-10 14:38:26 +0000
commitff4f1d9242a3f505ffc4d4bcbee7c69e5dea585c (patch)
tree4b743a7d47a3c114493a3e4dac9426b52f3afccb /mail
parentd28357d354abea911ee528bcdcb690b19729cac9 (diff)
downloadpkgsrc-ff4f1d9242a3f505ffc4d4bcbee7c69e5dea585c.tar.gz
Fix INSTALLATION_DIRS to only append allowing SunOS smf support to work
adding -lresolv to prevent linker unresolved symbols in site.config.m4 for SunOS as well.
Diffstat (limited to 'mail')
-rw-r--r--mail/sendmail/Makefile4
-rw-r--r--mail/sendmail/Makefile.common5
-rw-r--r--mail/sendmail/files/site.config.m4-libresolv4
3 files changed, 10 insertions, 3 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 264b5f0dbaf..61c81f9b840 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.119 2014/02/12 23:18:09 tron Exp $
+# $NetBSD: Makefile,v 1.120 2014/05/10 14:38:26 richard Exp $
PKGNAME= sendmail-${DIST_VERS}
PKGREVISION= 1
@@ -45,7 +45,7 @@ SUBST_MESSAGE.paths= Fixing paths.
REPLACE_PERL= contrib/socketmapClient.pl contrib/socketmapServer.pl
-INSTALLATION_DIRS= bin lib sbin
+INSTALLATION_DIRS+= bin lib sbin
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
INSTALLATION_DIRS+= ${PREFIX}/libexec/sendmail ${SMRSH_CMDDIR}
INSTALLATION_DIRS+= ${PREFIX}/share/examples/sendmail
diff --git a/mail/sendmail/Makefile.common b/mail/sendmail/Makefile.common
index 7cdf3f13943..56a567e90e1 100644
--- a/mail/sendmail/Makefile.common
+++ b/mail/sendmail/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.59 2014/02/09 02:02:46 jnemeth Exp $
+# $NetBSD: Makefile.common,v 1.60 2014/05/10 14:38:26 richard Exp $
#
# used by mail/libmilter/Makefile
# used by mail/sendmail/Makefile
@@ -53,3 +53,6 @@ make-sendmail-siteconfig:
. endif
.endif
${CAT} ${FILESDIR}/site.config.m4-milter >>${SITECONFIG}
+.if ${OPSYS} == "SunOS"
+ ${CAT} ${FILESDIR}/site.config.m4-libresolv >>${SITECONFIG}
+.endif
diff --git a/mail/sendmail/files/site.config.m4-libresolv b/mail/sendmail/files/site.config.m4-libresolv
new file mode 100644
index 00000000000..a3d35f6373e
--- /dev/null
+++ b/mail/sendmail/files/site.config.m4-libresolv
@@ -0,0 +1,4 @@
+# $NetBSD: site.config.m4-libresolv,v 1.1 2014/05/10 14:38:26 richard Exp $
+
+# add -lresolv to prevent linker unresolved symbols
+APPENDDEF(`confLIBS', `-lresolv')