[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#753704: ITP: amap -- Next-generation scanning tool for pentesters

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

Reply to: