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