mod for buster
This commit is contained in:
4
debian/rules
vendored
4
debian/rules
vendored
@@ -20,13 +20,12 @@ DESTDIR=$(CURDIR)/debian/tmp
|
||||
export PYTHON=python3
|
||||
export am_cv_python_pythondir=/usr/lib/python3/dist-packages
|
||||
export am_cv_python_pyexecdir=/usr/lib/python3/dist-packages
|
||||
#export systemdsystemunitdir=$(shell pkgconf --variable=systemdsystemunitdir systemd | sed s,^/,,)
|
||||
|
||||
# Detect systemd unit dir with fallback
|
||||
systemdsystemunitdir := $(shell pkgconf --variable=systemdsystemunitdir systemd 2>/dev/null | sed 's,^/,,')
|
||||
ifeq ($(systemdsystemunitdir),)
|
||||
systemdsystemunitdir := lib/systemd/system
|
||||
endif
|
||||
|
||||
export systemdsystemunitdir
|
||||
|
||||
confflags = \
|
||||
@@ -132,6 +131,7 @@ override_dh_fixperms:
|
||||
fi
|
||||
|
||||
override_dh_gencontrol:
|
||||
echo "systemdsystemunitdir=$(systemdsystemunitdir)" >> debian/substvars
|
||||
dh_gencontrol -- \
|
||||
-Vlib:Depends=$(shell dpkg-query -W -f '$${Depends}' librpm-dev \
|
||||
| sed -E 's/.*(librpm[[:alnum:].-]+).*/\1/')
|
||||
|
||||
Reference in New Issue
Block a user