summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm
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
parentc54331fa3d9597ba6bc85e7b7242981f00ed25c2 (diff)
downloadunit-73c6c8a7f7cae0ef18131c6db000bffd82ce9593.tar.gz
unit-73c6c8a7f7cae0ef18131c6db000bffd82ce9593.tar.bz2
Packages: added unitc and setup-unit.
Diffstat (limited to 'pkg/rpm')
-rw-r--r--pkg/rpm/Makefile3
-rw-r--r--pkg/rpm/unit.spec.in7
2 files changed, 9 insertions, 1 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index 0aa6beb2..584f2d3a 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -192,7 +192,8 @@ endif
rpmbuild/SOURCES/unit-$(VERSION).tar.gz:
cd ../.. && tar -czf pkg/rpm/rpmbuild/SOURCES/unit-$(VERSION).tar.gz \
--transform "s#^#unit-$(VERSION)/#" \
- LICENSE NOTICE CHANGES README.md CONTRIBUTING.md configure auto src test version go pkg/contrib docs/man/unitd.8.in
+ LICENSE NOTICE CHANGES README.md CONTRIBUTING.md configure auto src \
+ test tools version go pkg/contrib docs/man/unitd.8.in
unit: check-build-depends-unit rpmbuild/SPECS/unit.spec rpmbuild/SOURCES/unit-$(VERSION).tar.gz
@echo "===> Building $@ package" ; \
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