Package-Manager: Portage-2.3.3, Repoman-2.3.1
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
DEPEND="${RDEPEND}
virtual/pkgconfig"
+pkg_setup() {
+ enewgroup plugdev
+}
+
src_prepare() {
epatch_user
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"
+}
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
DEPEND="${RDEPEND}
virtual/pkgconfig"
+pkg_setup() {
+ enewgroup plugdev
+}
+
src_prepare() {
epatch_user
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"
+}
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
virtual/pkgconfig"
[[ ${PV} == "9999" ]] && DEPEND+=" >=sys-apps/texinfo-5" #549946
+pkg_setup() {
+ enewgroup plugdev
+}
+
src_prepare() {
epatch_user
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"
+}