Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123280 - lighttpd user/group adding issues
Summary: lighttpd user/group adding issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Aaron Walker (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 07:42 UTC by Chris White (RETIRED)
Modified: 2006-02-25 17:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris White (RETIRED) gentoo-dev 2006-02-18 07:42:22 UTC
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.
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2006-02-25 17:09:01 UTC
moved to pkg_postinst in 1.4.10-r1.