1 |
commit: d7eac327a4a996893146f36d52f7ed3463ab6d31 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 20:03:22 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 21:59:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7eac327 |
7 |
|
8 |
inet-dialup/capifwd: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/573846 |
11 |
|
12 |
Also update to EAPI=6 |
13 |
|
14 |
Package-Manager: portage-2.2.26 |
15 |
|
16 |
net-dialup/capifwd/capifwd-0.6.3-r2.ebuild | 42 ++++++++++++++++++++++++++++++ |
17 |
net-dialup/capifwd/files/capifwd.init | 4 +-- |
18 |
2 files changed, 43 insertions(+), 3 deletions(-) |
19 |
|
20 |
diff --git a/net-dialup/capifwd/capifwd-0.6.3-r2.ebuild b/net-dialup/capifwd/capifwd-0.6.3-r2.ebuild |
21 |
new file mode 100644 |
22 |
index 0000000..621c061 |
23 |
--- /dev/null |
24 |
+++ b/net-dialup/capifwd/capifwd-0.6.3-r2.ebuild |
25 |
@@ -0,0 +1,42 @@ |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI=6 |
31 |
+ |
32 |
+inherit eutils autotools |
33 |
+ |
34 |
+DESCRIPTION="A daemon forwarding CAPI messages to capi20proxy clients" |
35 |
+HOMEPAGE="http://capi20proxy.sourceforge.net/" |
36 |
+SRC_URI="mirror://sourceforge/capi20proxy/${P}.tar.bz2" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~x86" |
41 |
+IUSE="" |
42 |
+ |
43 |
+DEPEND="net-dialup/capi4k-utils" |
44 |
+ |
45 |
+S="${WORKDIR}/linux-server" |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ eapply -p0 "${FILESDIR}/${P}.patch" |
49 |
+ eapply -p0 "${FILESDIR}/${P}-amd64.patch" |
50 |
+ |
51 |
+ # Replace obsolete sys_errlist with strerror |
52 |
+ sed -i -e 's:sys_errlist *\[ *errno *\]:strerror(errno):' \ |
53 |
+ src/capifwd.c src/capi/waitforsignal.c src/auth/auth.c || \ |
54 |
+ die "failed to replace sys_errlist" |
55 |
+ |
56 |
+ eapply_user |
57 |
+ eautoreconf |
58 |
+} |
59 |
+ |
60 |
+src_install() { |
61 |
+ emake DESTDIR="$D" install |
62 |
+ dodoc AUTHORS ChangeLog README |
63 |
+ |
64 |
+ # install init-script |
65 |
+ newinitd "${FILESDIR}/capifwd.init" capifwd |
66 |
+ newconfd "${FILESDIR}/capifwd.conf" capifwd |
67 |
+} |
68 |
|
69 |
diff --git a/net-dialup/capifwd/files/capifwd.init b/net-dialup/capifwd/files/capifwd.init |
70 |
index 0c339f3..f49bc1e 100644 |
71 |
--- a/net-dialup/capifwd/files/capifwd.init |
72 |
+++ b/net-dialup/capifwd/files/capifwd.init |
73 |
@@ -1,10 +1,8 @@ |
74 |
-#!/sbin/runscript |
75 |
+#!/sbin/openrc-run |
76 |
# Copyright 1999-2004 Gentoo Foundation |
77 |
# Distributed under the terms of the GNU General Public License v2 |
78 |
# $Id$ |
79 |
|
80 |
-opts="start stop" |
81 |
- |
82 |
depend() { |
83 |
need capi |
84 |
} |