]> git.pld-linux.org Git - packages/net-snmp.git/blob - net-snmp.spec
- fix compat subpackage requires
[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 Obsoletes:      ucd-snmp-libs
120 Requires:       %{name}-mibs = %{version}
121
122 %description libs
123 NET SNMP libraries.
124
125 %description libs -l pl
126 Biblioteki SNMP.
127
128 %package compat-libs
129 Summary:        UCD SNMP libraries
130 Summary(pl):    Biblioteki SNMP
131 Group:          Libraries
132 Obsoletes:      ucd-snmp-libs
133 Requires:       %{name}-mibs = %{version}
134
135 %description compat-libs
136 UCD SNMP libraries.
137
138 %description compat-libs -l pl
139 Biblioteki SNMP.
140
141 %package mibs
142 Summary:        MIB database
143 Group:          Applications/System
144
145 %description mibs
146 MIB database
147
148 %package utils
149 Summary:        Network management utilities using SNMP, from the NET-SNMP project
150 Summary(es):    Utilitarios del SNMP de la UCD
151 Summary(pl):    Narzêdzia u¿ywaj±ce protoko³u SNMP
152 Summary(pt_BR): Utilitários do SNMP da UCD
153 Summary(ru):    õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÏ SNMP ÉÚ ÐÒÏÅËÔÁ NET-SNMP
154 Summary(uk):    õÔÉ̦ÔÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÏ SNMP Ú ÐÒÏÅËÔÕ NET-SNMP
155 Group:          Applications/System
156 Requires:       %{name}-libs = %{version}
157 Obsoletes:      cmu-snmp-utils
158 Obsoletes:      ucd-snmp-utils
159
160 %description utils
161 The ucd-snmp package contains various utilities for use with the
162 UCD-SNMP network management project.
163
164 Install this package if you need utilities for managing your network
165 using the SNMP protocol. You'll also need to install the ucd-snmp
166 package.
167
168 %description utils -l es
169 Varios utilitarios para uso con el SNMP de la UCD. Contiene
170 utilitarios como: snmpwalk, snmptest y otros.
171
172 %description utils -l pl
173 Ró¿nego rodzaju narzêdzia do u¿ytku z programem %{name}.
174
175 %description utils -l pt_BR
176 Vários utilitários para uso com o SNMP da UCD. Contém utilitários
177 como: snmpwalk, snmptest e outros.
178
179 %description utils -l ru
180 ðÁËÅÔ ucd-snmp-utils ÓÏÄÅÒÖÉÔ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
181 × ÐÒÏÅËÔÅ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ UCD-SNMP.
182
183 %description utils -l uk
184 ðÁËÅÔ ucd-snmp-utils Í¦ÓÔÉÔØ Ò¦ÚÎÏÍÁΦÔΦ ÕÔÉ̦ÔÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ ×
185 ÐÒÏÅËÔ¦ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ UCD-SNMP.
186
187 %package utils-perl
188 Summary:        Network management utilities using SNMP, from the UCD-SNMP project
189 Summary(pl):    Narzêdzia u¿ywaj±ce protoko³u SNMP
190 Group:          Applications/System
191 Requires:       %{name} = %{version}
192 Requires:       perl-Term-ReadKey
193 Requires:       perl-Tk
194 Obsoletes:      cmu-snmp-utils
195 Obsoletes:      ucd-snmp-utils-perl
196
197 %description utils-perl
198 The ucd-snmp package contains various utilities for use with the
199 UCD-SNMP network management project.
200
201 Install this package if you need utilities for managing your network
202 using the SNMP protocol. You'll also need to install the ucd-snmp
203 package.
204
205 %description utils-perl -l pl
206 Ró¿nego rodzaju narzêdzia do u¿ytku z programem %{name}.
207
208 %package snmptrapd
209 Summary:        SNMP trap daemon
210 Summary(pl):    Demon obs³uguj±cy pu³apki SNMP
211 Group:          Applications/System
212 PreReq:         %{name} = %{version}
213 Requires(post,preun):   /sbin/chkconfig
214 Requires:       rc-scripts >= 0.2.0
215 Obsoletes:      cmu-snmp-utils
216 Obsoletes:      ucd-snmp-snmptrapd
217
218 %description snmptrapd
219 The ucd-snmp-snmptrapd package contains snmp trap daemon.
220
221 %description snmptrapd -l pl
222 Pakiet zawiera demon obs³uguj±cy pu³apki SNMP.
223
224 %package devel
225 Summary:        The development environment for the UCD-SNMP project
226 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
227 Summary(pl):    Pliki dla developerów u¿ywaj±cych %{name}
228 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
229 Summary(ru):    óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
230 Summary(uk):    óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
231 Group:          Development/Libraries
232 Requires:       %{name}-libs = %{version}
233 Requires:       openssl-devel
234 Obsoletes:      ucd-snmp-devel
235
236 %description devel
237 The ucd-snmp-devel package contains the development libraries and
238 header files for use with the UCD-SNMP project's network management
239 tools.
240
241 Install the ucd-snmp-devel package if you would like to develop
242 applications for use with the UCD-SNMP project's network management
243 tools. You'll also need to have the ucd-snmp and ucd-snmp-utils
244 packages installed.
245
246 %description devel -l es
247 Estas son las bibliotecas y archivos de inclusión para desarrollo con
248 el SNMP de la UCD. Con este paquete es posible la creación de
249 programas para uso en la gestión de redes.
250
251 %description devel -l pl
252 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
253 aplikacji u¿ywaj±cych protoko³u SNMP.
254
255 %description devel -l pt_BR
256 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
257 com o SNMP da UCD. Com este pacote é possível a criação de programas
258 para uso no gerenciamento de redes.
259
260 %description devel -l ru
261 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
262 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
263
264 %description devel -l uk
265 ðÁËÅÔ ucd-snmp-devel Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
266 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
267
268 %package static
269 Summary:        Static UCD-SNMP libraries
270 Summary(es):    Static libraries for ucd-snmp development
271 Summary(pl):    Statyczne biblioteki %{name}
272 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
273 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
274 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
275 Group:          Development/Libraries
276 Requires:       %{name}-devel = %{version}
277 Obsoletes:      ucd-snmp-static
278
279 %description static
280 Static UCD-SNMP libraries.
281
282 %description static -l es
283 Static libraries for ucd-snmp development
284
285 %description static -l pl
286 Statyczne biblioteki %{name}.
287
288 %description static -l pt_BR
289 Bibliotecas estáticas para desenvolvimento com ucd-snmp
290
291 %package compat-devel
292 Summary:        The development environment for the UCD-SNMP project
293 Summary(es):    Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
294 Summary(pl):    Pliki dla developerów u¿ywaj±cych %{name}
295 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
296 Summary(ru):    óÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
297 Summary(uk):    óÅÒÅÄÏ×ÉÝÅ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
298 Group:          Development/Libraries
299 Requires:       %{name}-compat-libs = %{version}
300 Requires:       openssl-devel
301 Obsoletes:      cmu-snmp-devel
302 Obsoletes:      ucd-snmp-devel
303
304 %description compat-devel
305 The ucd-snmp-devel package contains the development libraries and
306 header files for use with the UCD-SNMP project's network management
307 tools.
308
309 Install the ucd-snmp-devel package if you would like to develop
310 applications for use with the UCD-SNMP project's network management
311 tools. You'll also need to have the ucd-snmp and ucd-snmp-utils
312 packages installed.
313
314 %description compat-devel -l es
315 Estas son las bibliotecas y archivos de inclusión para desarrollo con
316 el SNMP de la UCD. Con este paquete es posible la creación de
317 programas para uso en la gestión de redes.
318
319 %description compat-devel -l pl
320 Pakiet zawiera pliki nag³ówkowe i bilioteki potrzebne do rozwoju
321 aplikacji u¿ywaj±cych protoko³u SNMP.
322
323 %description compat-devel -l pt_BR
324 Estas são as bibliotecas e arquivos de inclusão para desenvolvimento
325 com o SNMP da UCD. Com este pacote é possível a criação de programas
326 para uso no gerenciamento de redes.
327
328 %description compat-devel -l ru
329 ðÁËÅÔ ucd-snmp-devel ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ É ÈÅÄÅÒÁ ÄÌÑ
330 ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó ÕÔÉÌÉÔÁÍÉ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÐÒÏÅËÔÁ UCD-SNMP.
331
332 %description compat-devel -l uk
333 ðÁËÅÔ ucd-snmp-devel Í¦ÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÔÁ ÈÅÄÅÒÉ ÄÌÑ
334 ×ÉËÏÒÉÓÔÁÎÎÑ Ú ÕÔÉ̦ÔÁÍÉ ËÅÒÕ×ÁÎÎÑ ÍÅÒÅÖÅÀ ÐÒÏÅËÔÕ UCD-SNMP.
335
336 %package compat-static
337 Summary:        Static UCD-SNMP libraries
338 Summary(es):    Static libraries for ucd-snmp development
339 Summary(pl):    Statyczne biblioteki %{name}
340 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com ucd-snmp
341 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÁ UCD-SNMP
342 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÅËÔÕ UCD-SNMP
343 Group:          Development/Libraries
344 Requires:       %{name}-compat-devel = %{version}
345 Obsoletes:      ucd-snmp-static
346
347 %description compat-static
348 Static UCD-SNMP libraries.
349
350 %description compat-static -l es
351 Static libraries for ucd-snmp development
352
353 %description compat-static -l pl
354 Statyczne biblioteki %{name}.
355
356 %description compat-static -l pt_BR
357 Bibliotecas estáticas para desenvolvimento com ucd-snmp
358
359 %package snmpconf
360 Summary:        snmpconf
361 Group:          Applications/System
362
363 %description snmpconf
364 snmpconf
365
366 %package tkmib
367 Summary:        MIB browser in TK
368 Group:          Applications/System
369
370 %description tkmib
371 MIB browser in TK
372
373 %prep
374 %setup -q -a7
375 %patch0 -p1
376 %patch1 -p1
377 %patch2 -p1
378 %patch3 -p1
379
380
381 %build
382 %{__libtoolize}
383 %{__aclocal}
384 %{__autoheader}
385 %{__autoconf}
386 %configure \
387         --with-logfile="%{logfile}" \
388         --with-cflags="%{rpmcflags} -I%{_includedir}/rpm" \
389         --with-ldflags="%{rpmldflags}" \
390         --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix Callback " \
391         --with-sys-location="Unknown" \
392         --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
393                 agentx target misc/ipfwacc tunnel" \
394         --with-libwrap=%{_prefix} \
395         --with-openssl=%{_prefix} \
396         --disable-debugging \
397         --with-persistent-directory="/var/lib/net-snmp" \
398         --enable-ipv6 \
399         --enable-reentrant \
400         --with-sys-contact="root@localhost" \
401         --enable-ucd-snmp-compatibility \
402         --with-defaults \
403         --with-default-snmp-version=3 \
404         --enable-shared
405 # ucd-snmp/diskio
406 %{__make}
407
408 # symlinks to allow build perl module w/o installed ucd-snmp
409 #ln -sf snmplib ucd-snmp
410 #ln -sf ../ucd-snmp-config.h ucd-snmp/ucd-snmp-config.h
411 #cd perl/SNMP
412 #echo "%{_datadir}/snmp/mibs" | perl Makefile.PL
413 #%{__make} OPTIMIZE="%{rpmcflags}"
414
415 %install
416 rm -rf $RPM_BUILD_ROOT
417 install -d $RPM_BUILD_ROOT/{etc/{snmp,rc.d/init.d,sysconfig},/var/log}
418
419 %{__make} install DESTDIR=$RPM_BUILD_ROOT
420
421 #install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
422 #:> $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.local.conf
423 :> $RPM_BUILD_ROOT%{logfile}
424
425 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
426 #install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmpd.conf
427 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/snmpd
428
429 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/snmptrapd
430 #install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/snmp/snmptrapd.conf
431 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/snmptrapd
432
433 #install agent/mibgroup/ipfwchains/IPFWCHAINS-MIB.txt \
434 #       $RPM_BUILD_ROOT%{_datadir}/snmp/mibs
435
436 #cd perl/SNMP
437 #%{__make} install DESTDIR=$RPM_BUILD_ROOT
438
439 %clean
440 rm -rf $RPM_BUILD_ROOT
441
442 %post
443 /sbin/chkconfig --add snmpd
444 if [ -f /var/lock/subsys/snmpd ]; then
445         /etc/rc.d/init.d/snmpd restart >&2
446 else
447         echo "Run \"/etc/rc.d/init.d/snmpd start\" to start snmpd daemon." >&2
448 fi
449 touch %{logfile}
450 chmod 640 %{logfile}
451
452 %preun
453 if [ "$1" = "0" ]; then
454         if [ -f /var/lock/subsys/snmpd ]; then
455                 /etc/rc.d/init.d/snmpd stop >&2
456         fi
457         /sbin/chkconfig --del snmpd
458 fi
459
460 %post   libs -p /sbin/ldconfig
461 %postun libs -p /sbin/ldconfig
462
463 %post snmptrapd
464 /sbin/chkconfig --add snmptrapd
465 if [ -f /var/lock/subsys/snmptrapd ]; then
466         /etc/rc.d/init.d/snmptrapd restart >&2
467 else
468         echo "Run \"/etc/rc.d/init.d/snmptrapd start\" to start snmp trap daemon." >&2
469 fi
470 touch %{logfile}
471 chmod 640 %{logfile}
472
473 %preun snmptrapd
474 if [ "$1" = "0" ]; then
475         if [ -f /var/lock/subsys/snmptrapd ]; then
476                 /etc/rc.d/init.d/snmptrapd stop >&2
477         fi
478         /sbin/chkconfig --del snmptrapd
479 fi
480
481 %files
482 %defattr(644,root,root,755)
483 %doc README local
484 %doc ChangeLog EXAMPLE.conf.def EXAMPLE.conf
485 %doc FAQ NEWS PORTING README.snmpv3 TODO AGENT.txt
486
487 %attr(754,root,root) /etc/rc.d/init.d/snmpd
488 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmpd
489
490 %dir %{_sysconfdir}/snmp
491 #%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.conf
492 #%attr(640,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmpd.local.conf
493
494 %attr(755,root,root) %{_sbindir}/snmpd
495
496 %{_mandir}/man1/snmpd.1*
497 %{_mandir}/man5/snmpd.conf.5*
498 %{_mandir}/man5/variables.5*
499
500 %attr(640,root,root) %ghost %{logfile}
501
502 %files libs
503 %defattr(644,root,root,755)
504 %attr(755,root,root) %{_libdir}/libnet*.so.*.*
505
506 %dir %{_datadir}/snmp
507
508 %files mibs
509 %defattr(644,root,root,755)
510 %{_datadir}/snmp/mibs
511
512 %files compat-libs
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_libdir}/libsnmp.so.*.*
515
516 %files utils
517 %defattr(644,root,root,755)
518 %attr(755,root,root) %{_bindir}/encode_keychange
519 %attr(755,root,root) %{_bindir}/snmpbulkget
520 %attr(755,root,root) %{_bindir}/snmpbulkwalk
521 %attr(755,root,root) %{_bindir}/snmpdelta
522 %attr(755,root,root) %{_bindir}/snmpget
523 %attr(755,root,root) %{_bindir}/snmpgetnext
524 %attr(755,root,root) %{_bindir}/snmpnetstat
525 %attr(755,root,root) %{_bindir}/snmpset
526 %attr(755,root,root) %{_bindir}/snmpstatus
527 %attr(755,root,root) %{_bindir}/snmptable
528 %attr(755,root,root) %{_bindir}/snmptest
529 %attr(755,root,root) %{_bindir}/snmptranslate
530 %attr(755,root,root) %{_bindir}/snmptrap
531 %attr(755,root,root) %{_bindir}/snmpusm
532 %attr(755,root,root) %{_bindir}/snmpwalk
533 %attr(755,root,root) %{_bindir}/snmpdf
534 %attr(755,root,root) %{_bindir}/snmpinform
535 %attr(755,root,root) %{_bindir}/snmpvacm
536
537 #%{_datadir}/snmp/snmpconf/snmp.conf
538
539 %{_mandir}/man1/snmpbulkget.1*
540 %{_mandir}/man1/snmpbulkwalk.1*
541 %{_mandir}/man1/snmpcmd.1*
542 %{_mandir}/man1/snmpdelta.1*
543 %{_mandir}/man1/snmpget.1*
544 %{_mandir}/man1/snmpgetnext.1*
545 %{_mandir}/man1/snmpnetstat.1*
546 %{_mandir}/man1/snmpset.1*
547 %{_mandir}/man1/snmpstatus.1*
548 %{_mandir}/man1/snmptable.1*
549 %{_mandir}/man1/snmptest.1*
550 %{_mandir}/man1/snmptranslate.1*
551 %{_mandir}/man1/snmptrap.1*
552 %{_mandir}/man1/snmpusm.1*
553 %{_mandir}/man1/snmpwalk.1*
554 %{_mandir}/man1/snmpdf.1*
555 %{_mandir}/man1/snmpinform.1*
556 %{_mandir}/man5/snmp.conf.5*
557 %{_mandir}/man5/snmp_config.5*
558
559 %files utils-perl
560 %defattr(644,root,root,755)
561 #%doc perl/SNMP/{BUG,README,TODO} perl/SNMP/examples
562 %attr(755,root,root) %{_bindir}/snmpcheck
563 %attr(755,root,root) %{_bindir}/snmpconf
564 %{_mandir}/man1/snmpconf.1*
565 %{_datadir}/snmp/snmpconf-data
566 #%{perl_sitearch}/SNMP.pm
567 #%dir %{perl_sitearch}/auto/SNMP
568 #%{perl_sitearch}/auto/SNMP/autosplit.ix
569 #%{perl_sitearch}/auto/SNMP/SNMP.bs
570 #%attr(755,root,root) %{perl_sitearch}/auto/SNMP/SNMP.so
571
572 %files snmptrapd
573 %defattr(644,root,root,755)
574 %attr(755,root,root) %{_sbindir}/snmptrapd
575 %attr(754,root,root) /etc/rc.d/init.d/snmptrapd
576 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/snmptrapd
577 #%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/snmp/snmptrapd.conf
578 %{_mandir}/man5/snmptrapd.conf.5*
579 %{_mandir}/man8/snmptrapd.8*
580
581 %files devel
582 %defattr(644,root,root,755)
583 %attr(755,root,root) %{_bindir}/mib2c
584 %attr(755,root,root) %{_bindir}/net-snmp-config
585 %attr(755,root,root) %{_libdir}/libnet*[a-z].so
586 %{_libdir}/libnet*.la
587 %{_includedir}/net-snmp
588 %{_datadir}/snmp/mib2c*
589 %{_mandir}/man1/mib2c.1*
590 %{_mandir}/man3/*
591
592 %files compat-devel
593 %defattr(644,root,root,755)
594 %{_libdir}/libsnmp.la
595 %attr(755,root,root) %{_libdir}/libsnmp.so
596 %{_includedir}/ucd-snmp
597
598 %files static
599 %defattr(644,root,root,755)
600 %attr(0644,root,root) %{_libdir}/libnet*.a
601
602 %files compat-static
603 %defattr(644,root,root,755)
604 %attr(0644,root,root) %{_libdir}/libsnmp.a
605
606 %files tkmib
607 %defattr(644,root,root,755)
608 %attr(0755,root,root) %{_bindir}/tkmib
This page took 0.103277 seconds and 4 git commands to generate.