1 |
# $Id: smeserver-arpwatch.spec,v 1.5 2015/09/07 19:39:41 stephdl Exp $ |
# $Id: smeserver-arpwatch.spec,v 1.10 2022/07/19 06:32:45 terryfage Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
5 |
Summary: Arpwatch is a tool that monitors ethernet activity |
Summary: Arpwatch is a tool that monitors ethernet activity |
6 |
%define name smeserver-arpwatch |
%define name smeserver-arpwatch |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.2 |
%define version 0.3 |
9 |
%define release 3 |
%define release 8 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
13 |
Group: Monitoring |
Group: Monitoring |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
Patch0: smeserver-arpwatch-0.2.bz8429.change-user2arpwatch.patch |
Patch0: smeserver-arpwatch-0.3-Add-in-systemd-stuff.patch |
16 |
#REM contribs9 Patch0: smeserver-arpwatch-0.2-not_supervised.patch |
Patch1: smeserver-arpwatch-0.3-Add-After-in-service-file-to-delay-startup.patch |
17 |
|
Patch2: smeserver-arpwatch-0.3-Log-bz11949.patch |
18 |
|
Patch3: smeserver-arpwatch-0.3-Log2-bz11949.patch |
19 |
|
|
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
33 |
user-level packet capture. |
user-level packet capture. |
34 |
|
|
35 |
%changelog |
%changelog |
36 |
|
* Tue Jul 26 2022 zsolt vasarhelyi <vasarhelyizsolt@hotmail.com> 0.3-8.sme |
37 |
|
- 2nd typo fix added, part of previous patch [SME: 11949] |
38 |
|
|
39 |
|
* Tue Jul 19 2022 zsolt vasarhelyi <vasarhelyizsolt@hotmail.com> 0.3-7.sme |
40 |
|
- typo fix added, part of previous patch [SME: 11949] |
41 |
|
|
42 |
|
* Mon Jul 18 2022 zsolt vasarhelyi <vasarhelyizsolt@hotmail.com> 0.3-6.sme |
43 |
|
- arpwatch logs to messages, typo fix added [SME: 11949] |
44 |
|
|
45 |
|
* Sat Feb 27 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-5.sme |
46 |
|
- Fix service dropin file with proper extension [SME: 11026] |
47 |
|
|
48 |
|
* Fri Feb 26 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-4.sme |
49 |
|
- Add-After-in-service-file-to-delay-startup [SME: 11026] |
50 |
|
|
51 |
|
* Tue Feb 02 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme |
52 |
|
- Add in Createlink stuff for systemd [SME: 11026] |
53 |
|
|
54 |
|
* Wed Nov 04 2020 Brian Read <brianr@bjsystems.co.uk> 0.3-2.sme |
55 |
|
- Add in systemd startup for arpwatch to spec file [SME: 11026] |
56 |
|
|
57 |
|
* Mon Oct 12 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1.sme |
58 |
|
- based on work by Brian Read [SME: 11026] |
59 |
|
- Build for Koozali SME v10 |
60 |
|
- remove createlinks safetouch to fix conflict |
61 |
|
- remove /var/lib/arpwatch lines in genfilelist |
62 |
|
|
63 |
* Mon Sep 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-3.sme |
* Mon Sep 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-3.sme |
64 |
- changed the user pcap to arpwatch [SME: 8429] |
- changed the user pcap to arpwatch [SME: 8429] |
65 |
|
|
79 |
%prep |
%prep |
80 |
|
|
81 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
|
#REM contribs9 %patch0 -p1 |
|
82 |
%patch0 -p1 |
%patch0 -p1 |
83 |
|
%patch1 -p1 |
84 |
|
%patch2 -p1 |
85 |
|
%patch3 -p1 |
86 |
|
|
87 |
%build |
%build |
88 |
perl createlinks |
perl createlinks |
92 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
93 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
94 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
|
--dir /var/lib/arpwatch 'attr(0750,arpwatch,arpwatch)' \ |
|
|
--file /var/lib/arpwatch/arp.dat 'attr(0750,arpwatch,arpwatch) %config(noreplace)' \ |
|
95 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
96 |
|
|
97 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
102 |
%pre |
%pre |
103 |
|
|
104 |
%post |
%post |
105 |
|
#systemctl enable arpwatch |
106 |
|
#systemctl start arpwatch |
107 |
|
|
108 |
%preun |
%preun |
109 |
if [ $1 -eq 0 ] ; then |
if [ $1 -eq 0 ] ; then |
110 |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
111 |
/etc/init.d/arpwatch stop |
#/etc/init.d/arpwatch stop |
112 |
fi |
fi |
113 |
|
|
114 |
true |
true |
|
|
|