updated -upstart to upstart 0.6.3
This commit is contained in:
parent
34637a76a8
commit
18c2da4c06
@ -1,15 +1,16 @@
|
|||||||
|
### !!! Uncomment only *one* of the 'start on' statements !!!
|
||||||
|
|
||||||
### Uncomment these lines when you want clamav-milter to be a milter
|
### Uncomment these lines when you want clamav-milter to be a milter
|
||||||
### for a locally running MTA
|
### for a locally running MTA
|
||||||
#start on starting sendmail
|
#start on (starting sendmail or starting postfix)
|
||||||
#start on starting postfix
|
|
||||||
|
|
||||||
### Uncomment these lines when you want clamav-milter to be a milter
|
### Uncomment these lines when you want clamav-milter to be a milter
|
||||||
### for a remotely running MTA
|
### for a remotely running MTA
|
||||||
#start on starting local
|
#start on starting local
|
||||||
|
|
||||||
stop on runlevel 0
|
stop on (runlevel 0 or
|
||||||
stop on runlevel 1
|
runlevel 1 or
|
||||||
stop on runlevel 6
|
runlevel 6)
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
exec /usr/sbin/clamav-milter -c /etc/mail/clamav-milter.conf --nofork=yes
|
exec /usr/sbin/clamav-milter -c /etc/mail/clamav-milter.conf --nofork=yes
|
||||||
|
23
clamav.spec
23
clamav.spec
@ -26,7 +26,7 @@
|
|||||||
Summary: End-user tools for the Clam Antivirus scanner
|
Summary: End-user tools for the Clam Antivirus scanner
|
||||||
Name: clamav
|
Name: clamav
|
||||||
Version: 0.95.3
|
Version: 0.95.3
|
||||||
Release: %release_func 1300%{?snapshot:.%snapshot}
|
Release: %release_func 1301%{?snapshot:.%snapshot}
|
||||||
|
|
||||||
License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2}
|
License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2}
|
||||||
Group: Applications/File
|
Group: Applications/File
|
||||||
@ -162,8 +162,7 @@ Group: System Environment/Daemons
|
|||||||
Source410: clamd.scan.upstart
|
Source410: clamd.scan.upstart
|
||||||
Provides: init(clamav-scanner) = upstart
|
Provides: init(clamav-scanner) = upstart
|
||||||
Requires: clamav-scanner = %version-%release
|
Requires: clamav-scanner = %version-%release
|
||||||
# implicates a conflict with upstart 0.5+
|
Requires(pre): /etc/init
|
||||||
Requires(pre): /etc/event.d
|
|
||||||
Requires(post): /usr/bin/killall
|
Requires(post): /usr/bin/killall
|
||||||
Requires(postun): /sbin/initctl
|
Requires(postun): /sbin/initctl
|
||||||
%{?noarch}
|
%{?noarch}
|
||||||
@ -211,8 +210,7 @@ Group: System Environment/Daemons
|
|||||||
Source310: clamav-milter.upstart
|
Source310: clamav-milter.upstart
|
||||||
Provides: init(clamav-milter) = upstart
|
Provides: init(clamav-milter) = upstart
|
||||||
Requires: clamav-milter = %version-%release
|
Requires: clamav-milter = %version-%release
|
||||||
# implicates a conflict with upstart 0.5+
|
Requires(pre): /etc/init
|
||||||
Requires(pre): /etc/event.d
|
|
||||||
Requires(post): /usr/bin/killall
|
Requires(post): /usr/bin/killall
|
||||||
Requires(postun): /sbin/initctl
|
Requires(postun): /sbin/initctl
|
||||||
%{?noarch}
|
%{?noarch}
|
||||||
@ -389,7 +387,7 @@ function smartsubst() {
|
|||||||
|
|
||||||
|
|
||||||
install -d -m755 \
|
install -d -m755 \
|
||||||
${RPM_BUILD_ROOT}%_sysconfdir/{mail,clamd.d,cron.d,logrotate.d,sysconfig,event.d} \
|
${RPM_BUILD_ROOT}%_sysconfdir/{mail,clamd.d,cron.d,logrotate.d,sysconfig,init} \
|
||||||
${RPM_BUILD_ROOT}%_var/log \
|
${RPM_BUILD_ROOT}%_var/log \
|
||||||
${RPM_BUILD_ROOT}%milterstatedir \
|
${RPM_BUILD_ROOT}%milterstatedir \
|
||||||
${RPM_BUILD_ROOT}%pkgdatadir/template \
|
${RPM_BUILD_ROOT}%pkgdatadir/template \
|
||||||
@ -445,7 +443,7 @@ sed -e 's!<SERVICE>!scan!g;s!<USER>!%scanuser!g' \
|
|||||||
sed -e 's!<SERVICE>!scan!g;' $RPM_BUILD_ROOT%pkgdatadir/template/clamd.init \
|
sed -e 's!<SERVICE>!scan!g;' $RPM_BUILD_ROOT%pkgdatadir/template/clamd.init \
|
||||||
> $RPM_BUILD_ROOT%_initrddir/clamd.scan
|
> $RPM_BUILD_ROOT%_initrddir/clamd.scan
|
||||||
|
|
||||||
install -p -m 644 %SOURCE410 $RPM_BUILD_ROOT%_sysconfdir/event.d/clamd.scan
|
install -p -m 644 %SOURCE410 $RPM_BUILD_ROOT%_sysconfdir/init/clamd.scan.conf
|
||||||
|
|
||||||
touch $RPM_BUILD_ROOT%scanstatedir/clamd.sock
|
touch $RPM_BUILD_ROOT%scanstatedir/clamd.sock
|
||||||
|
|
||||||
@ -459,14 +457,14 @@ sed -r \
|
|||||||
-e 's! /tmp/clamav-milter.log! %milterlog!g' \
|
-e 's! /tmp/clamav-milter.log! %milterlog!g' \
|
||||||
etc/clamav-milter.conf > $RPM_BUILD_ROOT%_sysconfdir/mail/clamav-milter.conf
|
etc/clamav-milter.conf > $RPM_BUILD_ROOT%_sysconfdir/mail/clamav-milter.conf
|
||||||
|
|
||||||
install -p -m 644 %SOURCE310 $RPM_BUILD_ROOT%_sysconfdir/event.d/clamav-milter
|
install -p -m 644 %SOURCE310 $RPM_BUILD_ROOT%_sysconfdir/init/clamav-milter.conf
|
||||||
install -p -m 755 %SOURCE320 $RPM_BUILD_ROOT%_initrddir/clamav-milter
|
install -p -m 755 %SOURCE320 $RPM_BUILD_ROOT%_initrddir/clamav-milter
|
||||||
|
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%_sysconfdir/clamav-milter.conf
|
rm -f $RPM_BUILD_ROOT%_sysconfdir/clamav-milter.conf
|
||||||
touch $RPM_BUILD_ROOT{%milterstatedir/clamav-milter.socket,%milterlog}
|
touch $RPM_BUILD_ROOT{%milterstatedir/clamav-milter.socket,%milterlog}
|
||||||
|
|
||||||
%{!?with_upstart:rm -rf $RPM_BUILD_ROOT%_sysconfdir/event.d}
|
%{!?with_upstart:rm -rf $RPM_BUILD_ROOT%_sysconfdir/init}
|
||||||
|
|
||||||
## ------------------------------------------------------------
|
## ------------------------------------------------------------
|
||||||
|
|
||||||
@ -671,7 +669,7 @@ test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
|
|||||||
%if 0%{?with_upstart:1}
|
%if 0%{?with_upstart:1}
|
||||||
%files scanner-upstart
|
%files scanner-upstart
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%config(noreplace) %_sysconfdir/event.d/clamd.scan
|
%config(noreplace) %_sysconfdir/init/clamd.scan*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
## -----------------------
|
## -----------------------
|
||||||
@ -693,11 +691,14 @@ test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
|
|||||||
%if 0%{?with_upstart:1}
|
%if 0%{?with_upstart:1}
|
||||||
%files milter-upstart
|
%files milter-upstart
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%config(noreplace) %_sysconfdir/event.d/clamav-milter
|
%config(noreplace) %_sysconfdir/init/clamav-milter*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Dec 6 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.3-1301
|
||||||
|
- updated -upstart to upstart 0.6.3
|
||||||
|
|
||||||
* Sat Nov 21 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
* Sat Nov 21 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
||||||
- adjusted chkconfig positions for clamav-milter (#530101)
|
- adjusted chkconfig positions for clamav-milter (#530101)
|
||||||
- use %%apply instead of %%patch
|
- use %%apply instead of %%patch
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
### Uncomment these lines when you want clamd.scan to be a scanner
|
### !!! Uncomment only *one* of the 'start on' statements !!!
|
||||||
### for a locally running clamav-milter
|
|
||||||
|
### Uncomment this line when you want clamd.scan to be a scanner for a
|
||||||
|
### locally running clamav-milter
|
||||||
#start on starting clamav-milter
|
#start on starting clamav-milter
|
||||||
|
|
||||||
### Uncomment these lines when you want clamd.scan to be a generic
|
### Uncomment this line when you want clamd.scan to be a generic
|
||||||
### scanner service
|
### scanner service
|
||||||
#start on starting local
|
#start on starting local
|
||||||
|
|
||||||
stop on runlevel 0
|
stop on (runlevel 0 or
|
||||||
stop on runlevel 1
|
runlevel 1 or
|
||||||
stop on runlevel 6
|
runlevel 6)
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
exec /usr/sbin/clamd -c /etc/clamd.d/scan.conf --nofork=yes
|
exec /usr/sbin/clamd -c /etc/clamd.d/scan.conf --nofork=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user