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