File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ PKG_CONFIG_PATH=%{bdir}/pkg/contrib/njs/build \
88
88
%{CONFIGURE_ARGS} \
89
89
--modulesdir=%{_libdir}/unit/debug-modules \
90
90
--libdir=%{_libdir} \
91
+ --sbindir=%{_sbindir} \
91
92
--cc-opt="%{CC_OPT}" \
92
93
--ld-opt="%{LD_OPT}" \
93
94
--debug
@@ -151,6 +152,9 @@ DESTDIR=%{buildroot} make unitd-install libunit-install manpage-install E=0
151
152
%{__rm} -rf %{buildroot}%{_initrddir}/
152
153
%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/unit.service
153
154
%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/unit-debug.service
155
+ # relocate when sbindir is /usr/bin
156
+ sed -e 's:/usr/sbin:%{_sbindir}:' -i %{buildroot}%{_unitdir}/*.service
157
+
154
158
155
159
%if (0%{?fedora}) || (0%{?rhel} >= 8) || (0%{?amzn2})
156
160
%{__mkdir} -p %{buildroot}%{_includedir}/unit/
You can’t perform that action at this time.
0 commit comments