1 |
# $Id: smeserver-arpwatch.spec,v 1.1 2020/10/10 10:04:35 brianr Exp $ |
# $Id: smeserver-arpwatch.spec,v 1.5 2021/02/02 12:16:04 brianr Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
6 |
%define name smeserver-arpwatch |
%define name smeserver-arpwatch |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.3 |
%define version 0.3 |
9 |
%define release 1 |
%define release 4 |
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-somepatch.patch |
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 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
31 |
user-level packet capture. |
user-level packet capture. |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Fri Feb 26 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-4.sme |
35 |
|
- Add-After-in-service-file-to-delay-startup [SME: 11026] |
36 |
|
|
37 |
|
* Tue Feb 02 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme |
38 |
|
- Add in Createlink stuff for systemd [SME: 11026] |
39 |
|
|
40 |
|
* Wed Nov 04 2020 Brian Read <brianr@bjsystems.co.uk> 0.3-2.sme |
41 |
|
- Add in systemd startup for arpwatch to spec file [SME: 11026] |
42 |
|
|
43 |
* Mon Oct 12 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1.sme |
* Mon Oct 12 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1.sme |
44 |
- based on work by Brain Read [SME: 11026] |
- based on work by Brian Read [SME: 11026] |
45 |
- Build for Koozali SME v10 |
- Build for Koozali SME v10 |
46 |
- remove createlinks safetouch to fix conflict |
- remove createlinks safetouch to fix conflict |
47 |
- remove /var/lib/arpwatch lines in genfilelist |
- remove /var/lib/arpwatch lines in genfilelist |
65 |
%prep |
%prep |
66 |
|
|
67 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
68 |
#%patch0 -p1 |
%patch0 -p1 |
69 |
|
%patch1 -p1 |
70 |
|
|
71 |
%build |
%build |
72 |
perl createlinks |
perl createlinks |
86 |
%pre |
%pre |
87 |
|
|
88 |
%post |
%post |
89 |
|
#systemctl enable arpwatch |
90 |
|
#systemctl start arpwatch |
91 |
|
|
92 |
%preun |
%preun |
93 |
if [ $1 -eq 0 ] ; then |
if [ $1 -eq 0 ] ; then |
94 |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
95 |
/etc/init.d/arpwatch stop |
#/etc/init.d/arpwatch stop |
96 |
fi |
fi |
97 |
|
|
98 |
true |
true |