1 |
# $Id: smeserver-arpwatch.spec,v 1.3 2020/10/12 10:14:09 jcrisp Exp $ |
# $Id: smeserver-arpwatch.spec,v 1.4 2020/11/04 11:42:55 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 3 |
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 |
|
|
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
30 |
user-level packet capture. |
user-level packet capture. |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
|
* Tue Feb 02 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme |
34 |
|
- Add in Createlink stuff for systemd [SME: 11026] |
35 |
|
|
36 |
* 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 |
37 |
- Add in systemd startup for arpwatch to spec file [SME: 11026] |
- Add in systemd startup for arpwatch to spec file [SME: 11026] |
38 |
|
|
61 |
%prep |
%prep |
62 |
|
|
63 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
64 |
#%patch0 -p1 |
%patch0 -p1 |
65 |
|
|
66 |
%build |
%build |
67 |
perl createlinks |
perl createlinks |
81 |
%pre |
%pre |
82 |
|
|
83 |
%post |
%post |
84 |
systemctl enable arpwatch |
#systemctl enable arpwatch |
85 |
systemctl start arpwatch |
#systemctl start arpwatch |
86 |
|
|
87 |
%preun |
%preun |
88 |
if [ $1 -eq 0 ] ; then |
if [ $1 -eq 0 ] ; then |
89 |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
90 |
/etc/init.d/arpwatch stop |
#/etc/init.d/arpwatch stop |
91 |
fi |
fi |
92 |
|
|
93 |
true |
true |