forked from guywyers/openvpn-auth-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openvpn-auth-ldap.spec
134 lines (103 loc) · 4.59 KB
/
openvpn-auth-ldap.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
Summary: OpenVPN plugin for LDAP authentication
Name: openvpn-auth-ldap
Version: 3.0.0
Release: 1%{?dist}
License: BSD
Group: Applications/Internet
URL: https://github.com/farvour/openvpn-auth-ldap
Source0: https://github.com/farvour/openvpn-auth-ldap/archive/auth-ldap-%{version}.tar.gz
Source1: openvpn-plugin.h
#Patch4: auth-ldap-2.0.3-remoteAddress.patch
#Patch5: auth-ldap-2.0.3-tlsbind.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
# This is a plugin not linked against a lib, so hardcode the requirement
# since we require the parent configuration and plugin directories
Requires: openvpn >= 2.0
BuildRequires: re2c
Buildrequires: doxygen
Buildrequires: openldap-devel
BuildRequires: check-devel
BuildRequires: gcc-objc
BuildRequires: gnustep-base-devel
BuildRequires: autoconf
%description
The OpenVPN Auth-LDAP Plugin implements username/password authentication via
LDAP for OpenVPN 2.x.
%prep
%setup -q -n auth-ldap-%{version}
#%patch4 -p1 -b .remoteAddress
# Install the one required OpenVPN plugin header
install -p -m 0644 %{SOURCE1} .
autoconf
autoheader
%build
# Fix undefined objc_msgSend reference (nope, the with-objc-runtime is enough)
#export OBJCFLAGS=-fobjc-abi-version=2
%configure \
%if 0%{?fedora} || 0%{?rhel} >= 7
--with-objc-runtime=modern \
%endif
--libdir=%{_libdir}/openvpn/plugin/lib \
--with-openvpn="`pwd`"
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
# Main plugin
mkdir -p %{buildroot}%{_libdir}/openvpn/plugin/lib
make install DESTDIR=%{buildroot}
# Example config file
install -D -p -m 0600 auth-ldap.conf \
%{buildroot}%{_sysconfdir}/openvpn/auth/ldap.conf
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE README.md auth-ldap.conf
%dir %{_sysconfdir}/openvpn/auth/
%config(noreplace) %{_sysconfdir}/openvpn/auth/ldap.conf
%{_libdir}/openvpn/plugin/lib/openvpn-auth-ldap.so
%changelog
* Thu Feb 08 2018 Thomas Farvour <[email protected]> 3.0.0-1
- Re-base the entire code-base off of rev 4952ec8 in github which is latest master as of this.
* Wed Sep 13 2017 Sean Callaway <[email protected]> 2.0.3-15
- Include patch to fix binding before STARTTLS has completed.
- Updated URLs.
* Mon Apr 11 2016 Sean Callaway <[email protected]> 2.0.3-14.1
- Rebuilt for OpenVPN 2.3.10 headers.
* Tue Mar 11 2014 Matthias Saou <[email protected]> 2.0.3-13
- Include remoteAddress patch from upstream issue n°4, to fix tap bridging.
- Only enable the modern objc on Fedora and EL7+ (not available on EL6).
* Sat Aug 03 2013 Fedora Release Engineering <[email protected]> - 2.0.3-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed May 29 2013 Orion Poplawski <[email protected]> - 2.0.3-12
- Use gnustep runtime (bug #870988)
* Thu Feb 14 2013 Fedora Release Engineering <[email protected]> - 2.0.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Jul 20 2012 Fedora Release Engineering <[email protected]> - 2.0.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Wed Feb 8 2012 Matthias Saou <[email protected]> 2.0.3-10
- Include patch to fix check for no longer existing objc/objc-api.h file.
* Fri Jan 13 2012 Fedora Release Engineering <[email protected]> - 2.0.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Sat Aug 13 2011 Matthias Saou <[email protected]> 2.0.3-8
- Minor spec file cleanups.
- Fix build on F-15+.
- Make sure tools/ content gets our CFLAGS.
* Tue Feb 08 2011 Fedora Release Engineering <[email protected]> - 2.0.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sat Jul 25 2009 Fedora Release Engineering <[email protected]> - 2.0.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Matthias Saou <[email protected]> 2.0.3-5
- Update URL and Source locations.
* Thu Feb 26 2009 Fedora Release Engineering <[email protected]>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sun Feb 3 2008 Matthias Saou <[email protected]> 2.0.3-3
- No longer use the full openvpn sources for the build, as only the
openvpn-plugin.h file is required, so just include it alone.
- Fix check to check-devel build requirement (it needs the header).
* Thu Jun 21 2007 Matthias Saou <[email protected]> 2.0.3-2
- Patch and change README to remove build instructions and have the proper
line to be added to openvpn's configuration.
- Move config file to a sub-dir since it gets picked up by openvpn otherwise.
* Wed Jun 20 2007 Matthias Saou <[email protected]> 2.0.3-1
- Initial RPM release.