Lines 11-17
Link Here
|
11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
KEYWORDS="~alpha ~amd64 ~ia64 ppc ppc64 sparc x86" |
13 |
KEYWORDS="~alpha ~amd64 ~ia64 ppc ppc64 sparc x86" |
14 |
IUSE="nls doc jpeg nousb" |
14 |
IUSE="nls doc jpeg nousb pam_console" |
15 |
|
15 |
|
16 |
# needs >usbutils-0.11-r2 to avoid /usr/lib/libusb* |
16 |
# needs >usbutils-0.11-r2 to avoid /usr/lib/libusb* |
17 |
# conflicts with dev-libs/libusb |
17 |
# conflicts with dev-libs/libusb |
Lines 100-110
Link Here
|
100 |
# install hotplug support |
100 |
# install hotplug support |
101 |
if use !nousb; then |
101 |
if use !nousb; then |
102 |
insinto /etc/hotplug/usb |
102 |
insinto /etc/hotplug/usb |
103 |
newins ${S}/packaging/linux-hotplug/usbcam.console usbcam |
103 |
|
|
|
104 |
if use pam_console; then |
105 |
newins ${S}/packaging/linux-hotplug/usbcam.console usbcam |
106 |
else |
107 |
newins ${S}/packaging/linux-hotplug/usbcam.group usbcam |
108 |
fi |
109 |
|
104 |
chmod +x ${D}/etc/hotplug/usb/usbcam |
110 |
chmod +x ${D}/etc/hotplug/usb/usbcam |
105 |
fi |
111 |
fi |
106 |
} |
112 |
} |
107 |
|
113 |
|
|
|
114 |
|
115 |
pkg_preinst() { |
116 |
enewgroup camera |
117 |
} |
118 |
|
119 |
|
108 |
pkg_postinst() { |
120 |
pkg_postinst() { |
109 |
if use !nousb; then |
121 |
if use !nousb; then |
110 |
einfo "Generating usbcam-gphoto2.usermap .." |
122 |
einfo "Generating usbcam-gphoto2.usermap .." |