Package: samba
Version: 3.0.27a-1
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu ubuntu-patch hardy

The Debian Samba package includes a panic-action script which sends emails
telling users to report bugs to the Debian BTS.  The Ubuntu Samba package
modifies this script, which is good because Ubuntu bugs should be reported
to Ubuntu, and bad because we want to share the packaging between Debian and
Ubuntu to make the best use of everyone's time.

The attached patch uses lsb_release (the same way as is used in
samba.postinst) to detect whether the package is installed on Ubuntu, and
select at runtime where to tell users to direct their bug reports.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[EMAIL PROTECTED]                                     [EMAIL PROTECTED]
Index: debian/panic-action
===================================================================
--- debian/panic-action	(revision 1613)
+++ debian/panic-action	(working copy)
@@ -48,9 +48,16 @@
 	echo "If the problem persists, you are encouraged to first install the"
 	echo "samba-dbg package, which contains the debugging symbols for the Samba"
 	echo "binaries.  Then submit the provided information as a bug report to"
-	echo "Debian.  For information about the procedure for submitting bug reports,"
-	echo "please see http://www.debian.org/Bugs/Reporting or the reportbug(1)"
-	echo "manual page."
+	if [ -x "`which lsb_release 2>/dev/null`" ] \
+	   && [ "`lsb_release -s -i`" = "Ubuntu" ]
+	then
+		echo "Ubuntu by visiting this link:"
+		echo "https://launchpad.net/ubuntu/+source/samba/+filebug";
+	else
+		echo "Debian.  For information about the procedure for submitting bug reports,"
+		echo "please see http://www.debian.org/Bugs/Reporting or the reportbug(1)"
+		echo "manual page."
+	fi
 	echo
 	gdb -x /etc/samba/gdbcommands -batch "$BINARYNAME" "$1"
 ) | mail -s "Panic or segfault in Samba" root

Reply via email to