Package: apticron
Version: 1.1.21
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch
The following patch has been provided by Jonathan Marsden for Ubuntu [1].
It uses $DISTRIB_ID from /etc/lsb-release (while defaulting to "Debian")
for the subject line.
This is useful for Ubuntu and other Debian derivatives.
Please consider applying it in the next release.
Thank you.
Please also consider bumping Standard-Version, of course.
*** /tmp/tmpAsZzyu
In Ubuntu, we've applied the attached patch to achieve the following:
* Use $DISTRIB_ID from /etc/lsb-release for appropriate distribution name.
- Closes (LP: #78357)
[1] https://launchpad.net/bugs/78357
diff -Nru apticron-1.1.21/apticron apticron-1.1.21ubuntu1/apticron
--- apticron-1.1.21/apticron 2008-04-27 23:07:46.000000000 +0200
+++ apticron-1.1.21ubuntu1/apticron 2008-08-01 22:10:34.000000000 +0200
@@ -68,6 +68,10 @@
# Set the IPADDRESSNUM
IPADDRESSNUM="1"
+# Source lsb-release so we know what distribution we are
+DISTRIB_ID="Debian" # Default to Debian
+[ -e /etc/lsb-release ] && . /etc/lsb-release
+
# Source the config file
[ -e /etc/apticron/apticron.conf ] && . /etc/apticron/apticron.conf
@@ -183,6 +187,6 @@
apticron
EOF
- ) 2>&1 | /usr/bin/mailx -a "Content-type: text/plain; charset=UTF-8" -s
"Debian package updates on `/bin/hostname`" $EMAIL
+ ) 2>&1 | /usr/bin/mailx -a "Content-type: text/plain; charset=UTF-8" -s
"$DISTRIB_ID package updates on `/bin/hostname`" $EMAIL
fi