Accepting request 807338 from network:utilities

- Fix LIBEXECDIR substitution for systemd service (forwarded request 805841 from Pharaoh_Atem)

OBS-URL: https://build.opensuse.org/request/show/807338
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hostname?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2020-05-19 13:25:41 +00:00 committed by Git OBS Bridge
commit 52d58af364
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> 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 %{_bindir}/%{name} %{buildroot}%{_bindir}/$prog
ln -sf hostname.1 %{buildroot}%{_mandir}/man1/${prog}.1 ln -sf hostname.1 %{buildroot}%{_mandir}/man1/${prog}.1
done 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}%{_libexecdir}/%{name}
install -m 0755 -d %{buildroot}%{_unitdir} install -m 0755 -d %{buildroot}%{_unitdir}
install -p -m 0755 nis-domainname %{buildroot}%{_libexecdir}/%{name} install -p -m 0755 nis-domainname %{buildroot}%{_libexecdir}/%{name}