summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2017-01-24 11:53:02 -0500
committerZero_Chaos <zerochaos@gentoo.org>2017-01-24 11:53:20 -0500
commit69392ed13cd3cf6c6b5bf9aeb4dc4ab3ad847322 (patch)
tree02831394855393996f59c296092a597ac8cf05cf /dev-embedded
parentsci-biology/vaal: Remove old (diff)
downloadgentoo-69392ed13cd3cf6c6b5bf9aeb4dc4ab3ad847322.tar.gz
gentoo-69392ed13cd3cf6c6b5bf9aeb4dc4ab3ad847322.tar.bz2
gentoo-69392ed13cd3cf6c6b5bf9aeb4dc4ab3ad847322.zip
dev-embedded/openocd: bug #603120
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/openocd/openocd-0.8.0.ebuild10
-rw-r--r--dev-embedded/openocd/openocd-0.9.0.ebuild10
-rw-r--r--dev-embedded/openocd/openocd-9999.ebuild10
3 files changed, 27 insertions, 3 deletions
diff --git a/dev-embedded/openocd/openocd-0.8.0.ebuild b/dev-embedded/openocd/openocd-0.8.0.ebuild
index 87040a3aff11..f6e8edb8706a 100644
--- a/dev-embedded/openocd/openocd-0.8.0.ebuild
+++ b/dev-embedded/openocd/openocd-0.8.0.ebuild
@@ -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"
+}
diff --git a/dev-embedded/openocd/openocd-0.9.0.ebuild b/dev-embedded/openocd/openocd-0.9.0.ebuild
index 948e3536bb49..c0d535488ff3 100644
--- a/dev-embedded/openocd/openocd-0.9.0.ebuild
+++ b/dev-embedded/openocd/openocd-0.9.0.ebuild
@@ -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"
+}
diff --git a/dev-embedded/openocd/openocd-9999.ebuild b/dev-embedded/openocd/openocd-9999.ebuild
index a101020aa3b4..54bd4c2517f1 100644
--- a/dev-embedded/openocd/openocd-9999.ebuild
+++ b/dev-embedded/openocd/openocd-9999.ebuild
@@ -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"
+}