SHA256
1
0
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:
Stephan Kulow 2015-08-23 13:43:34 +00:00 committed by Git OBS Bridge
commit 87d673d2fc
2 changed files with 20 additions and 3 deletions

View File

@ -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 Thu Aug 13 08:29:35 UTC 2015 - idonmez@suse.com

View File

@ -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 even if you drop openvpn daemon privileges using the user, group, or
chroot directives. 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 %prep
%gpg_verify %{S:1} %gpg_verify %{S:1}
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
@ -153,8 +161,7 @@ export LDFLAGS
--enable-plugins \ --enable-plugins \
--enable-plugin-down-root \ --enable-plugin-down-root \
--enable-plugin-auth-pam \ --enable-plugin-auth-pam \
--with-lzo-headers=%_includedir/lzo \ CFLAGS="$CFLAGS $(getconf LFS_CFLAGS) -fPIE $PLUGIN_DEFS" \
CFLAGS="$CFLAGS -fPIE $PLUGIN_DEFS" \
LDFLAGS="$LDFLAGS -pie -lpam -rdynamic -Wl,-rpath,%{_libdir}/%{name}/plugins" LDFLAGS="$LDFLAGS -pie -lpam -rdynamic -Wl,-rpath,%{_libdir}/%{name}/plugins"
make 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 # we install docs via spec into _defaultdocdir/name/management-notes.txt
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/{OpenVPN,%name} rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/{OpenVPN,%name}
find sample -name .gitignore | xargs rm -f
%post %post
%__mkdir_p -m750 %{_rundir}/openvpn %__mkdir_p -m750 %{_rundir}/openvpn
@ -265,7 +273,6 @@ rm -f /etc/sysconfig/openvpn || :
%{_sbindir}/rcopenvpn %{_sbindir}/rcopenvpn
%{_sbindir}/openvpn %{_sbindir}/openvpn
%attr(0750,root,root) %dir %ghost %{_rundir}/openvpn %attr(0750,root,root) %dir %ghost %{_rundir}/openvpn
%{_includedir}/%{name}-plugin.h
%files down-root-plugin %files down-root-plugin
%defattr(-,root,root) %defattr(-,root,root)
@ -279,4 +286,8 @@ rm -f /etc/sysconfig/openvpn || :
%dir %{_libdir}/%{name}/plugins %dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/%{name}-plugin-auth-pam.so %{_libdir}/%{name}/plugins/%{name}-plugin-auth-pam.so
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}-plugin.h
%changelog %changelog