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