1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
#! /usr/bin/make -f
#export DH_VERBOSE = 1
#export DEB_BUILD_OPTIONS = nostrip
export LC_ALL = C.UTF-8
include /usr/share/dpkg/default.mk
include /usr/share/debhelper/dh_package_notes/package-notes.mk
# Make sure that DEB_BUILD_OPTIONS can be used by users to override any options
# we set here (By default DEB_BUILD_MAINT_OPTIONS overrides DEB_BUILD_OPTIONS).
export DEB_BUILD_MAINT_OPTIONS = optimize=+lto hardening=+pie $(DEB_BUILD_OPTIONS)
override_dh_auto_configure:
dh_auto_configure -- \
-Dversion-tag="$(VERSION_TAG)" \
-Dmode=release \
-Dkmod-path=/usr/bin/kmod \
-Dmount-path=/usr/bin/mount \
-Dumount-path=/usr/bin/umount \
-Dsupport-url=https://www.debian.org/support \
-Dsystem-uid-max=999 \
-Dsystem-gid-max=999 \
-Dnobody-user=nobody \
-Dnobody-group=nogroup \
-Ddev-kvm-mode=0660 \
-Dgroup-render-mode=0660 \
-Dselinux=enabled \
-Dkmod=enabled \
-Dacl=enabled \
-Dblkid=enabled \
-Dlibmount=enabled \
-Dauto_features=disabled \
-Drpmmacrosdir=no \
-Dhwdb=false \
-Dvconsole=false \
-Dfirstboot=false \
-Dwheel-group=false \
-Dsysvinit-path='' \
-Doomd=false \
-Durlify=false \
-Dlink-udev-shared=false \
-Dsysext=false \
-Dsysusers=false \
-Dinstall-tests=false \
-Ddbus-interfaces-dir=no \
-Dtranslations=false \
-Dresolve=false \
-Dutmp=false \
-Dtests=false \
-Dima=false \
-Dipe=false \
-Dsmack=false \
-Dbacklight=false \
-Dkernel-install=false \
-Dmountfsd=false \
-Dnetworkd=false \
-Dnsresourced=false \
-Dnss-myhostname=false \
-Dnss-systemd=false \
-Dhibernate=false \
-Dldconfig=false \
-Defi=false \
-Dtpm=false \
-Denvironment-d=false \
-Dbinfmt=false \
-Dpstore=false \
-Dlogind=false \
-Dhostnamed=false \
-Dlocaled=false \
-Dmachined=false \
-Dportabled=false \
-Dquotacheck=false \
-Drandomseed=false \
-Drfkill=false \
-Danalyze=false \
-Dstoragetm=false \
-Dtimedated=false \
-Dtimesyncd=false \
-Dtmpfiles=false \
-Dxdg-autostart=false \
-Didn=false \
-Dgshadow=false \
-Durlify=false \
-Dcoredump=false \
-Dinstall-sysconfdir=false
override_dh_auto_build:
dh_auto_build -- libudev udev
# TODO: in compat 14 we can use dh_auto_install -- --no-rebuild --tags libudev,udev
override_dh_auto_install:
meson install -C obj-$(DEB_HOST_GNU_TYPE) --no-rebuild --tags libudev,udev --destdir ../debian/tmp/
PROJECT_VERSION ?= $(shell awk '/(PROJECT|PACKAGE)_VERSION / {print $$3}' obj-$(DEB_HOST_GNU_TYPE)/config.h | tr -d \")
override_dh_makeshlibs:
sed 's/SHARED_LIB_VERSION/$(PROJECT_VERSION)/' debian/shlibs.local.in > debian/shlibs.local
dh_makeshlibs -plibudev1-udeb --add-udeb=libudev1-udeb
dh_makeshlibs --remaining-packages
override_dh_auto_test:
%:
dh $@
|