SPECS: postfixadmin.spec - move templates to etc - it's up to user...
blues
blues at pld-linux.org
Thu May 24 14:06:48 CEST 2007
Author: blues Date: Thu May 24 12:06:48 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- move templates to etc - it's up to user to modify how this frontend looks
like; package motd* as configs
---- Files affected:
SPECS:
postfixadmin.spec (1.14 -> 1.15)
---- Diffs:
================================================================
Index: SPECS/postfixadmin.spec
diff -u SPECS/postfixadmin.spec:1.14 SPECS/postfixadmin.spec:1.15
--- SPECS/postfixadmin.spec:1.14 Wed May 23 10:30:37 2007
+++ SPECS/postfixadmin.spec Thu May 24 14:06:34 2007
@@ -1,13 +1,12 @@
# $Revision$, $Date$
# TODO
# - webapps support: apache1, lighttpd
-# - *motd.txt should marked as config and placed in /etc ?
# - maybe split into 3 subpackages: admin, users, common?
Summary: Web Based Management tool created for Postfix
Summary(pl.UTF-8): Narzędzie WWW do zarządzania Postfiksem
Name: postfixadmin
Version: 2.1.0
-Release: 0.5
+Release: 0.6
License: freely usable and distributable with restrictions (see URL)
Group: Networking/Utilities
Source0: http://dl.sourceforge.net/postfixadmin/%{name}-%{version}.tgz
@@ -74,14 +73,14 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/{admin,images,languages,templates,users},/var/spool/vacation}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/templates,%{_appdir}/{admin,images,languages,templates,users},/var/spool/vacation}
install *.php $RPM_BUILD_ROOT%{_appdir}
install admin/*.php $RPM_BUILD_ROOT%{_appdir}/admin
install images/* $RPM_BUILD_ROOT%{_appdir}/images
install languages/* $RPM_BUILD_ROOT%{_appdir}/languages
+install templates/*.php $RPM_BUILD_ROOT%{_appdir}/templates
install stylesheet.css $RPM_BUILD_ROOT%{_appdir}
-install templates/* $RPM_BUILD_ROOT%{_appdir}/templates
install users/* $RPM_BUILD_ROOT%{_appdir}/users
install VIRTUAL_VACATION/vacation.pl $RPM_BUILD_ROOT/var/spool/vacation
@@ -91,6 +90,18 @@
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+# Many things can and should be modified by user:
+for file in `ls templates/*.tpl`; do
+ install $file $RPM_BUILD_ROOT%{_sysconfdir}/templates
+ ln -s %{_sysconfdir}/$file $RPM_BUILD_ROOT%{_appdir}/templates
+done
+
+# MOTD should be empty by default?
+for motd in motd-admin.txt motd-users.txt motd.txt; do
+ :> $RPM_BUILD_ROOT%{_sysconfdir}/$motd
+ ln -s %{_sysconfdir}/$motd $RPM_BUILD_ROOT%{_appdir}
+done
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -112,13 +123,17 @@
%files
%defattr(644,root,root,755)
-%doc *.TXT ADDITIONS VIRTUAL_VACATION
+%doc *.TXT ADDITIONS VIRTUAL_VACATION motd*.txt
%dir %attr(750,root,http) %{_sysconfdir}
#%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(750,root,http) %dir %{_sysconfdir}/templates
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/templates/*.tpl
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/motd*
%dir %{_appdir}
%{_appdir}/*.php
+%{_appdir}/motd*
%{_appdir}/admin
%{_appdir}/images
%dir %{_appdir}/languages
@@ -152,7 +167,9 @@
%{_appdir}/stylesheet.css
%{_appdir}/templates
%{_appdir}/users
+
%files vacation
+%defattr(644,root,root,755)
%attr(700,vacation,vacation) %dir /var/spool/vacation
%attr(700,vacation,vacation) /var/spool/vacation/vacation.pl
@@ -162,6 +179,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.15 2007/05/24 12:06:34 blues
+- move templates to etc - it's up to user to modify how this frontend looks
+ like; package motd* as configs
+
Revision 1.14 2007/05/23 08:30:37 blues
- project has moved
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/postfixadmin.spec?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list