1 |
Summary: SME Server enhancement to enable vacation messages for users. |
2 |
%define name smeserver-vacation |
3 |
Name: %{name} |
4 |
%define version 1.0 |
5 |
%define release 13 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
URL: http://www.dungog.net/sme |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
Patch0: smeserver-vacation-1.0-frMenuSplit.patch |
13 |
Patch1: smeserver-vacation-1.0-esLocale.patch |
14 |
BuildArchitectures: noarch |
15 |
BuildRoot: /var/tmp/%{name}-%{version} |
16 |
Requires: e-smith-release >= 7.0, |
17 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
18 |
AutoReqProv: no |
19 |
|
20 |
%description |
21 |
SME Server enhancement to enable vacation messages for users. |
22 |
Optionally provides a user-manager panel where users can |
23 |
enable vacation for themselves and to modify their own message |
24 |
|
25 |
%changelog |
26 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-13 |
27 |
- add spanish translation, thanks Normando Hall [SME 3503] |
28 |
|
29 |
* Thu Jun 14 2007 Stephen Noble <support@dungog.net> |
30 |
- apply updates up to -11 |
31 |
|
32 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
33 |
- Clean up spec so package can be built by koji/plague |
34 |
|
35 |
* Fri Dec 29 2006 Stephen Noble <support@dungog.net> |
36 |
- display Vacation status correctly on modify page in server-manager [sme 2200] |
37 |
- [1.0-11] |
38 |
|
39 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
40 |
- Update to new release naming. No functional changes. |
41 |
- Make Packager generic |
42 |
|
43 |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
44 |
- display description unshaded * |
45 |
- german lexicon fix |
46 |
- cosmetic log error fixed [sme 1992] |
47 |
- [1.0-10] |
48 |
|
49 |
* Thu Aug 24 2006 Stephen Noble <support@dungog.net> |
50 |
- now finds corrects vacation text when used under userpanel. |
51 |
- german translation [sme 1101] |
52 |
- [1.0-9] |
53 |
|
54 |
* Wed Apr 6 2006 Stephen Noble <support@dungog.net> |
55 |
- suppress description if no users [contribs 1243] |
56 |
- [1.0-8] |
57 |
|
58 |
* Wed Apr 6 2006 Stephen Noble <support@dungog.net> |
59 |
- say no users if none exist [contribs 1243] |
60 |
- display DomainName in email address [contribs 1242] |
61 |
- [1.0-7] |
62 |
|
63 |
* Wed Apr 6 2006 Stephen Noble <support@dungog.net> |
64 |
- unlink .vacation.msg before writing [contribs 1192] |
65 |
- vacation doesn't respond to spam [contribs 1190] |
66 |
- [1.0-6] |
67 |
|
68 |
* Sat Mar 25 2006 Stephen Noble <support@dungog.net> |
69 |
- updated lexicons |
70 |
- removed event |
71 |
- [1.0-5] |
72 |
|
73 |
* Fri Mar 24 2006 Stephen Noble <support@dungog.net> |
74 |
- Change the interval between repeat replies to the same sender |
75 |
- config setprop qmail VacationDelay -t3d, man vacation |
76 |
- reset vacationDB when setting status to no |
77 |
- modified to, Subject: Re: $SUBJECT - Away from my email |
78 |
- updated fr lexicon |
79 |
- [1.0-4] |
80 |
|
81 |
* Wed Mar 22 2006 Stephen Noble <support@dungog.net> |
82 |
- updated lexicons |
83 |
- [1.0-3] |
84 |
|
85 |
* Wed Mar 22 2006 Stephen Noble <support@dungog.net> |
86 |
- fr lexicon |
87 |
- expand ~/.qmail on uninstall |
88 |
- [1.0-2] |
89 |
|
90 |
* Mon Mar 20 2006 Stephen Noble <support@dungog.net> |
91 |
- FormMagick version |
92 |
- [1.0-1] |
93 |
|
94 |
* Mon Dec 12 2005 Stephen Noble <support@dungog.net> |
95 |
- Strip out DOS Carriage Returns (CR) |
96 |
- thanks to mike sensney |
97 |
- [0.9-2] |
98 |
|
99 |
* Sat Sep 03 2005 Stephen Noble <support@dungog.net> |
100 |
- renamed smeserver-vacation, |
101 |
- contains vacation & userpanel-vacation |
102 |
- [0.9-1] |
103 |
|
104 |
* Sat Sep 03 2005 David Beveridge <davidb@nass.com.au> |
105 |
- [0.3-2] |
106 |
- upgrade to work with AccountsDB on SME 7.0 |
107 |
|
108 |
* Mon Dec 31 2001 Daniel van Raay <danielvr@caa.org.au> |
109 |
- [0.2-4] |
110 |
- Added generated 'From:' lines to default reply message |
111 |
- Minor cosmetic cleaning |
112 |
|
113 |
* Fri Nov 23 2001 Daniel van Raay <danielvr@caa.org.au> |
114 |
- [0.2-3] |
115 |
- .vacation.db files are now deleted in the user-modify event |
116 |
|
117 |
* Tue Nov 14 2001 Daniel van Raay <danielvr@caa.org.au> |
118 |
- [0.2-2] |
119 |
- fixed bug in vacation script that delivered multiple bounces to users |
120 |
|
121 |
* Mon Sep 04 2001 Daniel van Raay <danielvr@caa.org.au> |
122 |
- [0.2-1] |
123 |
- added -j option to vacation command line |
124 |
- updated for compatibility with e-smith 4.1 |
125 |
|
126 |
* Wed Dec 27 2000 Daniel van Raay <danielvr@caa.org.au> |
127 |
- [0.1-1] |
128 |
- initial release |
129 |
|
130 |
%prep |
131 |
%setup |
132 |
%patch0 -p1 |
133 |
%patch1 -p2 |
134 |
|
135 |
%build |
136 |
perl createlinks |
137 |
|
138 |
LEXICONS1=$(find root/etc/e-smith/locale/ -type f ) |
139 |
LEXICONS2=$(find root/etc/e-smith/web/functions/uservacations -type f ) |
140 |
LEXICONS2=$(find root/etc/e-smith/web/functions/userpanel-vacation -type f ) |
141 |
|
142 |
for lexicon in $LEXICONS1 $LEXICONS2 $LEXICONS3 |
143 |
do |
144 |
/sbin/e-smith/validate-lexicon $lexicon |
145 |
done |
146 |
|
147 |
# it sv |
148 |
for LINK in en-us fr de es |
149 |
do |
150 |
# if [ -z "/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/uservacations"] ; then |
151 |
/bin/ln -s uservacations \ |
152 |
root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-vacation |
153 |
# fi |
154 |
done |
155 |
|
156 |
%install |
157 |
rm -rf $RPM_BUILD_ROOT |
158 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
159 |
rm -f %{name}-%{version}-filelist |
160 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
161 |
--file '/usr/local/bin/vacation' 'attr(0755,root,root)' \ |
162 |
> %{name}-%{version}-filelist |
163 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
164 |
|
165 |
%clean |
166 |
cd .. |
167 |
rm -rf %{name}-%{version} |
168 |
|
169 |
%pre |
170 |
%preun |
171 |
|
172 |
%post |
173 |
#new installs |
174 |
#if [ $1 = 1 ] ; then |
175 |
|
176 |
#fi |
177 |
|
178 |
#upgrades (and new installs) |
179 |
#/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
180 |
|
181 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
182 |
/sbin/e-smith/signal-event conf-userpanel |
183 |
fi |
184 |
|
185 |
#/bin/chmod a+x /usr/local/bin/vacation |
186 |
|
187 |
%postun |
188 |
#uninstall |
189 |
if [ $1 = 0 ] ; then |
190 |
|
191 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
192 |
for db in $DBS ; do |
193 |
/sbin/e-smith/db $db delete userpanel-vacation 2>/dev/null |
194 |
/sbin/e-smith/db $db delete uservacations 2>/dev/null |
195 |
done |
196 |
|
197 |
#need to expand ~/.qmail for users who are still enabled |
198 |
/etc/e-smith/events/actions/qmail-update-user |
199 |
|
200 |
fi |
201 |
|
202 |
|
203 |
%files -f %{name}-%{version}-filelist |
204 |
%defattr(-,root,root) |
205 |
|