Subject: coding numeric UID in config file
To: None <>
From: Geert Hendrickx <>
List: tech-pkg
Date: 08/03/2007 07:40:32

I'm creating a package for a program that should (preferably) run as a
dedicated unprivileged user, so I've added PKG_USERS and all that.  However
this program expects a numeric uid and gid in its config file, it won't
accept a name like most programs do.  The numeric uid and gid have to be
looked up in an INSTALL script (using ${ID}) because binary packages cannot
know them in advance.  The problem is that the PRE-INSTALL target is too
early: the example config file is not extracted yet, and POST-INSTALL is
too late: the example config file has already been copied to PKG_SYSCONFDIR
(via CONF_FILES), and I don't want the package to mess with live config
files (e.g. renaming to .bak can be dangerous because folks may use that in

I've been grepping through other INSTALL files and I can't find others
doing similar things.  Is there a way to accomplish the above?