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