1 |
# $Id: smeserver-arpwatch.spec,v 1.6 2021/02/26 09:02:09 brianr Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
Summary: Arpwatch is a tool that monitors ethernet activity |
6 |
%define name smeserver-arpwatch |
7 |
Name: %{name} |
8 |
%define version 0.3 |
9 |
%define release 5 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Monitoring |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
Patch0: smeserver-arpwatch-0.3-Add-in-systemd-stuff.patch |
16 |
Patch1: smeserver-arpwatch-0.3-Add-After-in-service-file-to-delay-startup.patch |
17 |
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
20 |
|
21 |
BuildRequires: e-smith-devtools |
22 |
|
23 |
Requires: e-smith-base |
24 |
Requires: arpwatch |
25 |
|
26 |
%description |
27 |
Arpwatch is a tool that monitors ethernet activity and keeps |
28 |
a database of ethernet/ip address pairings. |
29 |
It also reports certain changes via email. |
30 |
Arpwatch uses libpcap, a system-independent interface for |
31 |
user-level packet capture. |
32 |
|
33 |
%changelog |
34 |
* Sat Feb 27 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-5.sme |
35 |
- Fix service dropin file with proper extension [SME: 11026] |
36 |
|
37 |
* Fri Feb 26 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-4.sme |
38 |
- Add-After-in-service-file-to-delay-startup [SME: 11026] |
39 |
|
40 |
* Tue Feb 02 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme |
41 |
- Add in Createlink stuff for systemd [SME: 11026] |
42 |
|
43 |
* Wed Nov 04 2020 Brian Read <brianr@bjsystems.co.uk> 0.3-2.sme |
44 |
- Add in systemd startup for arpwatch to spec file [SME: 11026] |
45 |
|
46 |
* Mon Oct 12 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1.sme |
47 |
- based on work by Brian Read [SME: 11026] |
48 |
- Build for Koozali SME v10 |
49 |
- remove createlinks safetouch to fix conflict |
50 |
- remove /var/lib/arpwatch lines in genfilelist |
51 |
|
52 |
* Mon Sep 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-3.sme |
53 |
- changed the user pcap to arpwatch [SME: 8429] |
54 |
|
55 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 0.2-1.sme |
56 |
- initial import to SME9 contribs |
57 |
|
58 |
* Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> [0.1-2] |
59 |
- Add e-smith-devtools as a build dependency |
60 |
|
61 |
* Tue Jan 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-1] |
62 |
- Service not supervised (as the only option to disable forking is -d |
63 |
which also disable email alerts) |
64 |
|
65 |
* Tue Jan 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-0] |
66 |
- Initial release |
67 |
|
68 |
%prep |
69 |
|
70 |
%setup -q -n %{name}-%{version} |
71 |
%patch0 -p1 |
72 |
%patch1 -p1 |
73 |
|
74 |
%build |
75 |
perl createlinks |
76 |
|
77 |
%install |
78 |
/bin/rm -rf $RPM_BUILD_ROOT |
79 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
80 |
/bin/rm -f %{name}-%{version}-filelist |
81 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
82 |
> %{name}-%{version}-filelist |
83 |
|
84 |
%files -f %{name}-%{version}-filelist |
85 |
%defattr(-,root,root) |
86 |
|
87 |
%clean |
88 |
rm -rf $RPM_BUILD_ROOT |
89 |
%pre |
90 |
|
91 |
%post |
92 |
#systemctl enable arpwatch |
93 |
#systemctl start arpwatch |
94 |
|
95 |
%preun |
96 |
if [ $1 -eq 0 ] ; then |
97 |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
98 |
#/etc/init.d/arpwatch stop |
99 |
fi |
100 |
|
101 |
true |
102 |
|