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