Rename strongswan-NetworkManager to strongswan-charon-nm
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
%global hardened_build 1
|
%global hardened_build 1
|
||||||
|
|
||||||
%if 0%{?rhel} <= 6
|
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
||||||
%global enable_nm 0
|
%global enable_nm 1
|
||||||
|
%global _enable_nm '--enable-nm'
|
||||||
%else
|
%else
|
||||||
%global _enable_nm --enable-nm
|
%global enable_nm 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: strongswan
|
Name: strongswan
|
||||||
Version: 5.0.4
|
Version: 5.0.4
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: An OpenSource IPsec-based VPN Solution
|
Summary: An OpenSource IPsec-based VPN Solution
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@@ -34,8 +35,10 @@ BuildRequires: libxml2-devel
|
|||||||
%if 0%{?enable_nm}
|
%if 0%{?enable_nm}
|
||||||
BuildRequires: NetworkManager-devel
|
BuildRequires: NetworkManager-devel
|
||||||
BuildRequires: NetworkManager-glib-devel
|
BuildRequires: NetworkManager-glib-devel
|
||||||
|
Obsoletes: %{name}-NetworkManager < 0:5.0.4-5
|
||||||
|
Provides: %{name}-NetworkManager = 0:%{version}-%{release}
|
||||||
%else
|
%else
|
||||||
Obsoletes: %{name}-NetworkManager < 5.0.0-3.git20120619
|
Obsoletes: %{name}-NetworkManager < 0:5.0.0-3.git20120619
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
||||||
@@ -53,11 +56,11 @@ The strongSwan IPsec implementation supports both the IKEv1 and IKEv2 key
|
|||||||
exchange protocols in conjunction with the native NETKEY IPsec stack of the
|
exchange protocols in conjunction with the native NETKEY IPsec stack of the
|
||||||
Linux kernel.
|
Linux kernel.
|
||||||
|
|
||||||
%if 0%{enable_nm}
|
%if 0%{?enable_nm}
|
||||||
%package NetworkManager
|
%package charon-nm
|
||||||
Summary: NetworkManager plugin for Strongswan
|
Summary: NetworkManager plugin for Strongswan
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
%description NetworkManager
|
%description charon-nm
|
||||||
NetworkManager plugin integrates a subset of Strongswan capabilities
|
NetworkManager plugin integrates a subset of Strongswan capabilities
|
||||||
to NetworkManager.
|
to NetworkManager.
|
||||||
%endif
|
%endif
|
||||||
@@ -128,7 +131,6 @@ echo "For migration from 4.6 to 5.0 see http://wiki.strongswan.org/projects/stro
|
|||||||
%{?_enable_nm}
|
%{?_enable_nm}
|
||||||
|
|
||||||
|
|
||||||
#make %%{?_smp_mflags} IPSEC_CONFDIR=%%{_sysconfdir}/%%{name}
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
sed -i 's/\t/ /' src/strongswan.conf src/starter/ipsec.conf
|
sed -i 's/\t/ /' src/strongswan.conf src/starter/ipsec.conf
|
||||||
|
|
||||||
@@ -160,6 +162,33 @@ for i in aacerts acerts certs cacerts crls ocspcerts private reqs; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
||||||
|
%systemd_post %{name}.service
|
||||||
|
%else
|
||||||
|
/sbin/chkconfig --add %{name}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
||||||
|
%systemd_preun %{name}.service
|
||||||
|
%else
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
# Package removal, not upgrade
|
||||||
|
/sbin/service %{name} stop >/dev/null 2>&1
|
||||||
|
/sbin/chkconfig --del %{name}
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
||||||
|
%systemd_postun_with_restart %{name}.service
|
||||||
|
%else
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README README.Fedora COPYING NEWS TODO
|
%doc README README.Fedora COPYING NEWS TODO
|
||||||
%dir %{_sysconfdir}/%{name}
|
%dir %{_sysconfdir}/%{name}
|
||||||
@@ -278,41 +307,18 @@ done
|
|||||||
%{_libexecdir}/%{name}/attest
|
%{_libexecdir}/%{name}/attest
|
||||||
%{_libexecdir}/%{name}/pacman
|
%{_libexecdir}/%{name}/pacman
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?enable_nm}
|
%if 0%{?enable_nm}
|
||||||
%files NetworkManager
|
%files charon-nm
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%{_libexecdir}/%{name}/charon-nm
|
%{_libexecdir}/%{name}/charon-nm
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/ldconfig
|
|
||||||
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
||||||
%systemd_post %{name}.service
|
|
||||||
%else
|
|
||||||
/sbin/chkconfig --add %{name}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%preun
|
|
||||||
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
||||||
%systemd_preun %{name}.service
|
|
||||||
%else
|
|
||||||
if [ $1 -eq 0 ] ; then
|
|
||||||
# Package removal, not upgrade
|
|
||||||
/sbin/service %{name} stop >/dev/null 2>&1
|
|
||||||
/sbin/chkconfig --del %{name}
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%postun
|
|
||||||
/sbin/ldconfig
|
|
||||||
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
||||||
%systemd_postun_with_restart %{name}.service
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 25 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 5.0.4-5
|
||||||
|
- rename strongswan-NetworkManager to strongswan-charon-nm
|
||||||
|
- fix enable_nm macro
|
||||||
|
|
||||||
* Mon Jul 15 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 5.0.4-4
|
* Mon Jul 15 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 5.0.4-4
|
||||||
- %%files tries to package some of the shared objects as directories (#984437)
|
- %%files tries to package some of the shared objects as directories (#984437)
|
||||||
- fix broken systemd unit file (#984300)
|
- fix broken systemd unit file (#984300)
|
||||||
|
|||||||
Reference in New Issue
Block a user