# HG changeset patch # User Augie Fackler # Date 1442946737 14400 # Node ID 79e1064f7c5ef3c8872b35c9b784c2eae8e96d0c # Parent 346afebd8fa94ecc20fcb5db61e6cd83e9aed0be 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. diff -r 346afebd8fa9 -r 79e1064f7c5e contrib/debian/hgkpath.rc --- /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 diff -r 346afebd8fa9 -r 79e1064f7c5e contrib/debian/rules --- 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