]>
Commit | Line | Data |
---|---|---|
30c1c85d MM |
1 | # |
2 | # Note: this project is no longer maintained. Its developers moved to | |
3 | # freeradius-client, which, while it hasn't seen a release since 2008, | |
4 | # contains (a) newer code and (b) is part of an actively maintained | |
5 | # project that accepts patches, so it might see a release in the | |
6 | # future. Unfortunately, while opensips supports freeradius-client, | |
7 | # asterisk doesn't, so it doesn't make much sense to switch. At least | |
8 | # not yet. | |
9 | # | |
348b92a8 AM |
10 | Summary: Radiusclient library and tools |
11 | Summary(pl.UTF-8): Biblioteka radiusclient oraz narzędzia | |
12 | Name: radiusclient-ng | |
30c1c85d | 13 | Version: 0.5.6 |
6110396a | 14 | Release: 3 |
348b92a8 AM |
15 | License: BSD-like |
16 | Group: Libraries | |
30c1c85d MM |
17 | Source0: http://download.berlios.de/radiusclient-ng/%{name}-%{version}.tar.gz |
18 | # Source0-md5: 6fb7d4d0aefafaee7385831ac46a8e9c | |
5012f405 JB |
19 | Patch0: %{name}-link.patch |
20 | URL: http://developer.berlios.de/projects/radiusclient-ng/ | |
348b92a8 AM |
21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
23 | BuildRequires: libtool | |
11b0dd33 | 24 | Requires: %{name}-libs = %{version}-%{release} |
348b92a8 AM |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | Radiusclient is a /bin/login replacement which gets called by a getty | |
29 | to log in a user and to setup the user's login environment. Normal | |
30 | login programs just check the login name and password which the user | |
31 | entered against the local password file (/etc/passwd, /etc/shadow). In | |
32 | contrast to that Radiusclient also uses the RADIUS protocol to | |
33 | authenticate the user. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Radiusclient jest zamiennikiem /bin/login wywoływanym przez getty w | |
37 | celu umożliwienia użytkownikowi zalogowania się. Normalne programy | |
38 | typu login sprawdzają nazwę użytkownika oraz hasło względem lokalnego | |
39 | pliku (/etc/passwd, /etc/shadow). W przeciwieństwie do nich | |
40 | Radiusclient używa także protokołu RADIUS w celu uwierzytelnienia | |
41 | użytkownika. | |
42 | ||
11b0dd33 JK |
43 | %package libs |
44 | Summary: Radius client implementation | |
45 | Summary(pl.UTF-8): Implementacja klienta radius | |
46 | Group: Libraries | |
ed227717 | 47 | Conflicts: radiusclient-ng < 0.5.5-2 |
11b0dd33 JK |
48 | |
49 | %description libs | |
50 | Radius client implementation library. | |
51 | ||
52 | %description libs -l pl.UTF-8 | |
53 | Biblioteka implementująca klienta protokołu Radius. | |
54 | ||
348b92a8 | 55 | %package devel |
11b0dd33 JK |
56 | Summary: Header files for radiusclient-ng library |
57 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki radiusclient-ng | |
348b92a8 | 58 | Group: Development/Libraries |
11b0dd33 | 59 | Requires: %{name}-libs = %{version}-%{release} |
348b92a8 AM |
60 | |
61 | %description devel | |
62 | Header files for radiusclient library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki radiusclient. | |
66 | ||
67 | %package static | |
68 | Summary: Radiusclient static library | |
69 | Summary(pl.UTF-8): Statyczna biblioteka radiusclient | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-devel = %{version}-%{release} | |
72 | ||
73 | %description static | |
74 | Radiusclient static library. | |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczna biblioteka Radiusclient. | |
78 | ||
79 | %prep | |
80 | %setup -q | |
5012f405 | 81 | %patch0 -p1 |
348b92a8 AM |
82 | |
83 | %build | |
84 | %{__libtoolize} | |
85 | %{__aclocal} | |
86 | %{__autoconf} | |
5012f405 | 87 | %{__autoheader} |
348b92a8 AM |
88 | %{__automake} |
89 | %configure \ | |
5012f405 JB |
90 | --enable-scp \ |
91 | --enable-shadow | |
348b92a8 AM |
92 | %{__make} |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
11b0dd33 JK |
103 | %post libs -p /sbin/ldconfig |
104 | %postun libs -p /sbin/ldconfig | |
348b92a8 AM |
105 | |
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc BUGS CHANGES COPYRIGHT README* doc/*.html | |
5012f405 JB |
109 | %attr(755,root,root) %{_sbindir}/login.radius |
110 | %attr(755,root,root) %{_sbindir}/radacct | |
111 | %attr(755,root,root) %{_sbindir}/radexample | |
112 | %attr(755,root,root) %{_sbindir}/radiusclient | |
113 | %attr(755,root,root) %{_sbindir}/radlogin | |
114 | %attr(755,root,root) %{_sbindir}/radstatus | |
11b0dd33 JK |
115 | |
116 | %files libs | |
117 | %defattr(644,root,root,755) | |
2914b705 | 118 | %attr(755,root,root) %{_libdir}/libradiusclient-ng.so.*.*.* |
119 | %attr(755,root,root) %ghost %{_libdir}/libradiusclient-ng.so.2 | |
348b92a8 | 120 | %attr(750,root,root) %dir %{_sysconfdir}/radiusclient-ng |
5012f405 JB |
121 | %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radiusclient-ng/dictionary |
122 | %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radiusclient-ng/dictionary.ascend | |
123 | %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radiusclient-ng/dictionary.compat | |
124 | %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radiusclient-ng/dictionary.merit | |
125 | %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radiusclient-ng/dictionary.sip | |
126 | %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radiusclient-ng/issue | |
127 | %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radiusclient-ng/port-id-map | |
128 | %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radiusclient-ng/radiusclient.conf | |
129 | %attr(640,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radiusclient-ng/servers | |
348b92a8 AM |
130 | |
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
2914b705 | 133 | %attr(755,root,root) %{_libdir}/libradiusclient-ng.so |
134 | %{_libdir}/libradiusclient-ng.la | |
5012f405 | 135 | %{_includedir}/radiusclient-ng.h |
348b92a8 AM |
136 | |
137 | %files static | |
138 | %defattr(644,root,root,755) | |
2914b705 | 139 | %{_libdir}/libradiusclient-ng.a |