summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/unit.spec.in
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-03-30 16:03:41 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-03-30 16:03:41 -0700
commit73c6c8a7f7cae0ef18131c6db000bffd82ce9593 (patch)
tree53484adedb5cc55e0723f773f9f16b7429bb6400 /pkg/rpm/unit.spec.in
parentc54331fa3d9597ba6bc85e7b7242981f00ed25c2 (diff)
downloadunit-73c6c8a7f7cae0ef18131c6db000bffd82ce9593.tar.gz
unit-73c6c8a7f7cae0ef18131c6db000bffd82ce9593.tar.bz2
Packages: added unitc and setup-unit.
Diffstat (limited to 'pkg/rpm/unit.spec.in')
-rw-r--r--pkg/rpm/unit.spec.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/rpm/unit.spec.in b/pkg/rpm/unit.spec.in
index 0914e513..14a2ea00 100644
--- a/pkg/rpm/unit.spec.in
+++ b/pkg/rpm/unit.spec.in
@@ -103,6 +103,11 @@ PKG_CONFIG_PATH=%{bdir}/pkg/contrib/njs/build \
%{__rm} -rf %{buildroot}
%{__ln_s} build-nodebug build
DESTDIR=%{buildroot} make unitd-install libunit-install manpage-install
+%{__mkdir} -p %{buildroot}%{_bindir}
+%{__install} -m755 %{bdir}/tools/unitc \
+ %{buildroot}%{_bindir}/unitc
+%{__install} -m755 %{bdir}/tools/setup-unit \
+ %{buildroot}%{_bindir}/setup-unit
%{__install} -m755 %{bdir}/build-debug/sbin/unitd \
%{buildroot}%{_sbindir}/unitd-debug
%{__install} -m644 %{bdir}/build-debug/lib/libunit.a \
@@ -197,6 +202,8 @@ BANNER
%files
%defattr(-,root,root,-)
+%attr(0755,root,root) %{_bindir}/unitc
+%attr(0755,root,root) %{_bindir}/setup-unit
%attr(0755,root,root) %{_sbindir}/unitd
%attr(0755,root,root) %{_sbindir}/unitd-debug
%{_unitdir}/unit.service