On Mon, 7 Jul 2014, Adam Borowski wrote:
By the way, it would be nice to have a common scheme for installing wrappers of this kind -- especially if /bin vs /usr/bin is going to go away.
If you're open to dpkg-divert, config-package-dev lets you do this. Taking molly-guard as an example, install the wrapper as /sbin/shutdown.molly-guard and configure it to exec shutdown.molly-guard-orig. Then (assuming dh7-style) write "/sbin/shutdown.molly-guard" to debian/molly-guard.displace, and pass --with=config-package to dh. config-package-dev will insert appropriate maintainer script snippets to divert /sbin/shutdown and place a symlink from /sbin/shutdown to shutdown.molly-guard.
config-package-dev is primarily intended for downstream distributions and other similar uses outside the Debian archive, but it seems like using it this way within the archive would be policy-compliant, and probably more in the spirit of policy than taking advantage of the relative positions of entries in $PATH.
-- Geoffrey Thomas https://ldpreload.com geo...@ldpreload.com -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/alpine.deb.2.10.1407061920020.21...@cactuar.ldpreload.com