In the latest stable for all arches (lighttpd-1.3.16) the following exists: pkg_setup() { enewgroup lighttpd enewuser lighttpd -1 -1 "${LIGHTTPD_DIR}" lighttpd } This needs to be put in pkg_postinst, otherwise users will have a dangling user/group if the compile should file. In the latests unstable (lighttpd-1.3.16), the following exists: pkg_preinst() { enewgroup lighttpd enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd } This should also go into postinst as src_install has the probability of failing as well.
moved to pkg_postinst in 1.4.10-r1.