1 |
# $Id: e-smith-radiusd.spec,v 1.9 2019/12/19 06:00:24 jpp Exp $ |
# $Id: e-smith-radiusd.spec,v 1.13 2020/12/09 02:51:41 jpp Exp $ |
2 |
|
|
3 |
Summary: e-smith server and gateway - configure PPTP inbound VPN |
Summary: e-smith server and gateway - configure PPTP inbound VPN |
4 |
%define name e-smith-radiusd |
%define name e-smith-radiusd |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.6.0 |
%define version 2.6.0 |
7 |
%define release 10 |
%define release 11 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
31 |
e-smith server and gateway - configure radius server |
e-smith server and gateway - configure radius server |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
* Tue Dec 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
* Tue Dec 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
35 |
- create -update event [SME: 11155] |
- create -update event [SME: 11155] |
36 |
- move radiusd to systemd {SME: 11113] |
- move radiusd to systemd {SME: 11113] |
37 |
|
remove noise from spec file |
38 |
|
|
39 |
* Thu Dec 19 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
* Thu Dec 19 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
40 |
- fix server restartting with virtual_server error [SME: 10853] |
- fix server restartting with virtual_server error [SME: 10853] |
190 |
%patch2 -p1 |
%patch2 -p1 |
191 |
%patch3 -p1 |
%patch3 -p1 |
192 |
%patch4 -p1 |
%patch4 -p1 |
193 |
rm -rf root/service root/var/service |
rm -rf root/service root/var/service root/var/log/radiusd |
194 |
|
mkdir -p root/var/log/stunnel/ssl |
195 |
|
|
196 |
%build |
%build |
197 |
perl createlinks |
perl createlinks |
204 |
--file /sbin/e-smith/systemd/radiusd-configure 'attr(0554,root,root)' \ |
--file /sbin/e-smith/systemd/radiusd-configure 'attr(0554,root,root)' \ |
205 |
--file /sbin/e-smith/systemd/radiusd-certificate 'attr(0554,root,root)' \ |
--file /sbin/e-smith/systemd/radiusd-certificate 'attr(0554,root,root)' \ |
206 |
--dir /var/service/radiusd 'attr(01755,root,root)' \ |
--dir /var/service/radiusd 'attr(01755,root,root)' \ |
207 |
--file /var/service/radiusd/down 'attr(0644,root,root)' \ |
--dir /var/log/stunnel 'attr(0755,stunnel,stunnel)' \ |
208 |
--file /var/service/radiusd/run 'attr(0755,root,root)' \ |
--dir /var/log/stunnel/ssl 'attr(0755,stunnel,stunnel)' \ |
|
--file /var/service/radiusd/log/run 'attr(0755,root,root)' \ |
|
|
--dir /var/service/radiusd/supervise 'attr(0700,root,root)' \ |
|
|
--dir /var/log/radiusd 'attr(0755,smelog,smelog)' \ |
|
209 |
|sed -e '/%dir %attr(0755,root,root) \/etc\/raddb/d' \ |
|sed -e '/%dir %attr(0755,root,root) \/etc\/raddb/d' \ |
210 |
|sed -e '/%dir %attr(0755,root,root) \/etc\/raddb\/mods-enabled/d' \ |
|sed -e '/%dir %attr(0755,root,root) \/etc\/raddb\/mods-enabled/d' \ |
211 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
213 |
|
|
214 |
%pre |
%pre |
215 |
/sbin/e-smith/create-system-user stunnel %{stunnelid} \ |
/sbin/e-smith/create-system-user stunnel %{stunnelid} \ |
216 |
'chrooted stunnel user user' /var/log/imap/ssl /bin/false |
'chrooted stunnel user user' /var/log/stunnel/ssl /bin/false |
217 |
|
if [ $1 -gt 1 ] ; then |
218 |
|
if [ -e /var/service/radiusd/run ] ; then |
219 |
|
/usr/bin/sv d radiusd |
220 |
|
/usr/bin/sv d radiusd/log |
221 |
|
fi |
222 |
|
fi |
223 |
|
|
224 |
|
|
225 |
%clean |
%clean |
226 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
228 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
229 |
%defattr(-,root,root) |
%defattr(-,root,root) |
230 |
|
|
|
%pre |
|
|
if [ $1 -gt 1 ] ; then |
|
|
if [ -e /var/service/radiusd/run ] ; then |
|
|
/usr/bin/sv d radiusd |
|
|
/usr/bin/sv d radiusd/log |
|
|
fi |
|
|
if [ -e /var/service/radiusd ] ; then |
|
|
rm -rf /var/service/radiusd |
|
|
fi |
|
|
|
|
|
fi |
|
231 |
|
|