1 |
# $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 |
4 |
%define name e-smith-radiusd |
5 |
Name: %{name} |
6 |
%define version 2.6.0 |
7 |
%define release 11 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: e-smith-radiusd-2.6.0-freeradius3.patch |
14 |
Patch1: e-smith-radiusd-2.6.0-freeradius3bis.patch |
15 |
Patch2: e-smith-radiusd-2.6.0-freeradius3ter.patch |
16 |
Patch3: e-smith-radiusd-2.6.0-bz10853.patch |
17 |
Patch4: e-smith-radiusd-2.6.0-bz11113-bz11155-systemd-update.patch |
18 |
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
Requires: e-smith-base >= 4.13.16-27 |
21 |
Requires: e-smith-lib >= 1.15.1-16 |
22 |
Requires: freeradius >= 2.1.12 |
23 |
Requires: freeradius-ldap >= 2.1.12 |
24 |
Requires: radiusclient-ng >= 0.5.6 |
25 |
Obsoletes: radiusclient <= 0.3.2 |
26 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
27 |
BuildArchitectures: noarch |
28 |
%define stunnelid 451 |
29 |
|
30 |
%description |
31 |
e-smith server and gateway - configure radius server |
32 |
|
33 |
%changelog |
34 |
* Tue Dec 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
35 |
- create -update event [SME: 11155] |
36 |
- 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 |
40 |
- fix server restartting with virtual_server error [SME: 10853] |
41 |
|
42 |
* Tue Apr 12 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-8.sme |
43 |
- escaped {} characters in ldap template [SME: 9434] |
44 |
|
45 |
* Sun Apr 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
46 |
- fix typo [SME: 9434] |
47 |
|
48 |
* Wed Apr 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
49 |
- more adjustements regarding [SME: 9434] |
50 |
- e-smith-radiusd-2.6.0-freeradius3bis.patch |
51 |
- e-smith-radiusd-2.6.0-freeradius3ter.patch |
52 |
|
53 |
* Fri Apr 01 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
54 |
- fix directorie rpm ownership [SME: 9425] |
55 |
|
56 |
* Fri Apr 01 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme |
57 |
- updated syntax and conf files for freeradius3 server [SME: 9409] |
58 |
|
59 |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
60 |
- Initial release to sme10 |
61 |
|
62 |
* Sat Jun 8 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-10.sme |
63 |
- the config file is radiusclient.conf, not radiusclient-ng.conf [SME: 7546] |
64 |
|
65 |
* Thu Jun 6 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-9.sme |
66 |
- Add templates for radiusclient-ng.conf file to remove binaddr |
67 |
directive [SME: 7546] |
68 |
|
69 |
* Sun Apr 14 2013 Charlie Brady <charlie_brady@mitel.com> 2.4.0-8.sme |
70 |
- Add directive to options.pptpd so that radius plugin can find the |
71 |
radiusclient configuration file. [SME: 7546] |
72 |
|
73 |
* Sat Apr 13 2013 Charlie Brady <charlie_brady@mitel.com> 2.4.0-7.sme |
74 |
- Fix permissions of /etc/radiusclient-ng/servers. [SME: 7548] |
75 |
|
76 |
* Mon Mar 11 2013 Shad L. Lords <slords@mail.com> 2.4.0-6.sme |
77 |
- Obsolete el5 version of radiusclient [SME: 7273] |
78 |
|
79 |
* Thu Feb 21 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-5.sme |
80 |
- Use the new listen directive instead of bind_address which is deprecated [SME: 7377] |
81 |
|
82 |
* Mon Feb 18 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-4.sme |
83 |
- Send log to stdout [SME: 7251] |
84 |
|
85 |
* Thu Feb 14 2013 Shad L. Lords <slords@mail.com> 2.4.0-3.sme |
86 |
- Add requires for freeradius-ldap module [SME: 7252] |
87 |
|
88 |
* Thu Feb 14 2013 Shad L. Lords <slords@mail.com> 2.4.0-2.sme |
89 |
- Update radiusclient to radiusclient-ng |
90 |
|
91 |
* Wed Feb 13 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
92 |
- Roll new stream for sme9 |
93 |
|
94 |
* Mon Nov 1 2010 Shad L. Lords <slords@mail.com> 2.2.0-4.sme |
95 |
- Auth against ldap if it is master [SME: 6323] |
96 |
|
97 |
* Tue Oct 27 2010 Shad L. Lords <slords@mail.com> 2.2.0-3.sme |
98 |
- Add ldap as an auth type to radius [SME: 6313] |
99 |
|
100 |
* Tue Jun 2 2009 Shad L. Lords <slords@mail.com> 2.2.0-2.sme |
101 |
- Fix owner/perms for radius files [SME: 5317] |
102 |
|
103 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
104 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
105 |
|
106 |
* Wed Aug 20 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-18 |
107 |
- Allow for multiple auth modules in radiusd.conf [SME: 4166] |
108 |
|
109 |
* Sat Aug 09 2008 Gavin Weight <gweight@gmail.com> 1.0.0-17 |
110 |
- Remove the Requires kernel =>2.4 line. [SME: 4483] |
111 |
|
112 |
* Fri May 18 2007 Federico Simoncelli <federico.simoncelli@gmail.com> 1.0.0-16 |
113 |
- Added support for fixed ip addresses in the pptp vpn [SME: 1230] |
114 |
|
115 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
116 |
- Clean up spec so package can be built by koji/plague |
117 |
|
118 |
* Fri Apr 06 2007 Shad L. Lords <slords@mail.com> 1.0.0-14 |
119 |
- Fix perms on servers file [SME: 2720] |
120 |
|
121 |
* Fri Apr 06 2007 Shad L. Lords <slords@mail.com> 1.0.0-14 |
122 |
- Fix perms on client.conf file [SME: 2708] |
123 |
|
124 |
* Wed Mar 07 2007 Shad L. Lords <slords@mail.com> 1.0.0-13 |
125 |
- Break up auth template to allow customization [SME: 2565] |
126 |
|
127 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
128 |
- Update to new release naming. No functional changes. |
129 |
- Make Packager generic |
130 |
|
131 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-12 |
132 |
- Bump release number only |
133 |
|
134 |
* Tue Sep 27 2005 Charlie Brady <charlieb@e-smith.com> |
135 |
- [1.0.0-11] |
136 |
- Fix run script so that output actually goes to the logger. [SF: 1280982] |
137 |
|
138 |
* Mon Sep 26 2005 Charlie Brady <charlieb@e-smith.com> |
139 |
- [1.0.0-10] |
140 |
- Make sure that the log/run script is executable, and that |
141 |
the log directory exists. [SF: 1280982] |
142 |
- Make sure that stunnel user exists, by making sure that |
143 |
%pre script works :-) (%stunnelid was not defined). |
144 |
|
145 |
* Mon Sep 26 2005 Gordon Rowell <gordonr@e-smith.com> |
146 |
- [1.0.0-9] |
147 |
- Add a log/run script [SF: 1280982] |
148 |
|
149 |
* Fri Sep 2 2005 Charlie Brady <charlieb@e-smith.com> |
150 |
- [1.0.0-8] |
151 |
- Make sure that stunnel user exists, by %pre script. |
152 |
|
153 |
* Mon Jul 18 2005 Charlie Brady <charlieb@e-smith.com> |
154 |
- [1.0.0-7] |
155 |
- [More updates from Shad.] |
156 |
- Add accounting into radiusd |
157 |
- Let radius do its own normal logging |
158 |
|
159 |
* Tue Jul 12 2005 Charlie Brady <charlieb@e-smith.com> |
160 |
- [1.0.0-6] |
161 |
- Expand /etc/raddb/users in user-lock [SF: 1225995] |
162 |
- Expand sigterm in password-modify, ldap-update [SF: 1225995] |
163 |
|
164 |
* Fri Jun 24 2005 Charlie Brady <charlieb@e-smith.com> |
165 |
- [1.0.0-5] |
166 |
- Expand /etc/raddb/users in password-modify event [SF: 1215401] |
167 |
|
168 |
* Fri Jun 24 2005 Charlie Brady <charlieb@e-smith.com> |
169 |
- [1.0.0-4] |
170 |
- Add missing patch to allow local hosts to be radius clients. [SF: 1215401] |
171 |
|
172 |
* Thu Jun 16 2005 Charlie Brady <charlieb@e-smith.com> |
173 |
- [1.0.0-3] |
174 |
- Use e-smith-services startup symlink for radiusd, so that 'status' |
175 |
property is honoured. [SF: 1215401] |
176 |
|
177 |
* Tue Jun 14 2005 Charlie Brady <charlieb@e-smith.com> |
178 |
- [1.0.0-2] |
179 |
- Patches from Shad to automate radiusd startup, and to allow local hosts to |
180 |
be radius clients. [SF: 1215401] |
181 |
|
182 |
* Mon Jun 13 2005 Shad L. Lords <slords@mail.com> |
183 |
- [1.0.0-1] |
184 |
- initial |
185 |
|
186 |
%prep |
187 |
%setup |
188 |
%patch0 -p1 |
189 |
%patch1 -p1 |
190 |
%patch2 -p1 |
191 |
%patch3 -p1 |
192 |
%patch4 -p1 |
193 |
rm -rf root/service root/var/service root/var/log/radiusd |
194 |
mkdir -p root/var/log/stunnel/ssl |
195 |
|
196 |
%build |
197 |
perl createlinks |
198 |
|
199 |
%install |
200 |
rm -rf $RPM_BUILD_ROOT |
201 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
202 |
rm -f %{name}-%{version}-%{release}-filelist |
203 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
204 |
--file /sbin/e-smith/systemd/radiusd-configure 'attr(0554,root,root)' \ |
205 |
--file /sbin/e-smith/systemd/radiusd-certificate 'attr(0554,root,root)' \ |
206 |
--dir /var/service/radiusd 'attr(01755,root,root)' \ |
207 |
--dir /var/log/stunnel 'attr(0755,stunnel,stunnel)' \ |
208 |
--dir /var/log/stunnel/ssl 'attr(0755,stunnel,stunnel)' \ |
209 |
|sed -e '/%dir %attr(0755,root,root) \/etc\/raddb/d' \ |
210 |
|sed -e '/%dir %attr(0755,root,root) \/etc\/raddb\/mods-enabled/d' \ |
211 |
> %{name}-%{version}-%{release}-filelist |
212 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
213 |
|
214 |
%pre |
215 |
/sbin/e-smith/create-system-user stunnel %{stunnelid} \ |
216 |
'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 |
226 |
rm -rf $RPM_BUILD_ROOT |
227 |
|
228 |
%files -f %{name}-%{version}-%{release}-filelist |
229 |
%defattr(-,root,root) |
230 |
|
231 |
|