Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/net-snmp net-snmp: Add missing dependency on libpc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3136a8e10a99
branches:  trunk
changeset: 434415:3136a8e10a99
user:      otis <otis%pkgsrc.org@localhost>
date:      Tue Jun 16 10:06:04 2020 +0000

description:
net-snmp: Add missing dependency on libpcap and fix build on SmartOS

- Pull in libpcap on platforms without system-wide one
- Adjust LDFLAGS for SunOS

diffstat:

 net/net-snmp/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r aa0717df947e -r 3136a8e10a99 net/net-snmp/Makefile
--- a/net/net-snmp/Makefile     Tue Jun 16 09:53:52 2020 +0000
+++ b/net/net-snmp/Makefile     Tue Jun 16 10:06:04 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.129 2020/06/12 02:22:07 sevan Exp $
+# $NetBSD: Makefile,v 1.130 2020/06/16 10:06:04 otis Exp $
 
 .include "Makefile.common"
 CATEGORIES=    net
@@ -32,6 +32,8 @@
 CFLAGS+=               -DSOL_IP=IPPROTO_IP
 .endif
 
+LDFLAGS.SunOS+=                -lkvm
+
 .if (${OPSYS} == "NetBSD") || !exists(/usr/bin/lpstat)
 CONFIGURE_ENV+=                ac_cv_path_LPSTAT_PATH=no
 .endif
@@ -137,5 +139,6 @@
        ${INSTALL_DATA} ${WRKSRC}/agent/snmp_perl.pl \
                ${DESTDIR}${PREFIX}/share/snmp/
 
+.include "../../net/libpcap/buildlink3.mk"
 .include "../../security/tcp_wrappers/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index