Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2017 19:42:49 +0000 (UTC)
From:      Renato Botelho <garga@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r431204 - head/net-mgmt/net-snmp
Message-ID:  <201701111942.v0BJgnci038710@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: garga
Date: Wed Jan 11 19:42:49 2017
New Revision: 431204
URL: https://svnweb.freebsd.org/changeset/ports/431204

Log:
  - Add TLS OPTION to net-mgmt/net-snmp
  - While here replace USE_OPENSSL by USES=ssl
  
  Approved by:	maintainer (zi@)
  Obtained from:	pfSense
  Sponsored by:	Rubicon Communications (Netgate)
  Differential Revision:	https://reviews.freebsd.org/D9140

Modified:
  head/net-mgmt/net-snmp/Makefile
  head/net-mgmt/net-snmp/pkg-plist

Modified: head/net-mgmt/net-snmp/Makefile
==============================================================================
--- head/net-mgmt/net-snmp/Makefile	Wed Jan 11 19:35:39 2017	(r431203)
+++ head/net-mgmt/net-snmp/Makefile	Wed Jan 11 19:42:49 2017	(r431204)
@@ -16,8 +16,10 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 OPTIONS_DEFINE=	IPV6 MFD_REWRITES PERL PERL_EMBEDDED PYTHON DUMMY TKMIB \
-		MYSQL AX_SOCKONLY UNPRIVILEGED SMUX DOCS JAIL AX_DISABLE_TRAP
+		MYSQL AX_SOCKONLY UNPRIVILEGED SMUX DOCS JAIL AX_DISABLE_TRAP \
+		TLS
 OPTIONS_DEFAULT=PERL PERL_EMBEDDED DUMMY SMUX
+OPTIONS_SUB=	yes
 
 MFD_REWRITES_DESC=	Build with 64-bit Interface Counters
 PERL_EMBEDDED_DESC=	Build embedded perl
@@ -36,9 +38,8 @@ PORTSCOUT=	skipv:5.7.2.1
 
 GNU_CONFIGURE=	yes
 USE_RC_SUBR=	snmpd snmptrapd
-USE_OPENSSL=	yes
 USE_LDCONFIG=	yes
-USES=		cpe libtool perl5
+USES=		cpe libtool perl5 ssl
 CPE_VENDOR=	net-snmp
 USE_PERL5=	build run
 USE_CSTD=	c99
@@ -64,6 +65,8 @@ CONFIGURE_ARGS+=--with-libs="-lssp_nonsh
 CONFIGURE_ARGS+=--with-defaults
 .endif
 
+TLS_CONFIGURE_ON=	--with-security-modules=tsm --with-transports=TLSTCP,DTLSUDP
+
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MPYTHON}

Modified: head/net-mgmt/net-snmp/pkg-plist
==============================================================================
--- head/net-mgmt/net-snmp/pkg-plist	Wed Jan 11 19:35:39 2017	(r431203)
+++ head/net-mgmt/net-snmp/pkg-plist	Wed Jan 11 19:42:49 2017	(r431204)
@@ -22,6 +22,7 @@ bin/snmpset
 bin/snmpstatus
 bin/snmptable
 bin/snmptest
+%%TLS%%bin/snmptls
 bin/snmptranslate
 bin/snmptrap
 bin/snmpusm
@@ -117,8 +118,11 @@ include/net-snmp/library/snmp-tc.h
 include/net-snmp/library/snmp.h
 include/net-snmp/library/snmpAliasDomain.h
 include/net-snmp/library/snmpCallbackDomain.h
+%%TLS%%include/net-snmp/library/snmpDTLSUDPDomain.h
 include/net-snmp/library/snmpTCPDomain.h
 %%WITH_IPV6%%include/net-snmp/library/snmpTCPIPv6Domain.h
+%%TLS%%include/net-snmp/library/snmpTLSBaseDomain.h
+%%TLS%%include/net-snmp/library/snmpTLSTCPDomain.h
 include/net-snmp/library/snmpUDPDomain.h
 %%WITH_IPV6%%include/net-snmp/library/snmpUDPIPv6Domain.h
 include/net-snmp/library/snmpUnixDomain.h
@@ -134,6 +138,7 @@ include/net-snmp/library/snmp_parse_args
 include/net-snmp/library/snmp_secmod.h
 include/net-snmp/library/snmp_service.h
 include/net-snmp/library/snmp_transport.h
+%%TLS%%include/net-snmp/library/snmptsm.h
 include/net-snmp/library/snmpusm.h
 include/net-snmp/library/snmpv3-security-includes.h
 include/net-snmp/library/snmpv3.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701111942.v0BJgnci038710>