Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37844569
en ru br
Репозитории ALT

Группа :: Сети/WWW
Пакет: openvpn-auth-ldap

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: openvpn-auth-ldap
Version: 2.0.4
Release: alt3

Summary: OpenVPN plugin for LDAP authentication
License: BSD
Group: Networking/WWW
URL: https://github.com/threerings/openvpn-auth-ldap

Source0: %name-%version.tar
# tools are not compiled with given CFLAGS
Patch1: auth-ldap-tools-CFLAGS.patch
# Patch from upstream issue nA.4, to fix tap bridging.
Patch2: auth-ldap-remoteAddress.patch

Buildrequires: doxygen
BuildRequires: gcc-objc
BuildRequires: libcheck-devel
BuildRequires: gnustep-base-devel
Buildrequires: libldap-devel
Buildrequires: libssl-devel
Buildrequires: openvpn-devel
BuildRequires: re2c
BuildRequires: autoconf
Requires: openvpn >= 2.0

%description
The OpenVPN Auth-LDAP Plugin implements username/password authentication via
LDAP for OpenVPN 2.x.

%prep
%setup
%patch1 -p1 -b .tools-CFLAGS
%patch2 -p1 -b .remoteAddress
# Fix plugin from the instructions in the included README
sed -i 's|^plugin .*| plugin %_libdir/openvpn/plugins/openvpn-auth-ldap.so "/etc/openvpn/auth/ldap.conf"|g' README.md
autoconf
autoheader

%build
%configure CFLAGS="%optflags -fPIC -std=gnu99" \
   --libdir=%_libdir/openvpn/plugins \
   --with-openvpn=%_includedir

%make_build

%install
# Main plugin
mkdir -p %buildroot%_libdir/openvpn/plugins
%makeinstall_std
# Example config file
install -D -p -m 0600 auth-ldap.conf \
   %buildroot%_sysconfdir/openvpn/auth/ldap.conf


%files
%doc --no-dereference LICENSE
%doc README.md auth-ldap.conf
%dir %_sysconfdir/openvpn/auth/
%config(noreplace) %_sysconfdir/openvpn/auth/ldap.conf
%_libdir/openvpn/plugins/openvpn-auth-ldap.so

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin