File openvpn-auth-ldap.spec of Package openvpn-auth-ldap
#
# spec file for package openvpn-auth-ldap
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: openvpn-auth-ldap
Url: https://github.com/threerings/openvpn-auth-ldap
Version: 2.0.4
Release: 0
Summary: OpenVPN plugin providing username/password authentication via LDAP
License: BSD-3-Clause
Group: Productivity/Networking/Security
Source: https://github.com/threerings/openvpn-auth-ldap/archive/auth-ldap-%{version}.tar.gz
Patch1: auth-ldap-%{version}.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: openvpn
BuildRequires: openvpn-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-objc
BuildRequires: libobjc4
BuildRequires: libopenssl-devel
BuildRequires: openldap2-devel
BuildRequires: re2c
%description
The OpenVPN Auth-LDAP Plugin implements username/password authentication
via LDAP for OpenVPN 2.x.
Features
- User authentication against LDAP.
- Simple Apache-style configuration file.
- LDAP group-based access restrictions.
- Integration with the OpenBSD packet filter, supporting adding and
removing VPN clients from PF tables based on group membership.
- Tested against OpenLDAP, the plugin will authenticate against any
LDAP server that supports LDAP simple binds -- including Active
Directory.
%prep
%setup -q -n openvpn-auth-ldap-auth-ldap-%{version}
%patch1 -p0
autoconf
%build
export CFLAGS="$RPM_OPT_FLAGS -W -Wall -fno-strict-aliasing"
export LDFLAGS
%configure \
--with-objc-runtime=GNU \
--with-openvpn="%{_includedir}"
make
%install
%__mkdir_p $RPM_BUILD_ROOT%{_libdir}/openvpn/plugins/
make DESTDIR=$RPM_BUILD_ROOT install
%__mv $RPM_BUILD_ROOT%{_libdir}/%{name}.so $RPM_BUILD_ROOT%{_libdir}/openvpn/plugins/
%files
%defattr(-,root,root)
%dir %{_libdir}/openvpn
%{_libdir}/openvpn/plugins
%{_libdir}/openvpn/plugins/%{name}.so
%changelog