forked from pool/freeradius-server
Accepting request 448419 from network
1 OBS-URL: https://build.opensuse.org/request/show/448419 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/freeradius-server?expand=0&rev=63
This commit is contained in:
commit
bb915e8574
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 1 13:39:57 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Remove --with-pic which is for static libs only.
|
||||||
|
- Use SUSE RPM group names. Trim filler words from description.
|
||||||
|
- Do not hide errors from groupadd/useradd.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 29 20:14:34 UTC 2016 - michael@stroeder.com
|
Thu Sep 29 20:14:34 UTC 2016 - michael@stroeder.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package freeradius-server
|
# spec file for package freeradius-server
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -122,14 +122,14 @@ protocol that provides centralized Authentication, Authorization, and
|
|||||||
Accounting (AAA or Triple A) management for users who connect and
|
Accounting (AAA or Triple A) management for users who connect and
|
||||||
use a network service.
|
use a network service.
|
||||||
|
|
||||||
FreeRADIUS is a modular, high performance free RADIUS implementation.
|
FreeRADIUS is a modular RADIUS implementation.
|
||||||
|
|
||||||
%package libs
|
%package libs
|
||||||
Summary: FreeRADIUS shared library
|
Summary: FreeRADIUS shared library
|
||||||
Group: Productivity/Networking/Radius/Servers
|
Group: System/Libraries
|
||||||
|
|
||||||
%description libs
|
%description libs
|
||||||
The FreeRADIUS shared libraries
|
The FreeRADIUS shared libraries.
|
||||||
|
|
||||||
%package utils
|
%package utils
|
||||||
Summary: FreeRADIUS Clients
|
Summary: FreeRADIUS Clients
|
||||||
@ -137,7 +137,7 @@ Group: Productivity/Networking/Radius/Clients
|
|||||||
Requires: %{name}-libs = %{version}
|
Requires: %{name}-libs = %{version}
|
||||||
|
|
||||||
%description utils
|
%description utils
|
||||||
Collection of FreeRADIUS utilities
|
Collection of FreeRADIUS utilities.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: FreeRADIUS Development Files
|
Summary: FreeRADIUS Development Files
|
||||||
@ -145,19 +145,18 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: %{name}-libs = %{version}
|
Requires: %{name}-libs = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
FreeRADIUS development header files
|
FreeRADIUS header files for development.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: FreeRADIUS Documentation
|
Summary: FreeRADIUS Documentation
|
||||||
Group: Productivity/Networking/Radius/Servers
|
Group: Documentation/HTML
|
||||||
Requires: %{name}
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
FreeRADIUS documentation
|
FreeRADIUS documentation.
|
||||||
|
|
||||||
%package ldap
|
%package ldap
|
||||||
Summary: LDAP support for freeradius
|
Summary: LDAP support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System/Daemons
|
||||||
BuildRequires: openldap2-devel
|
BuildRequires: openldap2-devel
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
@ -166,7 +165,7 @@ FreeRADIUS plugin providing LDAP support.
|
|||||||
|
|
||||||
%package krb5
|
%package krb5
|
||||||
Summary: Kerberos 5 support for freeradius
|
Summary: Kerberos 5 support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System/Daemons
|
||||||
BuildRequires: krb5-devel
|
BuildRequires: krb5-devel
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
@ -175,7 +174,7 @@ FreeRADIUS plugin providing Kerberos 5 authentication support.
|
|||||||
|
|
||||||
%package perl
|
%package perl
|
||||||
Summary: Perl support for freeradius
|
Summary: Perl support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System/Daemons
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl(ExtUtils::Embed)
|
BuildRequires: perl(ExtUtils::Embed)
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
@ -186,7 +185,7 @@ FreeRADIUS plugin providing Perl support.
|
|||||||
|
|
||||||
%package python
|
%package python
|
||||||
Summary: Python support for freeradius
|
Summary: Python support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System/Daemons
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
@ -195,7 +194,7 @@ FreeRADIUS plugin providing Python support.
|
|||||||
|
|
||||||
%package mysql
|
%package mysql
|
||||||
Summary: MySQL support for freeradius
|
Summary: MySQL support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System/Daemons
|
||||||
BuildRequires: mysql-devel
|
BuildRequires: mysql-devel
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
@ -204,7 +203,7 @@ FreeRADIUS plugin providing MySQL support.
|
|||||||
|
|
||||||
%package postgresql
|
%package postgresql
|
||||||
Summary: Postgresql support for freeradius
|
Summary: Postgresql support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System/Daemons
|
||||||
BuildRequires: postgresql-devel
|
BuildRequires: postgresql-devel
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
@ -213,7 +212,7 @@ FreeRADIUS plugin providing PostgreSQL support.
|
|||||||
|
|
||||||
%package sqlite
|
%package sqlite
|
||||||
Summary: SQLite support for freeradius
|
Summary: SQLite support for freeradius
|
||||||
Group: System Environment/Daemons
|
Group: System/Daemons
|
||||||
BuildRequires: sqlite3-devel
|
BuildRequires: sqlite3-devel
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
@ -237,7 +236,6 @@ export CFLAGS="%{optflags} -DLDAP_DEPRECATED -fstack-protector -fPIC -DPIC"
|
|||||||
export LDFLAGS="-pie"
|
export LDFLAGS="-pie"
|
||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--with-pic \
|
|
||||||
--libdir=%{_libdir}/freeradius \
|
--libdir=%{_libdir}/freeradius \
|
||||||
--disable-ltdl-install \
|
--disable-ltdl-install \
|
||||||
--enable-strict-dependencies \
|
--enable-strict-dependencies \
|
||||||
@ -327,13 +325,14 @@ rm %{buildroot}%{_sysconfdir}/raddb/mods-available/rest
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%{_sbindir}/groupadd -r radiusd 2> /dev/null || :
|
getent group radiusd >/dev/null || %{_sbindir}/groupadd -r radiusd
|
||||||
%{_sbindir}/useradd -r -g radiusd -s /bin/false -c "Radius daemon" -d \
|
getent passwd radiusd >/dev/null || %{_sbindir}/useradd -r -g radiusd \
|
||||||
%{_localstatedir}/lib/radiusd radiusd 2> /dev/null || :
|
-s /bin/false -c "Radius daemon" -d %{_localstatedir}/lib/radiusd \
|
||||||
|
radiusd
|
||||||
|
|
||||||
# boo#912714: add radiusd to winbind group for ntlm_auth
|
# boo#912714: add radiusd to winbind group for ntlm_auth
|
||||||
# add winbind group and fail silently if it already exists
|
# add winbind group and fail silently if it already exists
|
||||||
%{_bindir}/getent group winbind \
|
%{_bindir}/getent group winbind >/dev/null \
|
||||||
|| %{_sbindir}/groupadd -r winbind
|
|| %{_sbindir}/groupadd -r winbind
|
||||||
# add radiusd to winbind group
|
# add radiusd to winbind group
|
||||||
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1140
|
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1140
|
||||||
|
Loading…
Reference in New Issue
Block a user