Gentoo Archives: gentoo-commits

From: "Wolfram Schlich (wschlich)" <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/owfs: ChangeLog owfs-2.7_p3.ebuild
Date: Thu, 24 Jan 2008 18:04:41
Message-Id: E1JI6RK-0006Qi-A1@stork.gentoo.org
1 wschlich 08/01/24 18:04:38
2
3 Modified: ChangeLog
4 Added: owfs-2.7_p3.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.4)
8
9 Revision Changes Path
10 1.6 sys-fs/owfs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/owfs/ChangeLog?rev=1.6&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/owfs/ChangeLog?rev=1.6&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/owfs/ChangeLog?r1=1.5&r2=1.6
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/owfs/ChangeLog,v
19 retrieving revision 1.5
20 retrieving revision 1.6
21 diff -u -r1.5 -r1.6
22 --- ChangeLog 17 Dec 2007 17:41:51 -0000 1.5
23 +++ ChangeLog 24 Jan 2008 18:04:37 -0000 1.6
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-fs/owfs
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/ChangeLog,v 1.5 2007/12/17 17:41:51 wschlich Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/ChangeLog,v 1.6 2008/01/24 18:04:37 wschlich Exp $
30 +
31 +*owfs-2.7_p3 (24 Jan 2008)
32 +
33 + 24 Jan 2008; Wolfram Schlich <wschlich@g.o> +owfs-2.7_p3.ebuild:
34 + version bump
35
36 17 Dec 2007; Wolfram Schlich <wschlich@g.o> files/owfs.confd,
37 files/owfs.initd, files/owftpd.confd, files/owftpd.initd,
38
39
40
41 1.1 sys-fs/owfs/owfs-2.7_p3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/owfs/owfs-2.7_p3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/owfs/owfs-2.7_p3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: owfs-2.7_p3.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/owfs-2.7_p3.ebuild,v 1.1 2008/01/24 18:04:37 wschlich Exp $
51
52 inherit eutils
53
54 MY_P=${P/_/}
55
56 DESCRIPTION="Access 1-Wire devices like a filesystem"
57 SRC_URI="mirror://sourceforge/owfs/${MY_P}.tar.gz"
58 HOMEPAGE="http://www.owfs.org/ http://owfs.sourceforge.net/"
59 LICENSE="GPL-2"
60 DEPEND="fuse? ( sys-fs/fuse )
61 perl? ( dev-lang/perl dev-lang/swig )
62 php? ( dev-lang/php dev-lang/swig )
63 python? ( dev-lang/python dev-lang/swig )
64 tcl? ( dev-lang/tcl )
65 usb? ( dev-libs/libusb )
66 zeroconf? ( || ( net-dns/avahi net-misc/mDNSResponder ) )"
67 KEYWORDS="~amd64 ~x86"
68 SLOT="0"
69 IUSE="debug fuse ftpd httpd parport perl php python server tcl usb zeroconf"
70
71 S=${WORKDIR}/${MY_P}
72
73 OWUID=${OWUID:-owfs}
74 OWGID=${OWGID:-owfs}
75
76 pkg_setup() {
77 if use php && has_version dev-lang/php && ! built_with_use dev-lang/php cli; then
78 eerror "${PN} needs the command line interface (CLI) of php"
79 eerror "Please re-emerge dev-lang/php with USE=cli"
80 die "need dev-lang/php built with cli USE flag"
81 fi
82 if use zeroconf && has_version net-dns/avahi && ! built_with_use net-dns/avahi mdnsresponder-compat; then
83 eerror "You need to recompile net-dns/avahi with mdnsresponder-compat USE flag"
84 die "net-dns/avahi is missing required mdnsresponder-compat support for USE=zeroconf"
85 fi
86 enewgroup ${OWGID} 150
87 enewuser ${OWUID} 150 -1 -1 ${OWGID}
88 }
89
90 src_compile() {
91 econf \
92 $(use_enable debug) \
93 $(use_enable fuse owfs) \
94 $(use_enable ftpd owftpd) \
95 $(use_enable httpd owhttpd) \
96 $(use_enable parport) \
97 $(use_enable perl owperl) \
98 $(use_enable php owphp) \
99 $(use_enable python owpython) \
100 $(use_enable server owserver) \
101 $(use_enable tcl owtcl) \
102 $(use_enable zeroconf zero) \
103 $(use_enable usb) \
104 || die "econf failed"
105 emake || die "emake failed"
106 }
107
108 src_install() {
109 emake DESTDIR="${D}" install || die "emake install failed"
110 dodoc README NEWS ChangeLog AUTHORS
111 if use server || use httpd || use ftpd || use fuse; then
112 diropts -m 0750 -o ${OWUID} -g ${OWGID}
113 dodir /var/run/owfs
114 for i in server httpd ftpd; do
115 if use ${i}; then
116 newinitd "${FILESDIR}"/ow${i}.initd ow${i}
117 newconfd "${FILESDIR}"/ow${i}.confd ow${i}
118 fi
119 done
120 if use fuse; then
121 dodir /var/lib/owfs
122 dodir /var/lib/owfs/mnt
123 newinitd "${FILESDIR}"/owfs.initd owfs
124 newconfd "${FILESDIR}"/owfs.confd owfs
125 fi
126 fi
127 }
128
129 pkg_postinst() {
130 if use server || use httpd || use ftpd || use fuse; then
131 echo
132 einfo
133 einfo "Be sure to check/edit the following files,"
134 einfo "e.g. to fit your 1 wire bus controller"
135 einfo "device or daemon network settings:"
136 for i in server httpd ftpd; do
137 if use ${i}; then
138 einfo "- ${ROOT%/}/etc/conf.d/ow${i}"
139 fi
140 done
141 if use fuse; then
142 einfo "- ${ROOT%/}/etc/conf.d/owfs"
143 fi
144 einfo
145 echo
146 if [[ ${OWUID} != root ]]; then
147 ewarn
148 ewarn "In order to allow the OWFS daemon user '${OWUID}' to read"
149 ewarn "from and/or write to a 1 wire bus controller device, make"
150 ewarn "sure the user has appropriate permission to access the"
151 ewarn "corresponding device node/path (e.g. /dev/ttyS0), for example"
152 ewarn "by adding the user to the group 'uucp' (for serial devices)"
153 ewarn "or 'usb' (for USB devices accessed via usbfs on /proc/bus/usb)."
154 ewarn
155 if use fuse; then
156 ewarn "In order to allow regular users to read from and/or write to"
157 ewarn "1 wire bus devices accessible via the owfs FUSE filesystem"
158 ewarn "client and its filesystem mountpoint, make sure the user is"
159 ewarn "a member of the group '${OWGID}'."
160 ewarn
161 fi
162 echo
163 fi
164 fi
165 }
166
167
168
169 --
170 gentoo-commits@l.g.o mailing list