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