1 |
commit: 365865e702573d98ea583186a001fae04370667c |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 17:19:44 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 17:21:41 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=365865e7 |
7 |
|
8 |
net-voip/gnugk: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
net-voip/gnugk/files/gnugk.rc6 | 4 +- |
15 |
net-voip/gnugk/gnugk-3.4-r1.ebuild | 127 +++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 129 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-voip/gnugk/files/gnugk.rc6 b/net-voip/gnugk/files/gnugk.rc6 |
19 |
index 886534f..5bfe117 100644 |
20 |
--- a/net-voip/gnugk/files/gnugk.rc6 |
21 |
+++ b/net-voip/gnugk/files/gnugk.rc6 |
22 |
@@ -1,5 +1,5 @@ |
23 |
-#!/sbin/runscript |
24 |
-# Copyright 1999-2004 Gentoo Foundation |
25 |
+#!/sbin/openrc-run |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
# $Id$ |
29 |
|
30 |
|
31 |
diff --git a/net-voip/gnugk/gnugk-3.4-r1.ebuild b/net-voip/gnugk/gnugk-3.4-r1.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..de164c6 |
34 |
--- /dev/null |
35 |
+++ b/net-voip/gnugk/gnugk-3.4-r1.ebuild |
36 |
@@ -0,0 +1,127 @@ |
37 |
+# Copyright 1999-2016 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+EAPI="6" |
42 |
+ |
43 |
+inherit versionator |
44 |
+ |
45 |
+MY_P1=${PN}-$(replace_version_separator 2 -) |
46 |
+MY_P2=${PN}-$(get_version_component_range 1-2) |
47 |
+ |
48 |
+DESCRIPTION="GNU H.323 gatekeeper" |
49 |
+HOMEPAGE="http://www.gnugk.org/" |
50 |
+SRC_URI="mirror://sourceforge/openh323gk/${MY_P1}.tar.gz" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+# dev-db/firebird isn't keyworded for ppc but firebird IUSE is masked for ppc |
55 |
+KEYWORDS="~amd64 ~ppc ~x86" |
56 |
+IUSE="doc firebird lua mysql odbc postgres radius snmp sqlite ssh linguas_en linguas_es linguas_fr" |
57 |
+REQUIRED_USE="doc? ( |
58 |
+ || ( linguas_en linguas_es linguas_fr ) |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+RDEPEND="net-libs/ptlib:= |
63 |
+ net-libs/h323plus:= |
64 |
+ dev-libs/openssl |
65 |
+ firebird? ( dev-db/firebird ) |
66 |
+ lua? ( dev-lang/lua ) |
67 |
+ mysql? ( virtual/mysql ) |
68 |
+ odbc? ( dev-db/unixODBC ) |
69 |
+ postgres? ( dev-db/postgresql ) |
70 |
+ snmp? ( net-analyzer/net-snmp ) |
71 |
+ ssh? ( net-libs/libssh ) |
72 |
+ sqlite? ( dev-db/sqlite:3 )" |
73 |
+DEPEND="${RDEPEND} |
74 |
+ doc? ( app-text/linuxdoc-tools )" |
75 |
+ |
76 |
+S=${WORKDIR}/${MY_P2} |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ eapply -p1 "${FILESDIR}"/${PN}-3.4-ptrace.patch |
80 |
+ eapply "${FILESDIR}"/${PN}-3.2.2-h323plus-buildopts.patch |
81 |
+ eapply "${FILESDIR}"/${PN}-3.2.2-lua.cxx-toolkit_h.patch |
82 |
+ |
83 |
+ default |
84 |
+} |
85 |
+ |
86 |
+# TODO: investigate possible ebuild conversion to use cmake |
87 |
+src_configure() { |
88 |
+ # --with-large-fdset=4096 is added because of bug #128102 |
89 |
+ # and it is recommended in the online manual |
90 |
+ econf \ |
91 |
+ $(use_enable firebird) \ |
92 |
+ $(use_enable lua) \ |
93 |
+ $(use_enable mysql) \ |
94 |
+ $(use_enable postgres pgsql) \ |
95 |
+ $(use_enable odbc unixodbc) \ |
96 |
+ $(use_enable radius) \ |
97 |
+ $(use_enable snmp netsnmp) \ |
98 |
+ $(use_enable sqlite) \ |
99 |
+ $(use_enable ssh libssh) \ |
100 |
+ --with-large-fdset=4096 |
101 |
+} |
102 |
+ |
103 |
+src_compile() { |
104 |
+ # PASN_NOPRINT should be set for -debug but it's buggy |
105 |
+ # better to prevent issues and keep default settings |
106 |
+ # `make debugdepend debugshared` and `make debug` failed (so no debug) |
107 |
+ # `make optdepend optnoshared` also failed (so no static) |
108 |
+ |
109 |
+ # splitting emake calls fixes parallel build issue |
110 |
+ emake optdepend |
111 |
+ emake \ |
112 |
+ PT_LIBDIR="$(ptlib-config --libdir)" \ |
113 |
+ OH323_LIBDIR="${EPREFIX}"/usr/lib \ |
114 |
+ optshared |
115 |
+ # build tool addpasswd |
116 |
+ emake -C addpasswd PTLIBDIR="$(ptlib-config --ptlibdir)" |
117 |
+ |
118 |
+ if use doc; then |
119 |
+ cd docs/manual |
120 |
+ |
121 |
+ if use linguas_en; then |
122 |
+ emake html |
123 |
+ fi |
124 |
+ |
125 |
+ if use linguas_es; then |
126 |
+ emake html-es |
127 |
+ fi |
128 |
+ |
129 |
+ if use linguas_fr; then |
130 |
+ emake html-fr |
131 |
+ fi |
132 |
+ cd ../.. |
133 |
+ fi |
134 |
+} |
135 |
+ |
136 |
+src_install() { |
137 |
+ dosbin obj_*_*_*/${PN} |
138 |
+ dosbin addpasswd/obj_*_*_*/addpasswd |
139 |
+ |
140 |
+ dodir /etc/${PN} |
141 |
+ insinto /etc/${PN} |
142 |
+ doins etc/* |
143 |
+ |
144 |
+ dodoc changes.txt readme.txt |
145 |
+ dodoc docs/*.txt docs/*.pdf |
146 |
+ |
147 |
+ if use doc; then |
148 |
+ if use linguas_en; then |
149 |
+ dohtml docs/manual/manual*.html |
150 |
+ fi |
151 |
+ if use linguas_fr; then |
152 |
+ dohtml docs/manual/fr/manual-fr*.html |
153 |
+ fi |
154 |
+ if use linguas_es; then |
155 |
+ dohtml docs/manual/es/manual-es*.html |
156 |
+ fi |
157 |
+ fi |
158 |
+ |
159 |
+ doman docs/${PN}.1 docs/addpasswd.1 |
160 |
+ |
161 |
+ newinitd "${FILESDIR}"/${PN}.rc6 ${PN} |
162 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
163 |
+} |