From 2167e582cf2e195e9a712bd35d30cb08a8c7ee0c Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 19 Sep 2008 16:23:58 -0500 Subject: [PATCH] Fixes for bug #271848 --- ChangeLog | 4 ++++ debian/changelog | 12 ++++++++++++ debian/postinst | 2 +- debian/rules | 1 - update-motd.cron | 6 ------ 5 files changed, 17 insertions(+), 8 deletions(-) delete mode 100644 update-motd.cron diff --git a/ChangeLog b/ChangeLog index 5fdc2fc..5d7af1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-09-18 Dustin Kirkland + Minor packaging fixes + Release version 1.7 + 2008-09-17 Dustin Kirkland Updated release for inclusion in Ubuntu main; simplified overall design, elminating the init diff --git a/debian/changelog b/debian/changelog index 538ce45..b942b04 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,15 @@ +update-motd (1.7) intrepid; urgency=low + + * Packaging suggestions (LP: #271848) + * debian/postinst: use lt-nl instead of lt + * debian/prerm: remove entirely + * debian/rules: use dh_installcron + * debian/update-motd.cron.d: ensure that the binary exists and is + executable when running the cronjob + * update-motd.cron: moved to debian/update-motd.cron.d + + -- Dustin Kirkland Thu, 18 Sep 2008 14:37:47 -0500 + update-motd (1.6) intrepid; urgency=low * ChangeLog: fill in details of the last few releases diff --git a/debian/postinst b/debian/postinst index 390eb42..9242b09 100644 --- a/debian/postinst +++ b/debian/postinst @@ -4,7 +4,7 @@ set -e case "$1" in configure|reconfigure) - if dpkg --compare-versions "$2" lt "1.6"; then + if dpkg --compare-versions "$2" lt-nl "1.6"; then # init script from older update-motd's should be removed rm -f /etc/init.d/update-motd fi diff --git a/debian/rules b/debian/rules index 764b744..79aa53c 100755 --- a/debian/rules +++ b/debian/rules @@ -23,7 +23,6 @@ install: build-stamp dh_testroot dh_clean -k dh_installdirs - install -o root -g root -m 644 update-motd.cron debian/update-motd/etc/cron.d/update-motd # Build architecture-independent files here. binary-indep: install diff --git a/update-motd.cron b/update-motd.cron deleted file mode 100644 index f31f5c3..0000000 --- a/update-motd.cron +++ /dev/null @@ -1,6 +0,0 @@ -# /etc/cron.d/update-motd: crontab fragment for update-motd -# -# Running 'update-motd' dynamically generates the /etc/motd with -# a concatenation of output from each script in /etc/update-motd.d. - -*/10 * * * * root /usr/sbin/update-motd 2>/dev/null -- 2.30.2