1 |
# $Id: smeserver-remoteuseraccess.spec,v 1.24 2009/08/24 17:58:13 slords Exp $ |
2 |
# Authority: dungog |
3 |
# Name: Stephen Noble |
4 |
|
5 |
Summary: Smeserver module to configure Shell and FTP access for individual users |
6 |
%define name smeserver-remoteuseraccess |
7 |
Name: %{name} |
8 |
%define version 1.2 |
9 |
%define release 35 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GNU GPL version 2 |
13 |
URL: http://www.dungog.net/sme |
14 |
Group: Networking/Daemons |
15 |
Source: %{name}-%{version}.tar.gz |
16 |
Patch0: smeserver-remoteuseraccess-fr.patch |
17 |
Patch1: smeserver-remoteuseraccess-1.2-frMenu.patch |
18 |
Patch2: smeserver-remoteuseraccess-1.2-event-rssh.patch |
19 |
Patch3: smeserver-remoteuseraccess-1.2-pootle.patch |
20 |
Patch4: smeserver-remoteuseraccess-1.2-locale-2008-03-11.patch |
21 |
Patch5: smeserver-remoteuseraccess-1.2-locale-2008-04-01.patch |
22 |
Patch6: smeserver-remoteuseraccess-1.2-locale-2008-04-22.patch |
23 |
Patch7: smeserver-remoteuseraccess-1.2-add2general.patch |
24 |
Patch8: smeserver-remoteuseraccess-1.2-locale-2008-05-05.patch |
25 |
Patch9: smeserver-remoteuseraccess-1.2-locale-2008-05-21.patch |
26 |
Patch10: smeserver-remoteuseraccess-1.2-locale-2008-07-01.patch |
27 |
Patch11: smeserver-remoteuseraccess-1.2-locale-2008-09-27.patch |
28 |
Patch12: smeserver-remoteuseraccess-1.2-locale-2008-10-14.patch |
29 |
Patch13: smeserver-remoteuseraccess-1.2-locale-2008-11-30.patch |
30 |
Patch14: smeserver-remoteuseraccess-1.2-locale-2009-01-01.patch |
31 |
Patch15: smeserver-remoteuseraccess-1.2-locale-2009-03-01.patch |
32 |
Patch16: smeserver-remoteuseraccess-1.2-locale-2009-04-27.patch |
33 |
Patch17: smeserver-remoteuseraccess-1.2-chrootpath.patch |
34 |
Patch18: smeserver-remoteuseraccess-1.2-locale-2009-08-24.patch |
35 |
Patch19: smeserver-remoteuseraccess-1.2-locale-2009-10-27.patch |
36 |
BuildRoot: /var/tmp/e-smith-buildroot |
37 |
BuildRequires: e-smith-devtools |
38 |
BuildArchitectures: noarch |
39 |
Requires: e-smith-release >= 7 |
40 |
Requires: e-smith-proftpd >= 1.12.0-6 |
41 |
Requires: e-smith-openssh >= 1.11.0-24 |
42 |
Requires: e-smith-formmagick >= 1.4.0-12 |
43 |
Obsoletes: dungog-proftpd-chroot |
44 |
Obsoletes: e-smith-usershellaccess |
45 |
Obsoletes: smeserver-sshkeys |
46 |
AutoReqProv: no |
47 |
|
48 |
%description |
49 |
SME server enhancement to provide a server-manager panel under security |
50 |
where you can enable shell access on a user by user basis. |
51 |
|
52 |
Shells available bash, optionally with sudo |
53 |
or rssh which allows scp sftp rsync cvs rdist |
54 |
TODO Chroot RSSH shell access. |
55 |
|
56 |
Also sets Chroots FTP access, VPN Client Access, |
57 |
and allows you to enter ssh keys |
58 |
|
59 |
%changelog |
60 |
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.2-35.sme |
61 |
- apply locale 2009-10-27 patch |
62 |
|
63 |
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.2-34.sme |
64 |
- apply locale 2009-08-24 patch |
65 |
|
66 |
* Sat Jun 13 2009 Stephen Noble <support@dungog.net> 1.2-33 |
67 |
- chroot path not displayed in panel [SME: 5360] |
68 |
|
69 |
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.2-32 |
70 |
- apply locale 2009-04-27 patch |
71 |
|
72 |
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-30 |
73 |
- Apply 1 Mar 2009 locale patch [SME: 5018] |
74 |
|
75 |
* Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-29 |
76 |
- Apply 1 Jan 2009 locale patch [SME: 4900] |
77 |
|
78 |
* Sun Nov 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-28 |
79 |
- Apply 30 Nov 2008 locale patch |
80 |
|
81 |
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-27 |
82 |
- Apply 14 Oct 2008 locale patch |
83 |
|
84 |
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.2-26 |
85 |
- Apply locale patch |
86 |
|
87 |
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-25 |
88 |
- Apply 1 July 2008 locale patch |
89 |
|
90 |
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-24 |
91 |
- Apply 21 May 2008 locale patch |
92 |
|
93 |
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-23 |
94 |
- Apply 5 May 2008 locale patch |
95 |
|
96 |
* Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-22 |
97 |
- Add common <base> tags to e-smith-formmagick's general |
98 |
|
99 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-21 |
100 |
- Forgot to apply patch |
101 |
|
102 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2-20 |
103 |
- Apply 22 April 2008 locale patch |
104 |
|
105 |
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.2-19 |
106 |
- Update to UTF-8 translations |
107 |
|
108 |
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.2-18 |
109 |
- update locale 2008-03-11 |
110 |
|
111 |
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2-17 |
112 |
- prepare en lexicons for pootle translations |
113 |
|
114 |
* Fri Jan 11 2008 Stephen Noble <support@dungog.net> 1.2-16 |
115 |
- remove duplicate event rssh.conf [SME 3470] |
116 |
|
117 |
* Thu Dec 20 2007 Stephen Noble <support@dungog.net> |
118 |
- french menu fix 1.2-14 |
119 |
|
120 |
* Thu Dec 20 2007 Stephen Noble <support@dungog.net> |
121 |
- french translation, thanks Sylvain 1.2-13 |
122 |
|
123 |
* Wed Jun 13 2007 Stephen Noble <support@dungog.net> |
124 |
- apply changes from 1.2-2 to 1.2-12 |
125 |
|
126 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
127 |
- Clean up spec so package can be built by koji/plague |
128 |
|
129 |
* Sun Feb 18 2007 Stephen Noble <support@dungog.net> |
130 |
- swedish translation, thanks Chrille |
131 |
- [1.2-12] |
132 |
|
133 |
* Tue Jan 23 2007 Stephen Noble <support@dungog.net> |
134 |
- spanish translation, thanks Gene |
135 |
- requires e-smith-proftpd >= 1.12.0-6, custom template removed |
136 |
- default set, ftp{ChrootDir} = home |
137 |
- [1.2-11] |
138 |
|
139 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
140 |
- Update to new release naming. No functional changes. |
141 |
- Make Packager generic |
142 |
|
143 |
* Thu Nov 23 2006 Stephen Noble <support@dungog.net> |
144 |
- chroot path fix when home set [sme 2084] |
145 |
- [1.2-10] |
146 |
|
147 |
* Fri Nov 10 2006 Stephen Noble <support@dungog.net> |
148 |
- fix textarea bug [sme 1088] |
149 |
- requires perl-CGI-FormMagick-0.92-08 |
150 |
- [1.2-9] |
151 |
|
152 |
* Fri Nov 10 2006 Stephen Noble <support@dungog.net> |
153 |
- chroot path fix [sme 2046] |
154 |
- [1.2-8] |
155 |
|
156 |
* Fri Nov 3 2006 Stephen Noble <support@dungog.net> |
157 |
- german translation fix |
158 |
- [1.2-7] |
159 |
|
160 |
* Fri Aug 25 2006 Stephen Noble <support@dungog.net> |
161 |
- empty chroot path defaults to home [sme 1249] |
162 |
- [1.2-6] |
163 |
|
164 |
* Thu Aug 24 2006 Stephen Noble <support@dungog.net> |
165 |
- now finds correct sshkeys when used under userpanel |
166 |
- [1.2-5] |
167 |
|
168 |
* Wed May 10 2006 Stephen Noble <support@dungog.net> |
169 |
- German translation fixed [sme 1258] |
170 |
- [1.2-4] |
171 |
|
172 |
* Wed May 10 2006 Stephen Noble <support@dungog.net> |
173 |
- RSSH access uses VPNAccess property |
174 |
- German translation added, thanks Dietmar |
175 |
- [1.2-3] |
176 |
|
177 |
* Mon Apr 24 2006 Stephen Noble <support@dungog.net> |
178 |
- Description Display fixed |
179 |
- [1.2-2] |
180 |
|
181 |
* Fri Apr 14 2006 Stephen Noble <support@dungog.net> |
182 |
- FormMagick Version |
183 |
- [1.2-1] |
184 |
|
185 |
* Thu Apr 13 2006 Stephen Noble <support@dungog.net> |
186 |
- merged sshkeys panel and functions |
187 |
- [1.0-13] |
188 |
|
189 |
* Wed Apr 12 2006 Stephen Noble <support@dungog.net> |
190 |
- possible fix for Insecure dependency on rc1 |
191 |
- [1.0-12] |
192 |
|
193 |
* Wed Apr 12 2006 Stephen Noble <support@dungog.net> |
194 |
- option to set VPN Client Access |
195 |
- uses user-modify event |
196 |
- [1.0-11] |
197 |
|
198 |
* Thu Feb 23 2006 Stephen Noble <support@dungog.net> |
199 |
- proftp.conf/05chroot added as custom template for now |
200 |
- defaults all users to ~/home |
201 |
- Shell db settings changed was LoginShell |
202 |
- [1.0-10] |
203 |
|
204 |
* Thu Feb 23 2006 Stephen Noble <support@dungog.net> |
205 |
- global/individual rssh clarified |
206 |
- global reset removed |
207 |
- chroot db settings changed |
208 |
- [1.0-9] |
209 |
|
210 |
* Tue Feb 21 2006 Stephen Noble <support@dungog.net> |
211 |
- SME 7 pre3 version |
212 |
- [1.0-8] |
213 |
|
214 |
* Thu Aug 11 2005 Stephen Noble <support@dungog.net> |
215 |
- SME 7 release |
216 |
- [1.0-7] |
217 |
|
218 |
* Sun Jul 17 2005 Stephen Noble <support@dungog.net> |
219 |
- Merge of e-smith-usershellaccess & dungog-chroot-proftp |
220 |
- original elements by Daniel van Raay & Damien Curtain |
221 |
- [1.0-1] |
222 |
|
223 |
%prep |
224 |
%setup |
225 |
%patch0 -p1 |
226 |
%patch1 -p1 |
227 |
%patch2 -p1 |
228 |
%patch3 -p1 |
229 |
%patch4 -p1 |
230 |
%patch5 -p1 |
231 |
%patch6 -p1 |
232 |
%patch7 -p1 |
233 |
%patch8 -p1 |
234 |
%patch9 -p1 |
235 |
%patch10 -p1 |
236 |
%patch11 -p1 |
237 |
%patch12 -p1 |
238 |
%patch13 -p1 |
239 |
%patch14 -p1 |
240 |
%patch15 -p1 |
241 |
%patch16 -p1 |
242 |
%patch17 -p1 |
243 |
%patch18 -p1 |
244 |
%patch19 -p1 |
245 |
|
246 |
%build |
247 |
perl createlinks |
248 |
|
249 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
250 |
|
251 |
for lexicon in $LEXICONS |
252 |
do |
253 |
/sbin/e-smith/validate-lexicon $lexicon |
254 |
done |
255 |
|
256 |
LINKS=$(find root/etc/e-smith/locale/ -type d -maxdepth 1 | sed 's/root\/etc\/e-smith\/locale\///') |
257 |
for link in $LINKS |
258 |
do |
259 |
/bin/ln -s remoteuseraccess root/etc/e-smith/locale/$link/etc/e-smith/web/functions/userpanel-sshkeys |
260 |
done |
261 |
|
262 |
%install |
263 |
rm -rf $RPM_BUILD_ROOT |
264 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
265 |
rm -f %{name}-%{version}-filelist |
266 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
267 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
268 |
|
269 |
%clean |
270 |
cd .. |
271 |
rm -rf %{name}-%{version} |
272 |
|
273 |
%pre |
274 |
%preun |
275 |
%post |
276 |
|
277 |
%postun |
278 |
#uninstalls not upgrades |
279 |
if [ $1 = 0 ] ; then |
280 |
echo "uninstall" |
281 |
fi |
282 |
|
283 |
%files -f %{name}-%{version}-filelist |
284 |
%defattr(-,root,root) |