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