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

Re: How to package device files?

On Thu, May 30, 2002 at 11:33:16AM -0500, Grant Edwards wrote:
> I'm working on a package that contains character device files
> among the files to be installed.  When I look at the contents
> of the .deb file, they're shown correctly.  After installing
> the package, the device files have been created as normal
> (empty) files.
> How do I get the install process to install the files as they
> exist in the package file?

Create them in the postinst, after asking the user for permission. See
policy 11.6:

  Packages must not include device files in the package file tree.

  If a package needs any special device files that are not included in
  the base system, it must call MAKEDEV in the postinst script, after
  asking the user for permission to do so.

  Packages must not remove any device files in the postrm or any other
  script. This is left to the system administrator.

Colin Watson                                  [cjwatson@flatline.org.uk]

To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: