/[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.3 by slords, Mon Dec 17 21:04:58 2007 UTC Revision 1.11 by slords, Sun Mar 2 21:48:21 2008 UTC
# Line 6  Line 6 
6  #%%dump  #%%dump
7    
8  %define name rkhunter  %define name rkhunter
9  %define ver 1.3.0  %define ver 1.3.2
10  %define rel 1  %define rel 2
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    
62  %install  %install
63    MANPATH=""
64    export MANPATH
65    
66  sh ./installer.sh --layout RPM --install  sh ./installer.sh --layout RPM --install
67    
68  sed -i 's_#ALLOWPROCLISTEN=/sbin/dhclient_ALLOWPROCLISTEN=/sbin/dhclient_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf  sed -i 's_#ALLOWPROCLISTEN=/sbin/dhclient_ALLOWPROCLISTEN=/sbin/dhclient_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf
69    sed -i 's_#ALLOWPROCLISTEN=/usr/sbin/pppoe_ALLOWPROCLISTEN=/sbin/pppoe_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf
70  sed -i 's_#ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf  sed -i 's_#ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf
71    sed -i '/#ALLOWPROCLISTEN=\/usr\/bin\/dhcpcd/iALLOWPROCLISTEN=\/usr\/sbin\/dhcpd' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf
72  sed -i '/#ALLOWPROCDELFILE=\/usr\/sbin\/mysqld/aALLOWPROCDELFILE=\/usr\/sbin\/httpd' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf  sed -i '/#ALLOWPROCDELFILE=\/usr\/sbin\/mysqld/aALLOWPROCDELFILE=\/usr\/sbin\/httpd' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf
73    sed -i '/ALLOWPROCDELFILE=\/usr\/sbin\/httpd/aALLOWPROCDELFILE=\/usr\/sbin\/asterisk' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf
74    sed -i '/ALLOWPROCDELFILE=\/usr\/sbin\/httpd/aALLOWPROCDELFILE=\/usr\/bin\/freshclam' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf
75    
76  # Make a cron.daily file to mail us the reports  # Make a cron.daily file to mail us the reports
77  %{__mkdir} -p "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily"  %{__mkdir} -p "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily"
78  %{__cat} > "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/01-rkhunter" <<EOF  %{__cat} > "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/01-rkhunter" <<EOF
79  #!/bin/sh  #!/bin/sh
80  %{_bindir}/rkhunter --cronjob --update --disable apps,system_commands --rwo  %{_bindir}/rkhunter --cronjob --update --disable apps,suspscan,system_commands --rwo
81  exit 0  exit 0
82  EOF  EOF
83  %{__chmod} a+rwx,g-w,o-rwx ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/01-rkhunter  %{__chmod} a+rwx,g-w,o-rwx ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/01-rkhunter
# Line 77  EOF Line 86  EOF
86  %post  %post
87  # Only do this on an initial install  # Only do this on an initial install
88  if [ $1 -eq 1 ]; then  if [ $1 -eq 1 ]; then
89          %{__cp} -p /etc/passwd /var/lib/rkhunter/tmp >/dev/null 2>&1 || :          %{__cp} -p /etc/passwd /var/rkhunter/tmp >/dev/null 2>&1 || :
90          %{__cp} -p /etc/group /var/lib/rkhunter/tmp >/dev/null 2>&1 || :          %{__cp} -p /etc/group /var/rkhunter/tmp >/dev/null 2>&1 || :
91  fi  fi
92    
93    
# Line 86  fi Line 95  fi
95  # Only do this when removing the RPM  # Only do this when removing the RPM
96  if [ $1 -eq 0 ]; then  if [ $1 -eq 0 ]; then
97          %{__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
98          %{__rm} -rf /var/lib/rkhunter/* >/dev/null 2>&1          %{__rm} -rf /var/rkhunter/* >/dev/null 2>&1
99  fi  fi
100    
101    
# Line 111  fi Line 120  fi
120  %attr(644,root,root) %doc %{_prefix}/share/man/man8/%{name}.8.gz  %attr(644,root,root) %doc %{_prefix}/share/man/man8/%{name}.8.gz
121  %attr(755,root,root) %dir %{docdir}  %attr(755,root,root) %dir %{docdir}
122  %attr(644,root,root) %doc %{docdir}/*  %attr(644,root,root) %doc %{docdir}/*
123  %attr(750,root,root) %dir %{_var}/lib/%{name}  %attr(750,root,root) %dir %{_var}/%{name}
124  %attr(750,root,root) %dir %{_var}/lib/%{name}/db  %attr(750,root,root) %dir %{_var}/%{name}/db
125  %attr(640,root,root) %{_var}/lib/%{name}/db/*.dat  %attr(640,root,root) %{_var}/%{name}/db/*.dat
126  %attr(750,root,root) %dir %{_var}/lib/%{name}/db/i18n  %attr(750,root,root) %dir %{_var}/%{name}/db/i18n
127  %attr(640,root,root) %{_var}/lib/%{name}/db/i18n/*  %attr(640,root,root) %{_var}/%{name}/db/i18n/*
128  %attr(750,root,root) %dir %{_var}/lib/%{name}/tmp  %attr(750,root,root) %dir %{_var}/%{name}/tmp
129  %{_sysconfdir}/cron.daily/01-rkhunter  %{_sysconfdir}/cron.daily/01-rkhunter
130    
131    
132  %changelog  %changelog
133    * Sun Mar 2 2008 Shad L. Lords <slords@mail.com> 1.3.2-2
134    - Allow freshclam to use deleted files. [SME: 3876]
135    
136    * Fri Feb 29 2008 Shad L. Lords <slords@mail.com> 1.3.2-1
137    - Update to rkhunter v1.3.2 [SME: 4000]
138    
139    * Wed Jan 30 2008 Shad L. Lords <slords@mail.com> 1.3.0-6
140    - Fix asterisk to allow deleted files. [SME: 3795]
141    
142    * Tue Jan 29 2008 Shad L. Lords <slords@mail.com> 1.3.0-5
143    - Correct pppoe binary location.
144    - Add asterisk binary to allow deleted files. [SME: 3795]
145    
146    * Mon Jan 7 2008 Shad L. Lords <slords@mail.com> 1.3.0-4
147    - Disable scan for suspicious files until fixed [SME: 3713]
148    
149    * Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-3
150    - Change /var/lib to /var to be consistent with previous versions
151    
152    * Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-2
153    - Add a few more services for sme tests
154    
155  * Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-1  * Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-1
156  - Fix installer to not install in local  - Fix installer to not install in local
157  - Set parameters for sme specific tests  - Set parameters for sme specific tests


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