Accepting request 805841 from home:Pharaoh_Atem:branches:network:utilities

- Fix LIBEXECDIR substitution for systemd service

OBS-URL: https://build.opensuse.org/request/show/805841
OBS-URL: https://build.opensuse.org/package/show/network:utilities/hostname?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2020-05-19 13:09:41 +00:00 committed by Git OBS Bridge
parent 88db74e45b
commit a69df0622e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 15 13:30:45 UTC 2020 - Neal Gompa <ngompa13@gmail.com>
- Fix LIBEXECDIR substitution for systemd service
-------------------------------------------------------------------
Sun Apr 12 14:06:27 UTC 2020 - Neal Gompa <ngompa13@gmail.com>

View File

@ -52,7 +52,7 @@ for prog in dnsdomainname domainname ypdomainname nisdomainname; do
ln -sf %{_bindir}/%{name} %{buildroot}%{_bindir}/$prog
ln -sf hostname.1 %{buildroot}%{_mandir}/man1/${prog}.1
done
sed -e "s|@LIBEXECDIR|%{_libexecdir}|g" nis-domainname.service.in > nis-domainname.service
sed -e "s|@LIBEXECDIR@|%{_libexecdir}|g" nis-domainname.service.in > nis-domainname.service
install -m 0755 -d %{buildroot}%{_libexecdir}/%{name}
install -m 0755 -d %{buildroot}%{_unitdir}
install -p -m 0755 nis-domainname %{buildroot}%{_libexecdir}/%{name}