]> git.pld-linux.org Git - packages/net-snmp.git/blob - net-snmp.spec
- small cleanup
[packages/net-snmp.git] / net-snmp.spec
1 # TODO:
2 # - Summary and %%description in all packages
3 # - init scripts
4 # - default configs
5 # - perl module 
6 # - review %%files (add missing)
7 # - review Requires:
8 # - review Obsoletes:
9 # - review Provides:
10 # - review ucd patches:
11 # -- link_libsnmp_with_libcrypto
12 # -- noinstalled
13 # -- ia64
14 # -- include-netinet_in_h
15 # -- dlopen-fix
16 # -- glibc21
17 # -- manpage
18 # -- no_libelf
19 # -- init_master-libwrap
20 %include        /usr/lib/rpm/macros.perl
21 Summary:        A collection of SNMP protocol tools
22 Summary(es):    Agente SNMP de la UCD
23 Summary(pl):    Kolekcja narzêdzi do obs³ugi protoko³u SNMP
24 Summary(pt_BR): Agente SNMP da UCD
25 Summary(ru):    îÁÂÏÒ ÕÔÉÌÉÔ ÄÌÑ ÐÒÏÔÏËÏÌÁ SNMP ÏÔ UC-Davis
26 Summary(uk):    îÁ¦ҠÕÔÉ̦ԠÄÌÑ ÐÒÏÔÏËÏÌÕ SNMP ×¦Ä UC-Davis
27 Name:           net-snmp
28 Version:        5.0.7
29 Release:        0.1
30 License:        BSD-like
31 Group:          Networking/Daemons
32 Source0:        http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
33 Source1:        %{name}d.init
34 Source2:        %{name}d.conf
35 Source3:        %{name}d.sysconfig
36 Source4:        %{name}trapd.init
37 Source5:        %{name}trapd.conf
38 Source6:        %{name}trapd.sysconfig
39 Source7:        ftp://ucd-snmp.ucdavis.edu/contrib/ucd-ipchains.tar.gz
40 Patch0:         %{name}-acinclude.patch
41 Patch1:         %{name}-acfix.patch
42 Patch2:         %{name}-rpm-implicit-libs.patch
43 Patch3:         %{name}-DESTDIR.patch
44 URL:            http://www.net-snmp.org/
45 BuildRequires:  autoconf >= 2.57-3
46 BuildRequires:  automake
47 BuildRequires:  libtool >= 1.4
48 BuildRequires:  libwrap-devel
49 BuildRequires:  openssl-devel >= 0.9.6a
50 BuildRequires:  perl-devel >= 5.6.1
51 BuildRequires:  rpm-devel >= 4.0
52 BuildRequires:  rpm-perlprov >= 3.0.3-16
53 PreReq:         rc-scripts >= 0.2.0
54 PreReq:         %{name}-libs = %{version}
55 Requires(post,preun):   /sbin/chkconfig
56 Requires:       /usr/bin/setsid
57 Provides:       snmpd
58 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 Obsoletes:      cmu-snmp
60 Obsoletes:      snmpd
61 Obsoletes:      ucd-snmp
62
63 %define         _sysconfdir     /etc
64 %define         logfile         /var/log/snmpd.log
65
66 %description
67 SNMP (Simple Network Management Protocol) is a protocol used for
68 network management (hence the name). The UCD-SNMP project includes
69 various SNMP tools: an extensible agent, an SNMP library, tools for
70 requesting or setting information from SNMP agents, tools for
71 generating and handling SNMP traps, a version of the netstat command
72 which uses SNMP, and a Tk/Perl mib browser. This package contains the
73 snmpd daemon, documentation, etc.
74
75 Install the ucd-snmp package if you need network management tools. You
76 will probably also want to install the ucd-snmp-utils package, which
77 contains UCD-SNMP utilities.
78
79 %description -l es
80 Este paquete se deriva de la implementación del Protocolo Simple de
81 Gestión de Redes versión 2 (SNMPv2) de la Universidad Carnegie Mellon.
82 Útil para administrar redes y hacer contabilidad.
83
84 %description -l pl
85 SNMP (Simple Network Management Protocol) jest protoko³ej u¿ywanym do
86 zarz±dzania sieciami. Pakiet zawiera narzêdzia: rozbudowywalnego
87 agenta, bibliotekê SNMP, narzêdzia do odpytywania oraz ustawiania
88 informacji poprzez agentów SNMP, narzêdzia do generowania i obs³ugi
89 pu³apek SNMP, wersjê komendy netstat u¿ywaj±c± SNMP, przegl±darkê mib
90 w Tk/Perl, deamona, dokumentacjê itp.
91
92 %description -l pt_BR
93 Este pacote é derivado da implementação do Protocolo Simples de
94 Gerenciamento de Redes versão 2 (SNMPv2) da Universidade Carnegie
95 Mellon. Útil para gerenciar redes e fazer contabilidade.
96
97 %description -l ru
98 SNMP (Simple Network Management Protocol) - ÜÔÏ ÐÒÏÔÏËÏÌ, ÉÓÐÏÌØÚÕÅÍÙÊ
99 ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). ðÒÏÅËÔ UCD-SNMP ×ËÌÀÞÁÅÔ
100 ÒÁÚÎÏÏÂÒÁÚÎÙÅ SNMP-ÕÔÉÌÉÔÙ: ÒÁÓÛÉÒÑÅÍÙÊ ÁÇÅÎÔ, ÂÉÂÌÉÏÔÅËÁ SNMP,
101 ÕÔÉÌÉÔÙ ÄÌÑ ÚÁÐÒÏÓÁ ÉÌÉ ÕÓÔÁÎÏ×ËÉ ÉÎÆÏÒÍÁÃÉÉ ÏÔ SNMP-ÁÇÅÎÔÏ×, ÕÔÉÌÉÔÙ
102 ÄÌÑ ÇÅÎÅÒÁÃÉÉ É ÏÂÒÁÂÏÔËÉ SNMP-ÔÒÁÐÏ×, ×ÅÒÓÉÑ ËÏÍÁÎÄÙ netstat,
103 ÉÓÐÏÌØÚÕÀÝÅÊ SNMP, É mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ
104 ÄÅÍÏÎÙ snmpd É snmptrapd, ÄÏËÕÍÅÎÔÁÃÉÀ É Ô.Ä.
105
106 %description -l uk
107 SNMP (Simple Network Management Protocol) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
108 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ (ÚצÄÓÉ ¦ ÎÁÚ×Á). ðÒÏÅËÔ UCD-SNMP
109 ͦÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ SNMP-ÕÔÉ̦ÔÉ: ÒÏÚÛÉÒÀ×ÁÎÉÊ ÁÇÅÎÔ, Â¦Â̦ÏÔÅËÁ
110 SNMP, ÕÔÉ̦ÔÉ ÄÌÑ ÚÁÐÒÏÓÕ ÔÁ ×ÓÔÁÎÏ×ÌÅÎÎÑ ¦ÎÆÏÒÍÁ槠צĠNMP-ÁÇÅÎÔ¦×,
111 ÕÔÉ̦ÔÉ ÄÌÑ ÇÅÎÅÒÁ槠ÔÁ ÏÂÒÏÂËÉ SNMP-ÔÒÁЦ×, ×ÅÒӦѠËÏÍÁÎÄÉ netstat,
112 ÑËÁ ×ÉËÏÒÉÓÔÏ×Õ¤ SNMP, ÔÁ mib-ÂÒÁÕÚÅÒ ÎÁ Tk/Perl. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ
113 ÄÅÍÏÎÉ snmpd ÔÁ snmptrapd, ÄÏËÕÍÅÎÔÁæÀ ¦ Ô.¦.
114
115 %package libs
116 Summary:        NET SNMP libraries
117 Summary(pl):    Biblioteki SNMP
118 Group:          Libraries
119
120 %description libs
121 NET SNMP libraries.
122
123 %description libs -l pl
124 Biblioteki SNMP.
125
126 %package utils
127 Summary:        Network management utilities using SNMP, from the NET-SNMP project
128 Summary(es):    Utilitarios del SNMP de la UCD
129 Summary(pl):    Narzêdzia u¿ywaj±ce protoko³u SNMP
130 Summary(pt_BR): Utilitários do SNMP da UCD
131 Summary(ru):    õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
132 Summary(uk):    õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
133 Group:          Applications/System
134 Requires:       %{name}-libs = %{version}
135 Obsoletes:      cmu-snmp-utils
136 Obsoletes:      ucd-snmp-utils
137
138 %description utils
139 The ucd-snmp package contains various utilities for use with the
140 UCD-SNMP network management project.
141
142 Install this package if you need utilities for managing your network
143 using the SNMP protocol. You'll also need to install the ucd-snmp
144 package.
145
146 %description utils -l es
147 Varios utilitarios para uso con el SNMP de la UCD. Contiene
148 utilitarios como: snmpwalk, snmptest y otros.
149
150 %description utils -l pl
151 Ró¿nego rodzaju narzêdzia do u¿ytku z programem %{name}.
152
153 %description utils -l pt_BR
154 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
155 como: snmpwalk, snmptest e outros.
156
157 %description utils -l ru
158 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
159 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ UCD-SNMP.
160
161 %description utils -l uk
162 ðÁËÅÔ ucd-snmp-utils Í¦ÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
163 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ UCD-SNMP.
164
165 %package utils-perl
166 Summary:        Network management utilities using SNMP, from the UCD-SNMP project
167 Summary(pl):    Narzêdzia u¿ywaj±ce protoko³u SNMP
168 Group:          Applications/System
169 Requires:       %{name} = %{version}
170 Requires:       perl-Term-ReadKey
171 Requires:       perl-Tk
172 Obsoletes:      cmu-snmp-utils
173 Obsoletes:      ucd-snmp-utils-perl
174
175 %description utils-perl
176 The ucd-snmp package contains various utilities for use with the
177 UCD-SNMP network management project.
178
179 Install this package if you need utilities for managing your network
180 using the SNMP protocol. You'll also need to install the ucd-snmp
181 package.
182
183 %description utils-perl -l pl
184 Ró¿nego rodzaju narzêdzia do u¿ytku z programem %{name}.
185
186 %package snmptrapd
187 Summary:        SNMP trap daemon
188 Summary(pl):    Demon obs³uguj±cy pu³apki SNMP
189 Group:          Applications/System
190 PreReq:         %{name} = %{version}
191 Requires(post,preun):   /sbin/chkconfig
192 Requires:       rc-scripts >= 0.2.0
193 Obsoletes:      cmu-snmp-utils
194 Obsoletes:      ucd-snmp-snmptrapd
195
196 %description snmptrapd
197 The ucd-snmp-snmptrapd package contains snmp trap daemon.
198
199 %description snmptrapd -l pl
200 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
201
202 %package devel
203 Summary:        The development environment for the UCD-SNMP project
204 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
205 Summary(pl):    Pliki dla developerów u¿ywaj±cych %{name}
206 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
207 Summary(ru):    óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
208 Summary(uk):    óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
209 Group:          Development/Libraries
210 Requires:       %{name}-libs = %{version}
211 Requires:       openssl-devel
212
213 %description devel
214 The ucd-snmp-devel package contains the development libraries and
215 header files for use with the UCD-SNMP project's network management
216 tools.
217
218 Install the ucd-snmp-devel package if you would like to develop
219 applications for use with the UCD-SNMP project's network management
220 tools. You'll also need to have the ucd-snmp and ucd-snmp-utils
221 packages installed.
222
223 %description devel -l es
224 Estas son las bibliotecas y archivos de inclusión para desarrollo con
225 el SNMP de la UCD. Con este paquete es posible la creación de
226 programas para uso en la gestión de redes.
227
228 %description devel -l pl
229 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
230 aplikacji u¿ywaj±cych protoko³u SNMP.
231
232 %description devel -l pt_BR
233 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
234 com o SNMP da UCD. Com este pacote é possível a criação de programas
235 para uso no gerenciamento de redes.
236
237 %description devel -l ru
238 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
239 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
240
241 %description devel -l uk
242 ðÁËÅÔ ucd-snmp-devel Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
243 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
244
245 %package static
246 Summary:        Static UCD-SNMP libraries
247 Summary(es):    Static libraries for ucd-snmp development
248 Summary(pl):    Statyczne biblioteki %{name}
249 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
250 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
251 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
252 Group:          Development/Libraries
253 Requires:       %{name}-devel = %{version}
254
255 %description static
256 Static UCD-SNMP libraries.
257
258 %description static -l es
259 Static libraries for ucd-snmp development
260
261 %description static -l pl
262 Statyczne biblioteki %{name}.
263
264 %description static -l pt_BR
265 Bibliotecas estáticas para desenvolvimento com ucd-snmp
266
267 %package compat-devel
268 Summary:        The development environment for the UCD-SNMP project
269 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
270 Summary(pl):    Pliki dla developerów u¿ywaj±cych %{name}
271 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
272 Summary(ru):    óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
273 Summary(uk):    óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
274 Group:          Development/Libraries
275 Requires:       %{name}-libs = %{version}
276 Requires:       openssl-devel
277 Obsoletes:      cmu-snmp-devel
278 Obsoletes:      ucd-snmp-devel
279
280 %description compat-devel
281 The ucd-snmp-devel package contains the development libraries and
282 header files for use with the UCD-SNMP project's network management
283 tools.
284
285 Install the ucd-snmp-devel package if you would like to develop
286 applications for use with the UCD-SNMP project's network management
287 tools. You'll also need to have the ucd-snmp and ucd-snmp-utils
288 packages installed.
289
290 %description compat-devel -l es
291 Estas son las bibliotecas y archivos de inclusión para desarrollo con
292 el SNMP de la UCD. Con este paquete es posible la creación de
293 programas para uso en la gestión de redes.
294
295 %description compat-devel -l pl
296 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
297 aplikacji u¿ywaj±cych protoko³u SNMP.
298
299 %description compat-devel -l pt_BR
300 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
301 com o SNMP da UCD. Com este pacote é possível a criação de programas
302 para uso no gerenciamento de redes.
303
304 %description compat-devel -l ru
305 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
306 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
307
308 %description compat-devel -l uk
309 ðÁËÅÔ ucd-snmp-devel Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
310 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
311
312 %package compat-static
313 Summary:        Static UCD-SNMP libraries
314 Summary(es):    Static libraries for ucd-snmp development
315 Summary(pl):    Statyczne biblioteki %{name}
316 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
317 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
318 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
319 Group:          Development/Libraries
320 Requires:       %{name}-devel = %{version}
321 Obsoletes:      ucd-snmp-static
322
323 %description compat-static
324 Static UCD-SNMP libraries.
325
326 %description compat-static -l es
327 Static libraries for ucd-snmp development
328
329 %description compat-static -l pl
330 Statyczne biblioteki %{name}.
331
332 %description compat-static -l pt_BR
333 Bibliotecas estáticas para desenvolvimento com ucd-snmp
334
335 %package snmpconf
336 Summary:        snmpconf
337 Group:          Applications/System
338
339 %description snmpconf
340 snmpconf
341
342 %package tkmib
343 Summary:        MIB browser in TK
344 Group:          Applications/System
345
346 %description tkmib
347 MIB browser in TK
348
349 %prep
350 %setup -q -a7
351 %patch0 -p1
352 %patch1 -p1
353 %patch2 -p1
354 %patch3 -p1
355
356
357 %build
358 %{__libtoolize}
359 %{__aclocal}
360 %{__autoheader}
361 %{__autoconf}
362 %configure \
363         --with-logfile="%{logfile}" \
364         --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
365         --with-ldflags="%{rpmldflags}" \
366         --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
367         --with-sys-location="Unknown" \
368         --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
369                 agentx target misc/ipfwacc tunnel" \
370         --with-libwrap=%{_prefix} \
371         --with-openssl=%{_prefix} \
372         --disable-debugging \
373         --with-persistent-directory="/var/lib/net-snmp" \
374         --enable-ipv6 \
375         --enable-reentrant \
376         --with-sys-contact="root@localhost" \
377         --enable-ucd-snmp-compatibility \
378         --with-defaults \
379         --with-default-snmp-version=3 \
380         --enable-shared
381 # ucd-snmp/diskio
382 %{__make}
383
384 # symlinks to allow build perl module w/o installed ucd-snmp
385 #ln -sf snmplib ucd-snmp
386 #ln -sf ../ucd-snmp-config.h ucd-snmp/ucd-snmp-config.h
387 #cd perl/SNMP
388 #echo "%{_datadir}/snmp/mibs" | perl Makefile.PL
389 #%{__make} OPTIMIZE="%{rpmcflags}"
390
391 %install
392 rm -rf $RPM_BUILD_ROOT
393 install -d $RPM_BUILD_ROOT/{etc/{snmp,rc.d/init.d,sysconfig},/var/log}
394
395 %{__make} install DESTDIR=$RPM_BUILD_ROOT
396
397 #install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
398 #:> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
399 :> $RPM_BUILD_ROOT%{logfile}
400
401 #install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
402 #install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
403 #install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
404
405 #install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
406 #install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
407 #install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
408
409 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
410 #       $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
411
412 #cd perl/SNMP
413 #%{__make} install DESTDIR=$RPM_BUILD_ROOT
414
415 %clean
416 rm -rf $RPM_BUILD_ROOT
417
418 %post
419 #/sbin/chkconfig --add snmpd
420 #if [ -f /var/lock/subsys/snmpd ]; then
421 #       /etc/rc.d/init.d/snmpd restart >&2
422 #else
423 #       echo "Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon." >&2
424 #fi
425 touch %{logfile}
426 chmod 640 %{logfile}
427
428 #%preun
429 #if [ "$1" = "0" ]; then
430 #       if [ -f /var/lock/subsys/snmpd ]; then
431 #               /etc/rc.d/init.d/snmpd stop >&2
432 #       fi
433 #       /sbin/chkconfig --del snmpd
434 #fi
435
436 %post   libs -p /sbin/ldconfig
437 %postun libs -p /sbin/ldconfig
438
439 %post snmptrapd
440 #/sbin/chkconfig --add snmptrapd
441 #if [ -f /var/lock/subsys/snmptrapd ]; then
442 #       /etc/rc.d/init.d/snmptrapd restart >&2
443 #else
444 #       echo "Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon." >&2
445 #fi
446 touch %{logfile}
447 chmod 640 %{logfile}
448
449 #%preun snmptrapd
450 #if [ "$1" = "0" ]; then
451 #       if [ -f /var/lock/subsys/snmptrapd ]; then
452 #               /etc/rc.d/init.d/snmptrapd stop >&2
453 #       fi
454 #       /sbin/chkconfig --del snmptrapd
455 #fi
456
457 %files
458 %defattr(644,root,root,755)
459 %doc README local
460 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
461 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
462
463 #%attr(754,root,root) /etc/rc.d/init.d/snmpd
464 #%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmpd
465
466 %dir %{_sysconfdir}/snmp
467 #%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.conf
468 #%attr(640,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.local.conf
469
470 %attr(755,root,root) %{_sbindir}/snmpd
471
472 %{_mandir}/man1/snmpd.1*
473 %{_mandir}/man5/snmpd.conf.5*
474 %{_mandir}/man5/variables.5*
475
476 %attr(640,root,root) %ghost %{logfile}
477
478 %files libs
479 %defattr(644,root,root,755)
480 %attr(755,root,root) %{_libdir}/lib*.so.*.*
481
482 %dir %{_datadir}/snmp
483
484 %{_datadir}/snmp/mibs
485
486 %files utils
487 %defattr(644,root,root,755)
488 %attr(755,root,root) %{_bindir}/encode_keychange
489 %attr(755,root,root) %{_bindir}/snmpbulkget
490 %attr(755,root,root) %{_bindir}/snmpbulkwalk
491 %attr(755,root,root) %{_bindir}/snmpdelta
492 %attr(755,root,root) %{_bindir}/snmpget
493 %attr(755,root,root) %{_bindir}/snmpgetnext
494 %attr(755,root,root) %{_bindir}/snmpnetstat
495 %attr(755,root,root) %{_bindir}/snmpset
496 %attr(755,root,root) %{_bindir}/snmpstatus
497 %attr(755,root,root) %{_bindir}/snmptable
498 %attr(755,root,root) %{_bindir}/snmptest
499 %attr(755,root,root) %{_bindir}/snmptranslate
500 %attr(755,root,root) %{_bindir}/snmptrap
501 %attr(755,root,root) %{_bindir}/snmpusm
502 %attr(755,root,root) %{_bindir}/snmpwalk
503 %attr(755,root,root) %{_bindir}/snmpdf
504 %attr(755,root,root) %{_bindir}/snmpinform
505 %attr(755,root,root) %{_bindir}/snmpvacm
506
507 #%{_datadir}/snmp/snmpconf/snmp.conf
508
509 %{_mandir}/man1/snmpbulkget.1*
510 %{_mandir}/man1/snmpbulkwalk.1*
511 %{_mandir}/man1/snmpcmd.1*
512 %{_mandir}/man1/snmpdelta.1*
513 %{_mandir}/man1/snmpget.1*
514 %{_mandir}/man1/snmpgetnext.1*
515 %{_mandir}/man1/snmpnetstat.1*
516 %{_mandir}/man1/snmpset.1*
517 %{_mandir}/man1/snmpstatus.1*
518 %{_mandir}/man1/snmptable.1*
519 %{_mandir}/man1/snmptest.1*
520 %{_mandir}/man1/snmptranslate.1*
521 %{_mandir}/man1/snmptrap.1*
522 %{_mandir}/man1/snmpusm.1*
523 %{_mandir}/man1/snmpwalk.1*
524 %{_mandir}/man1/snmpdf.1*
525 %{_mandir}/man1/snmpinform.1*
526 %{_mandir}/man5/snmp.conf.5*
527 %{_mandir}/man5/snmp_config.5*
528
529 %files utils-perl
530 %defattr(644,root,root,755)
531 #%doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
532 #%attr(755,root,root) %{_bindir}/mib2c
533 #%attr(755,root,root) %{_bindir}/snmpcheck
534 #%attr(755,root,root) %{_bindir}/snmpconf
535 #%attr(755,root,root) %{_bindir}/tkmib
536 #%{_datadir}/snmp/mib2c*
537 #%{_mandir}/man1/snmpconf.1*
538 #%{perl_sitearch}/SNMP.pm
539 #%dir %{perl_sitearch}/auto/SNMP
540 #%{perl_sitearch}/auto/SNMP/autosplit.ix
541 #%{perl_sitearch}/auto/SNMP/SNMP.bs
542 #%attr(755,root,root) %{perl_sitearch}/auto/SNMP/SNMP.so
543
544 %files snmptrapd
545 %defattr(644,root,root,755)
546 %attr(755,root,root) %{_sbindir}/snmptrapd
547 #%attr(754,root,root) /etc/rc.d/init.d/snmptrapd
548 #%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmptrapd
549 #%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmptrapd.conf
550 %{_mandir}/man5/snmptrapd.conf.5*
551 %{_mandir}/man8/snmptrapd.8*
552
553 %files devel
554 %defattr(644,root,root,755)
555 %attr(755,root,root) %{_bindir}/mib2c
556 %attr(755,root,root) %{_bindir}/net-snmp-config
557 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
558 %{_libdir}/libnet*.la
559 %{_includedir}/net-snmp
560 %{_datadir}/snmp/mib2c*
561 %{_mandir}/man1/mib2c.1*
562 %{_mandir}/man3/*
563
564 %files compat-devel
565 %defattr(644,root,root,755)
566 %{_libdir}/libsnmp.la
567 %attr(755,root,root) %{_libdir}/libsnmp.so
568 %{_includedir}/ucd-snmp
569
570 %files static
571 %defattr(644,root,root,755)
572 %attr(0644,root,root) %{_libdir}/libnet*.a
573
574 %files compat-static
575 %defattr(644,root,root,755)
576 %attr(0644,root,root) %{_libdir}/libsnmp.a
577
578 %files snmpconf
579 %defattr(644,root,root,755)
580 %attr(0755,root,root) %{_bindir}/snmpconf
581 %{_mandir}/man1/snmpconf.1*
582 %{_datadir}/snmp/snmpconf-data
583
584 %files tkmib
585 %defattr(644,root,root,755)
586 %attr(0755,root,root) %{_bindir}/tkmib
This page took 0.383485 seconds and 4 git commands to generate.