SPECS: squirrelmail-plugin-check_quota.spec - keep config in /etc/...

hawk hawk at pld-linux.org
Tue Apr 25 15:15:20 CEST 2006


Author: hawk                         Date: Tue Apr 25 13:15:20 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- keep config in /etc/webapps/squirrelmail, symlink it in plugin dir
- bumped R: squirrelmail to 1.4.6-1 to be sure it has R: webapps
- release 1

---- Files affected:
SPECS:
   squirrelmail-plugin-check_quota.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/squirrelmail-plugin-check_quota.spec
diff -u SPECS/squirrelmail-plugin-check_quota.spec:1.4 SPECS/squirrelmail-plugin-check_quota.spec:1.5
--- SPECS/squirrelmail-plugin-check_quota.spec:1.4	Mon Apr 25 00:02:51 2005
+++ SPECS/squirrelmail-plugin-check_quota.spec	Tue Apr 25 15:15:15 2006
@@ -8,17 +8,18 @@
 Summary(pl):	Wtyczka do sprawdzania limitów dyskowych
 Name:		squirrelmail-plugin-%{_plugin}
 Version:	1.4
-Release:	%{mversion}.0.1
+Release:	1
 License:	GPL
 Group:		Applications/Mail
 Source0:	http://www.squirrelmail.org/plugins/%{_plugin}-%{version}-%{mversion}.tar.gz
 # Source0-md5:	b9b6c50445dc68d29c6af6b9c11e3481
 URL:		http://www.squirrelmail.org/
-Requires:	squirrelmail >= 1.4
+Requires:	squirrelmail >= 1.4.6-1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_plugindir %{_datadir}/squirrelmail/plugins/%{_plugin}
+%define		_plugindir	%{_datadir}/squirrelmail/plugins/%{_plugin}
+%define		_sysconfdir	/etc/webapps/squirrelmail
 
 %description
 This plugin includes the functionality of two plugins, which are Quota
@@ -53,11 +54,12 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_plugindir}
+install -d $RPM_BUILD_ROOT%{_plugindir} $RPM_BUILD_ROOT%{_sysconfdir}
 
 install *.php $RPM_BUILD_ROOT%{_plugindir}
 cp -r images swf locale $RPM_BUILD_ROOT%{_plugindir}
-install config.php.sample $RPM_BUILD_ROOT%{_plugindir}/config.php
+mv config.php.sample $RPM_BUILD_ROOT%{_sysconfdir}/check_quota_config.php
+ln -s %{_sysconfdir}/check_quota_config.php $RPM_BUILD_ROOT%{_plugindir}/config.php
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -65,7 +67,7 @@
 %files
 %defattr(644,root,root,755)
 %doc INSTALL README FAQ TRANSLATING OLDCHANGELOG
-%config(noreplace) %verify(not md5 mtime size) %{_plugindir}/config.php
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/check_quota_config.php
 %dir %{_plugindir}
 %{_plugindir}/*.php
 %{_plugindir}/swf
@@ -78,6 +80,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2006/04/25 13:15:15  hawk
+- keep config in /etc/webapps/squirrelmail, symlink it in plugin dir
+- bumped R: squirrelmail to 1.4.6-1 to be sure it has R: webapps
+- release 1
+
 Revision 1.4  2005/04/24 22:02:51  matowy
 - BuildArch noarch
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/squirrelmail-plugin-check_quota.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list