--- /usr/portage/media-libs/libgphoto2/libgphoto2-2.1.6.ebuild 2005-09-03 17:06:34.000000000 -0400 +++ libgphoto2-2.1.6.ebuild 2005-10-06 19:15:50.000000000 -0400 @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.1.6.ebuild,v 1.11 2005/09/03 20:54:05 corsair Exp $ +# $Header: $ inherit libtool eutils @@ -104,11 +104,17 @@ # install hotplug support if use !nousb; then insinto /etc/hotplug/usb - newins ${S}/packaging/linux-hotplug/usbcam.console usbcam + newins ${S}/packaging/linux-hotplug/usbcam.group usbcam chmod +x ${D}/etc/hotplug/usb/usbcam fi } + +pkg_preinst() { + enewgroup camera +} + + pkg_postinst() { if use !nousb; then einfo "Generating usbcam-gphoto2.usermap .." @@ -124,4 +130,8 @@ eerror " /usr/$(get_libdir)/libgphoto2/print-usb-usermap > ${HOTPLUG_USERMAP}" fi fi + + einfo "Don't forget to add yourself to the 'camera' group " + einfo "to access your digital camera." + epause }