~burhanilinux/+junk/plymouth

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Juzer Dana
  • Date: 2024-01-14 13:03:08 UTC
  • Revision ID: juzerdana@gmail.com-20240114130308-urizjbjhjqmenga6
New Commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
8
 
 
9
# Build with -Werror
 
10
DEB_CFLAGS_MAINT_APPEND  := -Werror -Wno-error=unused-result \
 
11
       -Wno-error=sign-compare
 
12
 
 
13
# Disable optimisations if noopt found in $DEB_BUILD_OPTIONS
 
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
15
        DEB_LDFLAGS_MAINT_APPEND += -Wl,-O0
 
16
else
 
17
        DEB_LDFLAGS_MAINT_APPEND += -Wl,-O1
 
18
endif
 
19
 
 
20
%:
 
21
        dh ${@}
 
22
 
 
23
override_dh_auto_configure:
 
24
        dh_auto_configure -- \
 
25
                SYSTEMD_ASK_PASSWORD_AGENT=/bin/systemd-tty-ask-password-agent \
 
26
                --disable-silent-rules \
 
27
                --prefix=/usr \
 
28
                --localstatedir=/var \
 
29
                --with-runtimedir=/run \
 
30
                --enable-pango \
 
31
                --enable-freetype \
 
32
                --enable-systemd-integration \
 
33
                --enable-static \
 
34
                --enable-tracing \
 
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
 
42
 
 
43
override_dh_auto_install:
 
44
        dh_auto_install
 
45
 
 
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
 
51
 
 
52
override_dh_install:
 
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
 
58
 
 
59
        dh_install
 
60
 
 
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
 
67
 
 
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
 
73
 
 
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
 
77
 
 
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
 
84
 
 
85
override_dh_installsystemd:
 
86
        dh_installsystemd --no-start --no-restart-after-upgrade
 
87
 
 
88
override_dh_autoreconf:
 
89
        dh_autoreconf --as-needed
 
90
 
 
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 .
 
94
 
 
95
override_dh_makeshlibs:
 
96
        dh_makeshlibs -Xusr/lib/$(DEB_HOST_MULTIARCH)/plymouth