3
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
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
10
DEB_CFLAGS_MAINT_APPEND := -Werror -Wno-error=unused-result \
11
-Wno-error=sign-compare
13
# Disable optimisations if noopt found in $DEB_BUILD_OPTIONS
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15
DEB_LDFLAGS_MAINT_APPEND += -Wl,-O0
17
DEB_LDFLAGS_MAINT_APPEND += -Wl,-O1
23
override_dh_auto_configure:
24
dh_auto_configure -- \
25
SYSTEMD_ASK_PASSWORD_AGENT=/bin/systemd-tty-ask-password-agent \
26
--disable-silent-rules \
28
--localstatedir=/var \
29
--with-runtimedir=/run \
32
--enable-systemd-integration \
35
--with-background-color=0x2c001e \
36
--with-background-start-color-stop=0x2c001e \
37
--with-background-end-color-stop=0x2c001e \
38
--with-logo=/usr/share/plymouth/ubuntu-logo.png \
39
--with-release-file=/etc/os-release \
40
--without-system-root-install \
41
--without-rhgb-compat-link
43
override_dh_auto_install:
46
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
47
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/*.la
48
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/*/*.la
49
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/*.a
50
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/*/*.a
53
# remove non alternative-based theme policy files and tools
54
rm -f debian/tmp/etc/plymouth/plymouthd.conf
55
rm -f debian/tmp/usr/share/plymouth/plymouthd.defaults
56
rm -f debian/tmp/usr/sbin/plymouth-set-default-theme
57
rm -f debian/tmp/usr/share/man/man1/plymouth-set-default-theme.1
61
# Adding initramfs-tools integration
62
install -D -m 0755 debian/local/plymouth.hook debian/plymouth/usr/share/initramfs-tools/hooks/plymouth
63
sed -i -e 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' debian/plymouth/usr/share/initramfs-tools/hooks/plymouth
64
install -D -m 0755 debian/local/plymouth.init-premount debian/plymouth/usr/share/initramfs-tools/scripts/init-premount/plymouth
65
install -D -m 0755 debian/local/plymouth.init-bottom debian/plymouth/usr/share/initramfs-tools/scripts/init-bottom/plymouth
66
install -D -m 0755 debian/local/plymouth.panic debian/plymouth/usr/share/initramfs-tools/scripts/panic/plymouth
68
# Adding other debian specific files
69
install -D -m 0755 debian/local/plymouth-update-initrd debian/plymouth/usr/libexec/plymouth/plymouth-update-initrd
70
install -D -m 0644 debian/local/plymouth.lsb debian/plymouth/lib/lsb/init-functions.d/99-plymouth
71
install -D -m 0644 debian/local/ubuntu-logo.png debian/plymouth/usr/share/plymouth/ubuntu-logo.png
72
install -D -m 0644 debian/local/ubuntu-logo.png debian/plymouth/usr/share/plymouth/themes/spinner/watermark.png
74
# Adding apport file (from Ubuntu)
75
mkdir -p debian/plymouth/usr/share/apport/package-hooks
76
install -m 644 debian/source_plymouth.apport debian/plymouth/usr/share/apport/package-hooks/source_plymouth.py
78
# Install the ubuntu spinner assets
79
cp debian/local/spinner/* debian/plymouth-theme-spinner/usr/share/plymouth/themes/spinner
80
cp debian/local/entry.png debian/plymouth-theme-spinner/usr/share/plymouth/themes/spinner
81
cp debian/local/lock.png debian/plymouth-theme-spinner/usr/share/plymouth/themes/spinner
82
cp debian/local/keyboard.png debian/plymouth-theme-spinner/usr/share/plymouth/themes/spinner
83
cp debian/local/bgrt-fallback.png debian/plymouth-theme-spinner/usr/share/plymouth/themes/spinner
85
override_dh_installsystemd:
86
dh_installsystemd --no-start --no-restart-after-upgrade
88
override_dh_autoreconf:
89
dh_autoreconf --as-needed
91
override_dh_installinit:
92
dh_installinit --no-start -- start . 2 3 4 5 . stop . 0 6 .
93
dh_installinit --no-start --name=plymouth-log -- start . S .
95
override_dh_makeshlibs:
96
dh_makeshlibs -Xusr/lib/$(DEB_HOST_MULTIARCH)/plymouth