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