From 9608361054eb8e5f15028ed2a5a9f470f14b2e7f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 18 May 2012 10:13:33 +0200 Subject: [PATCH] New package: net-snmp-5.7.1. --- common/shlibs | 4 +++ srcpkgs/libnet-snmp | 1 + srcpkgs/net-snmp-devel | 1 + srcpkgs/net-snmp/depends | 2 ++ srcpkgs/net-snmp/libnet-snmp.rshlibs | 11 ++++++ srcpkgs/net-snmp/libnet-snmp.template | 10 ++++++ srcpkgs/net-snmp/net-snmp-devel.template | 15 ++++++++ srcpkgs/net-snmp/net-snmp.rshlibs | 8 +++++ srcpkgs/net-snmp/template | 44 ++++++++++++++++++++++++ 9 files changed, 96 insertions(+) create mode 120000 srcpkgs/libnet-snmp create mode 120000 srcpkgs/net-snmp-devel create mode 100644 srcpkgs/net-snmp/depends create mode 100644 srcpkgs/net-snmp/libnet-snmp.rshlibs create mode 100644 srcpkgs/net-snmp/libnet-snmp.template create mode 100644 srcpkgs/net-snmp/net-snmp-devel.template create mode 100644 srcpkgs/net-snmp/net-snmp.rshlibs create mode 100644 srcpkgs/net-snmp/template diff --git a/common/shlibs b/common/shlibs index 7322c8cc79d..2a6256111fb 100644 --- a/common/shlibs +++ b/common/shlibs @@ -983,3 +983,7 @@ libijs-0.35.so libijs ghostscript-devel libgs.so.9 libgs ghostscript-devel libssh2.so.1 libssh2 libssh2-devel libvirt-glib-1.0.so.0 libvirt-glib libvirt-glib-devel +libnetsnmp.so.30 libnet-snmp net-snmp-devel +libnetsnmpagent.so.30 libnet-snmp net-snmp-devel +libnetsnmpmibs.so.30 libnet-snmp net-snmp-devel +libnetsnmptrapd.so.30 libnet-snmp net-snmp-devel diff --git a/srcpkgs/libnet-snmp b/srcpkgs/libnet-snmp new file mode 120000 index 00000000000..4c87c78d7ff --- /dev/null +++ b/srcpkgs/libnet-snmp @@ -0,0 +1 @@ +net-snmp \ No newline at end of file diff --git a/srcpkgs/net-snmp-devel b/srcpkgs/net-snmp-devel new file mode 120000 index 00000000000..4c87c78d7ff --- /dev/null +++ b/srcpkgs/net-snmp-devel @@ -0,0 +1 @@ +net-snmp \ No newline at end of file diff --git a/srcpkgs/net-snmp/depends b/srcpkgs/net-snmp/depends new file mode 100644 index 00000000000..c31a3a2f2ed --- /dev/null +++ b/srcpkgs/net-snmp/depends @@ -0,0 +1,2 @@ +abi_depends=">=5.7.1" +api_depends="${abi_depends}" diff --git a/srcpkgs/net-snmp/libnet-snmp.rshlibs b/srcpkgs/net-snmp/libnet-snmp.rshlibs new file mode 100644 index 00000000000..54f3aafd6b1 --- /dev/null +++ b/srcpkgs/net-snmp/libnet-snmp.rshlibs @@ -0,0 +1,11 @@ +libcrypto.so.1 +libc.so.6 +libperl.so +libnsl.so.1 +libdl.so.2 +libcrypt.so.1 +libutil.so.1 +libpthread.so.0 +libm.so.6 +libnl.so.1 +libpci.so.3 diff --git a/srcpkgs/net-snmp/libnet-snmp.template b/srcpkgs/net-snmp/libnet-snmp.template new file mode 100644 index 00000000000..b86f981dff6 --- /dev/null +++ b/srcpkgs/net-snmp/libnet-snmp.template @@ -0,0 +1,10 @@ +# Template file for 'libnet-snmp'. +# +short_desc="${short_desc} - shared libraries" +long_desc="${long_desc} + + This package contains the net-snmp shared libraries." + +do_install() { + vmove "usr/lib/*.so*" usr/lib +} diff --git a/srcpkgs/net-snmp/net-snmp-devel.template b/srcpkgs/net-snmp/net-snmp-devel.template new file mode 100644 index 00000000000..42984135c9f --- /dev/null +++ b/srcpkgs/net-snmp/net-snmp-devel.template @@ -0,0 +1,15 @@ +# Template file for 'net-snmp-devel'. +# +short_desc="${short_desc} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libnet-snmp ">=$version" + +noarch=yes + +do_install() { + vmove usr/include usr + vmove usr/share/man/man3 usr/share/man +} diff --git a/srcpkgs/net-snmp/net-snmp.rshlibs b/srcpkgs/net-snmp/net-snmp.rshlibs new file mode 100644 index 00000000000..043c905e602 --- /dev/null +++ b/srcpkgs/net-snmp/net-snmp.rshlibs @@ -0,0 +1,8 @@ +libcrypto.so.1 +libc.so.6 +libpthread.so.0 +libm.so.6 +libnetsnmp.so.30 +libnetsnmpagent.so.30 +libnetsnmpmibs.so.30 +libnetsnmptrapd.so.30 diff --git a/srcpkgs/net-snmp/template b/srcpkgs/net-snmp/template new file mode 100644 index 00000000000..e4887d89489 --- /dev/null +++ b/srcpkgs/net-snmp/template @@ -0,0 +1,44 @@ +# Template build file for 'net-snmp'. +pkgname=net-snmp +version=5.7.1 +distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz" +short_desc="Simple Network Management Protocol (SNMP) suite" +maintainer="Juan RP " +homepage="http://www.net-snmp.org/" +license="BSD" +checksum=7c71c9650c65b715356547e20ca2dbe6313944278af8cc19c32a5337f46b181f +long_desc=" + Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring + the health and welfare of network equipment (eg. routers), computer equipment and + even devices like UPSs. Net-SNMP is a suite of applications used to implement + SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6." + +subpackages="lib${pkgname} $pkgname-devel" + +Add_dependency build perl +Add_dependency build bzip2-devel +Add_dependency build openssl-devel +Add_dependency build libnl-devel +Add_dependency build pciutils-devel +Add_dependency build python-devel +Add_dependency build python-distribute + +Add_dependency run python + +do_configure() { + ./configure ${CONFIGURE_SHARED_ARGS} --enable-ucd-snmp-compatibility \ + --enable-ipv6 --with-python-modules --with-default-snmp-version="3" \ + --with-sys-contact="root@localhost" --with-sys-location="Unknown" \ + --with-logfile=/var/log/snmpd.log \ + --with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \ + --with-persistent-directory=/var/net-snmp --disable-static +} + +do_build() { + make ${makejobs} NETSNMP_DONT_CHECK_VERSION=1 +} + +do_install() { + make DESTDIR=${DESTDIR} INSTALL_PREFIX=${DESTDIR} \ + INSTALLDIRS=vendor install +}