summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-06-04 07:02:16 +0000
committerMichał Górny <mgorny@gentoo.org>2013-06-04 07:02:16 +0000
commitbff30a04386fd18508d371a7ada12096f6d57ea7 (patch)
tree975869a17bfb0388ebd4a5154d089f3eac340733 /sys-apps/uam/uam-0.3.1.ebuild
parentUse udev_reload rather than custom reloading snippet. (diff)
downloadgentoo-2-bff30a04386fd18508d371a7ada12096f6d57ea7.tar.gz
gentoo-2-bff30a04386fd18508d371a7ada12096f6d57ea7.tar.bz2
gentoo-2-bff30a04386fd18508d371a7ada12096f6d57ea7.zip
Version bump. Fixes notification text with uam-pmount.
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
Diffstat (limited to 'sys-apps/uam/uam-0.3.1.ebuild')
-rw-r--r--sys-apps/uam/uam-0.3.1.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-apps/uam/uam-0.3.1.ebuild b/sys-apps/uam/uam-0.3.1.ebuild
new file mode 100644
index 000000000000..9cc5279d7806
--- /dev/null
+++ b/sys-apps/uam/uam-0.3.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/uam/uam-0.3.1.ebuild,v 1.1 2013/06/04 07:02:16 mgorny Exp $
+
+EAPI=5
+
+inherit autotools-utils udev user
+
+DESCRIPTION="Simple udev-based automounter for removable USB media"
+HOMEPAGE="https://bitbucket.org/mgorny/uam/"
+SRC_URI="mirror://bitbucket/mgorny/${PN}/downloads/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="virtual/udev"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+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 "If you'd like uam to mount ejectable media like CDs/DVDs, you need"
+ elog "to enable in-kernel media polling, e.g.:"
+ elog " echo 5000 > /sys/module/block/parameters/events_dfl_poll_msecs"
+ elog "where 5000 would mean a poll will occur every 5 seconds."
+ elog
+ elog "If you'd like to receive libnotify-based notifications, you need"
+ elog "to install the [x11-misc/sw-notify-send] tool."
+
+ udev_reload
+}