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