]> git.pld-linux.org Git - packages/dhcp_probe.git/blame - dhcp_probe.spec
- updated to 1.3.1
[packages/dhcp_probe.git] / dhcp_probe.spec
CommitLineData
0d9e0091 1Summary: Tool for discovering DHCP and BootP servers
ade5218c 2Summary(pl.UTF-8): Narzędzie do znajdowania serwerów DHCP i BootP
0d9e0091 3Name: dhcp_probe
c6298b67
JB
4Version: 1.3.1
5Release: 1
ade5218c
JB
6License: GPL v2+ and MIT
7Group: Applications/Networking
8Source0: https://www.net.princeton.edu/software/dhcp_probe/%{name}-%{version}.tar.gz
c6298b67 9# Source0-md5: 0fecf69bd0439603b5e3b3f0a652b822
0d9e0091
JR
10Source1: %{name}.init
11Source2: %{name}.sysconfig
eaaa0e04
JR
12Source3: dhcp_probe.target
13Source4: dhcp_probe@.service
14Source5: dhcp_probe-service-generator
0d9e0091
JR
15Patch3: dhcp_probe-virta-02-keep-pcap.patch
16Patch4: dhcp_probe-virta-03-drop-privs.patch
ade5218c 17URL: https://www.net.princeton.edu/software/dhcp_probe/
c6298b67 18BuildRequires: libnet-devel >= 1:1.2
ade5218c 19BuildRequires: libpcap-devel
0d9e0091
JR
20BuildRequires: rpmbuild(macros) >= 1.647
21Requires(post,preun): /sbin/chkconfig
22Requires(post,preun,postun): systemd-units >= 38
c6298b67 23Requires: libnet >= 1:1.2
0d9e0091 24Requires: rc-scripts
1fcebd1c 25Requires: systemd-units >= 38
0d9e0091
JR
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29dchp_probe attempts to discover DHCP and BootP servers on
30a directly-attached Ethernet network. A network administrator can use
31this tool to locate unauthorized DHCP and BootP servers.
32
ade5218c
JB
33%description -l pl.UTF-8
34dhcp_probe próbuje wykryć serwery DHCP i BootP w bezpośrednio
35podłączonej sieci Ethernet. Narzędzie jest przydatne dla
36administratorów sieci do lokalizowania nieautoryzowanych serwerów DHCP
37oraz BootP.
38
0d9e0091
JR
39%prep
40%setup -q
0d9e0091
JR
41%patch3 -p0
42%patch4 -p0
43cp -a extras/README README.extras
44
45%build
46%configure
47%{__make}
48
49%install
50rm -rf $RPM_BUILD_ROOT
2f2adddb
JR
51install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{systemdunitdir}} \
52 $RPM_BUILD_ROOT/lib/systemd/system-generators
0d9e0091
JR
53
54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT
56
57install -p extras/dhcp_probe.cf.sample $RPM_BUILD_ROOT%{_sysconfdir}/dhcp_probe.cf
58install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp_probe
59install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dhcp_probe
eaaa0e04
JR
60install -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/dhcp_probe.target
61install -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/dhcp_probe@.service
0ca270ff 62ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/dhcp_probe.service
eaaa0e04 63install -p %{SOURCE5} $RPM_BUILD_ROOT/lib/systemd/system-generators/dhcp_probe-service-generator
0d9e0091
JR
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%post
69/sbin/chkconfig --add %{name}
70%service %{name} restart
707b5dd8 71%systemd_post %{name}.target
0d9e0091
JR
72
73%preun
74if [ "$1" = "0" ]; then
75 %service -q %{name} stop
76 /sbin/chkconfig --del %{name}
77fi
707b5dd8 78%systemd_preun %{name}.target
0d9e0091
JR
79
80%postun
81%systemd_reload
82
83%files
84%defattr(644,root,root,755)
ade5218c 85%doc AUTHORS COPYING ChangeLog INSTALL.dhcp_probe NEWS README* TODO extras/{dhcp_probe_notify*,mail-throttled}
0d9e0091
JR
86%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dhcp_probe.cf
87%attr(755,root,root) %{_sbindir}/dhcp_probe
88%attr(754,root,root) /etc/rc.d/init.d/dhcp_probe
89%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dhcp_probe
2f2adddb 90%attr(755,root,root) /lib/systemd/system-generators/dhcp_probe-service-generator
ade5218c
JB
91%{systemdunitdir}/dhcp_probe.service
92%{systemdunitdir}/dhcp_probe.target
93%{systemdunitdir}/dhcp_probe@.service
0d9e0091
JR
94%{_mandir}/man5/dhcp_probe.cf.5*
95%{_mandir}/man8/dhcp_probe.8*
This page took 0.144491 seconds and 4 git commands to generate.