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