fixed el6 initscript
This commit is contained in:
25
strongswan-5.1.2-libexec.patch
Normal file
25
strongswan-5.1.2-libexec.patch
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
Index: strongswan-5.1.2/src/checksum/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- strongswan-5.1.2.orig/src/checksum/Makefile.am
|
||||||
|
+++ strongswan-5.1.2/src/checksum/Makefile.am
|
||||||
|
@@ -102,7 +102,7 @@ endif
|
||||||
|
if USE_TOOLS
|
||||||
|
exes += $(DESTDIR)$(ipsecdir)/openac
|
||||||
|
exes += $(DESTDIR)$(ipsecdir)/scepclient
|
||||||
|
- exes += $(DESTDIR)$(bindir)/pki
|
||||||
|
+ exes += $(DESTDIR)$(ipsecdir)/pki
|
||||||
|
endif
|
||||||
|
|
||||||
|
if USE_ATTR_SQL
|
||||||
|
Index: strongswan-5.1.2/src/pki/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- strongswan-5.1.2.orig/src/pki/Makefile.am
|
||||||
|
+++ strongswan-5.1.2/src/pki/Makefile.am
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
SUBDIRS = man
|
||||||
|
|
||||||
|
-bin_PROGRAMS = pki
|
||||||
|
+ipsec_PROGRAMS = pki
|
||||||
|
|
||||||
|
pki_SOURCES = pki.c pki.h command.c command.h \
|
||||||
|
commands/gen.c \
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: strongswan
|
Name: strongswan
|
||||||
Version: 5.1.2
|
Version: 5.1.2
|
||||||
Release: 2%{?dist}
|
Release: 3%{?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+
|
||||||
@@ -28,6 +28,9 @@ Patch6: strongswan-5.1.1-selinux.patch
|
|||||||
# Fix configure.ac to build for epel6
|
# Fix configure.ac to build for epel6
|
||||||
# http://wiki.strongswan.org/issues/536
|
# http://wiki.strongswan.org/issues/536
|
||||||
Patch7: strongswan-5.1.2-autoconf.patch
|
Patch7: strongswan-5.1.2-autoconf.patch
|
||||||
|
# Fix pki utility location
|
||||||
|
# TBD
|
||||||
|
Patch8: strongswan-5.1.2-libexec.patch
|
||||||
BuildRequires: gmp-devel autoconf automake
|
BuildRequires: gmp-devel autoconf automake
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: openldap-devel
|
BuildRequires: openldap-devel
|
||||||
@@ -88,6 +91,7 @@ PT-TLS to support TNC over TLS.
|
|||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
|
%patch8 -p1
|
||||||
|
|
||||||
echo "For migration from 4.6 to 5.0 see http://wiki.strongswan.org/projects/strongswan/wiki/CharonPlutoIKEv1" > README.Fedora
|
echo "For migration from 4.6 to 5.0 see http://wiki.strongswan.org/projects/strongswan/wiki/CharonPlutoIKEv1" > README.Fedora
|
||||||
|
|
||||||
@@ -155,8 +159,6 @@ find %{buildroot} -type f -name '*.la' -delete
|
|||||||
chmod 644 %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
|
chmod 644 %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
|
||||||
# protect configuration from ordinary user's eyes
|
# protect configuration from ordinary user's eyes
|
||||||
chmod 700 %{buildroot}%{_sysconfdir}/%{name}
|
chmod 700 %{buildroot}%{_sysconfdir}/%{name}
|
||||||
# move stuff to libexec
|
|
||||||
mv %{buildroot}%{_bindir}/pki %{buildroot}%{_libexecdir}/%{name}/pki
|
|
||||||
# Create ipsec.d directory tree.
|
# Create ipsec.d directory tree.
|
||||||
install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/ipsec.d
|
install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/ipsec.d
|
||||||
for i in aacerts acerts certs cacerts crls ocspcerts private reqs; do
|
for i in aacerts acerts certs cacerts crls ocspcerts private reqs; do
|
||||||
@@ -471,6 +473,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 18 2014 Pavel Šimerda <psimerda@redhat.com> - 5.1.2-3
|
||||||
|
- fixed el6 initscript
|
||||||
|
- fixed pki directory location
|
||||||
|
|
||||||
* Fri Mar 14 2014 Pavel Šimerda <psimerda@redhat.com> - 5.1.2-2
|
* Fri Mar 14 2014 Pavel Šimerda <psimerda@redhat.com> - 5.1.2-2
|
||||||
- clean up the specfile a bit
|
- clean up the specfile a bit
|
||||||
- replace the initscript patch with an individual initscript
|
- replace the initscript patch with an individual initscript
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
# Source function library.
|
# Source function library.
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
exec="@SBINDIR@/@IPSEC_SCRIPT@"
|
exec="/usr/sbin/strongswan"
|
||||||
prog="strongswan"
|
prog="strongswan"
|
||||||
status_prog="starter"
|
status_prog="starter"
|
||||||
config="/etc/strongswan/strongswan.conf"
|
config="/etc/strongswan/strongswan.conf"
|
||||||
|
|||||||
Reference in New Issue
Block a user