diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/bsnmp | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer/bsnmp')
-rw-r--r-- | net-analyzer/bsnmp/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/bsnmp/bsnmp-1.11a.ebuild | 44 | ||||
-rw-r--r-- | net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild | 49 | ||||
-rw-r--r-- | net-analyzer/bsnmp/bsnmp-1.12.ebuild | 45 | ||||
-rw-r--r-- | net-analyzer/bsnmp/files/bsnmp-1.10-gcc34.patch | 12 | ||||
-rw-r--r-- | net-analyzer/bsnmp/files/bsnmp-1.12-mibII.patch | 13 | ||||
-rw-r--r-- | net-analyzer/bsnmp/files/bsnmpd.init | 12 | ||||
-rw-r--r-- | net-analyzer/bsnmp/files/snmpd.config | 98 | ||||
-rw-r--r-- | net-analyzer/bsnmp/files/werror.patch | 11 | ||||
-rw-r--r-- | net-analyzer/bsnmp/metadata.xml | 5 |
10 files changed, 291 insertions, 0 deletions
diff --git a/net-analyzer/bsnmp/Manifest b/net-analyzer/bsnmp/Manifest new file mode 100644 index 000000000000..c306223fcec7 --- /dev/null +++ b/net-analyzer/bsnmp/Manifest @@ -0,0 +1,2 @@ +DIST bsnmp-1.11a.tar.gz 408165 SHA256 72d74b12742b153ac9c0bb4deb86bda6fc982eb41c775cc6fd7f343924b887f8 +DIST bsnmp-1.12.tar.gz 418653 SHA256 986d02d71c55693ec0b90b24564cb43195ce03254e85a8cd70457b318eefbee0 SHA512 c2c292e21632ea475d30aafaf7f66566389bccabfd20886a27bc4af98dba24139568c0eaddd36710655abac9ca6a38525136e06f2cf7be8b9db8ca656b2021c9 WHIRLPOOL 13e2bf9ac986b28e1437bc3a22aa8ceb09810f72d061c145a4e97c350d3c9bbf60180e2716c0ca0ed5513efc595a84b771eff04d3b7b3480fdd0982273ce77aa diff --git a/net-analyzer/bsnmp/bsnmp-1.11a.ebuild b/net-analyzer/bsnmp/bsnmp-1.11a.ebuild new file mode 100644 index 000000000000..4569dff5cd42 --- /dev/null +++ b/net-analyzer/bsnmp/bsnmp-1.11a.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..d515becc1242 --- /dev/null +++ b/net-analyzer/bsnmp/bsnmp-1.12-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..41749c41b932 --- /dev/null +++ b/net-analyzer/bsnmp/bsnmp-1.12.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..5b3f7749d46d --- /dev/null +++ b/net-analyzer/bsnmp/files/bsnmpd.init @@ -0,0 +1,12 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..ecedda4aa2cc --- /dev/null +++ b/net-analyzer/bsnmp/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>bsd</herd> +</pkgmetadata> |