summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Buchinger <cb-gentoo@guya.de>2018-10-10 15:56:51 +0200
committerThomas Deutschmann <whissi@gentoo.org>2018-10-10 15:57:17 +0200
commit56e34b20c0d2f0a6998cf13ccd4c780b5ce8553f (patch)
treeeff980ed95a46af738449489b78bdab16cb5c143 /media-sound
parentsys-process/htop: amd64 stable wrt bug #667928 (diff)
downloadgentoo-56e34b20c0d2f0a6998cf13ccd4c780b5ce8553f.tar.gz
gentoo-56e34b20c0d2f0a6998cf13ccd4c780b5ce8553f.tar.bz2
gentoo-56e34b20c0d2f0a6998cf13ccd4c780b5ce8553f.zip
media-sound/snapcast: fix dodir failed
* Ebuild was using pkg_preinst instead of pkg_setup * Fixed directory ownership for /var/lib/snap{client,server} Closes: https://bugs.gentoo.org/668080 Signed-off-by: Christian Buchinger <cb-gentoo@guya.de> Package-Manager: Portage-2.3.50, Repoman-2.3.11 Closes: https://github.com/gentoo/gentoo/pull/10111 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/snapcast/snapcast-0.15.0.ebuild8
-rw-r--r--media-sound/snapcast/snapcast-9999.ebuild8
2 files changed, 10 insertions, 6 deletions
diff --git a/media-sound/snapcast/snapcast-0.15.0.ebuild b/media-sound/snapcast/snapcast-0.15.0.ebuild
index da8726fd243c..a664ea01e296 100644
--- a/media-sound/snapcast/snapcast-0.15.0.ebuild
+++ b/media-sound/snapcast/snapcast-0.15.0.ebuild
@@ -37,7 +37,7 @@ DEPEND="${RDEPEND}
PATCHES=( "${FILESDIR}/${PN}-options-for-use-flags.patch" )
-pkg_preinst() {
+pkg_setup() {
if use server ; then
enewgroup "snapserver"
enewuser "snapserver" -1 -1 /var/lib/snapserver snapserver
@@ -76,12 +76,14 @@ src_install() {
done
if use client ; then
- diropts -m 0770 -o snapclient audio
keepdir /var/lib/snapclient
+ fowners snapclient:audio /var/lib/snapclient
+ fperms 0770 /var/lib/snapclient
fi
if use server ; then
- diropts -m 0770 -o snapserver snapserver
keepdir /var/lib/snapserver
+ fowners snapserver:snapserver /var/lib/snapserver
+ fperms 0770 /var/lib/snapserver
fi
}
diff --git a/media-sound/snapcast/snapcast-9999.ebuild b/media-sound/snapcast/snapcast-9999.ebuild
index da8726fd243c..a664ea01e296 100644
--- a/media-sound/snapcast/snapcast-9999.ebuild
+++ b/media-sound/snapcast/snapcast-9999.ebuild
@@ -37,7 +37,7 @@ DEPEND="${RDEPEND}
PATCHES=( "${FILESDIR}/${PN}-options-for-use-flags.patch" )
-pkg_preinst() {
+pkg_setup() {
if use server ; then
enewgroup "snapserver"
enewuser "snapserver" -1 -1 /var/lib/snapserver snapserver
@@ -76,12 +76,14 @@ src_install() {
done
if use client ; then
- diropts -m 0770 -o snapclient audio
keepdir /var/lib/snapclient
+ fowners snapclient:audio /var/lib/snapclient
+ fperms 0770 /var/lib/snapclient
fi
if use server ; then
- diropts -m 0770 -o snapserver snapserver
keepdir /var/lib/snapserver
+ fowners snapserver:snapserver /var/lib/snapserver
+ fperms 0770 /var/lib/snapserver
fi
}