From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-947221-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id CAF0A139694
	for <garchives@archives.gentoo.org>; Mon,  1 May 2017 12:44:09 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8610C21C028;
	Mon,  1 May 2017 12:44:07 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 5291D21C028
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 May 2017 12:44:07 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id A174B3416B7
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 May 2017 12:44:05 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id DF2EA743E
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 May 2017 12:44:03 +0000 (UTC)
From: "Daniel Campbell" <zlg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Daniel Campbell" <zlg@gentoo.org>
Message-ID: <1493641764.bac129275380b55b46428510ff90155c9e492799.zlg@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/udevil/, sys-apps/udevil/files/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-apps/udevil/files/udevil-0.4.4-include-sysmacros-r1.patch sys-apps/udevil/udevil-0.4.4-r3.ebuild
X-VCS-Directories: sys-apps/udevil/files/ sys-apps/udevil/
X-VCS-Committer: zlg
X-VCS-Committer-Name: Daniel Campbell
X-VCS-Revision: bac129275380b55b46428510ff90155c9e492799
X-VCS-Branch: master
Date: Mon,  1 May 2017 12:44:03 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 2b90c5b6-48b1-4e11-b62d-7a9fff809f58
X-Archives-Hash: 006e7c030620596cbeb8c606560b3126

commit:     bac129275380b55b46428510ff90155c9e492799
Author:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
AuthorDate: Mon May  1 12:29:04 2017 +0000
Commit:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
CommitDate: Mon May  1 12:29:24 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bac12927

sys-apps/udevil: revbump wrt bug 605662

Gentoo-Bug: 605662
Gentoo-Bug-URL: https://bugs.gentoo.org/605662
Package-Manager: Portage-2.3.5, Repoman-2.3.2

 .../files/udevil-0.4.4-include-sysmacros-r1.patch  | 27 ++++++++
 sys-apps/udevil/udevil-0.4.4-r3.ebuild             | 74 ++++++++++++++++++++++
 2 files changed, 101 insertions(+)

diff --git a/sys-apps/udevil/files/udevil-0.4.4-include-sysmacros-r1.patch b/sys-apps/udevil/files/udevil-0.4.4-include-sysmacros-r1.patch
new file mode 100644
index 00000000000..2f9859d34e8
--- /dev/null
+++ b/sys-apps/udevil/files/udevil-0.4.4-include-sysmacros-r1.patch
@@ -0,0 +1,27 @@
+# Include sysmacros.h, solves Gentoo bug 580364
+# Upstream has merged similar changes, should be present
+# in 0.4.5
+--- a/src/udevil.c	2015-05-04 06:34:32.000000000 -0700
++++ b/src/udevil.c	2017-01-02 07:25:14.744273858 -0800
+@@ -33,6 +33,9 @@
+ #include <netdb.h>
+ #include <arpa/inet.h>
+ 
++// major/minor, dev_t, needed for glibc>=2.25
++#include <sys/sysmacros.h>
++
+ // groups
+ #include <grp.h>
+ 
+--- a/src/device-info.h	2017-01-02 07:47:23.373180528 -0800
++++ b/src/device-info.h	2017-03-14 23:35:58.079222855 -0700
+@@ -18,6 +18,9 @@
+ // intltool
+ #include <glib/gi18n.h>
+ 
++// dev_t
++#include <sys/sysmacros.h>
++
+ 
+ 
+ typedef struct device_t  {

diff --git a/sys-apps/udevil/udevil-0.4.4-r3.ebuild b/sys-apps/udevil/udevil-0.4.4-r3.ebuild
new file mode 100644
index 00000000000..c93bc7b9dcc
--- /dev/null
+++ b/sys-apps/udevil/udevil-0.4.4-r3.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils autotools user
+
+DESCRIPTION="mount and unmount removable devices without a password"
+HOMEPAGE="https://ignorantguru.github.com/udevil/"
+SRC_URI="https://github.com/IgnorantGuru/udevil/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-shells/bash-4.0:*
+	dev-libs/glib:2
+	sys-apps/util-linux
+	virtual/acl
+	>=virtual/udev-143"
+DEPEND="${RDEPEND}
+	dev-util/intltool
+	sys-devel/gettext
+	virtual/pkgconfig"
+
+pkg_setup(){
+	enewgroup plugdev
+}
+
+src_prepare() {
+	# This works for 0.4.4 too, no sense copying the patch
+	epatch "${FILESDIR}"/${PN}-0.4.3-flags.patch
+	epatch "${FILESDIR}"/${P}-stat.patch
+	epatch "${FILESDIR}"/${P}-include-sysmacros.patch
+	eapply_user
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		--with-setfacl-prog="$(type -P setfacl)" \
+		--enable-systemd
+}
+
+src_install() {
+	default
+	fowners root:plugdev /usr/bin/udevil
+	fperms 4754 /usr/bin/udevil
+}
+
+pkg_postinst() {
+	einfo
+	elog "Please add your user to the plugdev group"
+	elog "to be able to use ${PN} as a user"
+	elog
+	elog "Optional dependencies:"
+	elog "  gnome-extra/zenity (devmon popups)"
+	elog "  net-fs/davfs2      (mount WebDAV resources)"
+	elog "  net-fs/cifs-utils  (mounting samba shares)"
+	elog "  net-fs/curlftpfs   (mounting ftp shares)"
+	elog "  net-fs/nfs-utils   (mounting nfs shares)"
+	elog "  net-fs/sshfs       (mounting sftp shares)"
+	elog "  virtual/eject      (eject via devmon)"
+	if ! has_version 'sys-fs/udisks' ; then
+		elog
+		elog "When using ${PN} without udisks, and without the udisks-daemon running,"
+		elog "you may need to enable kernel polling for device media changes to be detected."
+		elog "See https://ignorantguru.github.com/${PN}/#polling"
+		has_version '<virtual/udev-173' && ewarn "You need at least udev-173"
+		kernel_is lt 2 6 38 && ewarn "You need at least kernel 2.6.38"
+		einfo
+	fi
+}