/[smeserver]/rpms/rkhunter/sme7/rkhunter.spec
ViewVC logotype

Diff of /rpms/rkhunter/sme7/rkhunter.spec

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

Revision 1.4 by bytegw, Mon Dec 17 22:24:22 2007 UTC Revision 1.5 by bytegw, Tue Dec 18 10:47:34 2007 UTC
# Line 7  Line 7 
7    
8  %define name rkhunter  %define name rkhunter
9  %define ver 1.3.0  %define ver 1.3.0
10  %define rel 2  %define rel 3
11  %define epoch 0  %define epoch 0
12    
13  # Don't change this define or also:  # Don't change this define or also:
# Line 29  License: GPL Line 29  License: GPL
29  Group: Applications/System  Group: Applications/System
30  Source0: %{name}-%{version}.tar.gz  Source0: %{name}-%{version}.tar.gz
31  Patch0: rkhunter-installer.patch  Patch0: rkhunter-installer.patch
32    Patch1: rkhunter-nolib.patch
33  BuildArch: noarch  BuildArch: noarch
34  Requires: filesystem, bash, grep, findutils, net-tools, coreutils, e2fsprogs, modutils, procps, binutils, wget, perl  Requires: filesystem, bash, grep, findutils, net-tools, coreutils, e2fsprogs, modutils, procps, binutils, wget, perl
35  Provides: %{name}  Provides: %{name}
# Line 54  Rootkit Hunter is released as a GPL lice Line 55  Rootkit Hunter is released as a GPL lice
55  %prep  %prep
56  %setup -q  %setup -q
57  %patch0 -p1  %patch0 -p1
58    %patch1 -p1
59    
60  %build  %build
61    
# Line 79  EOF Line 81  EOF
81  %post  %post
82  # Only do this on an initial install  # Only do this on an initial install
83  if [ $1 -eq 1 ]; then  if [ $1 -eq 1 ]; then
84          %{__cp} -p /etc/passwd /var/lib/rkhunter/tmp >/dev/null 2>&1 || :          %{__cp} -p /etc/passwd /var/rkhunter/tmp >/dev/null 2>&1 || :
85          %{__cp} -p /etc/group /var/lib/rkhunter/tmp >/dev/null 2>&1 || :          %{__cp} -p /etc/group /var/rkhunter/tmp >/dev/null 2>&1 || :
86  fi  fi
87    
88    
# Line 88  fi Line 90  fi
90  # Only do this when removing the RPM  # Only do this when removing the RPM
91  if [ $1 -eq 0 ]; then  if [ $1 -eq 0 ]; then
92          %{__rm} -f /var/log/rkhunter.log /var/log/rkhunter.log.old >/dev/null 2>&1          %{__rm} -f /var/log/rkhunter.log /var/log/rkhunter.log.old >/dev/null 2>&1
93          %{__rm} -rf /var/lib/rkhunter/* >/dev/null 2>&1          %{__rm} -rf /var/rkhunter/* >/dev/null 2>&1
94  fi  fi
95    
96    
# Line 113  fi Line 115  fi
115  %attr(644,root,root) %doc %{_prefix}/share/man/man8/%{name}.8.gz  %attr(644,root,root) %doc %{_prefix}/share/man/man8/%{name}.8.gz
116  %attr(755,root,root) %dir %{docdir}  %attr(755,root,root) %dir %{docdir}
117  %attr(644,root,root) %doc %{docdir}/*  %attr(644,root,root) %doc %{docdir}/*
118  %attr(750,root,root) %dir %{_var}/lib/%{name}  %attr(750,root,root) %dir %{_var}/%{name}
119  %attr(750,root,root) %dir %{_var}/lib/%{name}/db  %attr(750,root,root) %dir %{_var}/%{name}/db
120  %attr(640,root,root) %{_var}/lib/%{name}/db/*.dat  %attr(640,root,root) %{_var}/%{name}/db/*.dat
121  %attr(750,root,root) %dir %{_var}/lib/%{name}/db/i18n  %attr(750,root,root) %dir %{_var}/%{name}/db/i18n
122  %attr(640,root,root) %{_var}/lib/%{name}/db/i18n/*  %attr(640,root,root) %{_var}/%{name}/db/i18n/*
123  %attr(750,root,root) %dir %{_var}/lib/%{name}/tmp  %attr(750,root,root) %dir %{_var}/%{name}/tmp
124  %{_sysconfdir}/cron.daily/01-rkhunter  %{_sysconfdir}/cron.daily/01-rkhunter
125    
126    
127  %changelog  %changelog
128    * Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-3
129    - Change /var/lib to /var to be consistent with previous versions
130    
131  * Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-2  * Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-2
132  - Add a few more services for sme tests  - Add a few more services for sme tests
133    


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