From b87bbde41ca998902bfe1e6feb4fa7e5e87b7e69 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 09:07:53 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20net-snm?= =?UTF-8?q?p-5.0.1-4.src.rpm=20Thu=20Jun=2027=202002=20Phil=20Knirsch=20=205.0.1-4=20-=20Added=20--enable-ucd-snmp-c?= =?UTF-8?q?ompatibility=20for=20compatibility=20with=20older=20=20=20=20?= =?UTF-8?q?=20version=20and=20fixed=20installation=20thereof.=20-=20Got=20?= =?UTF-8?q?rid=20of=20the=20perl(Tk)=20dependancy=20by=20removing=20snmpch?= =?UTF-8?q?eck.=20-=20Include=20/usr/include/ucd-snmp=20in=20the=20filelis?= =?UTF-8?q?t.=20Wed=20Jun=2026=202002=20Phil=20Knirsch=20=205.0.1-1=20-=20Updated=20to=205.0.1=20-=20Dropped=20--ena?= =?UTF-8?q?ble-reentrant=20as=20it's=20currently=20broken=20Tue=20Apr=2023?= =?UTF-8?q?=202002=20Phil=20Knirsch=20=205.0-1=20-=20?= =?UTF-8?q?Switch=20to=20latest=20stable=20version,=205.0=20-=20Renamed=20?= =?UTF-8?q?the=20packate=20to=20net-snmp=20and=20obsoleted=20ucd-snmp.=20W?= =?UTF-8?q?ed=20Apr=2017=202002=20Phil=20Knirsch=20?= =?UTF-8?q?=204.2.4-3=20-=20Fixed=20problem=20with=20reload=20in=20initscr?= =?UTF-8?q?ipt=20(#63526).=20Mon=20Apr=2015=202002=20Tim=20Powers=20=204.2.4-2=20-=20rebuilt=20in=20new=20environment=20?= =?UTF-8?q?Mon=20Apr=2015=202002=20Tim=20Powers=20=204.2.?= =?UTF-8?q?4-1=20-=20update=20to=204.2.4=20final=20Sat=20Apr=2013=202002?= =?UTF-8?q?=20Phil=20Knirsch=20=204.2.4.pre3-5=20-=20?= =?UTF-8?q?Added=20some=20missing=20files=20to=20the=20%files=20section.?= =?UTF-8?q?=20Tue=20Apr=2009=202002=20Phil=20Knirsch=20=204.2.4.pre3-4=20-=20Hardcoded=20the=20ETC=5FMNTTAB=20to=20p?= =?UTF-8?q?oint=20to=20"/etc/mtab".=20Mon=20Apr=2008=202002=20Phil=20Knirs?= =?UTF-8?q?ch=20=204.2.4.pre3-3=20-=20Removed=20the?= =?UTF-8?q?=20check=20for=20dbFOO=20as=20we=20don't=20want=20to=20add=20an?= =?UTF-8?q?other=20requirement.=20Fri=20Apr=2005=202002=20Phil=20Knirsch?= =?UTF-8?q?=20=204.2.4.pre3-2=20-=20Added=20missing?= =?UTF-8?q?=20BuildPrereq=20to=20openssl-devel=20(#61525)=20Thu=20Apr=2004?= =?UTF-8?q?=202002=20Phil=20Knirsch=20=204.2.4.pre3-1?= =?UTF-8?q?=20-=20Added=20ucd5820stat=20to=20the=20files=20section.=20-=20?= =?UTF-8?q?Updated=20to=20latest=20version=20(4.2.4.pre3)=20Mon=20Mar=2018?= =?UTF-8?q?=202002=20Phil=20Knirsch=20=204.2.4.pre2-1?= =?UTF-8?q?=20-=20Updated=20to=20latest=20version=20(4.2.4.pre2)=20Tue=20J?= =?UTF-8?q?an=2029=202002=20Phil=20Knirsch=20=204.2.3?= =?UTF-8?q?-4=20-=20Added=20the=20snmptrapd=20init=20script=20as=20per=20r?= =?UTF-8?q?equest=20(#49205)=20-=20Fixed=20the=20again=20broken=20rpm=20qu?= =?UTF-8?q?ery=20stuff=20(#57444)=20-=20Removed=20all=20old=20and=20none-u?= =?UTF-8?q?sed=20db=20related=20stuff=20(libs=20and=20header=20=20=20=20?= =?UTF-8?q?=20checks/files)=20Mon=20Jan=2007=202002=20Phil=20Knirsch=20=204.2.3-2=20-=20Included=20the=20Axioma=20Se?= =?UTF-8?q?curity=20Research=20fix=20for=20snmpnetstat=20from=20bugtraq.?= =?UTF-8?q?=20Mon=20Dec=2003=202001=20Phil=20Knirsch=20=20?= =?UTF-8?q?4.2.3-1=20-=20Update=20to=204.2.3=20final.=20-=20Fixed=20libtoo?= =?UTF-8?q?l/rpath=20buildroot=20pollution=20problem.=20-=20Fixed=20librar?= =?UTF-8?q?y=20naming=20problem.=20Fri=20Oct=2005=202001=20Philipp=20Knirs?= =?UTF-8?q?ch=20=20-=20Fixed=20a=20server=20segfault?= =?UTF-8?q?=20for=20snmpset=20operation=20(#53640).=20Thanks=20to=20Josh?= =?UTF-8?q?=20=20=20=20=20Giles=20and=20Wes=20Hardaker=20for=20the=20patch?= =?UTF-8?q?.=20Mon=20Sep=2010=202001=20Philipp=20Knirsch=20=20-=20Fixed=20problem=20with=20RUNTESTS=20script.=20Tue?= =?UTF-8?q?=20Sep=2004=202001=20Preston=20Brown=20=20-?= =?UTF-8?q?=20fixed=20patch=20related=20to=20bug=20#35016=20(Dell)=20Fri?= =?UTF-8?q?=20Aug=2024=202001=20Philipp=20Knirsch=20?= =?UTF-8?q?=204.2.1-6=20-=20Fixed=20snmpd=20description=20(#52366)=20Wed?= =?UTF-8?q?=20Aug=2022=202001=20Philipp=20Knirsch=20?= =?UTF-8?q?=20-=20Final=20bcm5820=20fix.=20Last=20one=20was=20broken.=20-?= =?UTF-8?q?=20Fixed=20bugzilla=20bug=20(#51960)=20where=20the=20binaries?= =?UTF-8?q?=20contained=20rpath=20=20=20=20=20references.=20Wed=20Aug=2015?= =?UTF-8?q?=202001=20Philipp=20Knirsch=20=20-=20Fixed?= =?UTF-8?q?=20a=20couple=20of=20security=20issues:=20o=20/tmp=20race=20and?= =?UTF-8?q?=20setgroups()=20privilege=20=20=20=20=20problem=20o=20Various?= =?UTF-8?q?=20buffer=20overflow=20and=20format=20string=20issues.=20o=20On?= =?UTF-8?q?e=20=20=20=20=20signedness=20problem=20in=20ASN=20handling.=20-?= =?UTF-8?q?=20Fixed=20an=20important=20RFE=20to=20support=20bcm5820=20card?= =?UTF-8?q?s.=20(#51125)=20Fri=20Jul=2020=202001=20Philipp=20Knirsch=20=20-=20Removed=20tkmib=20from=20the=20package?= =?UTF-8?q?=20once=20again=20as=20we=20don't=20ship=20the=20Tk.pm=20CPAN?= =?UTF-8?q?=20=20=20=20=20perl=20module=20required=20to=20run=20it=20(#493?= =?UTF-8?q?63)=20-=20Added=20missing=20Provides=20for=20the=20.so.0=20libr?= =?UTF-8?q?aries=20as=20rpm=20doesn't=20seem=20to=20=20=20=20=20find=20tho?= =?UTF-8?q?se=20during=20the=20build=20anymore=20(it=20used=20to)=20(#4638?= =?UTF-8?q?8)=20Thu=20Jul=2019=202001=20Philipp=20Knirsch=20=20-=20Enabled=20IPv6=20support=20(RFE=20#47764)=20-=20Ho?= =?UTF-8?q?pefully=20final=20fix=20of=20snmpwalk=20problem=20(#42153).=20T?= =?UTF-8?q?hanks=20to=20Douglas=20=20=20=20=20Warzecha=20for=20the=20patch?= =?UTF-8?q?=20and=20Matt=20Domsch=20for=20reporting=20the=20problem.=20Tue?= =?UTF-8?q?=20Jun=2026=202001=20Philipp=20Knirsch=20?= =?UTF-8?q?=20-=20Fixed=20smux=20compilation=20problems=20(#41452)=20-=20F?= =?UTF-8?q?ixed=20wrong=20paths=20displayed=20in=20manpages=20(#43053)=20M?= =?UTF-8?q?on=20Jun=2025=202001=20Philipp=20Knirsch=20?= =?UTF-8?q?=20-=20Updated=20to=204.2.1.=20Removed=202=20obsolete=20patches?= =?UTF-8?q?=20(fromcvs=20and=20#18153)=20-=20Include=20/usr/share/snmp/snm?= =?UTF-8?q?pconf=20in=20%files=20Wed=20Jun=2013=202001=20Than=20Ngo=20=20-=20fix=20to=20use=20libwrap=20in=20distro=20-?= =?UTF-8?q?=20add=20buildprereq:=20tcp=5Fwrappers=20Fri=20Jun=2001=202001?= =?UTF-8?q?=20Bill=20Nottingham=20=20-=20add=20a=20*ne?= =?UTF-8?q?w*=20patch=20for=20IP=20address=20return=20sizes=20Fri=20Apr=20?= =?UTF-8?q?20=202001=20Bill=20Nottingham=20=20-=20add?= =?UTF-8?q?=20patch=20so=20that=20only=20four=20bytes=20are=20returned=20f?= =?UTF-8?q?or=20IP=20addresses=20on=20ia64=20=20=20=20=20(#32244)=20Wed=20?= =?UTF-8?q?Apr=2011=202001=20Bill=20Nottingham=20=20-?= =?UTF-8?q?=20rebuild=20(missing=20alpha=20packages)=20Fri=20Apr=2006=2020?= =?UTF-8?q?01=20Matt=20Wilson=20=20-=20added=20ucd-snmp-4.?= =?UTF-8?q?2-null.patch=20to=20correcly=20handle=20a=20NULL=20value=20(#35?= =?UTF-8?q?016)=20Tue=20Apr=2003=202001=20Preston=20Brown=20=20-=20clean=20up=20deinstallation=20(#34168)=20Tue=20Mar?= =?UTF-8?q?=2027=202001=20Matt=20Wilson=20=20-=20return=20?= =?UTF-8?q?a=20usable=20RETVAL=20when=20running=20"service=20snmpd=20statu?= =?UTF-8?q?s"=20(#33571)=20Tue=20Mar=2013=202001=20Matt=20Wilson=20=20-=20configure=20with=20--enable-reentrant=20and=20a?= =?UTF-8?q?dded=20"smux"=20and=20"agentx"=20to=20--with-mib-modules=3D=20a?= =?UTF-8?q?rgument=20(#29626)=20Fri=20Mar=2002=202001=20Nalin=20Dahyabhai?= =?UTF-8?q?=20=20-=20rebuild=20in=20new=20environment=20?= =?UTF-8?q?Mon=20Feb=2026=202001=20Tim=20Powers=20=20-=20?= =?UTF-8?q?fixed=20initscript,=20for=20reload=20and=20restart=20it=20was?= =?UTF-8?q?=20start=20then=20stop,=20fixed.=20=20=20=20=20(#28477)=20Fri?= =?UTF-8?q?=20Feb=2002=202001=20Trond=20Eivind=20Glomsr=F8d=20=20-=20i18nize=20initscript=20Sat=20Jan=2006=202001=20Jeff?= =?UTF-8?q?=20Johnson=20=20-=20don't=20depend=20on=20/etc/?= =?UTF-8?q?init.d=20so=20that=20package=20will=20work=20with=206.2.=20-=20?= =?UTF-8?q?perl=20path=20fiddles=20no=20longer=20needed.=20-=20rely=20on?= =?UTF-8?q?=20brp-compress=20frpm=20rpm=20to=20compress=20man=20pages.=20-?= =?UTF-8?q?=20patch=20from=20ucd-snmp=20CVS=20(Wes=20Hardaker).=20-=20conf?= =?UTF-8?q?igure.in=20needs=20to=20check=20for=20rpm=20libraries=20correct?= =?UTF-8?q?ly=20(#23033).=20-=20add=20simple=20logrotate=20script=20(#2139?= =?UTF-8?q?9).=20-=20add=20options=20to=20create=20pidfile=20and=20log=20w?= =?UTF-8?q?ith=20syslog=20with=20addresses=20=20=20=20=20(#23476).=20Sat?= =?UTF-8?q?=20Dec=2030=202000=20Jeff=20Johnson=20=20-=20pa?= =?UTF-8?q?ckage=20for=20Red=20Hat=207.1.=20Thu=20Dec=2007=202000=20Wes=20?= =?UTF-8?q?Hardaker=20=20-=20update=20for?= =?UTF-8?q?=204.2=20Thu=20Oct=2012=202000=20Jeff=20Johnson=20=20-=20add=20explicit=20format=20for=20syslog=20call=20(#181?= =?UTF-8?q?53).=20Thu=20Jul=2020=202000=20Bill=20Nottingham=20=20-=20move=20initscript=20back=20Thu=20Jul=2020=202000?= =?UTF-8?q?=20Jeff=20Johnson=20=20-=20rebuild=20per=20Tron?= =?UTF-8?q?d's=20request.=20Tue=20Jul=2018=202000=20Nalin=20Dahyabhai=20=20-=20fix=20syntax=20error=20that=20crept=20in?= =?UTF-8?q?=20with=20condrestart=20Wed=20Jul=2012=202000=20Prospector=20=20-=20automatic=20rebuild=20Mon=20Jul=2010?= =?UTF-8?q?=202000=20Preston=20Brown=20=20-=20move=20in?= =?UTF-8?q?itscript=20and=20add=20condrestart=20magic=20Sat=20Jun=2017=202?= =?UTF-8?q?000=20Bill=20Nottingham=20=20-=20fix=20%att?= =?UTF-8?q?r=20on=20man=20pages=20Mon=20Jun=2012=202000=20Jeff=20Johnson?= =?UTF-8?q?=20=20-=20tkmib=20doco=20had=20#!/usr/bin/perl5?= =?UTF-8?q?5=20-=20include=20snmpcheck=20and=20tkmib=20again=20(still=20ne?= =?UTF-8?q?eds=20some=20CPAN=20module,=20=20=20=20=20however).=20Tue=20Jun?= =?UTF-8?q?=2006=202000=20Jeff=20Johnson=20=20-=20update?= =?UTF-8?q?=20to=204.1.2.=20-=20FHS=20packaging.=20-=20patch=20for=20rpm?= =?UTF-8?q?=204.0.=20Thu=20May=2018=202000=20Trond=20Eivind=20Glomsr=F8d?= =?UTF-8?q?=20=20-=20add=20version=20to=20buildroot=20-=20?= =?UTF-8?q?rebuilt=20with=20new=20libraries=20Sun=20Feb=2027=202000=20Jeff?= =?UTF-8?q?=20Johnson=20=20-=20default=20config=20was=20br?= =?UTF-8?q?oken=20(from=20Wes=20Hardaker)=20(#9752)=20Sun=20Feb=2013=20200?= =?UTF-8?q?0=20Jeff=20Johnson=20=20-=20compressed=20man=20?= =?UTF-8?q?pages.=20Fri=20Feb=2011=202000=20Wes=20Hardaker=20=20-=20update=20to=204.1.1=20Sat=20Feb=2005=202000?= =?UTF-8?q?=20Florian=20La=20Roche=20=20-=20ch?= =?UTF-8?q?ange=20%postun=20to=20%preun=20Thu=20Feb=2003=202000=20Elliot?= =?UTF-8?q?=20Lee=20=20-=20Don't=20ship=20tkmib,=20sin?= =?UTF-8?q?ce=20we=20don't=20ship=20the=20perl=20modules=20needed=20to=20r?= =?UTF-8?q?un=20it.=20=20=20=20=20(Bug=20#4881)=20Tue=20Aug=2031=201999=20?= =?UTF-8?q?Jeff=20Johnson=20=20-=20default=20config=20perm?= =?UTF-8?q?its=20RO=20access=20to=20system=20group=20only=20(Wed=20Hardake?= =?UTF-8?q?r).=20Sun=20Aug=2029=201999=20Jeff=20Johnson=20?= =?UTF-8?q?=20-=20implement=20suggestions=20from=20Wes=20Hardaker.=20Fri?= =?UTF-8?q?=20Aug=2027=201999=20Jeff=20Johnson=20=20-=20st?= =?UTF-8?q?ateless=20access=20to=20rpm=20database.=20Wed=20Aug=2025=201999?= =?UTF-8?q?=20Jeff=20Johnson=20=20-=20update=20to=204.0.1.?= =?UTF-8?q?=20Mon=20Aug=2016=201999=20Bill=20Nottingham=20=20-=20initscript=20munging=20Sat=20Jun=2012=201999=20Jeff?= =?UTF-8?q?=20Johnson=20=20-=20update=20to=203.6.2=20(#321?= =?UTF-8?q?9,#3259).=20-=20add=20missing=20man=20pages=20(#3057).=20Thu=20?= =?UTF-8?q?Apr=2008=201999=20Wes=20Hardaker=20=20-?= =?UTF-8?q?=20fix=20Source0=20location.=20-=20fix=20the=20snmpd.conf=20fil?= =?UTF-8?q?e=20to=20use=20real=20community=20names.=20Sun=20Mar=2021=20199?= =?UTF-8?q?9=20Cristian=20Gafton=20=20-=20auto=20rebuil?= =?UTF-8?q?d=20in=20the=20new=20build=20environment=20(release=203)=20Fri?= =?UTF-8?q?=20Mar=2019=201999=20Preston=20Brown=20=20-?= =?UTF-8?q?=20upgrade=20to=203.6.1,=20fix=20configuration=20file=20stuff.?= =?UTF-8?q?=20Wed=20Feb=2024=201999=20Preston=20Brown=20=20-=20Injected=20new=20description=20and=20group.=20Tue=20Feb?= =?UTF-8?q?=2002=201999=20Jeff=20Johnson=20=20-=20restore?= =?UTF-8?q?=20host=20resources=20mib=20-=20simplified=20config=20file=20-?= =?UTF-8?q?=20rebuild=20for=206.0.=20Tue=20Dec=2022=201998=20Bill=20Nottin?= =?UTF-8?q?gham=20=20-=20remove=20backup=20file=20to?= =?UTF-8?q?=20fix=20perl=20dependencies=20Tue=20Dec=2008=201998=20Jeff=20J?= =?UTF-8?q?ohnson=20=20-=20add=20all=20relevant=20rpm=20sc?= =?UTF-8?q?alars=20to=20host=20resources=20mib.=20Sun=20Dec=2006=201998=20?= =?UTF-8?q?Jeff=20Johnson=20=20-=20enable=20libwrap=20(#25?= =?UTF-8?q?3)=20-=20enable=20host=20module=20(rpm=20queries=20over=20SNMP!?= =?UTF-8?q?).=20Mon=20Oct=2012=201998=20Cristian=20Gafton=20=20-=20strip=20binaries=20Fri=20Oct=2002=201998=20Jeff=20J?= =?UTF-8?q?ohnson=20=20-=20update=20to=203.5.3.=20-=20don'?= =?UTF-8?q?t=20include=20snmpcheck=20until=20perl-SNMP=20is=20packaged.=20?= =?UTF-8?q?Thu=20Aug=2013=201998=20Jeff=20Johnson=20=20-?= =?UTF-8?q?=20ucd-snmpd.init:=20start=20daemon=20w/o=20-f.=20Tue=20Aug=200?= =?UTF-8?q?4=201998=20Jeff=20Johnson=20=20-=20don't=20star?= =?UTF-8?q?t=20snmpd=20unless=20requested=20-=20start=20snmpd=20after=20pc?= =?UTF-8?q?mcia.=20Sun=20Jun=2021=201998=20Jeff=20Johnson=20=20-=20all=20but=20config=20(especially=20SNMPv2p)=20ready=20?= =?UTF-8?q?for=20prime=20time=20Sat=20Jun=2020=201998=20Jeff=20Johnson=20=20-=20update=20to=203.5.=20Tue=20Dec=2030=20199?= =?UTF-8?q?7=20Otto=20Hammersmith=20=20-=20created=20the?= =?UTF-8?q?=20package...=20possibly=20replace=20cmu-snmp=20with=20this.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 1 + net-snmp.spec | 496 +++++++++++++++++++++++++++++++ sources | 1 + ucd-snmp-4.2.4.pre3-mnttab.patch | 19 ++ ucd5820stat | 2 + 5 files changed, 519 insertions(+) create mode 100644 net-snmp.spec create mode 100644 ucd-snmp-4.2.4.pre3-mnttab.patch create mode 100755 ucd5820stat diff --git a/.cvsignore b/.cvsignore index e69de29..ecf44a2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +net-snmp-5.0.1.tar.gz diff --git a/net-snmp.spec b/net-snmp.spec new file mode 100644 index 0000000..e326b44 --- /dev/null +++ b/net-snmp.spec @@ -0,0 +1,496 @@ +Summary: A collection of SNMP protocol tools and libraries. +Name: net-snmp +Version: 5.0.1 +Release: 4 +License: BSDish +Group: System Environment/Daemons +Source0: ftp://net-snmp.sourceforge.net/net-snmp-%{version}.tar.gz +Source1: ucd-snmpd.init +Source2: ucd-snmp.redhat.conf +Source3: ucd-snmpd.logrotate +Source4: ucd5820stat +Source5: ucd-snmptrapd.init +Patch1: ucd-snmp-4.2-ia64.patch +Patch2: ucd-snmp-4.2.1-manpage.patch +Patch3: ucd-snmp-4.2.1-walk.patch +Patch4: ucd-snmp-4.2.1-security3.patch +Patch5: ucd-snmp-4.2.1-tests_num.patch +Patch6: ucd-snmp-4.2.1-libtool.patch +Patch7: ucd-snmp-4.2.4.pre3-nodb.patch +Patch8: ucd-snmp-4.2.4.pre3-mnttab.patch +Prereq: /sbin/chkconfig +Obsoletes: ucd-snmp +BuildRoot: %{_tmppath}/%{name}-root +BuildPrereq: tcp_wrappers, openssl-devel + +%define __libtoolize /bin/true + +%{expand: %%define _includedir %{_includedir}/%{name}} + +%description +SNMP (Simple Network Management Protocol) is a protocol used for +network management. The NET-SNMP project includes various SNMP tools: +an extensible agent, an SNMP library, tools for requesting or setting +information from SNMP agents, tools for generating and handling SNMP +traps, a version of the netstat command which uses SNMP, and a Tk/Perl +mib browser. This package contains the snmpd and snmptrapd daemons, +documentation, etc. + +You will probably also want to install the net-snmp-utils package, +which contains NET-SNMP utilities. + +%package utils +Group: Applications/System +Summary: Network management utilities using SNMP, from the NET-SNMP project. +Requires: net-snmp = %{version} +Obsoletes: ucd-snmp-utils + +%description utils +The net-snmp-utils package contains various utilities for use with the +NET-SNMP network management project. + +Install this package if you need utilities for managing your network +using the SNMP protocol. You will also need to install the net-snmp +package. + +%package devel +Group: Development/Libraries +Summary: The development environment for the NET-SNMP project. +Requires: net-snmp = %{version} +Obsoletes: ucd-snmp-devel + +%description devel +The net-snmp-devel package contains the development libraries and +header files for use with the NET-SNMP project's network management +tools. + +Install the net-snmp-devel package if you would like to develop +applications for use with the NET-SNMP project's network management +tools. You'll also need to have the net-snmp and net-snmp-utils +packages installed. + +%prep +%setup -q +#%patch1 -p1 -b .ia64 +#%patch2 -p1 -b .manpage +#%patch3 -p1 -b .walk +#%patch4 -p1 -b .security3 +#%patch5 -p1 -b .tests_num +#%patch6 -p1 -b .libtool +#%patch7 -p1 -b .nodb +#%patch8 -p1 -b .mnttab + +%build +#perl -pi.bak -e 's/changequote/dnl changequote/' ./configure.in +#autoreconf -i +touch configure + +# First build the static library +# XXX remove privacy support? +%configure \ + --enable-static --enable-shared \ + --with-cflags="$RPM_OPT_FLAGS" \ + --with-sys-location="Unknown" \ + --with-logfile="/var/log/snmpd.log" \ + --with-persistent-directory="/var/net-snmp" \ + --with-mib-modules="host agentx smux" \ + --with-libwrap=/usr/lib \ + --sysconfdir=%{_sysconfdir} \ + --enable-ipv6 \ + --enable-ucd-snmp-compatibility \ + --with-sys-contact="root@localhost" </dev/null 2>&1 + /sbin/chkconfig --del snmpd + service snmptrapd stop >/dev/null 2>&1 + /sbin/chkconfig --del snmptrapd + # remove stale autogenerated file + rm -f %{_datadir}/snmp/mibs/.index +fi + +%postun +/sbin/ldconfig +if [ "$1" -ge "1" ]; then + service snmpd condrestart >/dev/null 2>&1 || : + service snmptrapd condrestart >/dev/null 2>&1 || : +fi + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root,-) +%doc AGENT.txt COPYING ChangeLog EXAMPLE.conf FAQ NEWS PORTING README* TODO +%doc local/passtest local/README.mib2c local/ipf-mod.pl +%dir %{_sysconfdir}/snmp +%config(noreplace,missingok) %{_sysconfdir}/snmp/snmpd.conf +%config(noreplace) %{_sysconfdir}/rc.d/init.d/snmpd +%config(noreplace) %{_sysconfdir}/rc.d/init.d/snmptrapd +%config(noreplace) %{_sysconfdir}/logrotate.d/snmpd +%{_datadir}/snmp +%{_libdir}/lib*.so.* +%{_bindir}/ucd5820stat +%{_sbindir}/snmpd +%{_sbindir}/snmptrapd +%attr(0644,root,root) %{_mandir}/man1/snmpd.1* +%attr(0644,root,root) %{_mandir}/man[58]/* + +%files utils +%defattr(-,root,root,-) + +%{_bindir}/fixproc +%{_bindir}/ipf-mod.pl +%{_bindir}/encode_keychange +%{_bindir}/mib2c +%{_bindir}/net-snmp-config +%{_bindir}/snmpbulkget +%{_bindir}/snmpbulkwalk +%{_bindir}/snmpconf +%{_bindir}/snmpdelta +%{_bindir}/snmpdf +%{_bindir}/snmpget +%{_bindir}/snmpgetnext +%{_bindir}/snmpinform +%{_bindir}/snmpnetstat +%{_bindir}/snmpset +%{_bindir}/snmpstatus +%{_bindir}/snmptable +%{_bindir}/snmptest +%{_bindir}/snmptranslate +%{_bindir}/snmptrap +%{_bindir}/snmpusm +%{_bindir}/snmpwalk +%{_bindir}/snmpvacm +%{_bindir}/traptoemail +%attr(0644,root,root) %{_mandir}/man1/snmpbulkwalk.1* +%attr(0644,root,root) %{_mandir}/man1/snmpbulkget.1* +%attr(0644,root,root) %{_mandir}/man1/snmpcmd.1* +%attr(0644,root,root) %{_mandir}/man1/snmpdelta.1* +%attr(0644,root,root) %{_mandir}/man1/snmpdf.1* +%attr(0644,root,root) %{_mandir}/man1/snmpget.1* +%attr(0644,root,root) %{_mandir}/man1/snmpgetnext.1* +%attr(0644,root,root) %{_mandir}/man1/snmpinform.1* +%attr(0644,root,root) %{_mandir}/man1/snmpnetstat.1* +%attr(0644,root,root) %{_mandir}/man1/snmpset.1* +%attr(0644,root,root) %{_mandir}/man1/snmpstatus.1* +%attr(0644,root,root) %{_mandir}/man1/snmptable.1* +%attr(0644,root,root) %{_mandir}/man1/snmptest.1* +%attr(0644,root,root) %{_mandir}/man1/snmptranslate.1* +%attr(0644,root,root) %{_mandir}/man1/snmptrap.1* +%attr(0644,root,root) %{_mandir}/man1/snmpusm.1* +%attr(0644,root,root) %{_mandir}/man1/snmpwalk.1* + +%files devel +%defattr(0644,root,root,0755) +%{_libdir}/*.so +%{_libdir}/*.a +%{_libdir}/*.la + +%{_includedir} +/usr/include/ucd-snmp + +%attr(0644,root,root) %{_mandir}/man3/* + +%changelog +* Thu Jun 27 2002 Phil Knirsch 5.0.1-4 +- Added --enable-ucd-snmp-compatibility for compatibility with older version + and fixed installation thereof. +- Got rid of the perl(Tk) dependancy by removing snmpcheck. +- Include /usr/include/ucd-snmp in the filelist. + +* Wed Jun 26 2002 Phil Knirsch 5.0.1-1 +- Updated to 5.0.1 +- Dropped --enable-reentrant as it's currently broken + +* Tue Apr 23 2002 Phil Knirsch 5.0-1 +- Switch to latest stable version, 5.0 +- Renamed the packate to net-snmp and obsoleted ucd-snmp. + +* Wed Apr 17 2002 Phil Knirsch 4.2.4-3 +- Fixed problem with reload in initscript (#63526). + +* Mon Apr 15 2002 Tim Powers 4.2.4-2 +- rebuilt in new environment + +* Mon Apr 15 2002 Tim Powers 4.2.4-1 +- update to 4.2.4 final + +* Sat Apr 13 2002 Phil Knirsch 4.2.4.pre3-5 +- Added some missing files to the %files section. + +* Tue Apr 09 2002 Phil Knirsch 4.2.4.pre3-4 +- Hardcoded the ETC_MNTTAB to point to "/etc/mtab". + +* Mon Apr 08 2002 Phil Knirsch 4.2.4.pre3-3 +- Removed the check for dbFOO as we don't want to add another requirement. + +* Fri Apr 05 2002 Phil Knirsch 4.2.4.pre3-2 +- Added missing BuildPrereq to openssl-devel (#61525) + +* Thu Apr 04 2002 Phil Knirsch 4.2.4.pre3-1 +- Added ucd5820stat to the files section. +- Updated to latest version (4.2.4.pre3) + +* Mon Mar 18 2002 Phil Knirsch 4.2.4.pre2-1 +- Updated to latest version (4.2.4.pre2) + +* Tue Jan 29 2002 Phil Knirsch 4.2.3-4 +- Added the snmptrapd init script as per request (#49205) +- Fixed the again broken rpm query stuff (#57444) +- Removed all old and none-used db related stuff (libs and header checks/files) + +* Mon Jan 07 2002 Phil Knirsch 4.2.3-2 +- Included the Axioma Security Research fix for snmpnetstat from bugtraq. + +* Mon Dec 03 2001 Phil Knirsch 4.2.3-1 +- Update to 4.2.3 final. +- Fixed libtool/rpath buildroot pollution problem. +- Fixed library naming problem. + +* Fri Oct 5 2001 Philipp Knirsch +- Fixed a server segfault for snmpset operation (#53640). Thanks to Josh Giles + and Wes Hardaker for the patch. + +* Mon Sep 10 2001 Philipp Knirsch +- Fixed problem with RUNTESTS script. + +* Tue Sep 4 2001 Preston Brown +- fixed patch related to bug #35016 (Dell) + +* Fri Aug 24 2001 Philipp Knirsch 4.2.1-6 +- Fixed snmpd description (#52366) + +* Wed Aug 22 2001 Philipp Knirsch +- Final bcm5820 fix. Last one was broken. +- Fixed bugzilla bug (#51960) where the binaries contained rpath references. + +* Wed Aug 15 2001 Philipp Knirsch +- Fixed a couple of security issues: + o /tmp race and setgroups() privilege problem + o Various buffer overflow and format string issues. + o One signedness problem in ASN handling. +- Fixed an important RFE to support bcm5820 cards. (#51125) + +* Fri Jul 20 2001 Philipp Knirsch +- Removed tkmib from the package once again as we don't ship the Tk.pm CPAN + perl module required to run it (#49363) +- Added missing Provides for the .so.0 libraries as rpm doesn't seem to find + those during the build anymore (it used to) (#46388) + +* Thu Jul 19 2001 Philipp Knirsch +- Enabled IPv6 support (RFE #47764) +- Hopefully final fix of snmpwalk problem (#42153). Thanks to Douglas Warzecha + for the patch and Matt Domsch for reporting the problem. + +* Tue Jun 26 2001 Philipp Knirsch +- Fixed smux compilation problems (#41452) +- Fixed wrong paths displayed in manpages (#43053) + +* Mon Jun 25 2001 Philipp Knirsch +- Updated to 4.2.1. Removed 2 obsolete patches (fromcvs and #18153) +- Include /usr/share/snmp/snmpconf in %files + +* Wed Jun 13 2001 Than Ngo +- fix to use libwrap in distro +- add buildprereq: tcp_wrappers + +* Fri Jun 1 2001 Bill Nottingham +- add a *new* patch for IP address return sizes + +* Fri Apr 20 2001 Bill Nottingham +- add patch so that only four bytes are returned for IP addresses on ia64 (#32244) + +* Wed Apr 11 2001 Bill Nottingham +- rebuild (missing alpha packages) + +* Fri Apr 6 2001 Matt Wilson +- added ucd-snmp-4.2-null.patch to correcly handle a NULL value (#35016) + +* Tue Apr 3 2001 Preston Brown +- clean up deinstallation (#34168) + +* Tue Mar 27 2001 Matt Wilson +- return a usable RETVAL when running "service snmpd status" (#33571) + +* Tue Mar 13 2001 Matt Wilson +- configure with --enable-reentrant and added "smux" and "agentx" to + --with-mib-modules= argument (#29626) + +* Fri Mar 2 2001 Nalin Dahyabhai +- rebuild in new environment + +* Mon Feb 26 2001 Tim Powers +- fixed initscript, for reload and restart it was start then stop, + fixed. (#28477) + +* Fri Feb 2 2001 Trond Eivind Glomsrød +- i18nize initscript + +* Sat Jan 6 2001 Jeff Johnson +- don't depend on /etc/init.d so that package will work with 6.2. +- perl path fiddles no longer needed. +- rely on brp-compress frpm rpm to compress man pages. +- patch from ucd-snmp CVS (Wes Hardaker). +- configure.in needs to check for rpm libraries correctly (#23033). +- add simple logrotate script (#21399). +- add options to create pidfile and log with syslog with addresses (#23476). + +* Sat Dec 30 2000 Jeff Johnson +- package for Red Hat 7.1. + +* Thu Dec 07 2000 Wes Hardaker +- update for 4.2 + +* Thu Oct 12 2000 Jeff Johnson +- add explicit format for syslog call (#18153). + +* Thu Jul 20 2000 Bill Nottingham +- move initscript back + +* Thu Jul 20 2000 Jeff Johnson +- rebuild per Trond's request. + +* Tue Jul 18 2000 Nalin Dahyabhai +- fix syntax error that crept in with condrestart + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Mon Jul 10 2000 Preston Brown +- move initscript and add condrestart magic + +* Sat Jun 17 2000 Bill Nottingham +- fix %%attr on man pages + +* Mon Jun 12 2000 Jeff Johnson +- tkmib doco had #!/usr/bin/perl55 +- include snmpcheck and tkmib again (still needs some CPAN module, however). + +* Tue Jun 6 2000 Jeff Johnson +- update to 4.1.2. +- FHS packaging. +- patch for rpm 4.0. + +* Thu May 18 2000 Trond Eivind Glomsrød +- add version to buildroot +- rebuilt with new libraries + +* Sun Feb 27 2000 Jeff Johnson +- default config was broken (from Wes Hardaker) (#9752) + +* Sun Feb 13 2000 Jeff Johnson +- compressed man pages. + +* Fri Feb 11 2000 Wes Hardaker +- update to 4.1.1 + +* Sat Feb 5 2000 Florian La Roche +- change %postun to %preun + +* Thu Feb 3 2000 Elliot Lee +- Don't ship tkmib, since we don't ship the perl modules needed to run it. +(Bug #4881) + +* Tue Aug 31 1999 Jeff Johnson +- default config permits RO access to system group only (Wed Hardaker). + +* Sun Aug 29 1999 Jeff Johnson +- implement suggestions from Wes Hardaker. + +* Fri Aug 27 1999 Jeff Johnson +- stateless access to rpm database. + +* Wed Aug 25 1999 Jeff Johnson +- update to 4.0.1. + +* Mon Aug 16 1999 Bill Nottingham +- initscript munging + +* Sat Jun 12 1999 Jeff Johnson +- update to 3.6.2 (#3219,#3259). +- add missing man pages (#3057). + +* Thu Apr 8 1999 Wes Hardaker +- fix Source0 location. +- fix the snmpd.conf file to use real community names. + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 3) + +* Fri Mar 19 1999 Preston Brown +- upgrade to 3.6.1, fix configuration file stuff. + +* Wed Feb 24 1999 Preston Brown +- Injected new description and group. + +* Tue Feb 2 1999 Jeff Johnson +- restore host resources mib +- simplified config file +- rebuild for 6.0. + +* Tue Dec 22 1998 Bill Nottingham +- remove backup file to fix perl dependencies + +* Tue Dec 8 1998 Jeff Johnson +- add all relevant rpm scalars to host resources mib. + +* Sun Dec 6 1998 Jeff Johnson +- enable libwrap (#253) +- enable host module (rpm queries over SNMP!). + +* Mon Oct 12 1998 Cristian Gafton +- strip binaries + +* Fri Oct 2 1998 Jeff Johnson +- update to 3.5.3. +- don't include snmpcheck until perl-SNMP is packaged. + +* Thu Aug 13 1998 Jeff Johnson +- ucd-snmpd.init: start daemon w/o -f. + +* Tue Aug 4 1998 Jeff Johnson +- don't start snmpd unless requested +- start snmpd after pcmcia. + +* Sun Jun 21 1998 Jeff Johnson +- all but config (especially SNMPv2p) ready for prime time + +* Sat Jun 20 1998 Jeff Johnson +- update to 3.5. + +* Tue Dec 30 1997 Otto Hammersmith +- created the package... possibly replace cmu-snmp with this. diff --git a/sources b/sources index e69de29..652b6ec 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f209cff622b4ffee830d54b68985d859 net-snmp-5.0.1.tar.gz diff --git a/ucd-snmp-4.2.4.pre3-mnttab.patch b/ucd-snmp-4.2.4.pre3-mnttab.patch new file mode 100644 index 0000000..97e9ca3 --- /dev/null +++ b/ucd-snmp-4.2.4.pre3-mnttab.patch @@ -0,0 +1,19 @@ +--- ucd-snmp-4.2.4.pre3/configure.mnttab Tue Apr 9 13:56:13 2002 ++++ ucd-snmp-4.2.4.pre3/configure Tue Apr 9 13:58:14 2002 +@@ -7148,15 +7148,7 @@ + if eval "test \"`echo '$''{'ac_cv_ETC_MNTTAB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +- ac_cv_ETC_MNTTAB="unknown" +-for i in /etc/mnttab /etc/mtab /etc/filesystems +- do +- if test -f $i; then +- ac_cv_ETC_MNTTAB="$i" +- break; +- fi +-done +- ++ ac_cv_ETC_MNTTAB="/etc/mtab" + fi + + echo "$ac_t""$ac_cv_ETC_MNTTAB" 1>&6 diff --git a/ucd5820stat b/ucd5820stat new file mode 100755 index 0000000..0c80f0e --- /dev/null +++ b/ucd5820stat @@ -0,0 +1,2 @@ +#!/bin/sh -f +[ -x /usr/bin/get5820stats ] && /usr/bin/get5820stats $@