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