SPECS: amavis-stats.spec - added init script
hawk
hawk at pld-linux.org
Mon May 12 23:44:16 CEST 2008
Author: hawk Date: Mon May 12 21:44:16 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added init script
---- Files affected:
SPECS:
amavis-stats.spec (1.38 -> 1.39)
---- Diffs:
================================================================
Index: SPECS/amavis-stats.spec
diff -u SPECS/amavis-stats.spec:1.38 SPECS/amavis-stats.spec:1.39
--- SPECS/amavis-stats.spec:1.38 Mon May 12 18:56:09 2008
+++ SPECS/amavis-stats.spec Mon May 12 23:44:11 2008
@@ -1,19 +1,20 @@
# $Revision$, $Date$
#
# TODO:
-# - add init script
-# - add trigger to update apache configuration
+# - add trigger to update apache configuration when upgrading from
+# older versions (not sure if this is required)
#
%include /usr/lib/rpm/macros.perl
Summary: Simple amavisd-new statistics generator
Summary(pl.UTF-8): Prosty generator statystyk dla amavisd-new
Name: amavis-stats
Version: 0.1.22
-Release: 0.1
+Release: 0.2
License: GPL
Group: Applications/System
Source0: http://downloads.topicdesk.com/amavis_stats/%{name}-%{version}.tar.gz
# Source0-md5: 5bea6811c00a4fda4b96b6a318a04a92
+Source1: %{name}.init
Patch0: %{name}-gzip.patch
Patch1: %{name}-Makefile.patch
Patch2: %{name}-pid.patch
@@ -81,11 +82,12 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_webapps}/%{_webapp}}
mv $RPM_BUILD_ROOT{%{_datadir}/amavis-stats/amavis-stats.alias.conf,%{_webapps}/%{_webapp}/httpd.conf}
mv $RPM_BUILD_ROOT{%{_datadir}/amavis-stats/amavis-stats.php.conf,%{_webapps}/%{_webapp}}
ln -s %{_webapps}/%{_webapp}/amavis-stats.php.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/amavis-stats.php.conf
cp $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/{httpd,apache}.conf
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/amavis-stats
%clean
rm -rf $RPM_BUILD_ROOT
@@ -119,6 +121,7 @@
%files
%defattr(644,root,root,755)
%doc README ChangeLog
+%attr(754,root,root) /etc/rc.d/init.d/amavis-stats
%attr(755,root,root) %{_sbindir}/amavis-stats
%dir %{_pkglibdir}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/amavis-stats.conf
@@ -148,6 +151,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.39 2008-05-12 21:44:11 hawk
+- added init script
+
Revision 1.38 2008-05-12 16:56:09 hawk
- change default location of .pid file to /var/run
- killed cron.d/amavis-stats, program now runs as service in background
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/amavis-stats.spec?r1=1.38&r2=1.39&f=u
More information about the pld-cvs-commit
mailing list