| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 4 |
|
| 5 |
# Ensure at build time that the library has no dependencies on undefined |
| 6 |
# symbols, and speed up loading. |
| 7 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 |
| 8 |
|
| 9 |
export systemdsystemunitdir=$(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,) |
| 10 |
|
| 11 |
%: |
| 12 |
dh ${@} |
| 13 |
|
| 14 |
override_dh_auto_configure: |
| 15 |
dh_auto_configure -- \ |
| 16 |
-Dbackground-color=0x005a8a \ |
| 17 |
-Dlogo=/usr/share/plymouth/debian-logo.png \ |
| 18 |
-Drelease-file=/etc/os-release |
| 19 |
|
| 20 |
override_dh_install: |
| 21 |
dh_install |
| 22 |
|
| 23 |
# Adding other debian specific files |
| 24 |
install -D -m 0755 debian/local/plymouth-update-initrd debian/plymouth/usr/libexec/plymouth/plymouth-update-initrd |
| 25 |
install -D -m 0644 debian/local/plymouth.lsb debian/plymouth/usr/lib/lsb/init-functions.d/99-plymouth |
| 26 |
|
| 27 |
# Adding apport file (from Ubuntu) |
| 28 |
mkdir -p debian/plymouth/usr/share/apport/package-hooks |
| 29 |
install -m 644 debian/source_plymouth.apport debian/plymouth/usr/share/apport/package-hooks/source_plymouth.py |
| 30 |
|
| 31 |
override_dh_auto_install: |
| 32 |
|
| 33 |
# Workaround a but in meson, it cannot create a symlink if the target doesn't exist |
| 34 |
# https://github.com/mesonbuild/meson/issues/12253 |
| 35 |
install -D -m 0644 debian/local/debian-logo.png debian/tmp/usr/share/plymouth/debian-logo.png |
| 36 |
dh_auto_install |
| 37 |
|
| 38 |
# Disable dh_installinitramfs as we are managing this ourself |
| 39 |
override_dh_installinitramfs: |
| 40 |
# Adding initramfs-tools integration |
| 41 |
install -D -m 0755 debian/local/plymouth.hook debian/plymouth/usr/share/initramfs-tools/hooks/plymouth |
| 42 |
sed -i -e 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' debian/plymouth/usr/share/initramfs-tools/hooks/plymouth |
| 43 |
install -D -m 0755 debian/local/plymouth.init-premount debian/plymouth/usr/share/initramfs-tools/scripts/init-premount/plymouth |
| 44 |
install -D -m 0755 debian/local/plymouth.init-bottom debian/plymouth/usr/share/initramfs-tools/scripts/init-bottom/plymouth |
| 45 |
install -D -m 0755 debian/local/plymouth.panic debian/plymouth/usr/share/initramfs-tools/scripts/panic/plymouth |
| 46 |
|
| 47 |
|
| 48 |
override_dh_installsystemd: |
| 49 |
dh_installsystemd --no-start --no-restart-after-upgrade |
| 50 |
|
| 51 |
override_dh_autoreconf: |
| 52 |
dh_autoreconf --as-needed |
| 53 |
|
| 54 |
override_dh_installinit: |
| 55 |
dh_installinit --no-start |
| 56 |
dh_installinit --no-start --name=plymouth-log |
| 57 |
|
| 58 |
override_dh_makeshlibs: |
| 59 |
dh_makeshlibs -Xusr/lib/$(DEB_HOST_MULTIARCH)/plymouth |