2021-09-10 09:47:13 +08:00
|
|
|
#!/usr/bin/make -f
|
2024-04-09 18:15:31 +08:00
|
|
|
|
2024-05-07 17:15:41 +08:00
|
|
|
OS=$(shell awk '/^NAME=/' /etc/os-release | sed 's/NAME=//' | sed 's/\"//g' | tr '[:upper:]' '[:lower:]')
|
2024-04-09 18:15:31 +08:00
|
|
|
ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH | cut -c1-3)
|
2024-05-07 17:15:41 +08:00
|
|
|
VERSION=$(shell awk '/VERSION=/' /etc/os-release | sed 's/VERSION=//' | sed 's/\"//g' | sed 's/[.]0/./')
|
2024-04-09 18:15:31 +08:00
|
|
|
|
2021-09-10 09:47:13 +08:00
|
|
|
%:
|
2023-10-11 14:18:12 +08:00
|
|
|
dh $@ --buildsystem=cmake
|
2021-09-10 09:47:13 +08:00
|
|
|
|
2024-04-09 18:15:31 +08:00
|
|
|
ifeq ($(OS) $(VERSION) $(ARCH), uos 20 amd)
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
|
dh_auto_install
|
|
|
|
|
# linglong.conf will be installed to the first package in control file
|
|
|
|
|
dh_install debian/sysctl.d/linglong.conf /etc/sysctl.d
|
|
|
|
|
endif
|
|
|
|
|
|
2021-09-10 09:47:13 +08:00
|
|
|
override_dh_auto_configure:
|
2023-10-09 09:34:04 +08:00
|
|
|
dh_auto_configure -- -DCPM_LOCAL_PACKAGES_ONLY=ON ${DH_AUTO_ARGS}
|
2024-01-05 21:31:50 +08:00
|
|
|
|
|
|
|
|
# https://sources.debian.org/src/amavisd-new/1:2.13.0-3/debian/rules/?hl=10#L10
|
|
|
|
|
execute_after_dh_installinit:
|
|
|
|
|
dh_installsysusers # this is needed until dh compat 14
|