1 |
slords |
1.5 |
Summary: Smeserver module to configure Shell and FTP access for individual users |
2 |
slords |
1.1 |
%define name smeserver-remoteuseraccess |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 1.2 |
5 |
dungog |
1.8 |
%define release 15 |
6 |
slords |
1.1 |
Version: %{version} |
7 |
slords |
1.3 |
Release: %{release}%{?dist} |
8 |
slords |
1.5 |
License: GNU GPL version 2 |
9 |
slords |
1.1 |
URL: http://www.dungog.net/sme |
10 |
|
|
Group: Networking/Daemons |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
slords |
1.5 |
Patch0: smeserver-remoteuseraccess-fr.patch |
13 |
dungog |
1.7 |
Patch1: smeserver-remoteuseraccess-1.2-frMenu.patch |
14 |
dungog |
1.9 |
Patch2: smeserver-remoteuseraccess-1.2-event-rssh.patch |
15 |
slords |
1.1 |
BuildRoot: /var/tmp/e-smith-buildroot |
16 |
|
|
BuildRequires: e-smith-devtools |
17 |
|
|
BuildArchitectures: noarch |
18 |
|
|
Requires: e-smith-release >= 7 |
19 |
slords |
1.5 |
Requires: e-smith-proftpd >= 1.12.0-6 |
20 |
slords |
1.1 |
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 |
slords |
1.5 |
TODO Chroot RSSH shell access. |
34 |
slords |
1.1 |
|
35 |
slords |
1.5 |
Also sets Chroots FTP access, VPN Client Access, |
36 |
|
|
and allows you to enter ssh keys |
37 |
slords |
1.1 |
|
38 |
|
|
%changelog |
39 |
dungog |
1.8 |
* Fri Jan 11 2008 Stephen Noble <support@dungog.net> 1.2-15 |
40 |
|
|
- remove duplicate event rssh.conf [SME 3470] |
41 |
|
|
|
42 |
slords |
1.5 |
* Thu Dec 20 2007 Stephen Noble <support@dungog.net> |
43 |
dungog |
1.7 |
- french menu fix 1.2-14 |
44 |
|
|
|
45 |
|
|
* Thu Dec 20 2007 Stephen Noble <support@dungog.net> |
46 |
slords |
1.5 |
- 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 |
slords |
1.1 |
* 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 |
slords |
1.5 |
* 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 |
slords |
1.1 |
* 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 |
slords |
1.5 |
- german translation fix |
83 |
slords |
1.1 |
- [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 |
slords |
1.5 |
* Mon Apr 24 2006 Stephen Noble <support@dungog.net> |
103 |
slords |
1.1 |
- Description Display fixed |
104 |
|
|
- [1.2-2] |
105 |
|
|
|
106 |
slords |
1.5 |
* Fri Apr 14 2006 Stephen Noble <support@dungog.net> |
107 |
slords |
1.1 |
- FormMagick Version |
108 |
|
|
- [1.2-1] |
109 |
|
|
|
110 |
slords |
1.5 |
* Thu Apr 13 2006 Stephen Noble <support@dungog.net> |
111 |
slords |
1.1 |
- merged sshkeys panel and functions |
112 |
|
|
- [1.0-13] |
113 |
|
|
|
114 |
slords |
1.5 |
* Wed Apr 12 2006 Stephen Noble <support@dungog.net> |
115 |
slords |
1.1 |
- possible fix for Insecure dependency on rc1 |
116 |
|
|
- [1.0-12] |
117 |
|
|
|
118 |
slords |
1.5 |
* Wed Apr 12 2006 Stephen Noble <support@dungog.net> |
119 |
slords |
1.1 |
- 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 |
slords |
1.5 |
%patch0 -p1 |
151 |
dungog |
1.7 |
%patch1 -p1 |
152 |
dungog |
1.8 |
%patch2 -p1 |
153 |
slords |
1.1 |
|
154 |
|
|
%build |
155 |
|
|
perl createlinks |
156 |
|
|
|
157 |
dungog |
1.7 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
158 |
slords |
1.1 |
|
159 |
dungog |
1.7 |
for lexicon in $LEXICONS |
160 |
slords |
1.1 |
do |
161 |
|
|
/sbin/e-smith/validate-lexicon $lexicon |
162 |
|
|
done |
163 |
|
|
|
164 |
dungog |
1.7 |
#todo, it |
165 |
slords |
1.1 |
for LINK in en-us fr de es sv |
166 |
|
|
do |
167 |
dungog |
1.7 |
/bin/ln -s remoteuseraccess root/etc/e-smith/locale/$LINK/etc/e-smith/web/functions/userpanel-sshkeys |
168 |
slords |
1.1 |
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 |
slords |
1.5 |
echo "uninstall" |
189 |
slords |
1.1 |
fi |
190 |
|
|
|
191 |
|
|
%files -f %{name}-%{version}-filelist |
192 |
|
|
%defattr(-,root,root) |