sys-apps/uam: Use acct-group/plugdev
authorMichał Górny <mgorny@gentoo.org>
Sat, 31 Aug 2019 18:32:52 +0000 (20:32 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 13 Sep 2019 12:42:34 +0000 (14:42 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-apps/uam/uam-0.3.2-r1.ebuild
sys-apps/uam/uam-9999.ebuild

index eddf29d0f8aa6730acd6b4c39bd460e289c9cc30..e22ef2bb80003372228ed97a7ef7399eafb059b9 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit udev user
+inherit udev
 
 DESCRIPTION="Simple udev-based automounter for removable USB media"
 HOMEPAGE="https://github.com/mgorny/uam/"
@@ -14,16 +14,12 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE=""
 
-RDEPEND="virtual/udev"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+RDEPEND="
+       acct-group/plugdev
+       virtual/udev"
+DEPEND="virtual/pkgconfig"
 
 pkg_postinst() {
-       # The plugdev group is created by pam, pmount and many other ebuilds
-       # in gx86. As we don't want to depend on any of them (even pmount is
-       # optional), we create it ourself too.
-       enewgroup plugdev
-
        elog "To be able to access uam-mounted filesystems, you have to be"
        elog "a member of the 'plugdev' group."
        elog
index 4aa9493369856256d0871550de0ac40d112c3433..3a247b31bd2c45dcfb2b1430ca1420214e71fa3c 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit autotools git-r3 udev user
+inherit autotools git-r3 udev
 
 DESCRIPTION="Simple udev-based automounter for removable USB media"
 HOMEPAGE="https://github.com/mgorny/uam/"
@@ -15,9 +15,10 @@ SLOT="0"
 KEYWORDS=""
 IUSE=""
 
-RDEPEND="virtual/udev"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+RDEPEND="
+       acct-group/plugdev
+       virtual/udev"
+DEPEND="virtual/pkgconfig"
 
 src_prepare() {
        default
@@ -25,11 +26,6 @@ src_prepare() {
 }
 
 pkg_postinst() {
-       # The plugdev group is created by pam, pmount and many other ebuilds
-       # in gx86. As we don't want to depend on any of them (even pmount is
-       # optional), we create it ourself too.
-       enewgroup plugdev
-
        elog "To be able to access uam-mounted filesystems, you have to be"
        elog "a member of the 'plugdev' group."
        elog