1 |
# $Id: smeserver-arpwatch.spec,v 1.3 2020/10/12 10:14:09 jcrisp Exp $ |
# $Id: smeserver-arpwatch.spec,v 1.7 2021/02/27 07:19:39 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 2 |
%define release 6 |
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 |
|
Patch2: smeserver-arpwatch-0.3-Log-bz11949.patch |
18 |
|
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
32 |
user-level packet capture. |
user-level packet capture. |
33 |
|
|
34 |
%changelog |
%changelog |
35 |
|
* Mon Jul 18 2022 zsolt vasarhelyi <vasarhelyizsolt@hotmail.com> 0.3-6.sme |
36 |
|
- Fix service dropin file with proper extension [SME: 11026] |
37 |
|
|
38 |
|
* Sat Feb 27 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-5.sme |
39 |
|
- Fix service dropin file with proper extension [SME: 11026] |
40 |
|
|
41 |
|
* Fri Feb 26 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-4.sme |
42 |
|
- Add-After-in-service-file-to-delay-startup [SME: 11026] |
43 |
|
|
44 |
|
* Tue Feb 02 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme |
45 |
|
- Add in Createlink stuff for systemd [SME: 11026] |
46 |
|
|
47 |
* Wed Nov 04 2020 Brian Read <brianr@bjsystems.co.uk> 0.3-2.sme |
* Wed Nov 04 2020 Brian Read <brianr@bjsystems.co.uk> 0.3-2.sme |
48 |
- Add in systemd startup for arpwatch to spec file [SME: 11026] |
- Add in systemd startup for arpwatch to spec file [SME: 11026] |
49 |
|
|
72 |
%prep |
%prep |
73 |
|
|
74 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
75 |
#%patch0 -p1 |
%patch0 -p1 |
76 |
|
%patch1 -p1 |
77 |
|
%patch2 -p1 |
78 |
|
|
79 |
%build |
%build |
80 |
perl createlinks |
perl createlinks |
94 |
%pre |
%pre |
95 |
|
|
96 |
%post |
%post |
97 |
systemctl enable arpwatch |
#systemctl enable arpwatch |
98 |
systemctl start arpwatch |
#systemctl start arpwatch |
99 |
|
|
100 |
%preun |
%preun |
101 |
if [ $1 -eq 0 ] ; then |
if [ $1 -eq 0 ] ; then |
102 |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
103 |
/etc/init.d/arpwatch stop |
#/etc/init.d/arpwatch stop |
104 |
fi |
fi |
105 |
|
|
106 |
true |
true |