1 |
commit: b27492ed888c1a294152501ac9a491e7651abd03 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 23:36:31 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 4 00:08:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b27492ed |
7 |
|
8 |
net-misc/iaxmodem: 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-misc/iaxmodem/files/iaxmodem.initd | 4 +- |
15 |
net-misc/iaxmodem/iaxmodem-1.2.0-r1.ebuild | 106 +++++++++++++++++++++++++++++ |
16 |
net-misc/iaxmodem/iaxmodem-1.3.0-r1.ebuild | 106 +++++++++++++++++++++++++++++ |
17 |
3 files changed, 214 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/net-misc/iaxmodem/files/iaxmodem.initd b/net-misc/iaxmodem/files/iaxmodem.initd |
20 |
index 07b2f2a..ae5b461 100644 |
21 |
--- a/net-misc/iaxmodem/files/iaxmodem.initd |
22 |
+++ b/net-misc/iaxmodem/files/iaxmodem.initd |
23 |
@@ -1,5 +1,5 @@ |
24 |
-#!/sbin/runscript |
25 |
-# Copyright 1999-2008 Gentoo Foundation |
26 |
+#!/sbin/openrc-run |
27 |
+# Copyright 1999-2016 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
# $Id$ |
30 |
|
31 |
|
32 |
diff --git a/net-misc/iaxmodem/iaxmodem-1.2.0-r1.ebuild b/net-misc/iaxmodem/iaxmodem-1.2.0-r1.ebuild |
33 |
new file mode 100644 |
34 |
index 0000000..98a1320 |
35 |
--- /dev/null |
36 |
+++ b/net-misc/iaxmodem/iaxmodem-1.2.0-r1.ebuild |
37 |
@@ -0,0 +1,106 @@ |
38 |
+# Copyright 1999-2016 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Id$ |
41 |
+ |
42 |
+EAPI="5" |
43 |
+ |
44 |
+inherit eutils toolchain-funcs multilib |
45 |
+ |
46 |
+DESCRIPTION="Software modem that uses an IAX channel instead of a traditional phone line" |
47 |
+HOMEPAGE="http://sourceforge.net/projects/iaxmodem/" |
48 |
+SRC_URI="mirror://sourceforge/iaxmodem/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+ |
54 |
+IUSE="" |
55 |
+ |
56 |
+RDEPEND="media-libs/tiff:= |
57 |
+ sys-process/procps" |
58 |
+ |
59 |
+DEPEND="${RDEPEND}" |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ # fix header file position |
63 |
+ sed -i -e 's:iax/iax-client\.h:iax-client.h:g' iaxmodem.c || die |
64 |
+ |
65 |
+ # fix broken line terminators |
66 |
+ sed -i -e 's:\r::g' -e 's:--s$:--:g' -e 's:$:\r:g' iaxmodem.inf || die |
67 |
+ |
68 |
+ # fix installation of libiax2 headers (though we don't need them) |
69 |
+ sed -i -e 's: \(\$(includedir)/\): $(DESTDIR)\1:g' lib/libiax2/src/Makefile.in || die |
70 |
+ |
71 |
+ # patch configure (we compile libs for ourself) |
72 |
+ sed -i -e 's:^\(cd\|./configure\):# \1:g' configure || die |
73 |
+ sed -i -e 's:build-libiax build-libspandsp ::g' Makefile.in || die |
74 |
+ |
75 |
+ # fix dumb x86_64 libdir handling |
76 |
+ sed -i -e 's: \(x86_64-\*)\): _DISABLED_\1:g' lib/spandsp/configure || die |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ cd "${S}/lib/libiax2" || die |
81 |
+ econf --disable-static \ |
82 |
+ --libdir=/usr/$(get_libdir)/iaxmodem \ |
83 |
+ --datadir=/usr/share/iaxmodem/libiax2 |
84 |
+ |
85 |
+ cd "${S}/lib/spandsp" || die |
86 |
+ econf --disable-static \ |
87 |
+ --libdir=/usr/$(get_libdir)/iaxmodem \ |
88 |
+ --datadir=/usr/share/iaxmodem |
89 |
+ |
90 |
+ cd "${S}" |
91 |
+ ./configure || die "configure iaxmodem failed" || die |
92 |
+} |
93 |
+ |
94 |
+src_compile() { |
95 |
+ cd "${S}/lib/libiax2" || die |
96 |
+ emake |
97 |
+ |
98 |
+ cd "${S}/lib/spandsp" || die |
99 |
+ emake |
100 |
+ |
101 |
+ cd "${S}" |
102 |
+ emake OBJS="iaxmodem.o" CC=$(tc-getCC) \ |
103 |
+ LDFLAGS="${LDFLAGS} -Wl,-rpath,/usr/$(get_libdir)/iaxmodem \ |
104 |
+ -Llib/spandsp/src/.libs -Llib/libiax2/src/.libs -lm -lutil -ltiff -lspandsp -liax" |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ cd "${S}/lib/libiax2" || die |
109 |
+ emake DESTDIR="${D}" install |
110 |
+ |
111 |
+ cd "${S}/lib/spandsp" || die |
112 |
+ emake DESTDIR="${D}" install |
113 |
+ |
114 |
+ cd "${S}" |
115 |
+ dosbin iaxmodem |
116 |
+ |
117 |
+ # remove libiax and spandsp headers, we don't need them |
118 |
+ rm -rf "${D}usr/include" "${D}usr/bin/iax-config" || die |
119 |
+ |
120 |
+ # install init-script + conf |
121 |
+ newinitd "${FILESDIR}/iaxmodem.initd" iaxmodem |
122 |
+ newconfd "${FILESDIR}/iaxmodem.confd" iaxmodem |
123 |
+ |
124 |
+ # install docs |
125 |
+ doman iaxmodem.1 |
126 |
+ newdoc CHANGES ChangeLog |
127 |
+ newdoc lib/libiax2/ChangeLog ChangeLog.libiax2 |
128 |
+ newdoc lib/spandsp/ChangeLog ChangeLog.spandsp |
129 |
+ dodoc FAQ README lib/spandsp/DueDiligence |
130 |
+ |
131 |
+ # install sample configs |
132 |
+ insinto /etc/iaxmodem |
133 |
+ newins "${FILESDIR}/iaxmodem.cfg" default |
134 |
+ insinto /usr/share/iaxmodem |
135 |
+ doins config.ttyIAX iaxmodem-cfg.ttyIAX iaxmodem.inf |
136 |
+ |
137 |
+ # install logrotate rule |
138 |
+ insinto /etc/logrotate.d |
139 |
+ newins "${FILESDIR}/iaxmodem.logrotated" iaxmodem |
140 |
+ |
141 |
+ # create log dir |
142 |
+ keepdir /var/log/iaxmodem |
143 |
+} |
144 |
|
145 |
diff --git a/net-misc/iaxmodem/iaxmodem-1.3.0-r1.ebuild b/net-misc/iaxmodem/iaxmodem-1.3.0-r1.ebuild |
146 |
new file mode 100644 |
147 |
index 0000000..f0ee6ee |
148 |
--- /dev/null |
149 |
+++ b/net-misc/iaxmodem/iaxmodem-1.3.0-r1.ebuild |
150 |
@@ -0,0 +1,106 @@ |
151 |
+# Copyright 1999-2016 Gentoo Foundation |
152 |
+# Distributed under the terms of the GNU General Public License v2 |
153 |
+# $Id$ |
154 |
+ |
155 |
+EAPI="5" |
156 |
+ |
157 |
+inherit eutils toolchain-funcs multilib |
158 |
+ |
159 |
+DESCRIPTION="Software modem that uses an IAX channel instead of a traditional phone line" |
160 |
+HOMEPAGE="http://sourceforge.net/projects/iaxmodem/" |
161 |
+SRC_URI="mirror://sourceforge/iaxmodem/${P}.tar.gz" |
162 |
+ |
163 |
+LICENSE="GPL-2" |
164 |
+SLOT="0" |
165 |
+KEYWORDS="~amd64 ~x86" |
166 |
+ |
167 |
+IUSE="" |
168 |
+ |
169 |
+RDEPEND="media-libs/tiff:= |
170 |
+ sys-process/procps" |
171 |
+ |
172 |
+DEPEND="${RDEPEND}" |
173 |
+ |
174 |
+src_prepare() { |
175 |
+ # fix header file position |
176 |
+ sed -i -e 's:iax/iax-client\.h:iax-client.h:g' iaxmodem.c || die |
177 |
+ |
178 |
+ # fix broken line terminators |
179 |
+ sed -i -e 's:\r::g' -e 's:--s$:--:g' -e 's:$:\r:g' iaxmodem.inf || die |
180 |
+ |
181 |
+ # fix installation of libiax2 headers (though we don't need them) |
182 |
+ sed -i -e 's: \(\$(includedir)/\): $(DESTDIR)\1:g' lib/libiax2/src/Makefile.in || die |
183 |
+ |
184 |
+ # patch configure (we compile libs for ourself) |
185 |
+ sed -i -e 's:^\(cd\|./configure\):# \1:g' configure || die |
186 |
+ sed -i -e 's:build-libiax build-libspandsp ::g' Makefile.in || die |
187 |
+ |
188 |
+ # fix dumb x86_64 libdir handling |
189 |
+ sed -i -e 's: \(x86_64-\*)\): _DISABLED_\1:g' lib/spandsp/configure || die |
190 |
+} |
191 |
+ |
192 |
+src_configure() { |
193 |
+ cd "${S}/lib/libiax2" || die |
194 |
+ econf --disable-static \ |
195 |
+ --libdir=/usr/$(get_libdir)/iaxmodem \ |
196 |
+ --datadir=/usr/share/iaxmodem/libiax2 |
197 |
+ |
198 |
+ cd "${S}/lib/spandsp" || die |
199 |
+ econf --disable-static \ |
200 |
+ --libdir=/usr/$(get_libdir)/iaxmodem \ |
201 |
+ --datadir=/usr/share/iaxmodem |
202 |
+ |
203 |
+ cd "${S}" |
204 |
+ ./configure || die "configure iaxmodem failed" |
205 |
+} |
206 |
+ |
207 |
+src_compile() { |
208 |
+ cd "${S}/lib/libiax2" || die |
209 |
+ emake |
210 |
+ |
211 |
+ cd "${S}/lib/spandsp" || die |
212 |
+ emake |
213 |
+ |
214 |
+ cd "${S}" |
215 |
+ emake OBJS="iaxmodem.o" CC=$(tc-getCC) \ |
216 |
+ LDFLAGS="${LDFLAGS} -Wl,-rpath,/usr/$(get_libdir)/iaxmodem \ |
217 |
+ -Llib/spandsp/src/.libs -Llib/libiax2/src/.libs -lm -lutil -ltiff -lspandsp -liax" |
218 |
+} |
219 |
+ |
220 |
+src_install() { |
221 |
+ cd "${S}/lib/libiax2" || die |
222 |
+ emake DESTDIR="${D}" install |
223 |
+ |
224 |
+ cd "${S}/lib/spandsp" || die |
225 |
+ emake DESTDIR="${D}" install |
226 |
+ |
227 |
+ cd "${S}" |
228 |
+ dosbin iaxmodem |
229 |
+ |
230 |
+ # remove libiax and spandsp headers, we don't need them |
231 |
+ rm -rf "${D}usr/include" "${D}usr/bin/iax-config" || die |
232 |
+ |
233 |
+ # install init-script + conf |
234 |
+ newinitd "${FILESDIR}/iaxmodem.initd" iaxmodem |
235 |
+ newconfd "${FILESDIR}/iaxmodem.confd" iaxmodem |
236 |
+ |
237 |
+ # install docs |
238 |
+ doman iaxmodem.1 |
239 |
+ newdoc CHANGES ChangeLog |
240 |
+ newdoc lib/libiax2/ChangeLog ChangeLog.libiax2 |
241 |
+ newdoc lib/spandsp/ChangeLog ChangeLog.spandsp |
242 |
+ dodoc FAQ README lib/spandsp/DueDiligence |
243 |
+ |
244 |
+ # install sample configs |
245 |
+ insinto /etc/iaxmodem |
246 |
+ newins "${FILESDIR}/iaxmodem.cfg" default |
247 |
+ insinto /usr/share/iaxmodem |
248 |
+ doins config.ttyIAX iaxmodem-cfg.ttyIAX iaxmodem.inf |
249 |
+ |
250 |
+ # install logrotate rule |
251 |
+ insinto /etc/logrotate.d |
252 |
+ newins "${FILESDIR}/iaxmodem.logrotated" iaxmodem |
253 |
+ |
254 |
+ # create log dir |
255 |
+ keepdir /var/log/iaxmodem |
256 |
+} |