blob: 2b9feaad0bde0d812de8fa1666b50ba4c8abaf4b (
plain)
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
|
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# Ensure at build time that the library has no dependencies on undefined
# symbols, and speed up loading.
export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs -Wl,-O1 -Wl,--as-needed
%:
dh ${@} --parallel --with autoreconf
override_dh_auto_clean:
dh_auto_clean
rm -f build-tools/config.guess build-tools/config.sub
override_dh_auto_configure:
cp -f /usr/share/misc/config.guess build-tools
cp -f /usr/share/misc/config.sub build-tools
dh_auto_configure -- \
--disable-silent-rules \
--prefix=/usr \
--localstatedir=/var \
--enable-pango \
--enable-static \
--enable-tracing \
--disable-gdm-transition \
--with-background-color=0x005a8a \
--with-logo=/usr/share/plymouth/debian-logo.png \
--with-release-file=/etc/os-release \
--with-system-root-install \
--without-rhgb-compat-link
override_dh_auto_install:
dh_auto_install
rm -f debian/tmp/lib/$(DEB_HOST_MULTIARCH)/*.la
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/*.la
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/*/*.la
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/*.a
rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/*/*.a
override_dh_install:
# Moving /usr/lib to /lib
mv debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.so.* debian/tmp/lib/$(DEB_HOST_MULTIARCH)
mv debian/tmp/lib/$(DEB_HOST_MULTIARCH)/*.so debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
mv debian/tmp/lib/$(DEB_HOST_MULTIARCH)/*.a debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
dh_install
# Adding initramfs-tools integration
install -D -m 0755 debian/local/plymouth.hook debian/plymouth/usr/share/initramfs-tools/hooks/plymouth
sed -i -e 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' debian/plymouth/usr/share/initramfs-tools/hooks/plymouth
install -D -m 0755 debian/local/plymouth.init-premount debian/plymouth/usr/share/initramfs-tools/scripts/init-premount/plymouth
install -D -m 0755 debian/local/plymouth.init-bottom debian/plymouth/usr/share/initramfs-tools/scripts/init-bottom/plymouth
install -D -m 0755 debian/local/plymouth.panic debian/plymouth/usr/share/initramfs-tools/scripts/panic/plymouth
# Adding other debian specific files
install -D -m 0644 debian/local/debian-logo.png debian/plymouth/usr/share/plymouth/debian-logo.png
install -D -m 0755 debian/local/plymouth-update-initrd debian/plymouth/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/plymouth-update-initrd
install -D -m 0644 debian/local/plymouth.lsb debian/plymouth/lib/lsb/init-functions.d/99-plymouth
# Adding apport file (from Ubuntu)
mkdir -p debian/plymouth/usr/share/apport/package-hooks
install -m 644 debian/source_plymouth.apport debian/plymouth/usr/share/apport/package-hooks/source_plymouth.py
override_dh_systemd_start:
dh_systemd_start --no-start
override_dh_autoreconf:
dh_autoreconf --as-needed
override_dh_installinit:
dh_installinit --no-start -- start . 2 3 4 5 . stop . 0 6 .
dh_installinit --no-start --name=plymouth-log -- start . S .
override_dh_link:
# correcting symlink targets
for LIB in debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.so; \
do \
dh_link -plibplymouth-dev lib/$(DEB_HOST_MULTIARCH)/$$(basename $$(readlink $${LIB})) usr/lib/$(DEB_HOST_MULTIARCH)/$$(basename $${LIB}); \
done
dh_link --remaining-packages
override_dh_makeshlibs:
dh_makeshlibs -Xusr/lib/$(DEB_HOST_MULTIARCH)/plymouth
override_dh_strip:
dh_strip --dbgsym-migration='plymouth-dbg (<< 0.9.2-4~)'
override_dh_missing:
dh_missing --list-missing
|