summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-03-07 04:12:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-03-07 04:12:49 +0000
commitbce8e8dc26e532a9a578b55f55cd3c6e1939eb91 (patch)
tree287932ea41604b33c552c9b500437ca544f0e355
parentAdding issue files for Progress Linux. (diff)
downloadbase-files-bce8e8dc26e532a9a578b55f55cd3c6e1939eb91.tar.xz
base-files-bce8e8dc26e532a9a578b55f55cd3c6e1939eb91.zip
Adding motd file for Progress Linux.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/base-files.install1
-rw-r--r--debian/local/base-files/motd7
-rw-r--r--debian/patches/progress-linux/0001-motd-md5sums.patch9
-rw-r--r--debian/patches/series1
-rw-r--r--debian/postinst.in1
5 files changed, 19 insertions, 0 deletions
diff --git a/debian/base-files.install b/debian/base-files.install
index 649ea15..027a888 100644
--- a/debian/base-files.install
+++ b/debian/base-files.install
@@ -1,2 +1,3 @@
debian/local/base-files/issue /etc
debian/local/base-files/issue.net /etc
+debian/local/base-files/motd /usr/share/base-files
diff --git a/debian/local/base-files/motd b/debian/local/base-files/motd
new file mode 100644
index 0000000..3beed38
--- /dev/null
+++ b/debian/local/base-files/motd
@@ -0,0 +1,7 @@
+
+The programs included with this system are free software;
+the exact distribution terms for each program are described in the
+individual files in /usr/share/doc/*/copyright.
+
+This system comes with ABSOLUTELY NO WARRANTY, to the extent
+permitted by applicable law.
diff --git a/debian/patches/progress-linux/0001-motd-md5sums.patch b/debian/patches/progress-linux/0001-motd-md5sums.patch
new file mode 100644
index 0000000..9f11ade
--- /dev/null
+++ b/debian/patches/progress-linux/0001-motd-md5sums.patch
@@ -0,0 +1,9 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Adding motd md5sum for cross-upgrade from Debian to Progress Linux.
+
+diff -Naurp base-files.orig/share/motd.md5sums base-files/share/motd.md5sums
+--- base-files.orig/share/motd.md5sums
++++ base-files/share/motd.md5sums
+@@ -0,0 +1,2 @@
++9830e3dbb6a828f2cc824db8db0ceaf7 Debian GNU/Linux
++5b5fb4f1d759bd8a7bcf3de6f2d8e627 Debian GNU/Hurd
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f1bbb80
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+progress-linux/0001-motd-md5sums.patch
diff --git a/debian/postinst.in b/debian/postinst.in
index 1d35ee1..5167137 100644
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -116,6 +116,7 @@ fi
if [ "$1" = "configure" ] && [ "$2" != "" ]; then
update_to_current_default profile /etc/profile
update_to_current_default dot.profile /root/.profile
+ update_to_current_default motd /etc/motd
if dpkg --compare-versions "$2" lt-nl "7.7"; then
install_directory mnt 755 root
fi