dev-embedded/openocd: bug #603120
authorZero_Chaos <zerochaos@gentoo.org>
Tue, 24 Jan 2017 16:53:02 +0000 (11:53 -0500)
committerZero_Chaos <zerochaos@gentoo.org>
Tue, 24 Jan 2017 16:53:20 +0000 (11:53 -0500)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-embedded/openocd/openocd-0.8.0.ebuild
dev-embedded/openocd/openocd-0.9.0.ebuild
dev-embedded/openocd/openocd-9999.ebuild

index 87040a3aff110f896246eca8037281aa8c47fad4..f6e8edb8706ab4a1f612317de79ce606745b15b5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -38,6 +38,10 @@ RDEPEND=">=dev-lang/jimtcl-0.75
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+pkg_setup() {
+       enewgroup plugdev
+}
+
 src_prepare() {
        epatch_user
 
@@ -131,3 +135,7 @@ src_install() {
        env -uRESTRICT prepstrip "${ED}"/usr/bin "${ED}"/usr/$(get_libdir)
        udev_dorules "${D}"/usr/share/${PN}/contrib/*.rules
 }
+
+pkg_postinst() {
+       elog "To access openocd devices as user you must be in the plugdev group"
+}
index 948e3536bb490abce8b2b55a514f99c5ac30cba5..c0d535488ff3dcb0ea8d02b51c7f525f136f80ff 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -38,6 +38,10 @@ RDEPEND=">=dev-lang/jimtcl-0.76
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+pkg_setup() {
+       enewgroup plugdev
+}
+
 src_prepare() {
        epatch_user
 
@@ -127,3 +131,7 @@ src_install() {
        env -uRESTRICT prepstrip "${ED}"/usr/bin
        udev_dorules "${D}"/usr/share/${PN}/contrib/*.rules
 }
+
+pkg_postinst() {
+       elog "To access openocd devices as user you must be in the plugdev group"
+}
index a101020aa3b42e02baf93b3a6fd6aa936cbe1a31..54bd4c2517f1bf2a467943b683b6fe27c3bf9188 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -40,6 +40,10 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig"
 [[ ${PV} == "9999" ]] && DEPEND+=" >=sys-apps/texinfo-5" #549946
 
+pkg_setup() {
+       enewgroup plugdev
+}
+
 src_prepare() {
        epatch_user
 
@@ -130,3 +134,7 @@ src_install() {
        env -uRESTRICT prepstrip "${ED}"/usr/bin
        udev_dorules "${D}"/usr/share/${PN}/contrib/*.rules
 }
+
+pkg_postinst() {
+       elog "To access openocd devices as user you must be in the plugdev group"
+}