1 |
commit: ffd86cfb0f6574a9e62c32ebc65515f264404e90 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 9 07:21:50 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 9 07:21:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffd86cfb |
7 |
|
8 |
sys-fs/owfs: Remove last-rited pkg |
9 |
|
10 |
Closes: https://bugs.gentoo.org/735502 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
profiles/package.mask | 2 - |
14 |
sys-fs/owfs/Manifest | 1 - |
15 |
sys-fs/owfs/files/owfs-3.1-vendordir.patch | 26 ---- |
16 |
sys-fs/owfs/files/owfs-3.1p4-sysmacros.patch | 78 ----------- |
17 |
sys-fs/owfs/files/owfs.confd | 2 - |
18 |
sys-fs/owfs/files/owfs.initd-r1 | 35 ----- |
19 |
sys-fs/owfs/files/owftpd.confd | 2 - |
20 |
sys-fs/owfs/files/owftpd.initd-r1 | 35 ----- |
21 |
sys-fs/owfs/files/owhttpd.confd | 2 - |
22 |
sys-fs/owfs/files/owhttpd.initd-r1 | 35 ----- |
23 |
sys-fs/owfs/files/owserver.confd | 2 - |
24 |
sys-fs/owfs/files/owserver.initd-r1 | 34 ----- |
25 |
sys-fs/owfs/metadata.xml | 25 ---- |
26 |
sys-fs/owfs/owfs-3.2_p2-r2.ebuild | 192 --------------------------- |
27 |
14 files changed, 471 deletions(-) |
28 |
|
29 |
diff --git a/profiles/package.mask b/profiles/package.mask |
30 |
index 9f4865741fa..eed0607c6c6 100644 |
31 |
--- a/profiles/package.mask |
32 |
+++ b/profiles/package.mask |
33 |
@@ -530,10 +530,8 @@ x11-misc/dsx |
34 |
# |
35 |
# net-analyzer/mk-livestatus: py3 bug #735394, build failure bug #705430 |
36 |
# sci-biology/vienna-rna: py3 bug #735438, build failure bug #707158 |
37 |
-# sys-fs/owfs: py3 bug #735502, build failure bug #707438 |
38 |
net-analyzer/mk-livestatus |
39 |
sci-biology/vienna-rna |
40 |
-sys-fs/owfs |
41 |
|
42 |
# Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com> (2020-09-01) |
43 |
# Mismatched version (bug #695022). Masked to force upgrade to 2.0.4_pre20200306162733. |
44 |
|
45 |
diff --git a/sys-fs/owfs/Manifest b/sys-fs/owfs/Manifest |
46 |
deleted file mode 100644 |
47 |
index ead7f89981f..00000000000 |
48 |
--- a/sys-fs/owfs/Manifest |
49 |
+++ /dev/null |
50 |
@@ -1 +0,0 @@ |
51 |
-DIST owfs-3.2p2.tar.gz 1491195 BLAKE2B 3e56b954fc61e097d6e39345d689d3ba5386f2ed4383bb7755da6a867d802fe56b9e920fe9b4f24cdd639543bad79a6d13bd549e7ce81afb8eab52372864565a SHA512 d64078639ce4c1c5c42735c720cfa6741a34b91297500d6a7cff6e48a0a87b6391e43fc0c5f6bf44cec27feffb9a2f9b5510e085c602666a5adf803bb8ba3338 |
52 |
|
53 |
diff --git a/sys-fs/owfs/files/owfs-3.1-vendordir.patch b/sys-fs/owfs/files/owfs-3.1-vendordir.patch |
54 |
deleted file mode 100644 |
55 |
index 2592e8ad0fd..00000000000 |
56 |
--- a/sys-fs/owfs/files/owfs-3.1-vendordir.patch |
57 |
+++ /dev/null |
58 |
@@ -1,26 +0,0 @@ |
59 |
-diff --git a/module/ownet/perl5/Makefile.am b/module/ownet/perl5/Makefile.am |
60 |
-index 5823f4b..cebe1e6 100644 |
61 |
---- a/module/ownet/perl5/Makefile.am |
62 |
-+++ b/module/ownet/perl5/Makefile.am |
63 |
-@@ -8,7 +8,7 @@ OWNet/Makefile: OWNet/Makefile.PL |
64 |
- if HAVE_DEBIAN |
65 |
- cd OWNet; $(PERL) Makefile.PL INSTALLDIRS=vendor |
66 |
- else |
67 |
-- cd OWNet; $(PERL) Makefile.PL |
68 |
-+ cd OWNet; $(PERL) Makefile.PL INSTALLDIRS=vendor |
69 |
- endif |
70 |
- |
71 |
- install-data-local: OWNet/Makefile |
72 |
-diff --git a/module/swig/perl5/Makefile.am b/module/swig/perl5/Makefile.am |
73 |
-index 8e5f583..49cd252 100644 |
74 |
---- a/module/swig/perl5/Makefile.am |
75 |
-+++ b/module/swig/perl5/Makefile.am |
76 |
-@@ -19,7 +19,7 @@ else |
77 |
- if HAVE_DEBIAN |
78 |
- ( cd OW; $(PERL) Makefile.PL INSTALLDIRS=vendor ) |
79 |
- else |
80 |
-- ( cd OW; $(PERL) Makefile.PL ) |
81 |
-+ ( cd OW; $(PERL) Makefile.PL INSTALLDIRS=vendor ) |
82 |
- if HAVE_FREEBSD |
83 |
- $(PERL) -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' OW/Makefile |
84 |
- |
85 |
|
86 |
diff --git a/sys-fs/owfs/files/owfs-3.1p4-sysmacros.patch b/sys-fs/owfs/files/owfs-3.1p4-sysmacros.patch |
87 |
deleted file mode 100644 |
88 |
index dcb67a6d19c..00000000000 |
89 |
--- a/sys-fs/owfs/files/owfs-3.1p4-sysmacros.patch |
90 |
+++ /dev/null |
91 |
@@ -1,78 +0,0 @@ |
92 |
-From 6565314e775232cf1682b35720b8b1b207a16f3e Mon Sep 17 00:00:00 2001 |
93 |
-From: Thomas Deutschmann <whissi@g.o> |
94 |
-Date: Wed, 21 Sep 2016 15:38:52 +0200 |
95 |
-Subject: [PATCH] configure: Add AC_HEADER_MAJOR to find where major() is |
96 |
- defined |
97 |
- |
98 |
-glibc currently pulls sys/sysmacros.h into sys/types.h, but this may |
99 |
-change in a future release. |
100 |
- |
101 |
-https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html |
102 |
- |
103 |
-Gentoo-Bug: https://bugs.gentoo.org/580922 |
104 |
---- |
105 |
- configure.ac | 4 +++- |
106 |
- module/owlib/src/include/ow.h | 7 +++++-- |
107 |
- module/ownet/c/src/include/ow.h | 8 ++++++-- |
108 |
- 3 files changed, 14 insertions(+), 5 deletions(-) |
109 |
- |
110 |
-diff --git a/configure.ac b/configure.ac |
111 |
-index c1e3d77..3b32fbe 100644 |
112 |
---- a/configure.ac |
113 |
-+++ b/configure.ac |
114 |
-@@ -180,10 +180,12 @@ m4_include([src/scripts/m4/acx_pthread.m4]) |
115 |
- # Checks for header files. |
116 |
- AC_HEADER_DIRENT |
117 |
- AC_HEADER_STDC |
118 |
--AC_CHECK_HEADERS([asm/types.h arpa/inet.h sys/ioctl.h sys/mkdev.h sys/socket.h sys/time.h sys/times.h sys/types.h sys/param.h sys/uio.h feature_tests.h fcntl.h netinet/in.h stdlib.h string.h strings.h sys/file.h syslog.h termios.h unistd.h limits.h stdint.h features.h getopt.h resolv.h semaphore.h]) |
119 |
-+AC_CHECK_HEADERS([asm/types.h arpa/inet.h sys/ioctl.h sys/socket.h sys/time.h sys/times.h sys/types.h sys/param.h sys/uio.h feature_tests.h fcntl.h netinet/in.h stdlib.h string.h strings.h sys/file.h syslog.h termios.h unistd.h limits.h stdint.h features.h getopt.h resolv.h semaphore.h]) |
120 |
- AC_CHECK_HEADERS([linux/limits.h linux/types.h netdb.h dlfcn.h]) |
121 |
- AC_CHECK_HEADERS(sys/event.h sys/inotify.h) |
122 |
- |
123 |
-+AC_HEADER_MAJOR |
124 |
-+ |
125 |
- # Test if debugging out enabled |
126 |
- ENABLE_DEBUG="true" |
127 |
- AC_MSG_CHECKING([if debug-output is enabled]) |
128 |
-diff --git a/module/owlib/src/include/ow.h b/module/owlib/src/include/ow.h |
129 |
-index 9dbec5f..2a6050d 100644 |
130 |
---- a/module/owlib/src/include/ow.h |
131 |
-+++ b/module/owlib/src/include/ow.h |
132 |
-@@ -188,9 +188,12 @@ |
133 |
- #include <netdb.h> /* for getaddrinfo */ |
134 |
- #endif /* HAVE_NETDB_H */ |
135 |
- |
136 |
--#ifdef HAVE_SYS_MKDEV_H |
137 |
-+#ifdef MAJOR_IN_MKDEV |
138 |
- #include <sys/mkdev.h> /* for major() */ |
139 |
--#endif /* HAVE_SYS_MKDEV_H */ |
140 |
-+#endif /* MAJOR_IN_MKDEV */ |
141 |
-+#ifdef MAJOR_IN_SYSMACROS |
142 |
-+#include <sys/sysmacros.h> /* for major() */ |
143 |
-+#endif /* MAJOR_IN_MKDEV */ |
144 |
- |
145 |
- #include <stddef.h> // for offsetof() |
146 |
- |
147 |
-diff --git a/module/ownet/c/src/include/ow.h b/module/ownet/c/src/include/ow.h |
148 |
-index c157a7c..aeeba8e 100644 |
149 |
---- a/module/ownet/c/src/include/ow.h |
150 |
-+++ b/module/ownet/c/src/include/ow.h |
151 |
-@@ -118,9 +118,13 @@ |
152 |
- |
153 |
- #include <netdb.h> /* addrinfo */ |
154 |
- |
155 |
--#ifdef HAVE_SYS_MKDEV_H |
156 |
-+#ifdef MAJOR_IN_MKDEV |
157 |
- #include <sys/mkdev.h> /* for major() */ |
158 |
--#endif /* HAVE_SYS_MKDEV_H */ |
159 |
-+#endif /* MAJOR_IN_MKDEV */ |
160 |
-+#ifdef MAJOR_IN_SYSMACROS |
161 |
-+#include <sys/sysmacros.h> /* for major() */ |
162 |
-+#endif /* MAJOR_IN_MKDEV */ |
163 |
-+ |
164 |
- |
165 |
- /* Can't include search.h when compiling owperl on Fedora Core 1. */ |
166 |
- #ifndef SKIP_SEARCH_H |
167 |
--- |
168 |
-2.10.0 |
169 |
- |
170 |
|
171 |
diff --git a/sys-fs/owfs/files/owfs.confd b/sys-fs/owfs/files/owfs.confd |
172 |
deleted file mode 100644 |
173 |
index f85d25e74f2..00000000000 |
174 |
--- a/sys-fs/owfs/files/owfs.confd |
175 |
+++ /dev/null |
176 |
@@ -1,2 +0,0 @@ |
177 |
-# owfs configuration |
178 |
-OWFS_OPTS="-m /var/lib/owfs/mnt --allow_other -s 127.0.0.1:4304" |
179 |
|
180 |
diff --git a/sys-fs/owfs/files/owfs.initd-r1 b/sys-fs/owfs/files/owfs.initd-r1 |
181 |
deleted file mode 100644 |
182 |
index fce0f5e52d4..00000000000 |
183 |
--- a/sys-fs/owfs/files/owfs.initd-r1 |
184 |
+++ /dev/null |
185 |
@@ -1,35 +0,0 @@ |
186 |
-#!/sbin/openrc-run |
187 |
-# Copyright 1999-2016 Gentoo Foundation |
188 |
-# Distributed under the terms of the GNU General Public License, v2 or later |
189 |
- |
190 |
-INSTANCE=${SVCNAME#*.} |
191 |
-PROGRAM=${SVCNAME%%.*} |
192 |
-PIDFILE=${PIDFILE:-/run/owfs/${PROGRAM}.pid} |
193 |
-OWUID=${OWUID:-owfs} |
194 |
-OWGID=${OWGID:-owfs} |
195 |
- |
196 |
-depend() { |
197 |
- need owserver |
198 |
- use logger |
199 |
-} |
200 |
- |
201 |
-start_pre() { |
202 |
- checkpath -d -m 0750 -o ${OWUID}:${OWGID} "$(dirname ${PIDFILE})" |
203 |
-} |
204 |
- |
205 |
-start() { |
206 |
- ebegin "Starting ${SVCNAME}" |
207 |
- start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ |
208 |
- --pidfile ${PIDFILE} --user ${OWUID}:${OWGID} -- \ |
209 |
- --pid-file ${PIDFILE} \ |
210 |
- --background --error_print 1 \ |
211 |
- ${OWFS_OPTS:--m /var/lib/owfs/mnt --allow_other -s 127.0.0.1:4304} |
212 |
- eend $? |
213 |
-} |
214 |
- |
215 |
-stop() { |
216 |
- ebegin "Stopping ${SVCNAME}" |
217 |
- start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ |
218 |
- --pidfile ${PIDFILE} -u ${OWUID} |
219 |
- eend $? |
220 |
-} |
221 |
|
222 |
diff --git a/sys-fs/owfs/files/owftpd.confd b/sys-fs/owfs/files/owftpd.confd |
223 |
deleted file mode 100644 |
224 |
index fc93d2fd719..00000000000 |
225 |
--- a/sys-fs/owfs/files/owftpd.confd |
226 |
+++ /dev/null |
227 |
@@ -1,2 +0,0 @@ |
228 |
-# owfs owftpd configuration |
229 |
-OWFTPD_OPTS="--nozero -p 127.0.0.1:4381 -s 127.0.0.1:4304 --max_clients 5 --timeout_ftp 600" |
230 |
|
231 |
diff --git a/sys-fs/owfs/files/owftpd.initd-r1 b/sys-fs/owfs/files/owftpd.initd-r1 |
232 |
deleted file mode 100644 |
233 |
index 8bbf93b49dc..00000000000 |
234 |
--- a/sys-fs/owfs/files/owftpd.initd-r1 |
235 |
+++ /dev/null |
236 |
@@ -1,35 +0,0 @@ |
237 |
-#!/sbin/openrc-run |
238 |
-# Copyright 1999-2016 Gentoo Foundation |
239 |
-# Distributed under the terms of the GNU General Public License, v2 or later |
240 |
- |
241 |
-INSTANCE=${SVCNAME#*.} |
242 |
-PROGRAM=${SVCNAME%%.*} |
243 |
-PIDFILE=${PIDFILE:-/run/owfs/${PROGRAM}.pid} |
244 |
-OWUID=${OWUID:-owfs} |
245 |
-OWGID=${OWGID:-owfs} |
246 |
- |
247 |
-depend() { |
248 |
- need owserver |
249 |
- use logger |
250 |
-} |
251 |
- |
252 |
-start_pre() { |
253 |
- checkpath -d -m 0750 -o ${OWUID}:${OWGID} "$(dirname ${PIDFILE})" |
254 |
-} |
255 |
- |
256 |
-start() { |
257 |
- ebegin "Starting ${SVCNAME}" |
258 |
- start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ |
259 |
- --pidfile ${PIDFILE} --user ${OWUID}:${OWGID} -- \ |
260 |
- --pid-file ${PIDFILE} \ |
261 |
- --background --error_print 1 \ |
262 |
- ${OWFTPD_OPTS:---nozero -p 127.0.0.1:4381 -s 127.0.0.1:4304 --max_clients 5 --timeout_ftp 600} |
263 |
- eend $? |
264 |
-} |
265 |
- |
266 |
-stop() { |
267 |
- ebegin "Stopping ${SVCNAME}" |
268 |
- start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ |
269 |
- --pidfile ${PIDFILE} -u ${OWUID} |
270 |
- eend $? |
271 |
-} |
272 |
|
273 |
diff --git a/sys-fs/owfs/files/owhttpd.confd b/sys-fs/owfs/files/owhttpd.confd |
274 |
deleted file mode 100644 |
275 |
index 2a5200c3111..00000000000 |
276 |
--- a/sys-fs/owfs/files/owhttpd.confd |
277 |
+++ /dev/null |
278 |
@@ -1,2 +0,0 @@ |
279 |
-# owfs owhttpd configuration |
280 |
-OWHTTPD_OPTS="--nozero -p 127.0.0.1:4380 -s 127.0.0.1:4304" |
281 |
|
282 |
diff --git a/sys-fs/owfs/files/owhttpd.initd-r1 b/sys-fs/owfs/files/owhttpd.initd-r1 |
283 |
deleted file mode 100644 |
284 |
index cf3af54f50e..00000000000 |
285 |
--- a/sys-fs/owfs/files/owhttpd.initd-r1 |
286 |
+++ /dev/null |
287 |
@@ -1,35 +0,0 @@ |
288 |
-#!/sbin/openrc-run |
289 |
-# Copyright 1999-2016 Gentoo Foundation |
290 |
-# Distributed under the terms of the GNU General Public License, v2 or later |
291 |
- |
292 |
-INSTANCE=${SVCNAME#*.} |
293 |
-PROGRAM=${SVCNAME%%.*} |
294 |
-PIDFILE=${PIDFILE:-/run/owfs/${PROGRAM}.pid} |
295 |
-OWUID=${OWUID:-owfs} |
296 |
-OWGID=${OWGID:-owfs} |
297 |
- |
298 |
-depend() { |
299 |
- need owserver |
300 |
- use logger |
301 |
-} |
302 |
- |
303 |
-start_pre() { |
304 |
- checkpath -d -m 0750 -o ${OWUID}:${OWGID} "$(dirname ${PIDFILE})" |
305 |
-} |
306 |
- |
307 |
-start() { |
308 |
- ebegin "Starting ${SVCNAME}" |
309 |
- start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ |
310 |
- --pidfile ${PIDFILE} --user ${OWUID}:${OWGID} -- \ |
311 |
- --pid-file ${PIDFILE} \ |
312 |
- --background --error_print 1 \ |
313 |
- ${OWHTTPD_OPTS:---nozero -p 127.0.0.1:4380 -s 127.0.0.1:4304} |
314 |
- eend $? |
315 |
-} |
316 |
- |
317 |
-stop() { |
318 |
- ebegin "Stopping ${SVCNAME}" |
319 |
- start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ |
320 |
- --pidfile ${PIDFILE} -u ${OWUID} |
321 |
- eend $? |
322 |
-} |
323 |
|
324 |
diff --git a/sys-fs/owfs/files/owserver.confd b/sys-fs/owfs/files/owserver.confd |
325 |
deleted file mode 100644 |
326 |
index e764e2df10e..00000000000 |
327 |
--- a/sys-fs/owfs/files/owserver.confd |
328 |
+++ /dev/null |
329 |
@@ -1,2 +0,0 @@ |
330 |
-# owfs owserver configuration |
331 |
-OWSERVER_OPTS="--nozero -p 127.0.0.1:4304 -d /dev/ttyS0 --timeout_volatile 5" |
332 |
|
333 |
diff --git a/sys-fs/owfs/files/owserver.initd-r1 b/sys-fs/owfs/files/owserver.initd-r1 |
334 |
deleted file mode 100644 |
335 |
index 88b9790882f..00000000000 |
336 |
--- a/sys-fs/owfs/files/owserver.initd-r1 |
337 |
+++ /dev/null |
338 |
@@ -1,34 +0,0 @@ |
339 |
-#!/sbin/openrc-run |
340 |
-# Copyright 1999-2016 Gentoo Foundation |
341 |
-# Distributed under the terms of the GNU General Public License, v2 or later |
342 |
- |
343 |
-INSTANCE=${SVCNAME#*.} |
344 |
-PROGRAM=${SVCNAME%%.*} |
345 |
-PIDFILE=${PIDFILE:-/run/owfs/${PROGRAM}.pid} |
346 |
-OWUID=${OWUID:-owfs} |
347 |
-OWGID=${OWGID:-owfs} |
348 |
- |
349 |
-depend() { |
350 |
- use logger |
351 |
-} |
352 |
- |
353 |
-start_pre() { |
354 |
- checkpath -d -m 0750 -o ${OWUID}:${OWGID} "$(dirname ${PIDFILE})" |
355 |
-} |
356 |
- |
357 |
-start() { |
358 |
- ebegin "Starting ${SVCNAME}" |
359 |
- start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ |
360 |
- --pidfile ${PIDFILE} --user ${OWUID}:${OWGID} -- \ |
361 |
- --pid-file ${PIDFILE} \ |
362 |
- --background --error_print 1 \ |
363 |
- ${OWSERVER_OPTS:---nozero -p 127.0.0.1:4304 -d /dev/ttyS0} |
364 |
- eend $? |
365 |
-} |
366 |
- |
367 |
-stop() { |
368 |
- ebegin "Stopping ${SVCNAME}" |
369 |
- start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ |
370 |
- --pidfile ${PIDFILE} -u ${OWUID} |
371 |
- eend $? |
372 |
-} |
373 |
|
374 |
diff --git a/sys-fs/owfs/metadata.xml b/sys-fs/owfs/metadata.xml |
375 |
deleted file mode 100644 |
376 |
index 3643be9f41d..00000000000 |
377 |
--- a/sys-fs/owfs/metadata.xml |
378 |
+++ /dev/null |
379 |
@@ -1,25 +0,0 @@ |
380 |
-<?xml version="1.0" encoding="UTF-8"?> |
381 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
382 |
-<pkgmetadata> |
383 |
- <!-- maintainer-needed --> |
384 |
- <longdescription lang="en"> |
385 |
- OWFS (One Wire File System) is an easy way to use the powerful 1-wire system |
386 |
- of Dallas/Maxim. A simple and flexible program to monitor and control the |
387 |
- physical environment. You can write scripts to read temperature, flash |
388 |
- lights, write to an LCD, log and graph, ... |
389 |
- </longdescription> |
390 |
- <slots> |
391 |
- <subslots>Reflect ABI of libow.so.</subslots> |
392 |
- </slots> |
393 |
- <upstream> |
394 |
- <remote-id type="sourceforge">owfs</remote-id> |
395 |
- </upstream> |
396 |
- <use> |
397 |
- <flag name="ftdi">Enable support for USB FTDI chips via <pkg>dev-embedded/libftdi</pkg></flag> |
398 |
- <flag name="ftpd">Enable building the OWFS FTP server (owftpd)</flag> |
399 |
- <flag name="fuse">Enable building the FUSE-based OWFS client (owfs)</flag> |
400 |
- <flag name="httpd">Enable building the OWFS web server (owhttpd)</flag> |
401 |
- <flag name="parport">Enable support for the DS1410E parallel port adapter</flag> |
402 |
- <flag name="zeroconf">Enables support for zero-configuration networking via <pkg>net-dns/avahi</pkg></flag> |
403 |
- </use> |
404 |
-</pkgmetadata> |
405 |
|
406 |
diff --git a/sys-fs/owfs/owfs-3.2_p2-r2.ebuild b/sys-fs/owfs/owfs-3.2_p2-r2.ebuild |
407 |
deleted file mode 100644 |
408 |
index 49482396596..00000000000 |
409 |
--- a/sys-fs/owfs/owfs-3.2_p2-r2.ebuild |
410 |
+++ /dev/null |
411 |
@@ -1,192 +0,0 @@ |
412 |
-# Copyright 1999-2020 Gentoo Authors |
413 |
-# Distributed under the terms of the GNU General Public License v2 |
414 |
- |
415 |
-EAPI=6 |
416 |
- |
417 |
-PYTHON_COMPAT=( python2_7 ) |
418 |
-DISTUTILS_OPTIONAL=1 |
419 |
- |
420 |
-inherit autotools distutils-r1 linux-info perl-functions systemd user |
421 |
- |
422 |
-MY_P="${P/_/}" |
423 |
- |
424 |
-DESCRIPTION="Access 1-Wire devices like a filesystem" |
425 |
-SRC_URI="mirror://sourceforge/owfs/${MY_P}.tar.gz" |
426 |
-HOMEPAGE="https://owfs.org/ https://sourceforge.net/projects/owfs/" |
427 |
-KEYWORDS="amd64 arm x86" |
428 |
- |
429 |
-# Upstream uses crazy SONAME, https://github.com/owfs/owfs/commit/c696fa9b9b44f49c96b9f1c2b3159d277e0c1273 |
430 |
-SLOT="0/${PV}" |
431 |
-LICENSE="GPL-2" |
432 |
- |
433 |
-IUSE="debug ftdi ftpd fuse httpd parport perl python tcl usb zeroconf" |
434 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
435 |
- |
436 |
-RDEPEND=" |
437 |
- ftdi? ( dev-embedded/libftdi:0 ) |
438 |
- fuse? ( sys-fs/fuse:0= ) |
439 |
- perl? ( dev-lang/perl:= ) |
440 |
- parport? ( sys-kernel/linux-headers ) |
441 |
- python? ( ${PYTHON_DEPS} ) |
442 |
- tcl? ( dev-lang/tcl:0= ) |
443 |
- usb? ( virtual/libusb:0 ) |
444 |
- zeroconf? ( net-dns/avahi[mdnsresponder-compat] ) |
445 |
-" |
446 |
- |
447 |
-DEPEND="${RDEPEND} |
448 |
- perl? ( dev-lang/swig ) |
449 |
- python? ( dev-lang/swig ) |
450 |
-" |
451 |
- |
452 |
-PATCHES=( |
453 |
- "${FILESDIR}"/${PN}-3.1-vendordir.patch |
454 |
- "${FILESDIR}"/${PN}-3.1p4-sysmacros.patch |
455 |
-) |
456 |
- |
457 |
-S="${WORKDIR}/${MY_P}" |
458 |
- |
459 |
-OWUID="${OWUID:-owfs}" |
460 |
-OWGID="${OWGID:-owfs}" |
461 |
- |
462 |
-pkg_setup() { |
463 |
- if use kernel_linux; then |
464 |
- linux-info_pkg_setup |
465 |
- |
466 |
- if linux_config_exists; then |
467 |
- if ! linux_chkconfig_present W1; then |
468 |
- ewarn "CONFIG_W1 isn't set. You will not be able to use 1-wire bus on this system!" |
469 |
- fi |
470 |
- else |
471 |
- elog "Cannot find a linux kernel configuration. Continuing anyway." |
472 |
- fi |
473 |
- fi |
474 |
- |
475 |
- use perl && perl_set_version |
476 |
- |
477 |
- enewgroup ${OWGID} 150 |
478 |
- enewuser ${OWUID} 150 -1 -1 ${OWGID} |
479 |
-} |
480 |
- |
481 |
-src_prepare() { |
482 |
- default |
483 |
- |
484 |
- # Support user's CFLAGS and LDFLAGS. |
485 |
- sed -i "s/@CPPFLAGS@/@CPPFLAGS@ ${CFLAGS}/" \ |
486 |
- module/swig/perl5/OW/Makefile.linux.in || die |
487 |
- sed -i "s/@LIBS@/@LIBS@ ${LDFLAGS}/" \ |
488 |
- module/swig/perl5/OW/Makefile.linux.in || die |
489 |
- |
490 |
- eautoreconf |
491 |
-} |
492 |
- |
493 |
-src_configure() { |
494 |
- # disable owpython since we can build python anyway |
495 |
- # and without it, we don't have to fix the build ;) |
496 |
- # disable owphp because it is not compatible with PHP-7, bug #651106 |
497 |
- local myeconf=( |
498 |
- $(use_enable debug) |
499 |
- $(use_enable fuse owfs) |
500 |
- $(use_enable ftdi) |
501 |
- $(use_enable ftpd owftpd) |
502 |
- $(use_enable httpd owhttpd) |
503 |
- $(use_enable parport) |
504 |
- $(use_enable perl owperl) |
505 |
- --disable-owphp |
506 |
- --disable-owpython |
507 |
- $(use_enable tcl owtcl) |
508 |
- $(use_enable zeroconf avahi) |
509 |
- $(use_enable zeroconf zero) |
510 |
- $(use_enable usb) |
511 |
- --with-systemdsystemunitdir=$(systemd_get_systemunitdir) |
512 |
- ) |
513 |
- |
514 |
- if use httpd || use ftpd || use fuse; then |
515 |
- myeconf+=( --enable-owserver ) |
516 |
- else |
517 |
- myeconf+=( --disable-owserver ) |
518 |
- fi |
519 |
- |
520 |
- econf ${myeconf[@]} |
521 |
-} |
522 |
- |
523 |
-src_compile() { |
524 |
- default |
525 |
- |
526 |
- if use python; then |
527 |
- local CFLAGS="${CFLAGS} -fno-strict-aliasing" |
528 |
- |
529 |
- pushd module/ownet/python > /dev/null || die |
530 |
- distutils-r1_src_compile |
531 |
- popd > /dev/null || die |
532 |
- |
533 |
- pushd module/swig/python > /dev/null || die |
534 |
- emake ow_wrap.c |
535 |
- distutils-r1_src_compile |
536 |
- popd > /dev/null || die |
537 |
- fi |
538 |
-} |
539 |
- |
540 |
-src_test() { :; } |
541 |
- |
542 |
-src_install() { |
543 |
- default |
544 |
- |
545 |
- if use httpd || use ftpd || use fuse; then |
546 |
- newinitd "${FILESDIR}"/owserver.initd-r1 owserver |
547 |
- newconfd "${FILESDIR}"/owserver.confd owserver |
548 |
- |
549 |
- for i in httpd ftpd; do |
550 |
- if use ${i}; then |
551 |
- newinitd "${FILESDIR}"/ow${i}.initd-r1 ow${i} |
552 |
- newconfd "${FILESDIR}"/ow${i}.confd ow${i} |
553 |
- fi |
554 |
- done |
555 |
- |
556 |
- if use fuse; then |
557 |
- dodir /var/lib/owfs |
558 |
- dodir /var/lib/owfs/mnt |
559 |
- newinitd "${FILESDIR}"/owfs.initd-r1 owfs |
560 |
- newconfd "${FILESDIR}"/owfs.confd owfs |
561 |
- fi |
562 |
- fi |
563 |
- |
564 |
- use perl && perl_delete_localpod |
565 |
- |
566 |
- if use python; then |
567 |
- pushd module/ownet/python > /dev/null || die |
568 |
- distutils-r1_src_install |
569 |
- popd > /dev/null || die |
570 |
- |
571 |
- pushd module/swig/python > /dev/null || die |
572 |
- distutils-r1_src_install |
573 |
- popd > /dev/null || die |
574 |
- fi |
575 |
- |
576 |
- find "${D}" -name '*.la' -delete || die |
577 |
-} |
578 |
- |
579 |
-pkg_postinst() { |
580 |
- if use httpd || use ftpd || use fuse; then |
581 |
- echo |
582 |
- if [[ ${OWUID} != root ]]; then |
583 |
- ewarn |
584 |
- ewarn "In order to allow the OWFS daemon user '${OWUID}' to read" |
585 |
- ewarn "from and/or write to a 1 wire bus controller device, make" |
586 |
- ewarn "sure the user has appropriate permission to access the" |
587 |
- ewarn "corresponding device node/path (e.g. /dev/ttyS0), for example" |
588 |
- ewarn "by adding the user to the group 'uucp' (for serial devices)" |
589 |
- ewarn "or 'usb' (for USB devices accessed via usbfs on /proc/bus/usb)," |
590 |
- ewarn "or install an appropriate UDEV rules (see http://owfs.org/index.php?page=udev-and-usb" |
591 |
- ewarn "for more information)." |
592 |
- ewarn |
593 |
- if use fuse; then |
594 |
- ewarn "In order to allow regular users to read from and/or write to" |
595 |
- ewarn "1 wire bus devices accessible via the owfs FUSE filesystem" |
596 |
- ewarn "client and its filesystem mountpoint, make sure the user is" |
597 |
- ewarn "a member of the group '${OWGID}'." |
598 |
- ewarn |
599 |
- fi |
600 |
- echo |
601 |
- fi |
602 |
- fi |
603 |
-} |