Lines 1-6
Link Here
|
1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2005 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.1.6.ebuild,v 1.11 2005/09/03 20:54:05 corsair Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit libtool eutils |
5 |
inherit libtool eutils |
6 |
|
6 |
|
Lines 104-114
Link Here
|
104 |
# install hotplug support |
104 |
# install hotplug support |
105 |
if use !nousb; then |
105 |
if use !nousb; then |
106 |
insinto /etc/hotplug/usb |
106 |
insinto /etc/hotplug/usb |
107 |
newins ${S}/packaging/linux-hotplug/usbcam.console usbcam |
107 |
newins ${S}/packaging/linux-hotplug/usbcam.group usbcam |
108 |
chmod +x ${D}/etc/hotplug/usb/usbcam |
108 |
chmod +x ${D}/etc/hotplug/usb/usbcam |
109 |
fi |
109 |
fi |
110 |
} |
110 |
} |
111 |
|
111 |
|
|
|
112 |
|
113 |
pkg_preinst() { |
114 |
enewgroup camera |
115 |
} |
116 |
|
117 |
|
112 |
pkg_postinst() { |
118 |
pkg_postinst() { |
113 |
if use !nousb; then |
119 |
if use !nousb; then |
114 |
einfo "Generating usbcam-gphoto2.usermap .." |
120 |
einfo "Generating usbcam-gphoto2.usermap .." |
Lines 124-127
Link Here
|
124 |
eerror " /usr/$(get_libdir)/libgphoto2/print-usb-usermap > ${HOTPLUG_USERMAP}" |
130 |
eerror " /usr/$(get_libdir)/libgphoto2/print-usb-usermap > ${HOTPLUG_USERMAP}" |
125 |
fi |
131 |
fi |
126 |
fi |
132 |
fi |
|
|
133 |
|
134 |
einfo "Don't forget to add yourself to the 'camera' group " |
135 |
einfo "to access your digital camera." |
136 |
epause |
127 |
} |
137 |
} |