SPECS: postfixadmin.spec - added vacation subpackage
luzik
luzik at pld-linux.org
Tue May 22 11:29:24 CEST 2007
Author: luzik Date: Tue May 22 09:29:24 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added vacation subpackage
---- Files affected:
SPECS:
postfixadmin.spec (1.11 -> 1.12)
---- Diffs:
================================================================
Index: SPECS/postfixadmin.spec
diff -u SPECS/postfixadmin.spec:1.11 SPECS/postfixadmin.spec:1.12
--- SPECS/postfixadmin.spec:1.11 Mon Apr 30 08:27:35 2007
+++ SPECS/postfixadmin.spec Tue May 22 11:29:19 2007
@@ -16,6 +16,10 @@
Patch0: %{name}-pl.patch
URL: http://high5.net/postfixadmin/
BuildRequires: rpmbuild(macros) >= 1.264
+Requires(postun): /usr/sbin/userdel
+Requires(postun): /usr/sbin/groupdel
+Requires(pre): /usr/sbin/useradd
+Requires(pre): /usr/sbin/groupadd
Requires: php(pcre)
Requires: webserver(access)
Requires: webserver(php)
@@ -53,13 +57,24 @@
- zapasowe MX-y
- komunikaty w ponad 25 języków (podziękowania za przysłanie ich!)
+%package vacation
+Summary: Vacations script for postfix
+Summary(pl.UTF-8): Skrypt wakacje dla postfixa
+Group: Networking/Utilities
+
+%description vacation
+Vacations script for postfix.
+
+%description vacation -l pl.UTF-8
+Skrypt wakacje dla postfixa.
+
%prep
%setup -q
%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/{admin,images,languages,templates,users}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/{admin,images,languages,templates,users},/var/spool/vacation}
install *.php $RPM_BUILD_ROOT%{_appdir}
install admin/*.php $RPM_BUILD_ROOT%{_appdir}/admin
@@ -68,6 +83,7 @@
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
# config:
install config.inc.php.sample $RPM_BUILD_ROOT%{_sysconfdir}/config.php
@@ -78,6 +94,16 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%pre vacation
+%groupadd -g 219 vacation
+%useradd -u 219 -d /var/spool/vacation/ -s /bin/false -c "Vacation scripts" -g vacation vacation
+
+%postun vacation
+if [ "$1" = "0" ]; then
+ %userremove vacation
+ %groupremove vacation
+fi
+
%triggerin -- apache < 2.2.0, apache-base
%webapp_register httpd %{_webapp}
@@ -126,6 +152,9 @@
%{_appdir}/stylesheet.css
%{_appdir}/templates
%{_appdir}/users
+%files vacation
+%attr(700,vacation,vacation) %dir /var/spool/vacation
+%attr(700,vacation,vacation) /var/spool/vacation/vacation.pl
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -133,6 +162,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.12 2007/05/22 09:29:19 luzik
+- added vacation subpackage
+
Revision 1.11 2007/04/30 06:27:35 luzik
- included css
- added pl lang fix
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/postfixadmin.spec?r1=1.11&r2=1.12&f=u
More information about the pld-cvs-commit
mailing list