/[smecontribs]/rpms/smeserver-arpwatch/contribs10/smeserver-arpwatch.spec
ViewVC logotype

Diff of /rpms/smeserver-arpwatch/contribs10/smeserver-arpwatch.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by brianr, Sat Oct 10 10:04:35 2020 UTC Revision 1.10 by terryfage, Tue Jul 19 06:32:45 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-arpwatch.spec,v 1.5 2015/09/07 19:39:41 stephdl Exp $  # $Id: smeserver-arpwatch.spec,v 1.9 2022/07/19 01:36:21 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 7
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    
19  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
20  BuildArchitectures: noarch  BuildArchitectures: noarch
# Line 31  Arpwatch uses libpcap, a system-independ Line 32  Arpwatch uses libpcap, a system-independ
32  user-level packet capture.  user-level packet capture.
33    
34  %changelog  %changelog
35    * Tue Jul 19 2022 zsolt vasarhelyi <vasarhelyizsolt@hotmail.com> 0.3-7.sme
36    - typo fix added, part of previous patch [SME: 11949]
37    
38    * Mon Jul 18 2022 zsolt vasarhelyi <vasarhelyizsolt@hotmail.com> 0.3-6.sme
39    - arpwatch logs to messages, typo fix added [SME: 11949]
40    
41    * Sat Feb 27 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-5.sme
42    - Fix service dropin file with proper extension [SME: 11026]
43    
44    * Fri Feb 26 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-4.sme
45    - Add-After-in-service-file-to-delay-startup [SME: 11026]
46    
47    * Tue Feb 02 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme
48    - Add in Createlink stuff for systemd [SME: 11026]
49    
50    * Wed Nov 04 2020 Brian Read <brianr@bjsystems.co.uk> 0.3-2.sme
51    - Add in systemd startup for arpwatch to spec file [SME: 11026]
52    
53    * Mon Oct 12 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1.sme
54    - based on work by Brian Read [SME: 11026]
55    - Build for Koozali SME v10
56    - remove createlinks safetouch to fix conflict
57    - remove /var/lib/arpwatch lines in genfilelist
58    
59  * 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
60  - changed the user pcap to arpwatch [SME: 8429]  - changed the user pcap to arpwatch [SME: 8429]
61    
# Line 50  user-level packet capture. Line 75  user-level packet capture.
75  %prep  %prep
76    
77  %setup -q -n %{name}-%{version}  %setup -q -n %{name}-%{version}
 #REM contribs9 %patch0 -p1  
78  %patch0 -p1  %patch0 -p1
79    %patch1 -p1
80    %patch2 -p1
81    
82  %build  %build
83  perl createlinks  perl createlinks
# Line 61  perl createlinks Line 87  perl createlinks
87  (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)
88  /bin/rm -f %{name}-%{version}-filelist  /bin/rm -f %{name}-%{version}-filelist
89  /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)' \  
90          > %{name}-%{version}-filelist          > %{name}-%{version}-filelist
91    
92  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
# Line 73  rm -rf $RPM_BUILD_ROOT Line 97  rm -rf $RPM_BUILD_ROOT
97  %pre  %pre
98    
99  %post  %post
100    #systemctl enable arpwatch
101    #systemctl start arpwatch
102    
103  %preun  %preun
104  if [ $1 -eq 0 ] ; then  if [ $1 -eq 0 ] ; then
105          /sbin/e-smith/db configuration setprop arpwatch status disabled          /sbin/e-smith/db configuration setprop arpwatch status disabled
106          /etc/init.d/arpwatch stop          #/etc/init.d/arpwatch stop
107  fi  fi
108    
109  true  true
   


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed