blob: a7f3cb2da0735532927b01238fb386faf707b719 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils multilib
DESCRIPTION="Simple udev-based automounter for removable USB media"
HOMEPAGE="http://proj.mgorny.alt.pl/uam/"
SRC_URI="http://dl.mgorny.alt.pl/${PN}/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="sys-fs/udev"
src_compile() {
emake LIBDIR=/$(get_libdir) || die
}
src_install() {
emake LIBDIR=/$(get_libdir) DESTDIR="${D}" install || die
dodoc NEWS README TODO || die
}
pkg_postinst() {
# such group is created by pam, pmount any many other ebuilds
# but we don't want to depend on any of them (even pmount is optional)
enewgroup plugdev
elog "To be able to access uam-mounted filesystems, you have to be member"
elog "of the 'plugdev' group."
elog
elog "Note that uam doesn't provide any way to allow unprivileged user to"
elog "manually umount devices. You may use pumount from sys-apps/pmount"
elog "for that. Otherwise, remember to sync before removing your USB stick."
elog
elog "If you'd like to receive libnotify-based notifications, you need"
elog "to install the [x11-misc/sw-notify-send] tool."
ebegin "Calling udev to reload its rules"
udevadm control --reload-rules
eend $?
}
|