Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/owfs/files/, sys-fs/owfs/
Date: Thu, 30 Mar 2017 08:06:09
Message-Id: 1490861154.96b46325f8e468dbba02a7ed1199e3fed5fd9761.kensington@gentoo
1 commit: 96b46325f8e468dbba02a7ed1199e3fed5fd9761
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 30 08:05:45 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 30 08:05:54 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96b46325
7
8 sys-fs/owfs: remove old
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 sys-fs/owfs/Manifest | 2 -
13 sys-fs/owfs/files/owfs-vendordir.patch | 30 ------
14 sys-fs/owfs/files/owfs.initd | 31 ------
15 sys-fs/owfs/files/owftpd.initd | 31 ------
16 sys-fs/owfs/files/owhttpd.initd | 31 ------
17 sys-fs/owfs/files/owserver.initd | 31 ------
18 sys-fs/owfs/metadata.xml | 1 -
19 sys-fs/owfs/owfs-2.7_p21-r4.ebuild | 167 --------------------------------
20 sys-fs/owfs/owfs-3.1_p1.ebuild | 170 ---------------------------------
21 9 files changed, 494 deletions(-)
22
23 diff --git a/sys-fs/owfs/Manifest b/sys-fs/owfs/Manifest
24 index 549445dd52c..fda88792fa0 100644
25 --- a/sys-fs/owfs/Manifest
26 +++ b/sys-fs/owfs/Manifest
27 @@ -1,3 +1 @@
28 -DIST owfs-2.7p21.tar.gz 1247466 SHA256 070a3368e9400e900618f8a704f487baf3671f6764715b4de04b151c66d3306d SHA512 ec6d372d32ebf59278c2c68d5fbed42664f52bc1702f4ea8e5506457594943413e37801d341102029cb48a9d8c3d6b3d68615a1dd517c93aa0a475a1bb06c4cf WHIRLPOOL 31901ae07a7431a368cdb4fa0a30a1885da29f55187dc601b53f2e9ebf4e11aba73de93d7f6308671ecb3afa8433548b41a2e79a9a0cc4771adee93a5a6a1ddd
29 -DIST owfs-3.1p1.tar.gz 1400962 SHA256 e69421ae534565c1f8530a2447f583401f4d0d4b1cf3cb8cf399a57133ed7f81 SHA512 f5c2694ce1076969cf4a6970a07b2c2edee42cfbc6886c1790d777d650cc0afe42cf3282328f8832d5286a0aa5827c48e3d4657412ba3391db5e26adfa890cf5 WHIRLPOOL 2a3a4ebeb3eebaf0d370a7dcc8a9a5fb95defa3e218039f9203b996e4ac2272c2a16323bb8e43da39df9a389dbd057e49c936f40bdc08de201076fbd8d2fdba4
30 DIST owfs-3.1p4.tar.gz 1455420 SHA256 83ea34ede9f44665c5bef4e46fd9bbc087ad8a76c533bcbf03b436b7601e1e54 SHA512 9d04b466fc64761f53dc5fb11b4eb71d10154be5eb335174e8a9002a944bb3f2fbfe1cea3cf5962aa794486830e78d7ba5a7a87c68e3a4d32ab1a95e7ca59cdb WHIRLPOOL 0a1790e111e01bd66237899311ae348bd347f6446094fe7a33d36f2f86db5c18211abd13f76c7e080398f3daf3f20184542f083c818f028ec6f2ca695accebd4
31
32 diff --git a/sys-fs/owfs/files/owfs-vendordir.patch b/sys-fs/owfs/files/owfs-vendordir.patch
33 deleted file mode 100644
34 index ac09e4f2fc7..00000000000
35 --- a/sys-fs/owfs/files/owfs-vendordir.patch
36 +++ /dev/null
37 @@ -1,30 +0,0 @@
38 -diff -ruN owfs-2.7p21.orig/module/ownet/perl5/Makefile.am owfs-2.7p21/module/ownet/perl5/Makefile.am
39 ---- owfs-2.7p21.orig/module/ownet/perl5/Makefile.am 2008-06-12 16:24:30.000000000 +0200
40 -+++ owfs-2.7p21/module/ownet/perl5/Makefile.am 2012-05-20 15:45:07.340529762 +0200
41 -@@ -7,9 +7,9 @@
42 - # Can't really install the perl-modules under prefix-directory.. it should be site-global.
43 - OWNet/Makefile: OWNet/Makefile.PL
44 - if HAVE_DEBIAN
45 -- ( cd OWNet; $(PERL) Makefile.PL PREFIX=@prefix@ )
46 -+ ( cd OWNet; $(PERL) Makefile.PL PREFIX=@prefix@ INSTALLDIRS=vendor )
47 - else
48 -- ( cd OWNet; $(PERL) Makefile.PL )
49 -+ ( cd OWNet; $(PERL) Makefile.PL INSTALLDIRS=vendor )
50 - endif
51 -
52 - install-data-local: OWNet/Makefile
53 -diff -ruN owfs-2.7p21.orig/module/swig/perl5/Makefile.am owfs-2.7p21/module/swig/perl5/Makefile.am
54 ---- owfs-2.7p21.orig/module/swig/perl5/Makefile.am 2008-06-12 16:24:30.000000000 +0200
55 -+++ owfs-2.7p21/module/swig/perl5/Makefile.am 2012-05-20 15:44:04.519526274 +0200
56 -@@ -17,9 +17,9 @@
57 - ( cd OW; $(PERL) Makefile.PL )
58 - else
59 - if HAVE_DEBIAN
60 -- ( cd OW; $(PERL) Makefile.PL PREFIX=@prefix@ )
61 -+ ( cd OW; $(PERL) Makefile.PL PREFIX=@prefix@ INSTALLDIRS=vendor )
62 - else
63 -- ( cd OW; $(PERL) Makefile.PL )
64 -+ ( cd OW; $(PERL) Makefile.PL INSTALLDIRS=vendor )
65 - endif
66 - endif
67 -
68
69 diff --git a/sys-fs/owfs/files/owfs.initd b/sys-fs/owfs/files/owfs.initd
70 deleted file mode 100644
71 index a1ade56a561..00000000000
72 --- a/sys-fs/owfs/files/owfs.initd
73 +++ /dev/null
74 @@ -1,31 +0,0 @@
75 -#!/sbin/openrc-run
76 -# Copyright 1999-2007 Gentoo Foundation
77 -# Distributed under the terms of the GNU General Public License, v2 or later
78 -
79 -INSTANCE=${SVCNAME#*.}
80 -PROGRAM=${SVCNAME%%.*}
81 -PIDFILE=${PIDFILE:-/var/run/owfs/${PROGRAM}.pid}
82 -OWUID=${OWUID:-owfs}
83 -OWGID=${OWGID:-owfs}
84 -
85 -depend() {
86 - need net
87 - use logger owserver
88 -}
89 -
90 -start() {
91 - ebegin "Starting ${SVCNAME}"
92 - start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
93 - --pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \
94 - --pid_file ${PIDFILE} \
95 - --background --error_print 1 \
96 - ${OWFS_OPTS:--m /var/lib/owfs/mnt --allow_other -s 127.0.0.1:4304}
97 - eend $?
98 -}
99 -
100 -stop() {
101 - ebegin "Stopping ${SVCNAME}"
102 - start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
103 - --pidfile ${PIDFILE} -u ${OWUID}
104 - eend $?
105 -}
106
107 diff --git a/sys-fs/owfs/files/owftpd.initd b/sys-fs/owfs/files/owftpd.initd
108 deleted file mode 100644
109 index 180ecf9efcd..00000000000
110 --- a/sys-fs/owfs/files/owftpd.initd
111 +++ /dev/null
112 @@ -1,31 +0,0 @@
113 -#!/sbin/openrc-run
114 -# Copyright 1999-2007 Gentoo Foundation
115 -# Distributed under the terms of the GNU General Public License, v2 or later
116 -
117 -INSTANCE=${SVCNAME#*.}
118 -PROGRAM=${SVCNAME%%.*}
119 -PIDFILE=${PIDFILE:-/var/run/owfs/${PROGRAM}.pid}
120 -OWUID=${OWUID:-owfs}
121 -OWGID=${OWGID:-owfs}
122 -
123 -depend() {
124 - need net
125 - use logger owserver
126 -}
127 -
128 -start() {
129 - ebegin "Starting ${SVCNAME}"
130 - start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
131 - --pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \
132 - --pid_file ${PIDFILE} \
133 - --background --error_print 1 \
134 - ${OWFTPD_OPTS:---nozero -p 127.0.0.1:4381 -s 127.0.0.1:4304 --max_clients 5 --timeout_ftp 600}
135 - eend $?
136 -}
137 -
138 -stop() {
139 - ebegin "Stopping ${SVCNAME}"
140 - start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
141 - --pidfile ${PIDFILE} -u ${OWUID}
142 - eend $?
143 -}
144
145 diff --git a/sys-fs/owfs/files/owhttpd.initd b/sys-fs/owfs/files/owhttpd.initd
146 deleted file mode 100644
147 index f30dd6efb1e..00000000000
148 --- a/sys-fs/owfs/files/owhttpd.initd
149 +++ /dev/null
150 @@ -1,31 +0,0 @@
151 -#!/sbin/openrc-run
152 -# Copyright 1999-2007 Gentoo Foundation
153 -# Distributed under the terms of the GNU General Public License, v2 or later
154 -
155 -INSTANCE=${SVCNAME#*.}
156 -PROGRAM=${SVCNAME%%.*}
157 -PIDFILE=${PIDFILE:-/var/run/owfs/${PROGRAM}.pid}
158 -OWUID=${OWUID:-owfs}
159 -OWGID=${OWGID:-owfs}
160 -
161 -depend() {
162 - need net
163 - use logger owserver
164 -}
165 -
166 -start() {
167 - ebegin "Starting ${SVCNAME}"
168 - start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
169 - --pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \
170 - --pid_file ${PIDFILE} \
171 - --background --error_print 1 \
172 - ${OWHTTPD_OPTS:---nozero -p 127.0.0.1:4380 -s 127.0.0.1:4304}
173 - eend $?
174 -}
175 -
176 -stop() {
177 - ebegin "Stopping ${SVCNAME}"
178 - start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
179 - --pidfile ${PIDFILE} -u ${OWUID}
180 - eend $?
181 -}
182
183 diff --git a/sys-fs/owfs/files/owserver.initd b/sys-fs/owfs/files/owserver.initd
184 deleted file mode 100644
185 index 9ad58ca225e..00000000000
186 --- a/sys-fs/owfs/files/owserver.initd
187 +++ /dev/null
188 @@ -1,31 +0,0 @@
189 -#!/sbin/openrc-run
190 -# Copyright 1999-2007 Gentoo Foundation
191 -# Distributed under the terms of the GNU General Public License, v2 or later
192 -
193 -INSTANCE=${SVCNAME#*.}
194 -PROGRAM=${SVCNAME%%.*}
195 -PIDFILE=${PIDFILE:-/var/run/owfs/${PROGRAM}.pid}
196 -OWUID=${OWUID:-owfs}
197 -OWGID=${OWGID:-owfs}
198 -
199 -depend() {
200 - need net
201 - use logger
202 -}
203 -
204 -start() {
205 - ebegin "Starting ${SVCNAME}"
206 - start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
207 - --pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \
208 - --pid_file ${PIDFILE} \
209 - --background --error_print 1 \
210 - ${OWSERVER_OPTS:---nozero -p 127.0.0.1:4304 -d /dev/ttyS0}
211 - eend $?
212 -}
213 -
214 -stop() {
215 - ebegin "Stopping ${SVCNAME}"
216 - start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
217 - --pidfile ${PIDFILE} -u ${OWUID}
218 - eend $?
219 -}
220
221 diff --git a/sys-fs/owfs/metadata.xml b/sys-fs/owfs/metadata.xml
222 index 0b9818389ae..3643be9f41d 100644
223 --- a/sys-fs/owfs/metadata.xml
224 +++ b/sys-fs/owfs/metadata.xml
225 @@ -20,7 +20,6 @@
226 <flag name="fuse">Enable building the FUSE-based OWFS client (owfs)</flag>
227 <flag name="httpd">Enable building the OWFS web server (owhttpd)</flag>
228 <flag name="parport">Enable support for the DS1410E parallel port adapter</flag>
229 - <flag name="server">Enable building the OWFS server (owserver)</flag>
230 <flag name="zeroconf">Enables support for zero-configuration networking via <pkg>net-dns/avahi</pkg></flag>
231 </use>
232 </pkgmetadata>
233
234 diff --git a/sys-fs/owfs/owfs-2.7_p21-r4.ebuild b/sys-fs/owfs/owfs-2.7_p21-r4.ebuild
235 deleted file mode 100644
236 index be8f703a8f7..00000000000
237 --- a/sys-fs/owfs/owfs-2.7_p21-r4.ebuild
238 +++ /dev/null
239 @@ -1,167 +0,0 @@
240 -# Copyright 1999-2015 Gentoo Foundation
241 -# Distributed under the terms of the GNU General Public License v2
242 -
243 -EAPI="5"
244 -
245 -PYTHON_COMPAT=( python2_7 )
246 -DISTUTILS_OPTIONAL=1
247 -
248 -inherit distutils-r1 eutils perl-module autotools user
249 -
250 -MY_P=${P/_/}
251 -
252 -DESCRIPTION="Access 1-Wire devices like a filesystem"
253 -SRC_URI="mirror://sourceforge/owfs/${MY_P}.tar.gz"
254 -HOMEPAGE="http://www.owfs.org/ http://owfs.sourceforge.net/"
255 -
256 -KEYWORDS="~amd64 ~arm ~x86"
257 -SLOT="0"
258 -LICENSE="GPL-2"
259 -
260 -RDEPEND="
261 - fuse? ( sys-fs/fuse )
262 - perl? ( dev-lang/perl )
263 - php? ( dev-lang/php:=[cli] )
264 - python? ( ${PYTHON_DEPS} )
265 - tcl? ( dev-lang/tcl:0= )
266 - usb? ( virtual/libusb:0 )
267 - zeroconf? ( net-dns/avahi[mdnsresponder-compat] )"
268 -
269 -DEPEND="${RDEPEND}
270 - perl? ( dev-lang/swig )
271 - php? ( dev-lang/swig )
272 - python? ( dev-lang/swig )"
273 -
274 -IUSE="debug fuse ftpd httpd parport perl php python server tcl usb zeroconf"
275 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
276 -
277 -S=${WORKDIR}/${MY_P}
278 -
279 -OWUID=${OWUID:-owfs}
280 -OWGID=${OWGID:-owfs}
281 -
282 -pkg_setup() {
283 - enewgroup ${OWGID} 150
284 - enewuser ${OWUID} 150 -1 -1 ${OWGID}
285 -}
286 -
287 -src_prepare() {
288 - # Support user's CFLAGS and LDFLAGS.
289 - sed -i "s/@CPPFLAGS@/@CPPFLAGS@ ${CFLAGS}/" \
290 - module/swig/perl5/OW/Makefile.linux.in || die
291 - sed -i "s/@LIBS@/@LIBS@ ${LDFLAGS}/" \
292 - module/swig/perl5/OW/Makefile.linux.in || die
293 -
294 - epatch "${FILESDIR}/${PN}-vendordir.patch"
295 -
296 - eautoreconf
297 -}
298 -
299 -src_configure() {
300 - # disable owpython since we can build python anyway
301 - # and without it, we don't have to fix the build ;)
302 - econf \
303 - $(use_enable debug) \
304 - $(use_enable fuse owfs) \
305 - $(use_enable ftpd owftpd) \
306 - $(use_enable httpd owhttpd) \
307 - $(use_enable parport) \
308 - $(use_enable perl owperl) \
309 - $(use_enable php owphp) \
310 - --disable-owpython \
311 - $(use_enable server owserver) \
312 - $(use_enable tcl owtcl) \
313 - $(use_enable zeroconf zero) \
314 - $(use_enable usb)
315 -}
316 -
317 -src_compile() {
318 - default
319 -
320 - if use python; then
321 - local CFLAGS="${CFLAGS} -fno-strict-aliasing"
322 -
323 - pushd module/ownet/python > /dev/null || die
324 - distutils-r1_src_compile
325 - popd > /dev/null || die
326 -
327 - pushd module/swig/python > /dev/null || die
328 - emake ow_wrap.c
329 - distutils-r1_src_compile
330 - popd > /dev/null || die
331 - fi
332 -}
333 -
334 -src_test() { :; }
335 -
336 -src_install() {
337 - default
338 -
339 - if use server || use httpd || use ftpd || use fuse; then
340 - diropts -m 0750 -o ${OWUID} -g ${OWGID}
341 - dodir /var/run/owfs
342 -
343 - for i in server httpd ftpd; do
344 - if use ${i}; then
345 - newinitd "${FILESDIR}"/ow${i}.initd ow${i}
346 - newconfd "${FILESDIR}"/ow${i}.confd ow${i}
347 - fi
348 - done
349 -
350 - if use fuse; then
351 - dodir /var/lib/owfs
352 - dodir /var/lib/owfs/mnt
353 - newinitd "${FILESDIR}"/owfs.initd owfs
354 - newconfd "${FILESDIR}"/owfs.confd owfs
355 - fi
356 - fi
357 - use perl && perl_delete_localpod
358 -
359 - if use python; then
360 - pushd module/ownet/python > /dev/null || die
361 - distutils-r1_src_install
362 - popd > /dev/null || die
363 -
364 - pushd module/swig/python > /dev/null || die
365 - distutils-r1_src_install
366 - popd > /dev/null || die
367 - fi
368 -}
369 -
370 -pkg_postinst() {
371 - if use server || use httpd || use ftpd || use fuse; then
372 - echo
373 - einfo
374 - einfo "Be sure to check/edit the following files,"
375 - einfo "e.g. to fit your 1 wire bus controller"
376 - einfo "device or daemon network settings:"
377 - for i in server httpd ftpd; do
378 - if use ${i}; then
379 - einfo "- ${ROOT%/}/etc/conf.d/ow${i}"
380 - fi
381 - done
382 - if use fuse; then
383 - einfo "- ${ROOT%/}/etc/conf.d/owfs"
384 - fi
385 - einfo
386 - echo
387 - if [[ ${OWUID} != root ]]; then
388 - ewarn
389 - ewarn "In order to allow the OWFS daemon user '${OWUID}' to read"
390 - ewarn "from and/or write to a 1 wire bus controller device, make"
391 - ewarn "sure the user has appropriate permission to access the"
392 - ewarn "corresponding device node/path (e.g. /dev/ttyS0), for example"
393 - ewarn "by adding the user to the group 'uucp' (for serial devices)"
394 - ewarn "or 'usb' (for USB devices accessed via usbfs on /proc/bus/usb)."
395 - ewarn
396 - if use fuse; then
397 - ewarn "In order to allow regular users to read from and/or write to"
398 - ewarn "1 wire bus devices accessible via the owfs FUSE filesystem"
399 - ewarn "client and its filesystem mountpoint, make sure the user is"
400 - ewarn "a member of the group '${OWGID}'."
401 - ewarn
402 - fi
403 - echo
404 - fi
405 - fi
406 -}
407
408 diff --git a/sys-fs/owfs/owfs-3.1_p1.ebuild b/sys-fs/owfs/owfs-3.1_p1.ebuild
409 deleted file mode 100644
410 index 9551eb95165..00000000000
411 --- a/sys-fs/owfs/owfs-3.1_p1.ebuild
412 +++ /dev/null
413 @@ -1,170 +0,0 @@
414 -# Copyright 1999-2016 Gentoo Foundation
415 -# Distributed under the terms of the GNU General Public License v2
416 -
417 -EAPI=6
418 -
419 -PYTHON_COMPAT=( python2_7 )
420 -DISTUTILS_OPTIONAL=1
421 -
422 -inherit autotools distutils-r1 perl-functions user
423 -
424 -MY_P=${P/_/}
425 -
426 -DESCRIPTION="Access 1-Wire devices like a filesystem"
427 -SRC_URI="mirror://sourceforge/owfs/${MY_P}.tar.gz"
428 -HOMEPAGE="http://owfs.org/ https://sourceforge.net/projects/owfs/"
429 -
430 -KEYWORDS="~amd64 ~arm ~x86"
431 -SLOT="0/1"
432 -LICENSE="GPL-2"
433 -
434 -RDEPEND="
435 - fuse? ( sys-fs/fuse )
436 - perl? ( dev-lang/perl:= )
437 - php? ( dev-lang/php:=[cli] )
438 - python? ( ${PYTHON_DEPS} )
439 - tcl? ( dev-lang/tcl:0= )
440 - usb? ( virtual/libusb:0 )
441 - zeroconf? ( net-dns/avahi[mdnsresponder-compat] )"
442 -
443 -DEPEND="${RDEPEND}
444 - perl? ( dev-lang/swig )
445 - php? ( dev-lang/swig )
446 - python? ( dev-lang/swig )"
447 -
448 -IUSE="debug ftpd fuse httpd parport perl php python tcl usb zeroconf"
449 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
450 -
451 -PATCHES=(
452 - "${FILESDIR}"/${PN}-3.1-vendordir.patch
453 -)
454 -
455 -S=${WORKDIR}/${MY_P}
456 -
457 -OWUID=${OWUID:-owfs}
458 -OWGID=${OWGID:-owfs}
459 -
460 -pkg_setup() {
461 - use perl && perl_set_version
462 -
463 - enewgroup ${OWGID} 150
464 - enewuser ${OWUID} 150 -1 -1 ${OWGID}
465 -}
466 -
467 -src_prepare() {
468 - default
469 -
470 - # Support user's CFLAGS and LDFLAGS.
471 - sed -i "s/@CPPFLAGS@/@CPPFLAGS@ ${CFLAGS}/" \
472 - module/swig/perl5/OW/Makefile.linux.in || die
473 - sed -i "s/@LIBS@/@LIBS@ ${LDFLAGS}/" \
474 - module/swig/perl5/OW/Makefile.linux.in || die
475 -
476 - eautoreconf
477 -}
478 -
479 -src_configure() {
480 - # disable owpython since we can build python anyway
481 - # and without it, we don't have to fix the build ;)
482 - local myeconf=(
483 - $(use_enable debug)
484 - $(use_enable fuse owfs)
485 - $(use_enable ftpd owftpd)
486 - $(use_enable httpd owhttpd)
487 - $(use_enable parport)
488 - $(use_enable perl owperl)
489 - $(use_enable php owphp)
490 - --disable-owpython
491 - $(use_enable tcl owtcl)
492 - $(use_enable zeroconf zero)
493 - $(use_enable usb)
494 - )
495 -
496 - if use httpd || use ftpd || use fuse; then
497 - myeconf+=( --enable-owserver )
498 - else
499 - myeconf+=( --disable-owserver )
500 - fi
501 -
502 - econf ${myeconf[@]}
503 -}
504 -
505 -src_compile() {
506 - default
507 -
508 - if use python; then
509 - local CFLAGS="${CFLAGS} -fno-strict-aliasing"
510 -
511 - pushd module/ownet/python > /dev/null || die
512 - distutils-r1_src_compile
513 - popd > /dev/null || die
514 -
515 - pushd module/swig/python > /dev/null || die
516 - emake ow_wrap.c
517 - distutils-r1_src_compile
518 - popd > /dev/null || die
519 - fi
520 -}
521 -
522 -src_test() { :; }
523 -
524 -src_install() {
525 - default
526 -
527 - if use httpd || use ftpd || use fuse; then
528 - newinitd "${FILESDIR}"/owserver.initd-r1 owserver
529 - newconfd "${FILESDIR}"/owserver.confd owserver
530 -
531 - for i in httpd ftpd; do
532 - if use ${i}; then
533 - newinitd "${FILESDIR}"/ow${i}.initd-r1 ow${i}
534 - newconfd "${FILESDIR}"/ow${i}.confd ow${i}
535 - fi
536 - done
537 -
538 - if use fuse; then
539 - dodir /var/lib/owfs
540 - dodir /var/lib/owfs/mnt
541 - newinitd "${FILESDIR}"/owfs.initd-r1 owfs
542 - newconfd "${FILESDIR}"/owfs.confd owfs
543 - fi
544 - fi
545 -
546 - use perl && perl_delete_localpod
547 -
548 - if use python; then
549 - pushd module/ownet/python > /dev/null || die
550 - distutils-r1_src_install
551 - popd > /dev/null || die
552 -
553 - pushd module/swig/python > /dev/null || die
554 - distutils-r1_src_install
555 - popd > /dev/null || die
556 - fi
557 -}
558 -
559 -pkg_postinst() {
560 - if use httpd || use ftpd || use fuse; then
561 - echo
562 - if [[ ${OWUID} != root ]]; then
563 - ewarn
564 - ewarn "In order to allow the OWFS daemon user '${OWUID}' to read"
565 - ewarn "from and/or write to a 1 wire bus controller device, make"
566 - ewarn "sure the user has appropriate permission to access the"
567 - ewarn "corresponding device node/path (e.g. /dev/ttyS0), for example"
568 - ewarn "by adding the user to the group 'uucp' (for serial devices)"
569 - ewarn "or 'usb' (for USB devices accessed via usbfs on /proc/bus/usb),"
570 - ewarn "or install an appropriate UDEV rules (see http://owfs.org/index.php?page=udev-and-usb"
571 - ewarn "for more information)."
572 - ewarn
573 - if use fuse; then
574 - ewarn "In order to allow regular users to read from and/or write to"
575 - ewarn "1 wire bus devices accessible via the owfs FUSE filesystem"
576 - ewarn "client and its filesystem mountpoint, make sure the user is"
577 - ewarn "a member of the group '${OWGID}'."
578 - ewarn
579 - fi
580 - echo
581 - fi
582 - fi
583 -}