Security update.
authorDaniel Ahlberg <aliz@gentoo.org>
Mon, 14 Oct 2002 07:23:04 +0000 (07:23 +0000)
committerDaniel Ahlberg <aliz@gentoo.org>
Mon, 14 Oct 2002 07:23:04 +0000 (07:23 +0000)
net-analyzer/net-snmp/ChangeLog
net-analyzer/net-snmp/files/digest-net-snmp-5.0.6 [new file with mode: 0644]
net-analyzer/net-snmp/files/net-snmp-5.0.6-gentoo.diff [new file with mode: 0644]
net-analyzer/net-snmp/net-snmp-5.0.6.ebuild [new file with mode: 0644]

index 5b2e9c49a47bbcddc010fc88d9cf69f53919d19a..10ce4616f44c26f167df3b86ae8471c8123ffb78 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for net-analyzer/net-snmp
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.4 2002/09/28 19:02:56 owen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.5 2002/10/14 07:23:04 aliz Exp $
+
+*net-snmp-5.0.6 (14 Oct 2002)
+
+  14 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> :
+  Security update. Added patch to fix compilation with libwrap.
 
 *net-snmp-5.0.2a-r1 (4 Aug 2002)
 
diff --git a/net-analyzer/net-snmp/files/digest-net-snmp-5.0.6 b/net-analyzer/net-snmp/files/digest-net-snmp-5.0.6
new file mode 100644 (file)
index 0000000..c9b5cd8
--- /dev/null
@@ -0,0 +1 @@
+MD5 8c67aae0d7d8fa00625361cece1a2138 net-snmp-5.0.6.tar.gz 2209625
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.0.6-gentoo.diff b/net-analyzer/net-snmp/files/net-snmp-5.0.6-gentoo.diff
new file mode 100644 (file)
index 0000000..9a14dcb
--- /dev/null
@@ -0,0 +1,27 @@
+diff -Naur net-snmp-5.0.5.orig/agent/snmp_agent.c net-snmp-5.0.5/agent/snmp_agent.c
+--- net-snmp-5.0.5.orig/agent/snmp_agent.c     Tue Oct  1 04:18:12 2002
++++ net-snmp-5.0.5/agent/snmp_agent.c  Wed Oct  2 20:10:14 2002
+@@ -71,6 +71,9 @@
+ 
+ #ifdef USE_LIBWRAP
+ #include <tcpd.h>
++#ifdef HAVE_SYSLOG_H
++#include <syslog.h>
++#endif
+ int             allow_severity = LOG_INFO;
+ int             deny_severity = LOG_WARNING;
+ #endif
+diff -Naur net-snmp-5.0.5.orig/apps/snmptrapd.c net-snmp-5.0.5/apps/snmptrapd.c
+--- net-snmp-5.0.5.orig/apps/snmptrapd.c       Thu Sep 12 08:24:50 2002
++++ net-snmp-5.0.5/apps/snmptrapd.c    Wed Oct  2 20:10:05 2002
+@@ -99,8 +99,10 @@
+ #if USE_LIBWRAP
+ #include <tcpd.h>
+ 
++/*
+ int             allow_severity = LOG_INFO;
+ int             deny_severity = LOG_WARNING;
++*/
+ #endif
+ 
+ #define NETSNMP_DS_APP_NUMERIC_IP  8    /* must not conflict with agent's DS booleans */
diff --git a/net-analyzer/net-snmp/net-snmp-5.0.6.ebuild b/net-analyzer/net-snmp/net-snmp-5.0.6.ebuild
new file mode 100644 (file)
index 0000000..aa6383e
--- /dev/null
@@ -0,0 +1,72 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.0.6.ebuild,v 1.1 2002/10/14 07:23:04 aliz Exp $
+
+IUSE="ssl kerberos ipv6 tcpd"
+
+S=${WORKDIR}/${P%[a-z]}
+DESCRIPTION="Software for generating and retrieving SNMP data"
+SRC_URI="mirror://sourceforge/net-snmp/${P}.tar.gz"
+HOMEPAGE="http://net-snmp.sourceforge.net/"
+
+DEPEND="virtual/glibc <sys-libs/db-2
+       >=sys-libs/zlib-1.1.4
+       ssl? ( >=dev-libs/openssl-0.9.6 )
+       tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+       ssl? ( >=dev-libs/openssl-0.9.6d )
+       kerberos? ( >=app-crypt/krb5-1.2.5 )"
+       
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="x86 ppc sparc sparc64"
+
+src_unpack() {
+       unpack ${A}
+
+       cd ${S}
+       patch -p1 < ${FILESDIR}/${PF}-gentoo.diff
+}
+
+src_compile() {
+       local myconf disable_sec_services
+
+       use ssl || myconf="${myconf} --enable-internal-md5 --with-openssl=no"
+       use tcpd && myconf="${myconf} --with-libwrap" || myconf="${myconf} --with-libwrap=no"
+       use ipv6 && myconf="${myconf} --enable-ipv6" || myconf="${myconf} --disable-ipv6"
+       # Doesn't seem that emerge passes the escaped double quotes properly -- nitro
+       #use ipv6 || myconf="${myconf} --with-out-transports=\"TCPIPv6 UDPIPv6\""
+       use kerberos && myconf="${myconf} --with-security-modules=\"usm ksm\""
+
+       econf \
+               --with-cflags="${CFLAGS}" \
+               --host="${CHOST}" \
+               --with-zlib \
+               --enable-shared \
+               --with-sys-location="Unknown" \
+               --with-sys-contact="root@Unknown" \
+               --with-default-snmp-version="3" \
+               --with-logfile=/var/log/net-snmpd.log \
+               --with-persistent-directory=/var/lib/net-snmp \
+               --with-mib-modules=host \
+               ${myconf} || die "bad ./configure"
+
+       # Parallel make doesn't work.
+       make || die "compile problem"
+}
+
+src_install () {
+
+       einstall exec_prefix=${D}/usr \
+               persistentdir=${D}/var/lib/net-snmp || die
+
+       dodir /var/lib/net-snmp
+
+       dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO EXAMPLE.conf.def
+
+       # Close bug #5882:
+       rm -f ${D}/usr/bin/snmptrap
+       dosym /usr/bin/snmptrap /usr/bin/snmpinform
+
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/net-snmpd.rc6 net-snmpd
+}