This repository was archived by the owner on Aug 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenvpn-auth-ldap.spec
More file actions
137 lines (107 loc) · 4.73 KB
/
openvpn-auth-ldap.spec
File metadata and controls
137 lines (107 loc) · 4.73 KB
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
134
135
136
Summary: OpenVPN plugin for LDAP authentication
Name: openvpn-auth-ldap
Version: 2.0.4
Release: 2%{?dist}
License: BSD
Group: Applications/Internet
URL: https://github.com/threerings/openvpn-auth-ldap
Source0: https://github.com/threerings/openvpn-auth-ldap/archive/auth-ldap-%{version}.tar.gz
Patch0: 77.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: openssl-devel
BuildRequires: openvpn-devel
BuildRequires: check-devel
BuildRequires: gcc-objc
BuildRequires: autoconf
%description
The OpenVPN Auth-LDAP Plugin implements username/password authentication via
LDAP for OpenVPN 2.x.
%prep
%setup -q -n openvpn-auth-ldap-auth-ldap-%{version}
%patch0 -p1
autoreconf -fvi
autoheader
%build
CFLAGS="-fPIC" OBJCFLAGS="-std=gnu11"
%configure \
--libdir=%{_libdir}/openvpn/plugins \
--with-openvpn="/usr/include/openvpn"
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
# Main plugin
mkdir -p %{buildroot}%{_libdir}/openvpn/plugins
make install DESTDIR=%{buildroot}
# Example config file
install -D -p -m 0600 auth-ldap.conf \
%{buildroot}%{_sysconfdir}/openvpn/server/auth/ldap.conf
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE auth-ldap.conf
%dir %{_sysconfdir}/openvpn/server/auth/
%config(noreplace) %{_sysconfdir}/openvpn/server/auth/ldap.conf
%{_libdir}/openvpn/plugins/openvpn-auth-ldap.so
%changelog
- Update dependencies list.
- Add TLSRequireCert option patch.
- Fixed plugin path's.
- Use openvpn-devel headers.
- Bump version to 2.0.4.
- Applied patch to prevent crash when LDAP server unavailable.
- Added unapplied patch.
- Include patch to fix binding before STARTTLS has completed.
- Updated URLs.
- Rebuilt for OpenVPN 2.3.10 headers.
- Added RFC2307 patch.
- 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).
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
- Use gnustep runtime (bug #870988)
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
- Include patch to fix check for no longer existing objc/objc-api.h file.
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
- Minor spec file cleanups.
- Fix build on F-15+.
- Make sure tools/ content gets our CFLAGS.
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- Update URL and Source locations.
* Thu Feb 26 2009 Fedora Release Engineering <[email protected]>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- 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).
- 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.
- Initial RPM release.