bind: refer ubuntu/redhat to add bind user/group
authorHongxu Jia <hongxu.jia@windriver.com>
Tue, 19 Aug 2014 10:04:42 +0000 (18:04 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Aug 2014 22:01:59 +0000 (23:01 +0100)
commitc0e4a9270daaea1305e54484b6215bd07371d3c5
tree3bdbee8b55c0be3bd9ce590749c8b0028435266c
parenta4b1df99cf396f6c553345d3ed3db5af0498f254
bind: refer ubuntu/redhat to add bind user/group

We refer what ubuntu/redhat did, gave bind a user/group

Here is the example in ubuntu 14.04:

$ ps -eo user,group,cmd | grep "named"
...
bind     bind     /usr/sbin/named -u bind
...

$vim bind9_1%3a9.9.5.dfsg-3_amd64.deb/postinst
...
    # lets give them a bind user/group in all cases.
    getent group bind >/dev/null 2>&1 || addgroup --system bind
    getent passwd bind >/dev/null 2>&1 ||
    adduser --system --home /var/cache/bind --no-create-home \
        --disabled-password --ingroup bind bind
...

(From OE-Core rev: e37841faf746895f41627130623196c0bebe0740)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/bind/bind/bind9 [new file with mode: 0644]
meta/recipes-connectivity/bind/bind_9.9.5.bb