summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2010-10-01 21:42:26 +0000
committerMichał Górny <mgorny@gentoo.org>2010-10-01 21:42:26 +0000
commit17b01b8fe9d0d6b817a445a038a7f051f708e4af (patch)
tree711495f02d72f4e65c0f8d7db80e729c8b466a97 /sys-apps/uam
parentChange proxymaintainer to myself (diff)
downloadgentoo-2-17b01b8fe9d0d6b817a445a038a7f051f708e4af.tar.gz
gentoo-2-17b01b8fe9d0d6b817a445a038a7f051f708e4af.tar.bz2
gentoo-2-17b01b8fe9d0d6b817a445a038a7f051f708e4af.zip
Import from the Sunrise overlay, per bug #278363.
(Portage version: 2.2_rc88_p61/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/uam')
-rw-r--r--sys-apps/uam/ChangeLog10
-rw-r--r--sys-apps/uam/metadata.xml8
-rw-r--r--sys-apps/uam/uam-0.0.6.ebuild57
3 files changed, 75 insertions, 0 deletions
diff --git a/sys-apps/uam/ChangeLog b/sys-apps/uam/ChangeLog
new file mode 100644
index 000000000000..aed6b92338c7
--- /dev/null
+++ b/sys-apps/uam/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-apps/uam
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/uam/ChangeLog,v 1.1 2010/10/01 21:42:26 mgorny Exp $
+
+*uam-0.0.6 (01 Oct 2010)
+
+ 01 Oct 2010; Michał Górny <mgorny@gentoo.org> +uam-0.0.6.ebuild,
+ +metadata.xml:
+ Import from the Sunrise overlay, per bug #278363.
+
diff --git a/sys-apps/uam/metadata.xml b/sys-apps/uam/metadata.xml
new file mode 100644
index 000000000000..88a25e59287c
--- /dev/null
+++ b/sys-apps/uam/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>mgorny@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-apps/uam/uam-0.0.6.ebuild b/sys-apps/uam/uam-0.0.6.ebuild
new file mode 100644
index 000000000000..e2850075ae43
--- /dev/null
+++ b/sys-apps/uam/uam-0.0.6.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/uam/uam-0.0.6.ebuild,v 1.1 2010/10/01 21:42:26 mgorny Exp $
+
+inherit eutils multilib
+
+DESCRIPTION="Simple udev-based automounter for removable USB media"
+HOMEPAGE="http://github.com/mgorny/uam/"
+SRC_URI="http://github.com/downloads/mgorny/${PN}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="sys-fs/udev"
+
+src_compile() {
+ emake LIBDIR=/$(get_libdir) || die
+}
+
+src_install() {
+ emake LIBDIR=/$(get_libdir) DESTDIR="${D}" install || die
+
+ dodoc NEWS README || die
+}
+
+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
+ elog "Note that uam doesn't provide any way to allow unprivileged user"
+ elog "to manually umount devices. The upstream suggested solution"
+ elog "is to use [sys-apps/pmount]. If you don't feel like installing"
+ elog "additional tools, remember to sync before removing your USB stick."
+ elog
+ elog "Another feature uam is not capable of is mounting removable media"
+ elog "in fixed drives, like CDs and floppies. You might, however, be able"
+ elog "to mount them as an unprivileged user using appropriate fstab entries"
+ elog "or [sys-apps/pmount]."
+ elog
+ elog "If you'd like to receive libnotify-based notifications, you need"
+ elog "to install the [x11-misc/sw-notify-send] tool from the Sunrise"
+ elog "overlay [1] (or bug #318961 [2])."
+ elog
+ elog "[1] http://overlays.gentoo.org/proj/sunrise"
+ elog "[2] http://bugs.gentoo.org/show_bug.cgi?id=318961"
+
+ ebegin "Calling udev to reload its rules"
+ udevadm control --reload-rules
+ eend $?
+}