mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 01:20:39 +00:00
this change was previously reverted bycbc005c6f5. it turns out this change was but the offending change. so let's resurrect it. `job` was introduced back in782ebcece4, so we could consume the option specified in DEB_BUILD_OPTIONS environmental variable. but now that we always repackage the artifacts prebuilt in the relocatable package. we don't build them anymore when packaging debian packages. see9388f3d626. and `job` is not passed to `ninja` anymore. so, in this change, `job` is removed from debian/rules as well, as it is not used. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes #12924
55 lines
1.6 KiB
Makefile
Executable File
55 lines
1.6 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
export PYBUILD_DISABLE=1
|
|
ifneq ($(findstring housekeeping, $(DEB_BUILD_OPTIONS)),)
|
|
install_arg := --housekeeping
|
|
else
|
|
install_arg :=
|
|
endif
|
|
|
|
product := $(subst -server,,$(DEB_SOURCE))
|
|
|
|
override_dh_auto_configure:
|
|
|
|
override_dh_auto_build:
|
|
|
|
override_dh_auto_clean:
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install
|
|
./scylla/install.sh --packaging --root "$(CURDIR)/debian/tmp" $(install_arg) --sysconfdir "/etc/default"
|
|
# don't use default sysconfig file, use Debian version
|
|
cp scylla/dist/debian/sysconfig/scylla-housekeeping $(CURDIR)/debian/tmp/etc/default/
|
|
|
|
override_dh_installinit:
|
|
ifeq ($(product),scylla)
|
|
dh_installinit --no-start
|
|
else
|
|
dh_installinit --no-start --name scylla-server
|
|
dh_installinit --no-start --name scylla-node-exporter
|
|
endif
|
|
dh_installinit --no-start --name scylla-housekeeping-daily
|
|
dh_installinit --no-start --name scylla-housekeeping-restart
|
|
dh_installinit --no-start --name scylla-fstrim
|
|
|
|
override_dh_strip:
|
|
# The binaries (ethtool...patchelf) don't pass dh_strip after going through patchelf. Since they are
|
|
# already stripped, nothing is lost if we exclude them, so that's what we do.
|
|
dh_strip -Xlibprotobuf.so.15 -Xld.so -Xethtool -Xgawk -Xgzip -Xhwloc-calc -Xhwloc-distrib -Xifconfig -Xlscpu -Xnetstat -Xpatchelf --dbg-package=$(product)-server-dbg
|
|
find $(CURDIR)/debian/$(product)-server-dbg/usr/lib/debug/.build-id/ -name "*.debug" -exec objcopy --decompress-debug-sections {} \;
|
|
|
|
override_dh_makeshlibs:
|
|
|
|
override_dh_shlibdeps:
|
|
|
|
override_dh_fixperms:
|
|
dh_fixperms
|
|
chmod 755 $(CURDIR)/debian/$(product)-server/opt/scylladb/libreloc/ld.so
|
|
|
|
override_dh_strip_nondeterminism:
|
|
|
|
%:
|
|
dh $@
|