# ChangeLog for sys-apps/uam
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/uam/ChangeLog,v 1.19 2012/01/07 18:55:54 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/uam/ChangeLog,v 1.20 2012/01/09 15:46:42 mgorny Exp $
+
+ 09 Jan 2012; Michał Górny <mgorny@gentoo.org> +uam-0.2.1.ebuild:
+ Restore the stable ebuild. Sorry for the mistake.
*uam-0.3 (07 Jan 2012)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
+DIST uam-0.2.1.tar.bz2 54476 RMD160 25131955929c97fa89aade27565ce13a91b4c2cd SHA1 03bf7c2d652b0742997f14d79fb1d56890b60cd6 SHA256 a587904b1f39dd1eb20e9c259712067b2f76e1e2d16f7a0ea6905157ea2437c3
DIST uam-0.3.tar.bz2 58143 RMD160 0124efc4444b4380d47a15645095d2db1f37817e SHA1 3e9bff6cf1bd9b8a4ec81bd467b42061e4d5a7f9 SHA256 fd31989ea9837edf9f26d07cf954f65fbbc00b0c97184fc84670f365df6c270b
+EBUILD uam-0.2.1.ebuild 1773 RMD160 a9c37c083dd67231b633df8a4039c2108a940882 SHA1 df48013f6d12d5601c84f2c7e4bc1f333ee33e76 SHA256 e03d9466bfea710c92d8b8ecd31b0810c636b0bb42c936a4a210c13168cb8e40
EBUILD uam-0.3.ebuild 1708 RMD160 af33307ff2483a51b842e23ca8a25be631bd4de7 SHA1 072cf52b995bf59b822f8f9c24ba8fcd3dee06d1 SHA256 f1f8bab9de17bd5b324a6f7bd6ab8d6a9f4711f22e04e81ff849fff32c5c6b30
-MISC ChangeLog 3433 RMD160 d2359e91df4d64b398708654b150adc2a0f97edd SHA1 b42f5f7e430fdaadb9de2e67fa5554d76307fd04 SHA256 3f49625a8d2c9d27725cf16f08ef25148b27ce5505b901f18655b476ae13d5d3
+MISC ChangeLog 3555 RMD160 835d4e4a6f9ddf27d5c088506298ca9f89df8614 SHA1 0ed91b1ca2062e20cac65d37fe70502d68467b8b SHA256 6a25f57ed30c0e84bba01966f685d92c49ab145120fd5fd0722d57b51664447b
MISC metadata.xml 650 RMD160 8620545053281931c4bdecc65b884999eb56c583 SHA1 b3f9187ea5b96ff49bd0fd97edad6ac66385819f SHA256 02c12a19685d325c0b77e954fa50bbbe82475bb4635e32554fc1669584a2ee16
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iJwEAQEIAAYFAk8IlZMACgkQfXuS5UK5QB2dzwP8CGEdNx9tSRMFkUdI93i/SB/j
-0GNGoZiV1HrG6fDtHNqCFt5psUEXkf3ogvtFel02gggzafeqkdEVMOpgbWqqafJm
-g0HlICGXsbs4J9WzPoDcGowSxGHCsIJ+vIemuUwjPon9rZ9IQEWXRLraM0PPSh9A
-4GegK+v2o1oPrnJ32kk=
-=yWNA
+iJwEAQEIAAYFAk8LDEEACgkQfXuS5UK5QB0QPQP/QQhcjZ+xdUgFLL0NWKn8rXQK
+e0ZuaZ7ijL4OkJO47gCkCcEcoAdnxhN0v9D2ahtwZuGgyquEY7bv8fPcd+jbtxsO
+mPFdOUz6FsaPc+c0biNM6mAj0++5aStyaqLGyAx6VagK5BfOY8FBwW7MQMirN2gW
+o1uamdYM3OXsob7Idec=
+=wE/Q
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/uam/uam-0.2.1.ebuild,v 1.6 2012/01/09 15:46:42 mgorny Exp $
+
+EAPI=3
+inherit autotools-utils eutils
+
+DESCRIPTION="Simple udev-based automounter for removable USB media"
+HOMEPAGE="https://github.com/mgorny/uam/"
+SRC_URI="mirror://github/mgorny/${PN}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="sys-fs/udev"
+DEPEND="${RDEPEND}"
+
+DOCS=( NEWS README )
+
+src_configure() {
+ myeconfargs=(
+ --libdir=/lib
+ )
+ autotools-utils_src_configure
+}
+
+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."
+
+ if [[ -e "${EROOT}"/dev/.udev ]]; then
+ ebegin "Calling udev to reload its rules"
+ udevadm control --reload-rules
+ eend $?
+ fi
+}