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