Lines 6-12
Link Here
|
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic |
7 |
inherit eutils flag-o-matic |
8 |
|
8 |
|
9 |
IUSE="usb gphoto2 ipv6 v4l doc" |
9 |
IUSE="usb gphoto2 ipv6 v4l doc xinetd" |
10 |
|
10 |
|
11 |
DESCRIPTION="Scanner Access Now Easy - Backends" |
11 |
DESCRIPTION="Scanner Access Now Easy - Backends" |
12 |
HOMEPAGE="http://www.sane-project.org/" |
12 |
HOMEPAGE="http://www.sane-project.org/" |
Lines 16-22
Link Here
|
16 |
x86? ( sys-libs/libieee1284 ) |
16 |
x86? ( sys-libs/libieee1284 ) |
17 |
usb? ( dev-libs/libusb:0 ) |
17 |
usb? ( dev-libs/libusb:0 ) |
18 |
gphoto2? ( media-libs/libgphoto2 ) |
18 |
gphoto2? ( media-libs/libgphoto2 ) |
19 |
v4l? ( sys-kernel/linux-headers )" |
19 |
v4l? ( sys-kernel/linux-headers ) |
|
|
20 |
xinetd? ( sys-apps/xinetd )" |
20 |
|
21 |
|
21 |
DEPEND="${RDEPEND} |
22 |
DEPEND="${RDEPEND} |
22 |
doc? ( |
23 |
doc? ( |
Lines 127-132
Link Here
|
127 |
} |
128 |
} |
128 |
|
129 |
|
129 |
src_install () { |
130 |
src_install () { |
|
|
131 |
if use xinetd ; then |
132 |
insinto /etc/xinetd.d |
133 |
doins ${FILESDIR}/sane-port |
134 |
fi |
130 |
make INSTALL_LOCKPATH="" DESTDIR="${D}" install \ |
135 |
make INSTALL_LOCKPATH="" DESTDIR="${D}" install \ |
131 |
docdir=/usr/share/doc/${PF} |
136 |
docdir=/usr/share/doc/${PF} |
132 |
keepdir /var/lib/lock/sane |
137 |
keepdir /var/lib/lock/sane |
Lines 151-153
Link Here
|
151 |
dodoc NEWS AUTHORS ChangeLog* README README.linux |
156 |
dodoc NEWS AUTHORS ChangeLog* README README.linux |
152 |
echo "SANE_CONFIG_DIR=/etc/sane.d" >> "${D}"/etc/env.d/30sane |
157 |
echo "SANE_CONFIG_DIR=/etc/sane.d" >> "${D}"/etc/env.d/30sane |
153 |
} |
158 |
} |
|
|
159 |
|
160 |
pkg_postinst () { |
161 |
if use xinetd ; then |
162 |
elog "Dont forget to modify /etc/sane.d/saned.conf to allow remote" |
163 |
elog "clients to connect via xinetd" |
164 |
fi |
165 |
} |