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

Re: Quilt patch for patching things in the debian folder

On Wed, 07 Mar 2012, Neil Williams wrote:
> Quick question, therefore, what is the method of using dpkg-vendor to
> modify a postinst which uses a grep option which is not supported by
> busybox?
> Or a method for removing a single line from a .install file?

Like you want. One possible approach is to generate them at build
time based on the current vendor, i.e. have debian/foo.postinst.in
and apply some sed magic to get the result you want.

For .install file, maybe you can take advantage of the fact that they can
be executable scripts nowadays and just embed the dpkg-vendor check in
the .install script...

Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/liberation/

Reply to: