summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/files/contents/legacy-maintainer-scripts/build-spec/debian/preinst
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/files/contents/legacy-maintainer-scripts/build-spec/debian/preinst')
-rw-r--r--t/recipes/checks/files/contents/legacy-maintainer-scripts/build-spec/debian/preinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/recipes/checks/files/contents/legacy-maintainer-scripts/build-spec/debian/preinst b/t/recipes/checks/files/contents/legacy-maintainer-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..6058978
--- /dev/null
+++ b/t/recipes/checks/files/contents/legacy-maintainer-scripts/build-spec/debian/preinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+update-rc.d foo remove
+update-rc.d bar defaults
+
+# Obsolete dpkg assertions.
+dpkg --assert-support-predepends || exit 1
+dpkg --assert-working-epoch || exit 1
+dpkg --assert-long-filenames || exit 1
+dpkg --assert-multi-conrep || exit 1
+
+/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status
+
+# continuation lines
+update-alternatives --install /usr/bin/fakeroot fakeroot \
+ /usr/bin/fakeroot-ng 5 \
+ --slave /usr/share/man/man1/fakeroot.1.gz \
+ fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz