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