1 diff -uraN net-snmp-5.4.1~dfsg.orig/debian/control net-snmp-5.4.1~dfsg/debian/control
2 --- net-snmp-5.4.1~dfsg.orig/debian/control 2008-09-28 22:40:29.000000000 -0400
3 +++ net-snmp-5.4.1~dfsg/debian/control 2008-09-28 21:09:23.248290160 -0400
6 Maintainer: Net-SNMP Packaging Team <pkg-net-snmp-devel@lists.alioth.debian.org>
7 Uploaders: Jochen Friedrich <jochen@scram.de>, Thomas Anders <tanders@users.sourceforge.net>, Noah Meyerhans <noahm@debian.org>
8 -Build-Depends: debhelper (>=6), libtool, libwrap0-dev, libssl-dev (>> 0.9.8), perl (>=5.8), libperl-dev, python-all-dev, python-central (>=0.5.6), python (>=2.3.5-7), python-setuptools (>=0.6b3), autoconf, automake1.9, debianutils (>=1.13.1), bash (>=2.05), findutils (>=4.1.20), procps, cdbs (>=0.4.51), libkvm-dev [kfreebsd-i386 kfreebsd-amd64], libsensors-dev (>=2.8.5) [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64]
9 +Build-Depends: debhelper (>=6), libtool, libwrap0-dev, libssl-dev (>> 0.9.8), perl (>=5.8), libperl-dev, python-all-dev, python-central (>=0.5.6), python (>=2.3.5-7), python-setuptools (>=0.6b3), autoconf, automake1.9, debianutils (>=1.13.1), bash (>=2.05), findutils (>=4.1.20), procps, cdbs (>=0.4.51), libkvm-dev [kfreebsd-i386 kfreebsd-amd64], libsensors-dev (>=2.8.5) [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64 !kopensolaris-i386 !kopensolaris-amd64]
10 Standards-Version: 3.7.3
11 Vcs-Svn: svn://svn.debian.org/pkg-net-snmp/
12 Vcs-Browser: http://svn.debian.org/wsvn/pkg-net-snmp/
13 diff -uraN net-snmp-5.4.1~dfsg.orig/debian/patches/51_kopensolaris-gnu.patch net-snmp-5.4.1~dfsg/debian/patches/51_kopensolaris-gnu.patch
14 --- net-snmp-5.4.1~dfsg.orig/debian/patches/51_kopensolaris-gnu.patch 1969-12-31 19:00:00.000000000 -0500
15 +++ net-snmp-5.4.1~dfsg/debian/patches/51_kopensolaris-gnu.patch 2008-09-28 22:41:45.248645892 -0400
17 +diff -uraN net-snmp-5.4.1~dfsg.orig/configure net-snmp-5.4.1~dfsg/configure
18 +--- net-snmp-5.4.1~dfsg.orig/configure 2007-07-27 13:04:19.000000000 -0400
19 ++++ net-snmp-5.4.1~dfsg/configure 2008-09-28 20:06:44.141639391 -0400
20 +@@ -4809,6 +4809,11 @@
21 + PARTIALTARGETOS=`echo $target_os | sed 's/[-._].*//'`
24 ++# kopensolaris-gnu uses the solaris2 kernel
25 ++if test "x$PARTIALTARGETOS" = "xkopensolaris"; then
26 ++ PARTIALTARGETOS=solaris2
29 + # platform-specific compiler flags
30 + if test "x$PARTIALTARGETOS" = "xmingw32msvc"; then
31 + CFLAGS="$CFLAGS -Dmingw32"
32 +diff -uraN net-snmp-5.4.1~dfsg.orig/configure.in net-snmp-5.4.1~dfsg/configure.in
33 +--- net-snmp-5.4.1~dfsg.orig/configure.in 2007-07-27 13:02:00.000000000 -0400
34 ++++ net-snmp-5.4.1~dfsg/configure.in 2008-09-28 20:06:50.130494070 -0400
35 +@@ -1014,6 +1014,11 @@
36 + PARTIALTARGETOS=`echo $target_os | sed 's/[-._].*//'`
39 ++# kopensolaris-gnu uses the solaris2 kernel
40 ++if test "x$PARTIALTARGETOS" = "xkopensolaris"; then
41 ++ PARTIALTARGETOS=solaris2
44 + # platform-specific compiler flags
45 + if test "x$PARTIALTARGETOS" = "xmingw32msvc"; then
46 + CFLAGS="$CFLAGS -Dmingw32"
47 +diff -uraN net-snmp-5.4.1~dfsg.orig/agent/mibgroup/host/hr_filesys.c net-snmp-5.4.1~dfsg/agent/mibgroup/host/hr_filesys.c
48 +--- net-snmp-5.4.1~dfsg.orig/agent/mibgroup/host/hr_filesys.c 2007-05-18 14:08:01.000000000 -0400
49 ++++ net-snmp-5.4.1~dfsg/agent/mibgroup/host/hr_filesys.c 2008-09-28 22:03:32.951425617 -0400
52 + *********************/
55 ++#if defined(solaris2) && !defined(__OpenSolaris_kernel__)
57 + struct mnttab HRFS_entry_struct;
58 + struct mnttab *HRFS_entry = &HRFS_entry_struct;
64 ++#if defined(solaris2) && !defined(__OpenSolaris_kernel__)
65 + if (getmntent(fp, HRFS_entry) != 0)
68 +diff -uraN net-snmp-5.4.1~dfsg.orig/agent/mibgroup/ucd-snmp/disk.c net-snmp-5.4.1~dfsg/agent/mibgroup/ucd-snmp/disk.c
69 +--- net-snmp-5.4.1~dfsg.orig/agent/mibgroup/ucd-snmp/disk.c 2007-04-02 10:55:17.000000000 -0400
70 ++++ net-snmp-5.4.1~dfsg/agent/mibgroup/ucd-snmp/disk.c 2008-09-28 22:07:31.539807854 -0400
72 + find_and_add_allDisks(int minpercent)
75 +-#if HAVE_SYS_MNTTAB_H
76 ++#if HAVE_SYS_MNTTAB_H && !defined(__OpenSolaris_kernel__)
77 + struct mnttab mnttab;
79 + struct mntent *mntent;
81 + find_device(char *path)
84 +-#if HAVE_SYS_MNTTAB_H
85 ++#if HAVE_SYS_MNTTAB_H && !defined(__OpenSolaris_kernel__)
86 + struct mnttab mnttab;
88 + struct mntent *mntent;
89 diff -uraN net-snmp-5.4.1~dfsg.orig/debian/patches/51_kopensolaris-gnu.README net-snmp-5.4.1~dfsg/debian/patches/51_kopensolaris-gnu.README
90 --- net-snmp-5.4.1~dfsg.orig/debian/patches/51_kopensolaris-gnu.README 1969-12-31 19:00:00.000000000 -0500
91 +++ net-snmp-5.4.1~dfsg/debian/patches/51_kopensolaris-gnu.README 2008-09-28 21:09:23.248835505 -0400
93 +Preliminary support for GNU/kOpenSolaris
94 diff -uraN net-snmp-5.4.1~dfsg.orig/debian/rules net-snmp-5.4.1~dfsg/debian/rules
95 --- net-snmp-5.4.1~dfsg.orig/debian/rules 2008-09-28 22:40:29.000000000 -0400
96 +++ net-snmp-5.4.1~dfsg/debian/rules 2008-09-28 21:09:23.249051376 -0400
98 ifeq (kfreebsd,$(DEB_HOST_ARCH_OS))
100 DEB_DH_GENCONTROL_ARGS=-- -Vos-specific-dev="libkvm-dev"
102 +ifeq (kopensolaris,$(DEB_HOST_ARCH_OS))
103 +IPV6 = --enable-ipv6
104 +MIB_MODULES += ucd-snmp/diskio