summaryrefslogtreecommitdiff
path: root/net-analyzer/bsnmp
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/bsnmp')
-rw-r--r--net-analyzer/bsnmp/Manifest13
-rw-r--r--net-analyzer/bsnmp/bsnmp-1.11a.ebuild43
-rw-r--r--net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild48
-rw-r--r--net-analyzer/bsnmp/bsnmp-1.12.ebuild44
-rw-r--r--net-analyzer/bsnmp/files/bsnmp-1.10-gcc34.patch12
-rw-r--r--net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch13
-rw-r--r--net-analyzer/bsnmp/files/bsnmpd.init11
-rw-r--r--net-analyzer/bsnmp/files/snmpd.config98
-rw-r--r--net-analyzer/bsnmp/files/werror.patch11
-rw-r--r--net-analyzer/bsnmp/metadata.xml8
10 files changed, 301 insertions, 0 deletions
diff --git a/net-analyzer/bsnmp/Manifest b/net-analyzer/bsnmp/Manifest
new file mode 100644
index 000000000000..bda369725dc3
--- /dev/null
+++ b/net-analyzer/bsnmp/Manifest
@@ -0,0 +1,13 @@
+AUX bsnmp-1.10-gcc34.patch 311 SHA256 fc9b78f0bbc30017363512305d5abf38086a459e90b04d88b3f3b76ffefdfada SHA512 59d032c9779b3ed0e94891955fa80468b9a156002dd7f2d0d617aef161c22d4925d877e71d7a3f7c5acd7886ee503158deb26189bc62c94e706904ed6ccbfa32 WHIRLPOOL 3497501b3d80b104f62352f49de1aa5f354c264a783ac0e4e8e0755b03b8ada20815b92e9a66c431f84e15c457727c5e730b54ee141e21f58fcbf8c19b66c371
+AUX bsnmp-1.12-mibII.patch 465 SHA256 f06e61404895729378d7c9af8e58b1dd5f418b53b4fffa4078d93a8e61c6f59a SHA512 d3d9950285864736ba606399724add0f033b718c7c707e65fa8e556dd81d86291d8755b9f8de12792c547f715d8c634e89a3ced94c1c8012804462bedca286e8 WHIRLPOOL 34e99e897e042db5d852954a70a1d630ff314fe0e61c3ac08516947dfc7938d6ea1e87d8af5cb56cfe448e43f0edace67bfff6b1b2414b2a51962349e72b2627
+AUX bsnmpd.init 239 SHA256 a7f1c4b5b41287da137eaa7503957ea9497346b710a103c23c3be26481dfa44f SHA512 c10f543c37a873a69e93d7362709208726eea98aae8fafd108040d9f4d1d4d4c22d40ab7bfbf115d6598471c8ad332766a844a7bd4ec1424215bf0decec15e00 WHIRLPOOL 37c98f805ed47f824cfff5dba9cb0d83a93a46a410dc523cdae7d2083d93efea9bf8dd761fbd5e2631a1228c582efe9ded6fcf756d81f1e34c5a11972d6c46cb
+AUX snmpd.config 2426 SHA256 56d6ece23cd8cb8814f7e4166cb9f577a1a956beb2ad554420e82d4e8b71db27 SHA512 3fb763b93ba4bc11d1a03ef147f7303294ca26073bc10b55f22a7eb5107fd58f819079a1af9d2d8827e4cb5d5b645b3c44636482ea0855db3235be07a5f2d80b WHIRLPOOL ef7957ef697a7032c5280c60981fa386e4d34987ed64d72d739630512c46a2c6b089248c0f19033f81aba7241cffc3bbf697a84833d064ddb3899e1cf174d92a
+AUX werror.patch 532 SHA256 b9ee3526665d6baee8833688eca094c1c5c3bc8163c34bdef60765620b75093d SHA512 2de595316841e7602b0950bcbe53c85af049c9474b12518119704df56663734616b64a16a8d1ccb34fbd240b0cd19afa6dc70289673ede9c8062f2becd0c98a3 WHIRLPOOL 8e6735c90aa1e804877838582ef1f50aa830e86c21fd56bfe815b61bd5d84c1aee3d4d7270e1a41b3ec3cb7429a3f21fb26b8ce34ddbf1ff563e34972e69d426
+DIST bsnmp-1.11a.tar.gz 408165 SHA256 72d74b12742b153ac9c0bb4deb86bda6fc982eb41c775cc6fd7f343924b887f8 SHA512 8b3695a147b5a3c012509f73c0627c8f7b66d99c54c53636d2add2d3427acf331bc4168ee88b8cad2536c1a15901fc38c4acd51e7630c48f4972504d94e8dc08 WHIRLPOOL 9f9d6c9ebe7c0f91e56a1eedf26b60d5d02586e1a63055d43e16cd4adc14bc633a733beccbeb182ac846f0f9e2b2e29d72fe779bd8c748f591b1c57127d9b677
+DIST bsnmp-1.12.tar.gz 418653 SHA256 986d02d71c55693ec0b90b24564cb43195ce03254e85a8cd70457b318eefbee0 SHA512 c2c292e21632ea475d30aafaf7f66566389bccabfd20886a27bc4af98dba24139568c0eaddd36710655abac9ca6a38525136e06f2cf7be8b9db8ca656b2021c9 WHIRLPOOL 13e2bf9ac986b28e1437bc3a22aa8ceb09810f72d061c145a4e97c350d3c9bbf60180e2716c0ca0ed5513efc595a84b771eff04d3b7b3480fdd0982273ce77aa
+EBUILD bsnmp-1.11a.ebuild 837 SHA256 c601a14ef19edade533930daebcd25aa4e393efcfd113967471d7dc1a70fb5a8 SHA512 ba8d6df952fde089711c1a3a0422667e8c8a4f2e018b2b41c1e09ff789479d973e5c7d7690dbcca6bd006e66533d711e2c50de2d70b67687bd5829137bc2a696 WHIRLPOOL 7bb7289f6c021b7b075b537dacaabbd00fd1b9310d343e8e1d1557ac348a7c1a38bced9ca729b6fd05b85078c6edfc8c3b51306c400c5f04d83ab312459080cb
+EBUILD bsnmp-1.12-r1.ebuild 1047 SHA256 22de1aee33a406505048bb7d728809b89f7a0e668dd4957cd8973171ada886aa SHA512 72f98319a937253d79795d8e2e7b7a63881739b27d9287d736fe81a0be2d8d6525e9a1326bc5c01cae70f6303cfe7c0266becbcdf2138cd2dbfdd339fb00bf95 WHIRLPOOL 39a1b9525998a1bc398bd237be4e542334d1ce3008fafd663ec2534754352b6c7f9764bc24b951fb214ef16709b42667e342cdf71d04990a50f4b7846cec0c98
+EBUILD bsnmp-1.12.ebuild 884 SHA256 98ca2bb306bb108530ea2f8b25b15aa1a638e1d2f71419d6698750681479425c SHA512 7e9b5ca820bdce0175a5f09a4331ce16f5f2a6a541350d61955f1eb7f2b26c903fd8520d5363586f72091cec2263ab4c1b42cdfe223941fc34c4fc2bf42b89c3 WHIRLPOOL d355dad26fe010c4ec0504bdb42ef64d237b04e2f46f11b9c7e682c1689e1108244dcf3bec6bbc2ca8e97327449be7d2d6683e7ba2a388a41f92856a2e5cf24e
+MISC ChangeLog 2779 SHA256 4201bf9297df2c730af4ff7d0c1d35a829360ce5b3b0f37029229c4cc0b424c3 SHA512 ab1888962f2e42677ce694cf7f2590daec9f25d3cf98a28dacaab69bd2151066090d669a14cf037896a6dfc1d5c76f7ce7945cf4fcb42879e993e65142ee20b0 WHIRLPOOL 39901660eae08c6cb595f01a846d48b42184da3bda3147e56827862b7ccdbc1e6b82bedaae37cd409ada9650740227ab7a3fdc41bad8ee8d3dcdf4db48353098
+MISC ChangeLog-2015 1253 SHA256 f7445a8b9393385ad659dbca5776e1c68e29879dabadc587ced6dd599c9cebab SHA512 a55fccc039dd93391fc363af279a2d62efc86192a31c6ad389ee8592cfc0bc731c6ed24ec76617669c53493c2ea28fb40de40cbff676177be500d2f9a7772a2c WHIRLPOOL ab1a30ef031bbf9617fe345c98e72dd9229725f2a8b71578b8c4875a88e5952c60cae5ee04b25efe0b4a1fc0c54f83d15289bb3c81b015026a128900de0e4573
+MISC metadata.xml 238 SHA256 501d93b0c41ed422505100f002758cd173cd9783ae7fbb53e2ec5f238c868340 SHA512 173efaa53a514acf1e2f0c6681c82a48ec16d505844f551d2cc823ee8685b27837c7461f7956c12182059ee7e83023e2f0bcd5d1afab74beeaf998487193656d WHIRLPOOL 4ca51d994f011a5e7e4939f02a54b5c2f9f3e526665893c9ac2876c9871b7dc80361393d41c5247b3a5520e82d31d0dd10da520e7715c94b806a94ce0fed2a5a
diff --git a/net-analyzer/bsnmp/bsnmp-1.11a.ebuild b/net-analyzer/bsnmp/bsnmp-1.11a.ebuild
new file mode 100644
index 000000000000..53220c31acd2
--- /dev/null
+++ b/net-analyzer/bsnmp/bsnmp-1.11a.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Mini-SNMP Daemon and Library"
+HOMEPAGE="http://people.freebsd.org/~harti/"
+SRC_URI="http://people.freebsd.org/~harti/bsnmp/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86-fbsd"
+IUSE="tcpd"
+
+DEPEND="dev-libs/libbegemot
+ tcpd? ( sys-apps/tcp-wrappers )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PN}-1.10-gcc34.patch"
+}
+
+src_compile() {
+ if use elibc_glibc; then
+ # bsnmp is bsd-based, without this it will fail
+ append-flags "-D_BSD_SOURCE"
+ fi
+
+ filter-flags -fno-inline
+
+ econf \
+ --with-libbegemot=/usr \
+ $(use_with tcpd tcpwrappers) \
+ || die "econf failed"
+
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ einstall || die "make install failed"
+}
diff --git a/net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild b/net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild
new file mode 100644
index 000000000000..cf14d402d591
--- /dev/null
+++ b/net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Mini-SNMP Daemon and Library"
+HOMEPAGE="http://people.freebsd.org/~harti/"
+SRC_URI="http://people.freebsd.org/~harti/bsnmp/${P}.tar.gz"
+
+LICENSE="BSD GPL-2" # GPL-2 init script
+SLOT="0"
+KEYWORDS="~amd64-fbsd ~x86-fbsd"
+IUSE="tcpd"
+
+DEPEND="dev-libs/libbegemot
+ tcpd? ( sys-apps/tcp-wrappers )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PN}-1.10-gcc34.patch"
+ epatch "${FILESDIR}/werror.patch"
+ epatch "${FILESDIR}/${P}-mibII.patch"
+}
+
+src_compile() {
+ if use elibc_glibc; then
+ # bsnmp is bsd-based, without this it will fail
+ append-flags "-D_BSD_SOURCE"
+ fi
+
+ filter-flags -fno-inline
+
+ econf \
+ --with-libbegemot=/usr \
+ $(use_with tcpd tcpwrappers) \
+ || die "econf failed"
+
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ einstall || die "make install failed"
+ newinitd "${FILESDIR}"/bsnmpd.init bsnmpd || die
+ insinto /etc
+ doins "${FILESDIR}"/snmpd.config
+}
diff --git a/net-analyzer/bsnmp/bsnmp-1.12.ebuild b/net-analyzer/bsnmp/bsnmp-1.12.ebuild
new file mode 100644
index 000000000000..5996c6281ae1
--- /dev/null
+++ b/net-analyzer/bsnmp/bsnmp-1.12.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Mini-SNMP Daemon and Library"
+HOMEPAGE="http://people.freebsd.org/~harti/"
+SRC_URI="http://people.freebsd.org/~harti/bsnmp/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64-fbsd ~x86-fbsd"
+IUSE="tcpd"
+
+DEPEND="dev-libs/libbegemot
+ tcpd? ( sys-apps/tcp-wrappers )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PN}-1.10-gcc34.patch"
+ epatch "${FILESDIR}/werror.patch"
+}
+
+src_compile() {
+ if use elibc_glibc; then
+ # bsnmp is bsd-based, without this it will fail
+ append-flags "-D_BSD_SOURCE"
+ fi
+
+ filter-flags -fno-inline
+
+ econf \
+ --with-libbegemot=/usr \
+ $(use_with tcpd tcpwrappers) \
+ || die "econf failed"
+
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ einstall || die "make install failed"
+}
diff --git a/net-analyzer/bsnmp/files/bsnmp-1.10-gcc34.patch b/net-analyzer/bsnmp/files/bsnmp-1.10-gcc34.patch
new file mode 100644
index 000000000000..f1220b83d521
--- /dev/null
+++ b/net-analyzer/bsnmp/files/bsnmp-1.10-gcc34.patch
@@ -0,0 +1,12 @@
+diff -ur -x '*~' bsnmp-1.10/snmp_ntp/snmp_ntp.c bsnmp-1.10-fix/snmp_ntp/snmp_ntp.c
+--- bsnmp-1.10/snmp_ntp/snmp_ntp.c 2005-05-23 11:03:48.000000000 +0200
++++ bsnmp-1.10-fix/snmp_ntp/snmp_ntp.c 2005-07-10 01:58:35.557888936 +0200
+@@ -360,6 +360,8 @@
+ free(rpkt);
+ return (-1);
+ }
++
++ return (-1);
+ }
+
+ /*
diff --git a/net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch b/net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch
new file mode 100644
index 000000000000..c93191823d6e
--- /dev/null
+++ b/net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch
@@ -0,0 +1,13 @@
+diff --git a/snmp_mibII/Makefile.in b/snmp_mibII/Makefile.in
+index d14c179..3a99850 100755
+--- a/snmp_mibII/Makefile.in
++++ b/snmp_mibII/Makefile.in
+@@ -10,7 +10,7 @@ MOD= mibII
+ SRCS= ${MOD}_tree.c mibII.c mibII_ifmib.c mibII_ip.c \
+ mibII_interfaces.c mibII_ipaddr.c mibII_ifstack.c \
+ mibII_rcvaddr.c mibII_nettomedia.c mibII_tcp.c mibII_udp.c \
+- mibII_route.c
++ mibII_route.c mibII_begemot.c
+ INCS= snmp_${MOD}.h
+ DEFS= mibII_tree.def
+ MAN3= snmp_mibII.3
diff --git a/net-analyzer/bsnmp/files/bsnmpd.init b/net-analyzer/bsnmp/files/bsnmpd.init
new file mode 100644
index 000000000000..947e542a0437
--- /dev/null
+++ b/net-analyzer/bsnmp/files/bsnmpd.init
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Mini-SNMP Daemon"
+command="/usr/bin/bsnmpd"
+pidfile="/var/run/snmpd.pid"
+
+depend() {
+ use net
+}
diff --git a/net-analyzer/bsnmp/files/snmpd.config b/net-analyzer/bsnmp/files/snmpd.config
new file mode 100644
index 000000000000..26f9f1aeb163
--- /dev/null
+++ b/net-analyzer/bsnmp/files/snmpd.config
@@ -0,0 +1,98 @@
+# $FreeBSD: src/etc/snmpd.config,v 1.9.10.1.8.1 2012/03/03 06:15:13 kensmith Exp $
+#
+# Example configuration file for bsnmpd(1).
+#
+
+#
+# Set some common variables
+#
+location := "Room 200"
+contact := "sysmeister@example.com"
+system := 1 # FreeBSD
+traphost := localhost
+trapport := 162
+
+# Change this!
+read := "public"
+# Uncomment begemotSnmpdCommunityString.0.2 below that sets the community
+# string to enable write access.
+write := "geheim"
+trap := "mytrap"
+
+#
+# Configuration
+#
+%snmpd
+begemotSnmpdDebugDumpPdus = 2
+begemotSnmpdDebugSyslogPri = 7
+
+#
+# Set the read and write communities.
+#
+# The default value of the community strings is NULL (note, that this is
+# different from the empty string). This disables both read and write access.
+# To enable read access only the read community string must be set. Setting
+# the write community string enables both read and write access with that
+# string.
+#
+# Be sure to understand the security implications of SNMPv2 - the community
+# strings are readable on the wire!
+#
+begemotSnmpdCommunityString.0.1 = $(read)
+# begemotSnmpdCommunityString.0.2 = $(write)
+begemotSnmpdCommunityDisable = 1
+
+# open standard SNMP ports
+begemotSnmpdPortStatus.0.0.0.0.161 = 1
+
+# open a unix domain socket
+begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
+begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
+
+# send traps to the traphost
+begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
+begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
+begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
+
+sysContact = $(contact)
+sysLocation = $(location)
+sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
+
+snmpEnableAuthenTraps = 2
+
+#
+# Load MIB-2 module
+#
+begemotSnmpdModulePath."mibII" = "/usr/lib/libsnmp_mibII.so.3.0"
+
+# Force a polling rate for the 64-bit interface counters in case
+# the automatic computation is wrong (which may be the case if an interface
+# announces the wrong bit rate via its MIB).
+#%mibII
+#begemotIfForcePoll = 2000
+
+#
+# Netgraph module
+#
+#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
+#
+#%netgraph
+#begemotNgControlNodeName = "snmpd"
+
+#
+# pf(4) module
+#
+#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so"
+
+#
+# Host resources module
+# This requires the mibII module.
+#
+#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"
+
+#
+# Bridge module
+# This requires the mibII module.
+#
+#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"
+
diff --git a/net-analyzer/bsnmp/files/werror.patch b/net-analyzer/bsnmp/files/werror.patch
new file mode 100644
index 000000000000..7a0968e84441
--- /dev/null
+++ b/net-analyzer/bsnmp/files/werror.patch
@@ -0,0 +1,11 @@
+--- bsnmp-1.12/config/Makefile.pre.old 2012-04-26 10:45:58.000000000 -0400
++++ bsnmp-1.12/config/Makefile.pre 2012-04-26 10:46:11.000000000 -0400
+@@ -53,7 +53,7 @@
+ # Assume a Posix-ish make that passes MAKEFLAGS in the environment.
+ SUBMAKE= $(MAKE) --no-print-directory
+
+-WARNS= -Wsystem-headers -Werror -Wall -Wno-format-y2k -W \
++WARNS= -Wsystem-headers -Wall -Wno-format-y2k -W \
+ -Wstrict-prototypes -Wmissing-prototypes \
+ -Wpointer-arith -Wreturn-type -Wcast-qual \
+ -Wwrite-strings -Wswitch -Wshadow -Wcast-align \
diff --git a/net-analyzer/bsnmp/metadata.xml b/net-analyzer/bsnmp/metadata.xml
new file mode 100644
index 000000000000..a00f3aeb1f81
--- /dev/null
+++ b/net-analyzer/bsnmp/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>bsd@gentoo.org</email>
+ <name>BSD Project</name>
+</maintainer>
+</pkgmetadata>