debian: install hgk as part of mercurial-common (issue4829)
Leaving the hgk binary in /usr/bin causes some lintian warnings, and
downstream packages poke it in /usr/share/mercurial, so we'll just
stash it in there. Rather than patch hgk.py as part of the Mercurial
install, just drop a config file in /etc/mercurial/hgrc.d that points
to the installed hgk.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/hgkpath.rc Tue Sep 22 14:32:17 2015 -0400
@@ -0,0 +1,2 @@
+[hgk]
+path = /usr/share/mercurial/hgk
--- a/contrib/debian/rules Tue Sep 22 14:14:05 2015 -0400
+++ b/contrib/debian/rules Tue Sep 22 14:32:17 2015 -0400
@@ -27,6 +27,8 @@
-name '*.so' ! -type d -delete , \
-type d -empty -delete
cp contrib/hg-ssh $(CURDIR)/debian/mercurial-common/usr/bin
+ mkdir -p $(CURDIR)/debian/mercurial-common/usr/share/mercurial
+ cp contrib/hgk $(CURDIR)/debian/mercurial-common/usr/share/mercurial
mkdir -p $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/
cp contrib/debian/*.rc $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/
rm $(CURDIR)/debian/mercurial-common/usr/bin/hg