|
Summary: SME Server enhancement to enable vacation messages for users. |
|
1 |
%define name smeserver-vacation |
%define name smeserver-vacation |
|
Name: %{name} |
|
2 |
%define version 1.0 |
%define version 1.0 |
3 |
%define release 11 |
%define release 14 |
4 |
|
Summary: SME Server enhancement to enable vacation messages for users. |
5 |
|
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release} |
Release: %{release}%{?dist} |
8 |
Distribution: SME Server |
License: GNU GPL version 2 |
|
Copyright: GPL |
|
9 |
URL: http://www.dungog.net/sme |
URL: http://www.dungog.net/sme |
10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
Packager: Stephen Noble <support@dungog.net> |
Patch0: smeserver-vacation-1.0-frMenuSplit.patch |
13 |
|
Patch1: smeserver-vacation-1.0-esLocale2.patch |
14 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
15 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
16 |
Requires: e-smith-release >= 7.0, |
Requires: e-smith-release >= 7.0, |
17 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
18 |
AutoReqProv: no |
AutoReqProv: no |
19 |
|
|
20 |
%description |
%description |
23 |
enable vacation for themselves and to modify their own message |
enable vacation for themselves and to modify their own message |
24 |
|
|
25 |
%changelog |
%changelog |
26 |
|
* Wed Dec 26 2007 Stephen Noble <support@dungog.net> 1.0-14 |
27 |
|
- fix spanish translation |
28 |
|
|
29 |
|
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-13 |
30 |
|
- add spanish translation, thanks Normando Hall [SME 3503] |
31 |
|
|
32 |
|
* Thu Jun 14 2007 Stephen Noble <support@dungog.net> |
33 |
|
- apply updates up to -11 |
34 |
|
|
35 |
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
36 |
|
- Clean up spec so package can be built by koji/plague |
37 |
|
|
38 |
* Fri Dec 29 2006 Stephen Noble <support@dungog.net> |
* Fri Dec 29 2006 Stephen Noble <support@dungog.net> |
39 |
- display Vacation status correctly on modify page in server-manager |
- display Vacation status correctly on modify page in server-manager [sme 2200] |
40 |
- [1.0-11] |
- [1.0-11] |
41 |
|
|
42 |
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
43 |
|
- Update to new release naming. No functional changes. |
44 |
|
- Make Packager generic |
45 |
|
|
46 |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
47 |
- display description unshaded * |
- display description unshaded * |
48 |
- german lexicon fix |
- german lexicon fix |
132 |
|
|
133 |
%prep |
%prep |
134 |
%setup |
%setup |
135 |
|
%patch0 -p1 |
136 |
|
%patch1 -p2 |
137 |
|
|
138 |
%build |
%build |
139 |
perl createlinks |
perl createlinks |
140 |
|
|
141 |
LEXICONS1=$(find root/etc/e-smith/locale/ -type f ) |
LEXICONS1=$(find root/etc/e-smith/locale/ -type f ) |
142 |
LEXICONS2=$(find root/etc/e-smith/web/functions/uservacations -type f ) |
LEXICONS2=$(find root/etc/e-smith/web/functions/ -type f ) |
|
LEXICONS2=$(find root/etc/e-smith/web/functions/userpanel-vacation -type f ) |
|
143 |
|
|
144 |
for lexicon in $LEXICONS1 $LEXICONS2 $LEXICONS3 |
for lexicon in $LEXICONS1 $LEXICONS2 |
145 |
do |
do |
146 |
/sbin/e-smith/validate-lexicon $lexicon |
/sbin/e-smith/validate-lexicon $lexicon |
147 |
done |
done |
148 |
|
|
149 |
#de en-us es fr de it |
#todo it sv |
150 |
for LINK in en-us fr de |
for LINK in en-us fr de es |
151 |
do |
do |
152 |
# if [ -z "/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/uservacations"] ; then |
/bin/ln -s uservacations root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation |
|
/bin/ln -s uservacations root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation |
|
|
# fi |
|
153 |
done |
done |
154 |
|
|
155 |
%install |
%install |
159 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
160 |
--file '/usr/local/bin/vacation' 'attr(0755,root,root)' \ |
--file '/usr/local/bin/vacation' 'attr(0755,root,root)' \ |
161 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
162 |
echo "%doc " >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
163 |
|
|
164 |
%clean |
%clean |
165 |
cd .. |
rm -rf $RPM_BUILD_ROOT |
|
rm -rf %{name}-%{version} |
|
166 |
|
|
167 |
%pre |
%pre |
168 |
%preun |
%preun |
169 |
|
|
170 |
%post |
%post |
171 |
#new installs |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
172 |
#if [ $1 = 1 ] ; then |
/sbin/e-smith/signal-event conf-userpanel |
173 |
|
fi |
|
#fi |
|
|
|
|
|
#upgrades (and new installs) |
|
|
/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
|
|
|
|
|
#if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
|
|
# /sbin/e-smith/signal-event conf-userpanel |
|
|
#fi |
|
174 |
|
|
175 |
%postun |
%postun |
176 |
#uninstall |
#uninstall |
181 |
/sbin/e-smith/db $db delete userpanel-vacation 2>/dev/null |
/sbin/e-smith/db $db delete userpanel-vacation 2>/dev/null |
182 |
/sbin/e-smith/db $db delete uservacations 2>/dev/null |
/sbin/e-smith/db $db delete uservacations 2>/dev/null |
183 |
done |
done |
184 |
|
|
185 |
#need to expand ~/.qmail for users who are still enabled |
#need to expand ~/.qmail for users who are still enabled |
186 |
/etc/e-smith/events/actions/qmail-update-user |
/etc/e-smith/events/actions/qmail-update-user |
187 |
|
|
190 |
|
|
191 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
192 |
%defattr(-,root,root) |
%defattr(-,root,root) |
|
|
|