summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 18:23:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 18:23:03 +0000
commit6e5748974e9d392fb7c74f6210dd290354542fe2 (patch)
treea92ec676d24d2cc5ef2fefe19380802ce6b90ecc /debian
parentAdding issue files for Progress Linux. (diff)
downloadbase-files-6e5748974e9d392fb7c74f6210dd290354542fe2.tar.xz
base-files-6e5748974e9d392fb7c74f6210dd290354542fe2.zip
Adding motd file for Progress Linux.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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