summaryrefslogtreecommitdiff
path: root/plymouth/debian/rules
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-09-15 01:40:06 +0000
committerB Stack <bgstack15@gmail.com>2019-09-15 01:40:06 +0000
commitf2dff3ec0939afc06060528e453a86f3045a73a9 (patch)
tree37d52e919c9b407b9783b388aa6706ad31a0c931 /plymouth/debian/rules
parentMerge branch 'chicago95-bump' into 'master' (diff)
parentfix maintainer (diff)
downloadstackrpms-f2dff3ec0939afc06060528e453a86f3045a73a9.tar.gz
stackrpms-f2dff3ec0939afc06060528e453a86f3045a73a9.tar.bz2
stackrpms-f2dff3ec0939afc06060528e453a86f3045a73a9.zip
Merge branch 'plymouth-bump' into 'master'
Add plymouth See merge request bgstack15/stackrpms!87
Diffstat (limited to 'plymouth/debian/rules')
-rwxr-xr-xplymouth/debian/rules96
1 files changed, 96 insertions, 0 deletions
diff --git a/plymouth/debian/rules b/plymouth/debian/rules
new file mode 100755
index 0000000..2b9feaa
--- /dev/null
+++ b/plymouth/debian/rules
@@ -0,0 +1,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
bgstack15