Description: use the update-alternatives system for the /usr/bin/hd symlink Author: pi-rho Last Modified: Sat 18 Feb 2012 09:32:50 PM Central Standard Time --- a/debian/postinst +++ b/debian/postinst @@ -22,6 +22,10 @@ update-alternatives \ --install /usr/bin/from from /usr/bin/bsd-from 10 \ --slave /usr/share/man/man1/from.1.gz from.1.gz /usr/share/man/man1/bsd-from.1.gz + + update-alternatives \ + --install /usr/bin/hd hd /usr/bin/hexdump 10 \ + --slave /usr/share/man/man1/hd.1.gz hd.1.gz /usr/share/man/man1/bsd-hd.1.gz fi #DEBHELPER# --- a/debian/rules +++ b/debian/rules @@ -40,6 +40,8 @@ dh_testroot dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/bsdmainutils + mv -f $(CURDIR)/debian/bsdmainutils/usr/share/man/man1/hd.1 $(CURDIR)/debian/bsdmainutils/usr/share/man/man1/bsd-hd.1 + rm -f $(CURDIR)/debian/bsdmainutils/usr/bin/hd binary-arch: build install dh_testdir --- a/debian/prerm +++ b/debian/prerm @@ -6,6 +6,8 @@ update-alternatives --remove write /usr/bin/bsd-write update-alternatives --remove from /usr/bin/bsd-from + + update-alternatives --remove hd /usr/bin/hexdump fi #DEBHELPER#