forked from pool/openvpn
Accepting request 324534 from network:vpn
- Removed obsolete --with-lzo-headers option, readded LFS_CFLAGS. - Moved openvpn-plugin.h into a devel package, removed .gitignore OBS-URL: https://build.opensuse.org/request/show/324534 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvpn?expand=0&rev=66
This commit is contained in:
commit
87d673d2fc
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 20 08:43:33 UTC 2015 - mt@suse.com
|
||||
|
||||
- Removed obsolete --with-lzo-headers option, readded LFS_CFLAGS.
|
||||
- Moved openvpn-plugin.h into a devel package, removed .gitignore
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 13 08:29:35 UTC 2015 - idonmez@suse.com
|
||||
|
||||
|
17
openvpn.spec
17
openvpn.spec
@ -124,6 +124,14 @@ This plugin uses a split privilege execution model which will function
|
||||
even if you drop openvpn daemon privileges using the user, group, or
|
||||
chroot directives.
|
||||
|
||||
%package devel
|
||||
Summary: OpenVPN plugin header
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
This package provides the header file to build external plugins.
|
||||
|
||||
%prep
|
||||
%gpg_verify %{S:1}
|
||||
%setup -q -n %{name}-%{version}
|
||||
@ -153,8 +161,7 @@ export LDFLAGS
|
||||
--enable-plugins \
|
||||
--enable-plugin-down-root \
|
||||
--enable-plugin-auth-pam \
|
||||
--with-lzo-headers=%_includedir/lzo \
|
||||
CFLAGS="$CFLAGS -fPIE $PLUGIN_DEFS" \
|
||||
CFLAGS="$CFLAGS $(getconf LFS_CFLAGS) -fPIE $PLUGIN_DEFS" \
|
||||
LDFLAGS="$LDFLAGS -pie -lpam -rdynamic -Wl,-rpath,%{_libdir}/%{name}/plugins"
|
||||
make
|
||||
|
||||
@ -185,6 +192,7 @@ install -m 755 $RPM_SOURCE_DIR/client-netconfig.down sample/sample-scripts/clien
|
||||
|
||||
# we install docs via spec into _defaultdocdir/name/management-notes.txt
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/{OpenVPN,%name}
|
||||
find sample -name .gitignore | xargs rm -f
|
||||
|
||||
%post
|
||||
%__mkdir_p -m750 %{_rundir}/openvpn
|
||||
@ -265,7 +273,6 @@ rm -f /etc/sysconfig/openvpn || :
|
||||
%{_sbindir}/rcopenvpn
|
||||
%{_sbindir}/openvpn
|
||||
%attr(0750,root,root) %dir %ghost %{_rundir}/openvpn
|
||||
%{_includedir}/%{name}-plugin.h
|
||||
|
||||
%files down-root-plugin
|
||||
%defattr(-,root,root)
|
||||
@ -279,4 +286,8 @@ rm -f /etc/sysconfig/openvpn || :
|
||||
%dir %{_libdir}/%{name}/plugins
|
||||
%{_libdir}/%{name}/plugins/%{name}-plugin-auth-pam.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/%{name}-plugin.h
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user