From 494fc77865b9e0070cdc21b4916fdd6ca02a8638 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Thu, 7 Jun 2018 22:38:10 +0300 Subject: [PATCH] Remove unnecessary uses of %{name} macro The configuration directory is named explicitly elsewhere. --- strongswan.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/strongswan.spec b/strongswan.spec index 42250af..673db13 100644 --- a/strongswan.spec +++ b/strongswan.spec @@ -184,12 +184,12 @@ find %{buildroot} -type f -name '*.la' -delete # delete unwanted library files - no consumers, so no -devel package rm %{buildroot}%{_libdir}/strongswan/*.so # fix config permissions -chmod 644 %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf +chmod 644 %{buildroot}%{_sysconfdir}/strongswan/strongswan.conf # Create ipsec.d directory tree. -install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/ipsec.d +install -d -m 700 %{buildroot}%{_sysconfdir}/strongswan/ipsec.d for i in aacerts acerts certs cacerts crls ocspcerts private reqs; do - install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/ipsec.d/${i} + install -d -m 700 %{buildroot}%{_sysconfdir}/strongswan/ipsec.d/${i} done %post