File pam_radius.spec of Package pam_radius

# spec file for package pam_radius
# Copyright (c) 2023 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           pam_radius
Version:        2.0.0
Release:        0
Summary:        A PAM Module for User Authentication using a Radius Server
License:        GPL-2.0-or-later
Group:          Productivity/Security
Source1:        baselibs.conf
BuildRequires:  pam-devel
Requires:       pam

This is the PAM to RADIUS authentication module. It allows any PAM-capable
machine to become a RADIUS client for authentication and accounting
requests. You will need a RADIUS server to perform the actual

%setup -q -n %{name}-release_2_0_0

export CFLAGS="%{optflags} -fPIC"

install -d -m 755 %{buildroot}%{_pam_moduledir}
install -m 755 %{buildroot}%{_pam_moduledir}
install -d -m 750 %{buildroot}%{_sysconfdir}/raddb/
install -m 600 pam_radius_auth.conf %{buildroot}%{_sysconfdir}/raddb/server

%license LICENSE
%doc Changelog README.rst TODO USAGE index.html pam_radius_auth.conf
%attr(750,root,radiusd) %dir %{_sysconfdir}/raddb/
%config(noreplace) %{_sysconfdir}/raddb/server

openSUSE Build Service is sponsored by