1 %include /usr/lib/rpm/macros.perl
2 Summary: A Web-based monitor for ISC DHCP lease statistics
3 Summary(pl): Statystyki dla ISC DHCP na stronie WWW
8 Group: Applications/System
9 Source0: http://www.omar.org/opensource/reportdhcp/%{name}.pl-%{version}.tar.gz
10 # Source0-md5: 313f8757f1d7a60215c8baa8e338a70c
11 Patch0: %{name}-config.patch
12 URL: http://www.omar.org/opensource/reportdhcp/
13 BuildRequires: rpm-perlprov
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Reportdhcp.pl is a CGI script written in perl. It displays statistics
18 and lease entries for ISC DHCPD by parsing the dhcpd.conf and
22 Reportdhcp.pl jest skryptem CGI napisanym w perlu. Wy¶wietla
23 statystyki oraz wpisy dzier¿aw dla ISC DHCPD poprzez pasowanie pliku
24 dhcpd.conf oraz dhcpd.leases.
27 %setup -q -c -n %{name}-%{version}
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/reportdhcp/
34 install reportdhcp.pl $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/reportdhcp/
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
42 %dir /home/services/httpd/cgi-bin/reportdhcp
43 %attr(755,root,root) /home/services/httpd/cgi-bin/reportdhcp/reportdhcp.pl