1 |
Summary: Smeserver module to configure Shell and FTP access for individual users |
2 |
%define name smeserver-remoteuseraccess |
3 |
Name: %{name} |
4 |
%define version 1.2 |
5 |
%define release 17 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GNU GPL version 2 |
9 |
URL: http://www.dungog.net/sme |
10 |
Group: Networking/Daemons |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
Patch0: smeserver-remoteuseraccess-fr.patch |
13 |
Patch1: smeserver-remoteuseraccess-1.2-frMenu.patch |
14 |
Patch2: smeserver-remoteuseraccess-1.2-event-rssh.patch |
15 |
Patch3: smeserver-remoteuseraccess-1.2-pootle.patch |
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: perl-CGI-FormMagick >= 0.92-08 |
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 |
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2-17 |
41 |
- prepare en lexicons for pootle translations |
42 |
|
43 |
* Fri Jan 11 2008 Stephen Noble <support@dungog.net> 1.2-16 |
44 |
- remove duplicate event rssh.conf [SME 3470] |
45 |
|
46 |
* Thu Dec 20 2007 Stephen Noble <support@dungog.net> |
47 |
- french menu fix 1.2-14 |
48 |
|
49 |
* Thu Dec 20 2007 Stephen Noble <support@dungog.net> |
50 |
- french translation, thanks Sylvain 1.2-13 |
51 |
|
52 |
* Wed Jun 13 2007 Stephen Noble <support@dungog.net> |
53 |
- apply changes from 1.2-2 to 1.2-12 |
54 |
|
55 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
56 |
- Clean up spec so package can be built by koji/plague |
57 |
|
58 |
* Sun Feb 18 2007 Stephen Noble <support@dungog.net> |
59 |
- swedish translation, thanks Chrille |
60 |
- [1.2-12] |
61 |
|
62 |
* Tue Jan 23 2007 Stephen Noble <support@dungog.net> |
63 |
- spanish translation, thanks Gene |
64 |
- requires e-smith-proftpd >= 1.12.0-6, custom template removed |
65 |
- default set, ftp{ChrootDir} = home |
66 |
- [1.2-11] |
67 |
|
68 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
69 |
- Update to new release naming. No functional changes. |
70 |
- Make Packager generic |
71 |
|
72 |
* Thu Nov 23 2006 Stephen Noble <support@dungog.net> |
73 |
- chroot path fix when home set [sme 2084] |
74 |
- [1.2-10] |
75 |
|
76 |
* Fri Nov 10 2006 Stephen Noble <support@dungog.net> |
77 |
- fix textarea bug [sme 1088] |
78 |
- requires perl-CGI-FormMagick-0.92-08 |
79 |
- [1.2-9] |
80 |
|
81 |
* Fri Nov 10 2006 Stephen Noble <support@dungog.net> |
82 |
- chroot path fix [sme 2046] |
83 |
- [1.2-8] |
84 |
|
85 |
* Fri Nov 3 2006 Stephen Noble <support@dungog.net> |
86 |
- german translation fix |
87 |
- [1.2-7] |
88 |
|
89 |
* Fri Aug 25 2006 Stephen Noble <support@dungog.net> |
90 |
- empty chroot path defaults to home [sme 1249] |
91 |
- [1.2-6] |
92 |
|
93 |
* Thu Aug 24 2006 Stephen Noble <support@dungog.net> |
94 |
- now finds correct sshkeys when used under userpanel |
95 |
- [1.2-5] |
96 |
|
97 |
* Wed May 10 2006 Stephen Noble <support@dungog.net> |
98 |
- German translation fixed [sme 1258] |
99 |
- [1.2-4] |
100 |
|
101 |
* Wed May 10 2006 Stephen Noble <support@dungog.net> |
102 |
- RSSH access uses VPNAccess property |
103 |
- German translation added, thanks Dietmar |
104 |
- [1.2-3] |
105 |
|
106 |
* Mon Apr 24 2006 Stephen Noble <support@dungog.net> |
107 |
- Description Display fixed |
108 |
- [1.2-2] |
109 |
|
110 |
* Fri Apr 14 2006 Stephen Noble <support@dungog.net> |
111 |
- FormMagick Version |
112 |
- [1.2-1] |
113 |
|
114 |
* Thu Apr 13 2006 Stephen Noble <support@dungog.net> |
115 |
- merged sshkeys panel and functions |
116 |
- [1.0-13] |
117 |
|
118 |
* Wed Apr 12 2006 Stephen Noble <support@dungog.net> |
119 |
- possible fix for Insecure dependency on rc1 |
120 |
- [1.0-12] |
121 |
|
122 |
* Wed Apr 12 2006 Stephen Noble <support@dungog.net> |
123 |
- option to set VPN Client Access |
124 |
- uses user-modify event |
125 |
- [1.0-11] |
126 |
|
127 |
* Thu Feb 23 2006 Stephen Noble <support@dungog.net> |
128 |
- proftp.conf/05chroot added as custom template for now |
129 |
- defaults all users to ~/home |
130 |
- Shell db settings changed was LoginShell |
131 |
- [1.0-10] |
132 |
|
133 |
* Thu Feb 23 2006 Stephen Noble <support@dungog.net> |
134 |
- global/individual rssh clarified |
135 |
- global reset removed |
136 |
- chroot db settings changed |
137 |
- [1.0-9] |
138 |
|
139 |
* Tue Feb 21 2006 Stephen Noble <support@dungog.net> |
140 |
- SME 7 pre3 version |
141 |
- [1.0-8] |
142 |
|
143 |
* Thu Aug 11 2005 Stephen Noble <support@dungog.net> |
144 |
- SME 7 release |
145 |
- [1.0-7] |
146 |
|
147 |
* Sun Jul 17 2005 Stephen Noble <support@dungog.net> |
148 |
- Merge of e-smith-usershellaccess & dungog-chroot-proftp |
149 |
- original elements by Daniel van Raay & Damien Curtain |
150 |
- [1.0-1] |
151 |
|
152 |
%prep |
153 |
%setup |
154 |
%patch0 -p1 |
155 |
%patch1 -p1 |
156 |
%patch2 -p1 |
157 |
%patch3 -p1 |
158 |
|
159 |
%build |
160 |
perl createlinks |
161 |
|
162 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
163 |
|
164 |
for lexicon in $LEXICONS |
165 |
do |
166 |
/sbin/e-smith/validate-lexicon $lexicon |
167 |
done |
168 |
|
169 |
#todo, it |
170 |
for LINK in en-us fr de es sv |
171 |
do |
172 |
/bin/ln -s remoteuseraccess root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-sshkeys |
173 |
done |
174 |
|
175 |
%install |
176 |
rm -rf $RPM_BUILD_ROOT |
177 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
178 |
rm -f %{name}-%{version}-filelist |
179 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
180 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
181 |
|
182 |
%clean |
183 |
cd .. |
184 |
rm -rf %{name}-%{version} |
185 |
|
186 |
%pre |
187 |
%preun |
188 |
%post |
189 |
|
190 |
%postun |
191 |
#uninstalls not upgrades |
192 |
if [ $1 = 0 ] ; then |
193 |
echo "uninstall" |
194 |
fi |
195 |
|
196 |
%files -f %{name}-%{version}-filelist |
197 |
%defattr(-,root,root) |