Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/capi4hylafax/
Date: Wed, 04 May 2016 00:10:41
Message-Id: 1462320517.73947448a279bf3a9d131357349db19014e8a88d.wizardedit@gentoo
1 commit: 73947448a279bf3a9d131357349db19014e8a88d
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 23:11:20 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=73947448
7
8 net-misc/capi4hylafax: remove old versions
9
10 Package-Manager: portage-2.2.26
11
12 .../capi4hylafax-01.03.00.99.300.20.ebuild | 155 ---------------------
13 .../capi4hylafax-01.03.00.99.300.3-r1.ebuild | 142 -------------------
14 .../capi4hylafax-01.03.00.99.300.9.ebuild | 133 ------------------
15 3 files changed, 430 deletions(-)
16
17 diff --git a/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.20.ebuild b/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.20.ebuild
18 deleted file mode 100644
19 index d4f049f..0000000
20 --- a/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.20.ebuild
21 +++ /dev/null
22 @@ -1,155 +0,0 @@
23 -# Copyright 1999-2016 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -# $Id$
26 -
27 -EAPI=6
28 -
29 -inherit eutils versionator autotools
30 -
31 -FAX_SPOOL_DIR="${ROOT}/var/spool/fax"
32 -
33 -MY_PV1="$(get_version_component_range 1-4)"
34 -MY_PV2="$(get_version_component_range 5)"
35 -MY_PV3="$(get_version_component_range 6)"
36 -MY_P="${PN}_${MY_PV1}.svn.${MY_PV2}"
37 -
38 -DESCRIPTION="capi4hylafax adds a faxcapi modem to the hylafax enviroment"
39 -SRC_URI="mirror://debian/pool/main/c/capi4hylafax/${MY_P}.orig.tar.gz
40 - mirror://debian/pool/main/c/capi4hylafax/${MY_P}-${MY_PV3}.debian.tar.gz"
41 -HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html"
42 -
43 -S="${WORKDIR}/${PN}-svn"
44 -
45 -SLOT="0"
46 -LICENSE="GPL-2"
47 -KEYWORDS="~amd64 ~ppc ~x86"
48 -
49 -DEPEND="net-dialup/capi4k-utils
50 - app-shells/bash:0
51 - media-libs/tiff:0
52 - virtual/jpeg:0
53 - sys-libs/zlib"
54 -
55 -RDEPEND="${DEPEND}
56 - dev-util/dialog"
57 -
58 -DOCS=( AUTHORS ChangeLog Readme_src )
59 -HTML_DOCS=( README.html LIESMICH.html )
60 -
61 -src_prepare() {
62 - EPATCH_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="patch" \
63 - EPATCH_FORCE="yes" epatch
64 -
65 - eapply_user
66 -
67 - eautoreconf
68 -
69 - mv ../debian . || die
70 -
71 - # fix location of fax spool
72 - sed -e "s:/var/spool/hylafax:${FAX_SPOOL_DIR}:g" \
73 - -i config.faxCAPI \
74 - -i Readme_src \
75 - -i src/defaults.h.in \
76 - -i debian/*.1 || die
77 -
78 - # fix location of fax config
79 - sed -i -e "s:/etc/hylafax:${FAX_SPOOL_DIR}/etc:g" setupconffile || die
80 -
81 - # fix name and location of logfile
82 - sed -e "s:/var/spool/fax/log/capi4hylafax:/var/log/${PN}.log:" \
83 - -i config.faxCAPI || die
84 -
85 - sed -e "s:/tmp/capifax.log:/var/log/${PN}.log:" \
86 - -i src/defaults.h.in config.faxCAPI || die
87 -
88 - # patch man pages
89 - sed -e "s:/usr/share/doc/capi4hylafax/:/usr/share/doc/${PF}/html/:g" \
90 - -e "s:c2send:c2faxsend:g" \
91 - -e "s:c2recv:c2faxrecv:g" \
92 - -e "s:CAPI4HYLAFAXCONFIG \"1\":C2FAXADDMODEM \"8\":g" \
93 - -e "s:capi4hylafaxconfig:c2faxaddmodem:g" \
94 - -i debian/*.1 || die
95 -
96 - cp -f debian/capi4hylafaxconfig.1 debian/c2faxaddmodem.8 || die
97 -}
98 -
99 -src_configure() {
100 - econf --with-hylafax-spooldir="${FAX_SPOOL_DIR}"
101 -}
102 -
103 -src_install() {
104 - keepdir "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status}
105 - fowners uucp:uucp "${FAX_SPOOL_DIR}" "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status}
106 - fperms 0700 "${FAX_SPOOL_DIR}"
107 -
108 - default
109 -
110 - # install setup script
111 - newsbin setupconffile c2faxaddmodem
112 -
113 - # install sample config
114 - insinto "${FAX_SPOOL_DIR}/etc"
115 - newins config.faxCAPI config.faxCAPI.default
116 -
117 - # install docs
118 - newdoc debian/changelog ChangeLog.debian
119 -
120 - # install man pages
121 - doman debian/c2fax*.[18]
122 -
123 - # install examples
124 - insinto /usr/share/doc/${PF}/examples
125 - doins sample_faxrcvd config.faxCAPI fritz_pic.tif GenerateFileMail.pl
126 - newins sample_AVMC4_config.faxCAPI config.faxCAPI_AVMC4
127 - newins debian/faxsend sample_faxsend
128 -
129 - # finally install init-script + config
130 - newinitd "${FILESDIR}/${PN}.initd" ${PN}
131 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
132 -}
133 -
134 -pkg_postinst() {
135 - einfo
136 - elog "To use capi4hylafax:"
137 - elog "Make sure that your isdn/capi devices are owned by"
138 - elog "the \"uucp\" user (see udev or devfsd config)."
139 - elog "Modify ${FAX_SPOOL_DIR}/etc/config.faxCAPI"
140 - elog "to suit your system."
141 -
142 - if [ -n "${REPLACING_VERSIONS}" ]; then
143 - elog
144 - elog "If you're upgrading from a previous version"
145 - elog "please check for new or changed options."
146 - elog "A sample default config is installed as:"
147 - elog "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default"
148 - else
149 - elog
150 - elog "Please run package config to install a default configuration."
151 - fi
152 -
153 - elog
154 - elog "You should also check special options in:"
155 - elog "/etc/conf.d/${PN}"
156 - elog
157 - elog "The following optional dependency is also available:"
158 - optfeature "hylafax integration" net-misc/hylafax
159 - elog
160 - elog "Then append the following line to your hylafax"
161 - elog "config file (${FAX_SPOOL_DIR}/etc/config):"
162 - elog "SendFaxCmd: /usr/bin/c2faxsend"
163 - einfo
164 -}
165 -
166 -pkg_config() {
167 - local config_file="${FAX_SPOOL_DIR}/etc/config.faxCAPI"
168 - if [ -e "${config_file}" ]; then
169 - eerror "The configuration file already exists. Please either update"
170 - eerror "or remove this file and re-run package configuration."
171 - eerror "Configuration file location: ${config_file}"
172 - else
173 - elog "Installing template configuration file to ${config_file}"
174 - cp -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" \
175 - "${config_file}" || die
176 - fi
177 -}
178
179 diff --git a/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.3-r1.ebuild b/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.3-r1.ebuild
180 deleted file mode 100644
181 index 319c72a..0000000
182 --- a/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.3-r1.ebuild
183 +++ /dev/null
184 @@ -1,142 +0,0 @@
185 -# Copyright 1999-2014 Gentoo Foundation
186 -# Distributed under the terms of the GNU General Public License v2
187 -# $Id$
188 -
189 -inherit eutils versionator autotools
190 -
191 -FAX_SPOOL_DIR="/var/spool/fax"
192 -
193 -MY_PV1="$(get_version_component_range 1-4)"
194 -MY_PV2="$(get_version_component_range 5)"
195 -MY_PV3="$(get_version_component_range 6)"
196 -MY_P="${PN}_${MY_PV1}.svn.${MY_PV2}"
197 -
198 -DESCRIPTION="capi4hylafax adds a faxcapi modem to the hylafax enviroment"
199 -SRC_URI="mirror://debian/pool/main/c/capi4hylafax/${MY_P}.orig.tar.gz
200 - mirror://debian/pool/main/c/capi4hylafax/${MY_P}-${MY_PV3}.diff.gz"
201 -HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html"
202 -
203 -S="${WORKDIR}/${PN}-svn"
204 -
205 -IUSE="unicode"
206 -
207 -SLOT="0"
208 -LICENSE="GPL-2"
209 -KEYWORDS="amd64 ppc x86"
210 -
211 -DEPEND="net-dialup/capi4k-utils
212 - media-libs/tiff
213 - virtual/jpeg
214 - sys-libs/zlib"
215 -
216 -RDEPEND="${DEPEND}
217 - dev-util/dialog"
218 -
219 -src_unpack() {
220 - unpack ${A}
221 - cd "${S}"
222 -
223 - # apply debian patches + update configs
224 - epatch "${WORKDIR}/${MY_P}-${MY_PV3}.diff"
225 -
226 - # apply bugfix patch (see bug #145982)
227 - epatch "${FILESDIR}/${P}-recvdev.diff"
228 -
229 - eautoreconf
230 -
231 - # fix location of fax spool
232 - for i in config.faxCAPI Readme_src src/defaults.h.in debian/*.1; do
233 - [ -f "${i}" ] && sed -i -e "s:/var/spool/hylafax:${FAX_SPOOL_DIR}:g" "${i}"
234 - done
235 -
236 - # fix location of fax config
237 - sed -i -e "s:/etc/hylafax:${FAX_SPOOL_DIR}/etc:g" setupconffile
238 -
239 - # fix name and location of logfile
240 - sed -i -e "s:/var/spool/fax/log/capi4hylafax:/var/log/${PN}.log:" config.faxCAPI
241 - sed -i -e "s:/tmp/capifax.log:/var/log/${PN}.log:" src/defaults.h.in config.faxCAPI
242 -
243 - # patch man pages
244 - sed -i -e "s:/usr/share/doc/capi4hylafax/:/usr/share/doc/${PF}/html/:g" \
245 - -e "s:c2send:c2faxsend:g" -e "s:c2recv:c2faxrecv:g" \
246 - -e "s:CAPI4HYLAFAXCONFIG \"1\":C2FAXADDMODEM \"8\":g" \
247 - -e "s:capi4hylafaxconfig:c2faxaddmodem:g" debian/*.1
248 - cp -f debian/capi4hylafaxconfig.1 debian/c2faxaddmodem.8
249 -
250 - # if specified, convert all relevant files from latin1 to UTF-8
251 - if use unicode; then
252 - for i in config.faxCAPI; do
253 - einfo "Converting ${i} to UTF-8"
254 - iconv -f latin1 -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
255 - done
256 - fi
257 -}
258 -
259 -src_compile() {
260 - econf --with-hylafax-spooldir="${FAX_SPOOL_DIR}" || die "econf failed"
261 - emake || die "emake failed"
262 -}
263 -
264 -src_install() {
265 - keepdir "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status}
266 - fowners uucp:uucp "${FAX_SPOOL_DIR}" "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status}
267 - fperms 0700 "${FAX_SPOOL_DIR}"
268 -
269 - make DESTDIR="${D}" install || die "make install failed"
270 -
271 - # install setup script
272 - newsbin setupconffile c2faxaddmodem
273 -
274 - # install sample config
275 - insinto "${FAX_SPOOL_DIR}/etc"
276 - newins config.faxCAPI config.faxCAPI.default
277 -
278 - # install docs
279 - dodoc AUTHORS ChangeLog Readme_src
280 - newdoc debian/changelog ChangeLog.debian
281 - dohtml README.html LIESMICH.html
282 -
283 - # install man pages
284 - doman debian/c2fax*.[18]
285 -
286 - # install examples
287 - insinto /usr/share/doc/${PF}/examples
288 - doins sample_faxrcvd faxrcvd config.faxCAPI fritz_pic.tif GenerateFileMail.pl
289 - newins sample_AVMC4_config.faxCAPI config.faxCAPI_AVMC4
290 - newins debian/faxsend sample_faxsend
291 -
292 - # finally install init-script + config
293 - newinitd "${FILESDIR}/${PN}.initd" ${PN}
294 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
295 -}
296 -
297 -pkg_postinst() {
298 - einfo "To use capi4hylafax:"
299 - einfo "Make sure that your isdn/capi devices are owned by"
300 - einfo "the \"uucp\" user (see udev or devfsd config)."
301 - einfo "Modify ${FAX_SPOOL_DIR}/etc/config.faxCAPI"
302 - einfo "to suit your system."
303 -
304 - if [ -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI" ]; then
305 - einfo
306 - einfo "If you're upgrading from a previous version"
307 - einfo "please check for new or changed options."
308 - einfo "A sample default config is installed as:"
309 - einfo "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default"
310 - else
311 - # install default config
312 - cp -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" \
313 - "${FAX_SPOOL_DIR}/etc/config.faxCAPI"
314 - fi
315 -
316 - einfo
317 - einfo "You should also check special options in:"
318 - einfo "/etc/conf.d/${PN}"
319 - einfo
320 - einfo "If you want to use capi4hylafax together with"
321 - einfo "hylafax, then please emerge net-misc/hylafax"
322 - einfo
323 - einfo "Then append the following line to your hylafax"
324 - einfo "config file (${FAX_SPOOL_DIR}/etc/config):"
325 - einfo "SendFaxCmd: /usr/bin/c2faxsend"
326 -}
327
328 diff --git a/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.9.ebuild b/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.9.ebuild
329 deleted file mode 100644
330 index 760f04b..0000000
331 --- a/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.9.ebuild
332 +++ /dev/null
333 @@ -1,133 +0,0 @@
334 -# Copyright 1999-2014 Gentoo Foundation
335 -# Distributed under the terms of the GNU General Public License v2
336 -# $Id$
337 -
338 -inherit eutils versionator autotools
339 -
340 -FAX_SPOOL_DIR="/var/spool/fax"
341 -
342 -MY_PV1="$(get_version_component_range 1-4)"
343 -MY_PV2="$(get_version_component_range 5)"
344 -MY_PV3="$(get_version_component_range 6)"
345 -MY_P="${PN}_${MY_PV1}.svn.${MY_PV2}"
346 -
347 -DESCRIPTION="capi4hylafax adds a faxcapi modem to the hylafax enviroment"
348 -SRC_URI="mirror://debian/pool/main/c/capi4hylafax/${MY_P}.orig.tar.gz
349 - mirror://debian/pool/main/c/capi4hylafax/${MY_P}-${MY_PV3}.diff.gz"
350 -HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html"
351 -
352 -S="${WORKDIR}/${PN}-svn"
353 -
354 -IUSE=""
355 -
356 -SLOT="0"
357 -LICENSE="GPL-2"
358 -KEYWORDS="~amd64 ~ppc ~x86"
359 -
360 -DEPEND="net-dialup/capi4k-utils
361 - app-shells/bash
362 - media-libs/tiff
363 - virtual/jpeg
364 - sys-libs/zlib"
365 -
366 -RDEPEND="${DEPEND}
367 - dev-util/dialog"
368 -
369 -src_unpack() {
370 - unpack ${A}
371 - cd "${S}"
372 -
373 - # apply debian patches + update configs
374 - epatch "${WORKDIR}/${MY_P}-${MY_PV3}.diff"
375 -
376 - # update autotools
377 - eautoreconf
378 -
379 - # fix location of fax spool
380 - for i in config.faxCAPI Readme_src src/defaults.h.in debian/*.1; do
381 - [ -f "${i}" ] && sed -i -e "s:/var/spool/hylafax:${FAX_SPOOL_DIR}:g" "${i}"
382 - done
383 -
384 - # fix location of fax config
385 - sed -i -e "s:/etc/hylafax:${FAX_SPOOL_DIR}/etc:g" setupconffile
386 -
387 - # fix name and location of logfile
388 - sed -i -e "s:/var/spool/fax/log/capi4hylafax:/var/log/${PN}.log:" config.faxCAPI
389 - sed -i -e "s:/tmp/capifax.log:/var/log/${PN}.log:" src/defaults.h.in config.faxCAPI
390 -
391 - # patch man pages
392 - sed -i -e "s:/usr/share/doc/capi4hylafax/:/usr/share/doc/${PF}/html/:g" \
393 - -e "s:c2send:c2faxsend:g" -e "s:c2recv:c2faxrecv:g" \
394 - -e "s:CAPI4HYLAFAXCONFIG \"1\":C2FAXADDMODEM \"8\":g" \
395 - -e "s:capi4hylafaxconfig:c2faxaddmodem:g" debian/*.1
396 - cp -f debian/capi4hylafaxconfig.1 debian/c2faxaddmodem.8
397 -}
398 -
399 -src_compile() {
400 - econf --with-hylafax-spooldir="${FAX_SPOOL_DIR}" || die "econf failed"
401 - emake || die "emake failed"
402 -}
403 -
404 -src_install() {
405 - keepdir "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status}
406 - fowners uucp:uucp "${FAX_SPOOL_DIR}" "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status}
407 - fperms 0700 "${FAX_SPOOL_DIR}"
408 -
409 - make DESTDIR="${D}" install || die "make install failed"
410 -
411 - # install setup script
412 - newsbin setupconffile c2faxaddmodem
413 -
414 - # install sample config
415 - insinto "${FAX_SPOOL_DIR}/etc"
416 - newins config.faxCAPI config.faxCAPI.default
417 -
418 - # install docs
419 - dodoc AUTHORS ChangeLog Readme_src
420 - newdoc debian/changelog ChangeLog.debian
421 - dohtml README.html LIESMICH.html
422 -
423 - # install man pages
424 - doman debian/c2fax*.[18]
425 -
426 - # install examples
427 - insinto /usr/share/doc/${PF}/examples
428 - doins sample_faxrcvd config.faxCAPI fritz_pic.tif GenerateFileMail.pl
429 - newins sample_AVMC4_config.faxCAPI config.faxCAPI_AVMC4
430 - newins debian/faxsend sample_faxsend
431 -
432 - # finally install init-script + config
433 - newinitd "${FILESDIR}/${PN}.initd" ${PN}
434 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
435 -}
436 -
437 -pkg_postinst() {
438 - elog "To use capi4hylafax:"
439 - elog "Make sure that your isdn/capi devices are owned by"
440 - elog "the \"uucp\" user (see udev or devfsd config)."
441 - elog "Modify ${FAX_SPOOL_DIR}/etc/config.faxCAPI"
442 - elog "to suit your system."
443 -
444 - if [ -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI" ]; then
445 - elog
446 - elog "If you're upgrading from a previous version"
447 - elog "please check for new or changed options."
448 - elog "A sample default config is installed as:"
449 - elog "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default"
450 - else
451 - # install default config
452 - cp -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" \
453 - "${FAX_SPOOL_DIR}/etc/config.faxCAPI"
454 - fi
455 -
456 - elog
457 - elog "You should also check special options in:"
458 - elog "/etc/conf.d/${PN}"
459 - elog
460 - elog "If you want to use capi4hylafax together with"
461 - elog "hylafax, then please emerge net-misc/hylafax"
462 - elog
463 - elog "Then append the following line to your hylafax"
464 - elog "config file (${FAX_SPOOL_DIR}/etc/config):"
465 - elog "SendFaxCmd: /usr/bin/c2faxsend"
466 -}