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