Skip to content

Commit 10a97b6

Browse files
committed
Add net-snmp
1 parent 661b277 commit 10a97b6

File tree

3 files changed

+370
-0
lines changed

3 files changed

+370
-0
lines changed

recipes/net-snmp-feedstock/LICENSE

Lines changed: 294 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,294 @@
1+
Various copyrights apply to this package, listed in various separate
2+
parts below. Please make sure that you read all the parts.
3+
4+
---- Part 1: CMU/UCD copyright notice: (BSD like) -----
5+
6+
7+
Copyright 1989, 1991, 1992 by Carnegie Mellon University
8+
9+
Derivative Work - 1996, 1998-2000
10+
Copyright 1996, 1998-2000 The Regents of the University of California
11+
12+
All Rights Reserved
13+
14+
Permission to use, copy, modify and distribute this software and its
15+
documentation for any purpose and without fee is hereby granted,
16+
provided that the above copyright notice appears in all copies and
17+
that both that copyright notice and this permission notice appear in
18+
supporting documentation, and that the name of CMU and The Regents of
19+
the University of California not be used in advertising or publicity
20+
pertaining to distribution of the software without specific written
21+
permission.
22+
23+
CMU AND THE REGENTS OF THE UNIVERSITY OF CALIFORNIA DISCLAIM ALL
24+
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
25+
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL CMU OR
26+
THE REGENTS OF THE UNIVERSITY OF CALIFORNIA BE LIABLE FOR ANY SPECIAL,
27+
INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
28+
FROM THE LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
29+
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
30+
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
31+
32+
33+
---- Part 2: Networks Associates Technology, Inc copyright notice (BSD) -----
34+
35+
Copyright (c) 2001-2003, Networks Associates Technology, Inc
36+
All rights reserved.
37+
38+
Redistribution and use in source and binary forms, with or without
39+
modification, are permitted provided that the following conditions are met:
40+
41+
* Redistributions of source code must retain the above copyright notice,
42+
this list of conditions and the following disclaimer.
43+
44+
* Redistributions in binary form must reproduce the above copyright
45+
notice, this list of conditions and the following disclaimer in the
46+
documentation and/or other materials provided with the distribution.
47+
48+
* Neither the name of the Networks Associates Technology, Inc nor the
49+
names of its contributors may be used to endorse or promote
50+
products derived from this software without specific prior written
51+
permission.
52+
53+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
54+
IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
55+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
56+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
57+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
58+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
59+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
60+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
61+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
62+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
63+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64+
65+
---- Part 3: Cambridge Broadband Ltd. copyright notice (BSD) -----
66+
67+
Portions of this code are copyright (c) 2001-2003, Cambridge Broadband Ltd.
68+
All rights reserved.
69+
70+
Redistribution and use in source and binary forms, with or without
71+
modification, are permitted provided that the following conditions are met:
72+
73+
* Redistributions of source code must retain the above copyright notice,
74+
this list of conditions and the following disclaimer.
75+
76+
* Redistributions in binary form must reproduce the above copyright
77+
notice, this list of conditions and the following disclaimer in the
78+
documentation and/or other materials provided with the distribution.
79+
80+
* The name of Cambridge Broadband Ltd. may not be used to endorse or
81+
promote products derived from this software without specific prior
82+
written permission.
83+
84+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ``AS IS'' AND ANY
85+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
86+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
87+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
88+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
89+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
90+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
91+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
92+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
93+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
94+
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
95+
96+
97+
---- Part 4: Sun Microsystems, Inc. copyright notice (BSD) -----
98+
99+
Copyright © 2003 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
100+
California 95054, U.S.A. All rights reserved.
101+
102+
Use is subject to license terms below.
103+
104+
This distribution may include materials developed by third parties.
105+
106+
Sun, Sun Microsystems, the Sun logo and Solaris are trademarks or registered
107+
trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
108+
109+
Redistribution and use in source and binary forms, with or without
110+
modification, are permitted provided that the following conditions are met:
111+
112+
* Redistributions of source code must retain the above copyright notice,
113+
this list of conditions and the following disclaimer.
114+
115+
* Redistributions in binary form must reproduce the above copyright
116+
notice, this list of conditions and the following disclaimer in the
117+
documentation and/or other materials provided with the distribution.
118+
119+
* Neither the name of the Sun Microsystems, Inc. nor the
120+
names of its contributors may be used to endorse or promote
121+
products derived from this software without specific prior written
122+
permission.
123+
124+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
125+
IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
126+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
127+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
128+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
129+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
130+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
131+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
132+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
133+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
134+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
135+
136+
---- Part 5: Sparta, Inc copyright notice (BSD) -----
137+
138+
Copyright (c) 2003-2009, Sparta, Inc
139+
All rights reserved.
140+
141+
Redistribution and use in source and binary forms, with or without
142+
modification, are permitted provided that the following conditions are met:
143+
144+
* Redistributions of source code must retain the above copyright notice,
145+
this list of conditions and the following disclaimer.
146+
147+
* Redistributions in binary form must reproduce the above copyright
148+
notice, this list of conditions and the following disclaimer in the
149+
documentation and/or other materials provided with the distribution.
150+
151+
* Neither the name of Sparta, Inc nor the names of its contributors may
152+
be used to endorse or promote products derived from this software
153+
without specific prior written permission.
154+
155+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
156+
IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
157+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
158+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
159+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
160+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
161+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
162+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
163+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
164+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
165+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
166+
167+
---- Part 6: Cisco/BUPTNIC copyright notice (BSD) -----
168+
169+
Copyright (c) 2004, Cisco, Inc and Information Network
170+
Center of Beijing University of Posts and Telecommunications.
171+
All rights reserved.
172+
173+
Redistribution and use in source and binary forms, with or without
174+
modification, are permitted provided that the following conditions are met:
175+
176+
* Redistributions of source code must retain the above copyright notice,
177+
this list of conditions and the following disclaimer.
178+
179+
* Redistributions in binary form must reproduce the above copyright
180+
notice, this list of conditions and the following disclaimer in the
181+
documentation and/or other materials provided with the distribution.
182+
183+
* Neither the name of Cisco, Inc, Beijing University of Posts and
184+
Telecommunications, nor the names of their contributors may
185+
be used to endorse or promote products derived from this software
186+
without specific prior written permission.
187+
188+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
189+
IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
190+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
191+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
192+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
193+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
194+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
195+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
196+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
197+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
198+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
199+
200+
---- Part 7: Fabasoft R&D Software GmbH & Co KG copyright notice (BSD) -----
201+
202+
Copyright (c) Fabasoft R&D Software GmbH & Co KG, 2003
203+
oss@fabasoft.com
204+
Author: Bernhard Penz
205+
206+
Redistribution and use in source and binary forms, with or without
207+
modification, are permitted provided that the following conditions are met:
208+
209+
* Redistributions of source code must retain the above copyright notice,
210+
this list of conditions and the following disclaimer.
211+
212+
* Redistributions in binary form must reproduce the above copyright
213+
notice, this list of conditions and the following disclaimer in the
214+
documentation and/or other materials provided with the distribution.
215+
216+
* The name of Fabasoft R&D Software GmbH & Co KG or any of its subsidiaries,
217+
brand or product names may not be used to endorse or promote products
218+
derived from this software without specific prior written permission.
219+
220+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ``AS IS'' AND ANY
221+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
222+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
223+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
224+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
225+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
226+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
227+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
228+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
229+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
230+
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
231+
232+
---- Part 8: Apple Inc. copyright notice (BSD) -----
233+
234+
Copyright (c) 2007 Apple Inc. All rights reserved.
235+
236+
Redistribution and use in source and binary forms, with or without
237+
modification, are permitted provided that the following conditions
238+
are met:
239+
240+
1. Redistributions of source code must retain the above copyright
241+
notice, this list of conditions and the following disclaimer.
242+
2. Redistributions in binary form must reproduce the above
243+
copyright notice, this list of conditions and the following
244+
disclaimer in the documentation and/or other materials provided
245+
with the distribution.
246+
3. Neither the name of Apple Inc. ("Apple") nor the names of its
247+
contributors may be used to endorse or promote products derived
248+
from this software without specific prior written permission.
249+
250+
THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND
251+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
252+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
253+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS
254+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
255+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
256+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
257+
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
258+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
259+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
260+
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
261+
SUCH DAMAGE.
262+
263+
---- Part 9: ScienceLogic, LLC copyright notice (BSD) -----
264+
265+
Copyright (c) 2009, ScienceLogic, LLC
266+
All rights reserved.
267+
268+
Redistribution and use in source and binary forms, with or without
269+
modification, are permitted provided that the following conditions are
270+
met:
271+
272+
* Redistributions of source code must retain the above copyright notice,
273+
this list of conditions and the following disclaimer.
274+
275+
* Redistributions in binary form must reproduce the above copyright
276+
notice, this list of conditions and the following disclaimer in the
277+
documentation and/or other materials provided with the distribution.
278+
279+
* Neither the name of ScienceLogic, LLC nor the names of its
280+
contributors may be used to endorse or promote products derived
281+
from this software without specific prior written permission.
282+
283+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
284+
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
285+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
286+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
287+
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
288+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
289+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
290+
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
291+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
292+
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
293+
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
294+
DAMAGE.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
./configure \
4+
--with-defaults \
5+
--prefix=$PREFIX
6+
make
7+
make install
8+
9+
mkdir -p $PREFIX/etc/conda/activate.d
10+
cat <<EOF > $PREFIX/etc/conda/activate.d/net-snmp_activate.sh
11+
NETSNMPMIBDIR="${PREFIX}/share/snmp/mibs"
12+
[ -z "\$MIBDIRS" ] && export MIBDIRS="\$NETSNMPMIBDIR" || export MIBDIRS="\$MIBDIRS:\$NETSNMPMIBDIR"
13+
EOF
14+
15+
mkdir -p $PREFIX/etc/conda/deactivate.d
16+
cat <<EOF > $PREFIX/etc/conda/deactivate.d/net-snmp_deactivate.sh
17+
NETSNMPMIBDIR="${PREFIX}/share/snmp/mibs"
18+
export MIBDIRS=\$(echo -n \$MIBDIRS | tr ":" "\n" | grep -xv "\$NETSNMPMIBDIR" | tr "\n" ":" | rev | cut -c 2- | rev)
19+
EOF
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
context:
2+
version: "5.7.3"
3+
4+
package:
5+
name: net-snmp
6+
version: ${{ version }}
7+
8+
source:
9+
url: http://downloads.sourceforge.net/project/net-snmp/net-snmp/${{ version }}/net-snmp-${{ version }}.tar.gz
10+
sha256: 12ef89613c7707dc96d13335f153c1921efc9d61d3708ef09f3fc4a7014fb4f0
11+
12+
build:
13+
number: 0
14+
15+
requirements:
16+
build:
17+
- ${{ compiler('c') }}
18+
- ${{ compiler('cxx') }}
19+
- ${{ stdlib('c') }}
20+
- perl
21+
tests:
22+
- package_contents:
23+
files:
24+
- bin/encode_keychange
25+
- bin/snmpcmd
26+
- bin/snmptranslate
27+
- bin/snmpget
28+
- bin/snmpgetnext
29+
- bin/snmpbulkget
30+
- bin/snmpwalk
31+
- bin/snmpbulkwalk
32+
- bin/snmpset
33+
- bin/snmptest
34+
- bin/tkmib
35+
- bin/snmptable
36+
- bin/snmpdelta
37+
- bin/snmpusm
38+
- bin/snmpvacm
39+
- bin/snmpstatus
40+
- bin/snmpnetstat
41+
- bin/snmppdf
42+
- share/snmp/mibs/*.txt
43+
lib:
44+
- netsnmp
45+
- netsnmphelpers
46+
- netsnmpmibs
47+
- netsnmptrapd
48+
49+
about:
50+
homepage: http://www.net-snmp.org/
51+
license: BSD
52+
license_file: LICENSE
53+
summary: "Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6."
54+
55+
extra:
56+
recipe-maintainers:
57+
- simon-ess

0 commit comments

Comments
 (0)