1 |
commit: 040c652e26d71a12c0df295626edce9d3a5baec0 |
2 |
Author: Sam Jorna <wraeth <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 29 03:04:25 2016 +0000 |
4 |
Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 29 03:04:52 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=040c652e |
7 |
|
8 |
net-misc/capi4hylafax: bump to 01.03.00.99.300.20 |
9 |
|
10 |
Version bump to 01.03.00.99.300.20, includes patch to resolve compile |
11 |
failure with newer versions of GCC (patch included in source). Ebuild |
12 |
originally submitted by user Matthias Jansen. |
13 |
|
14 |
Gentoo-bug: 513642 |
15 |
Package-Manager: portage-2.2.28 |
16 |
|
17 |
net-misc/capi4hylafax/Manifest | 1 + |
18 |
.../capi4hylafax-01.03.00.99.300.20.ebuild | 155 +++++++++++++++++++++ |
19 |
2 files changed, 156 insertions(+) |
20 |
|
21 |
diff --git a/net-misc/capi4hylafax/Manifest b/net-misc/capi4hylafax/Manifest |
22 |
index d0582c3..019c759 100644 |
23 |
--- a/net-misc/capi4hylafax/Manifest |
24 |
+++ b/net-misc/capi4hylafax/Manifest |
25 |
@@ -1,3 +1,4 @@ |
26 |
+DIST capi4hylafax_01.03.00.99.svn.300-20.debian.tar.gz 546271 SHA256 783d31e3ae73df91607e86856ff93338eaf2c84f9b31ad21106005e479232f4c SHA512 a0c1e64d783150abf80feecca07a3eebead95a982133ac9601b204b73933468c61fa39863be8c93ea2bf52c5262b9944b4d5c4a8795475d3a5ca17e481401b8e WHIRLPOOL 25e9d37697fdf0bbde5bb84bfeea37ac749bdfca5da8b75b5474e39c3684efdd9ff517773bc0d77641331a5bdb9c500dc0caf7dfec84733fb200e1a5c7e1bf92 |
27 |
DIST capi4hylafax_01.03.00.99.svn.300-3.diff.gz 155360 SHA256 dec167255e2307d12b5093e11ddbb6b1f96d0ac94985643579cfd6b534313ed2 SHA512 abf963a8840d9baf18ea7985f2354a287daaec3192eb54e9a5fd1ea838fd493f7ec3ad6399aa4e21256ff3bd6801a3511c031afb43e3160526d9bfe4d24f065a WHIRLPOOL e5f5832e96794fd8233b7e7e9e393026033e3c9b55b2757890ee8fbde08591e0f526f986327904f46a45ec5c592b7e61061e796fbc20e9f07c2ddbd6a337946b |
28 |
DIST capi4hylafax_01.03.00.99.svn.300-9.diff.gz 160179 SHA256 5c116fcefa6604a351c31507644c26fb43e0dc89e51f97ee748a52a5eebbc4af SHA512 3f98a69b96bb44cec4976cad954e52586b50bce1f8457391c1a07ca22689c9687779311252c87848b779c9afac0d492eefca11a270de551a7cacfce50d1aa185 WHIRLPOOL db79395c01935734c679345e2010882393a41dc1f7edb3af2ce1b993cca4ff61ad753b33071ea8cc5b4b85281ccfcd63f09758188665decc02c4f08856536251 |
29 |
DIST capi4hylafax_01.03.00.99.svn.300.orig.tar.gz 533410 SHA256 8c5433fda85d5f178382c0a4fbc07cf22fc22c448146a4b7a090bc6a0b1789c2 SHA512 c01063bcdf7d5dfbeef0eadd94a0714b5f34f442c19e5287a0fa40ce3ecbbad53afaddeb093435952367fb7b503dd9c637002d954a58175df3920d9d2966c468 WHIRLPOOL 1fafcf1f88fe02f7b4b0bca0b4c40d1917d5fb1f02a11bd67aeebe46e049fcadecde78f8c6b7626c4bb4f23a3bdbec86a3e013e383ccf202cae407842ec0ae29 |
30 |
|
31 |
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 |
32 |
new file mode 100644 |
33 |
index 0000000..d4f049f |
34 |
--- /dev/null |
35 |
+++ b/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.20.ebuild |
36 |
@@ -0,0 +1,155 @@ |
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 eutils versionator autotools |
44 |
+ |
45 |
+FAX_SPOOL_DIR="${ROOT}/var/spool/fax" |
46 |
+ |
47 |
+MY_PV1="$(get_version_component_range 1-4)" |
48 |
+MY_PV2="$(get_version_component_range 5)" |
49 |
+MY_PV3="$(get_version_component_range 6)" |
50 |
+MY_P="${PN}_${MY_PV1}.svn.${MY_PV2}" |
51 |
+ |
52 |
+DESCRIPTION="capi4hylafax adds a faxcapi modem to the hylafax enviroment" |
53 |
+SRC_URI="mirror://debian/pool/main/c/capi4hylafax/${MY_P}.orig.tar.gz |
54 |
+ mirror://debian/pool/main/c/capi4hylafax/${MY_P}-${MY_PV3}.debian.tar.gz" |
55 |
+HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html" |
56 |
+ |
57 |
+S="${WORKDIR}/${PN}-svn" |
58 |
+ |
59 |
+SLOT="0" |
60 |
+LICENSE="GPL-2" |
61 |
+KEYWORDS="~amd64 ~ppc ~x86" |
62 |
+ |
63 |
+DEPEND="net-dialup/capi4k-utils |
64 |
+ app-shells/bash:0 |
65 |
+ media-libs/tiff:0 |
66 |
+ virtual/jpeg:0 |
67 |
+ sys-libs/zlib" |
68 |
+ |
69 |
+RDEPEND="${DEPEND} |
70 |
+ dev-util/dialog" |
71 |
+ |
72 |
+DOCS=( AUTHORS ChangeLog Readme_src ) |
73 |
+HTML_DOCS=( README.html LIESMICH.html ) |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ EPATCH_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="patch" \ |
77 |
+ EPATCH_FORCE="yes" epatch |
78 |
+ |
79 |
+ eapply_user |
80 |
+ |
81 |
+ eautoreconf |
82 |
+ |
83 |
+ mv ../debian . || die |
84 |
+ |
85 |
+ # fix location of fax spool |
86 |
+ sed -e "s:/var/spool/hylafax:${FAX_SPOOL_DIR}:g" \ |
87 |
+ -i config.faxCAPI \ |
88 |
+ -i Readme_src \ |
89 |
+ -i src/defaults.h.in \ |
90 |
+ -i debian/*.1 || die |
91 |
+ |
92 |
+ # fix location of fax config |
93 |
+ sed -i -e "s:/etc/hylafax:${FAX_SPOOL_DIR}/etc:g" setupconffile || die |
94 |
+ |
95 |
+ # fix name and location of logfile |
96 |
+ sed -e "s:/var/spool/fax/log/capi4hylafax:/var/log/${PN}.log:" \ |
97 |
+ -i config.faxCAPI || die |
98 |
+ |
99 |
+ sed -e "s:/tmp/capifax.log:/var/log/${PN}.log:" \ |
100 |
+ -i src/defaults.h.in config.faxCAPI || die |
101 |
+ |
102 |
+ # patch man pages |
103 |
+ sed -e "s:/usr/share/doc/capi4hylafax/:/usr/share/doc/${PF}/html/:g" \ |
104 |
+ -e "s:c2send:c2faxsend:g" \ |
105 |
+ -e "s:c2recv:c2faxrecv:g" \ |
106 |
+ -e "s:CAPI4HYLAFAXCONFIG \"1\":C2FAXADDMODEM \"8\":g" \ |
107 |
+ -e "s:capi4hylafaxconfig:c2faxaddmodem:g" \ |
108 |
+ -i debian/*.1 || die |
109 |
+ |
110 |
+ cp -f debian/capi4hylafaxconfig.1 debian/c2faxaddmodem.8 || die |
111 |
+} |
112 |
+ |
113 |
+src_configure() { |
114 |
+ econf --with-hylafax-spooldir="${FAX_SPOOL_DIR}" |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ keepdir "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status} |
119 |
+ fowners uucp:uucp "${FAX_SPOOL_DIR}" "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status} |
120 |
+ fperms 0700 "${FAX_SPOOL_DIR}" |
121 |
+ |
122 |
+ default |
123 |
+ |
124 |
+ # install setup script |
125 |
+ newsbin setupconffile c2faxaddmodem |
126 |
+ |
127 |
+ # install sample config |
128 |
+ insinto "${FAX_SPOOL_DIR}/etc" |
129 |
+ newins config.faxCAPI config.faxCAPI.default |
130 |
+ |
131 |
+ # install docs |
132 |
+ newdoc debian/changelog ChangeLog.debian |
133 |
+ |
134 |
+ # install man pages |
135 |
+ doman debian/c2fax*.[18] |
136 |
+ |
137 |
+ # install examples |
138 |
+ insinto /usr/share/doc/${PF}/examples |
139 |
+ doins sample_faxrcvd config.faxCAPI fritz_pic.tif GenerateFileMail.pl |
140 |
+ newins sample_AVMC4_config.faxCAPI config.faxCAPI_AVMC4 |
141 |
+ newins debian/faxsend sample_faxsend |
142 |
+ |
143 |
+ # finally install init-script + config |
144 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
145 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
146 |
+} |
147 |
+ |
148 |
+pkg_postinst() { |
149 |
+ einfo |
150 |
+ elog "To use capi4hylafax:" |
151 |
+ elog "Make sure that your isdn/capi devices are owned by" |
152 |
+ elog "the \"uucp\" user (see udev or devfsd config)." |
153 |
+ elog "Modify ${FAX_SPOOL_DIR}/etc/config.faxCAPI" |
154 |
+ elog "to suit your system." |
155 |
+ |
156 |
+ if [ -n "${REPLACING_VERSIONS}" ]; then |
157 |
+ elog |
158 |
+ elog "If you're upgrading from a previous version" |
159 |
+ elog "please check for new or changed options." |
160 |
+ elog "A sample default config is installed as:" |
161 |
+ elog "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" |
162 |
+ else |
163 |
+ elog |
164 |
+ elog "Please run package config to install a default configuration." |
165 |
+ fi |
166 |
+ |
167 |
+ elog |
168 |
+ elog "You should also check special options in:" |
169 |
+ elog "/etc/conf.d/${PN}" |
170 |
+ elog |
171 |
+ elog "The following optional dependency is also available:" |
172 |
+ optfeature "hylafax integration" net-misc/hylafax |
173 |
+ elog |
174 |
+ elog "Then append the following line to your hylafax" |
175 |
+ elog "config file (${FAX_SPOOL_DIR}/etc/config):" |
176 |
+ elog "SendFaxCmd: /usr/bin/c2faxsend" |
177 |
+ einfo |
178 |
+} |
179 |
+ |
180 |
+pkg_config() { |
181 |
+ local config_file="${FAX_SPOOL_DIR}/etc/config.faxCAPI" |
182 |
+ if [ -e "${config_file}" ]; then |
183 |
+ eerror "The configuration file already exists. Please either update" |
184 |
+ eerror "or remove this file and re-run package configuration." |
185 |
+ eerror "Configuration file location: ${config_file}" |
186 |
+ else |
187 |
+ elog "Installing template configuration file to ${config_file}" |
188 |
+ cp -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" \ |
189 |
+ "${config_file}" || die |
190 |
+ fi |
191 |
+} |