]>
Commit | Line | Data |
---|---|---|
7d5c2592 ER |
1 | # TODO |
2 | # - register cacti template (see template-cacti-plugin.spec)? | |
e0cc3661 | 3 | Summary: Bind SNMP script |
1083844b | 4 | Summary(pl.UTF-8): Skrypt Bind SNMP |
e0cc3661 | 5 | Name: bind-snmp |
647ff790 | 6 | Version: 1.7 |
e0cc3661 AM |
7 | Release: 0.1 |
8 | License: GPL | |
9 | Group: Networking/Daemons | |
10 | Source0: http://www.bayour.com/bind9-snmp/bind9-snmp_%{version}.tgz | |
647ff790 | 11 | # Source0-md5: e04c7116a100a619cf81f9b9fb8943e1 |
e0cc3661 AM |
12 | URL: http://www.bayour.com/bind9-snmp/ |
13 | BuildRequires: rpm-perlprov | |
14 | Requires: bind >= 9.0.0 | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define webadminroot /usr/share/cacti | |
19 | ||
20 | %description | |
21 | This is a pass-through script for SNMP that gives all the Bind9 | |
73cff55d JB |
22 | statistics that can be (is) retrieved with 'rndc status'. |
23 | ||
9ead843b JR |
24 | %description -l pl.UTF-8 |
25 | To jest skrypt dla SNMP dostarczający wszystkie statystyki Binda 9, | |
26 | jakie można pobrać za pomocą polecenia 'rndc status'. | |
e0cc3661 AM |
27 | |
28 | %package -n net-snmp-mibs-bind | |
7a498de4 | 29 | Summary: MIBs for BIND9 |
1083844b | 30 | Summary(pl.UTF-8): MIB-y dla BIND-a 9 |
7a498de4 | 31 | Group: Applications/System |
e0cc3661 AM |
32 | Requires: net-snmp-mibs |
33 | ||
34 | %description -n net-snmp-mibs-bind | |
35 | MIBs for BIND9. | |
36 | ||
9ead843b | 37 | %description -n net-snmp-mibs-bind -l pl.UTF-8 |
73cff55d JB |
38 | MIB-y dla BIND-a 9. |
39 | ||
e0cc3661 | 40 | %package -n cacti-bind |
7a498de4 | 41 | Summary: BIND9 plugin for Cacti |
1083844b | 42 | Summary(pl.UTF-8): Wtyczka BIND9 dla Cacti |
7a498de4 | 43 | Group: Applications/System |
e0cc3661 AM |
44 | Requires: net-snmp-mibs-bind = %{version}-%{release} |
45 | Requires: cacti | |
46 | ||
47 | %description -n cacti-bind | |
48 | BIND9 plugin for Cacti. | |
49 | ||
9ead843b | 50 | %description -n cacti-bind -l pl.UTF-8 |
73cff55d JB |
51 | Wtyczka BIND9 dla Cacti. |
52 | ||
e0cc3661 | 53 | %prep |
647ff790 | 54 | %setup -q -n bind9-snmp-%{version} |
e0cc3661 | 55 | |
e0cc3661 AM |
56 | %install |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | install -d $RPM_BUILD_ROOT%{webadminroot}/resource/snmp_queries | |
59 | install -d $RPM_BUILD_ROOT%{_datadir}/snmp/mibs | |
60 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{snmp,cron.d} | |
647ff790 | 61 | install -d $RPM_BUILD_ROOT%{perl_vendorlib} |
e0cc3661 | 62 | |
647ff790 | 63 | install {*.pl,*.stub} $RPM_BUILD_ROOT%{_sysconfdir}/snmp |
64 | install *.xml $RPM_BUILD_ROOT%{webadminroot}/resource/snmp_queries | |
65 | install BAYOUR-COM-MIB.txt $RPM_BUILD_ROOT%{_datadir}/snmp/mibs | |
66 | install *.pm $RPM_BUILD_ROOT%{perl_vendorlib} | |
e0cc3661 AM |
67 | |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
647ff790 | 73 | %doc README.txt UPGRADE.txt |
74 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/snmp/bind9-snmp-stats.pl | |
75 | %{_sysconfdir}/snmp/snmp*.conf.stub | |
76 | %{perl_vendorlib}/BayourCOM_SNMP.pm | |
e0cc3661 AM |
77 | |
78 | %files -n net-snmp-mibs-bind | |
79 | %defattr(644,root,root,755) | |
647ff790 | 80 | %{_datadir}/snmp/mibs/BAYOUR-COM-MIB.txt |
e0cc3661 AM |
81 | |
82 | %files -n cacti-bind | |
83 | %defattr(644,root,root,755) | |
647ff790 | 84 | %{webadminroot}/resource/snmp_queries/cacti_host_template_bind9_snmp_machine.xml |
85 | %{webadminroot}/resource/snmp_queries/bind9-stats_domains.xml | |
86 | %{webadminroot}/resource/snmp_queries/bind9-stats_totals.xml |