net-im/openfire: set ownership at src_install() phase, bug #630914
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 22 Sep 2018 17:29:31 +0000 (18:29 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 22 Sep 2018 17:29:31 +0000 (18:29 +0100)
commitd83590e94a84d6f90c7a4b3bb0377b5734c892ca
treee47d4f23a20aac03e5da181048ff9c4b8f8c8066
parent239230b6fe0340b39e7e9cd51037eb826a009d74
net-im/openfire: set ownership at src_install() phase, bug #630914

As Michael explains in bug #630914 the code below is prone to
chown-ing files not belonging to package:

```
  pkg_postinst() {
      ...
      chown -R jabber:jabber "${ROOT}"/opt/openfire
  }
```

Move chown to src_install() to contain the damage to builder.

Reported-by: Michael Orlitzky
Bug: https://bugs.gentoo.org/630914
Package-Manager: Portage-2.3.49, Repoman-2.3.10
net-im/openfire/openfire-4.2.3-r1.ebuild [new file with mode: 0644]