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