Gentoo Archives: gentoo-commits

From: "Sergey Popov (pinkbyte)" <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/hylafaxplus: metadata.xml ChangeLog hylafaxplus-5.5.4.ebuild
Date: Fri, 27 Sep 2013 12:56:09
Message-Id: 20130927125605.D67F42004C@flycatcher.gentoo.org
1 pinkbyte 13/09/27 12:56:05
2
3 Modified: metadata.xml ChangeLog
4 Added: hylafaxplus-5.5.4.ebuild
5 Log:
6 Version bump, wrt bug #438600. EAPI 5, respect CC/CXX/AR/RANLIB. Partially respect LDFLAGS. drop broken auto-detection of page format. Add net-dialup herd to metadata
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
9
10 Revision Changes Path
11 1.2 net-misc/hylafaxplus/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/metadata.xml?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/metadata.xml?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/metadata.xml?r1=1.1&r2=1.2
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/hylafaxplus/metadata.xml,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- metadata.xml 5 Apr 2012 17:57:40 -0000 1.1
24 +++ metadata.xml 27 Sep 2013 12:56:05 -0000 1.2
25 @@ -1,17 +1,18 @@
26 <?xml version="1.0" encoding="UTF-8"?>
27 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 <pkgmetadata>
29 -<maintainer>
30 -<email>mattm@g.o</email>
31 -<name>Matthew Marlowe</name>
32 -</maintainer>
33 -<longdescription>
34 -Enterprise client-server fax package for class 1 and 2 fax modems.
35 -</longdescription>
36 -<use>
37 - <flag name='jbig'>JBIG Fax Compression Support</flag>
38 - <flag name='pam'>hfaxd authentication via PAM</flag>
39 - <flag name='mgetty'>Receive faxes via serial port connections</flag>
40 - <flag name='html'>Convert faxes into html email</flag>
41 -</use>
42 + <herd>net-dialup</herd>
43 + <maintainer>
44 + <email>mattm@g.o</email>
45 + <name>Matthew Marlowe</name>
46 + </maintainer>
47 + <longdescription>
48 + Enterprise client-server fax package for class 1 and 2 fax modems.
49 + </longdescription>
50 + <use>
51 + <flag name='jbig'>JBIG Fax Compression Support</flag>
52 + <flag name='pam'>hfaxd authentication via PAM</flag>
53 + <flag name='mgetty'>Receive faxes via serial port connections</flag>
54 + <flag name='html'>Convert faxes into html email</flag>
55 + </use>
56 </pkgmetadata>
57
58
59
60 1.6 net-misc/hylafaxplus/ChangeLog
61
62 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/ChangeLog?rev=1.6&view=markup
63 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/ChangeLog?rev=1.6&content-type=text/plain
64 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/ChangeLog?r1=1.5&r2=1.6
65
66 Index: ChangeLog
67 ===================================================================
68 RCS file: /var/cvsroot/gentoo-x86/net-misc/hylafaxplus/ChangeLog,v
69 retrieving revision 1.5
70 retrieving revision 1.6
71 diff -u -r1.5 -r1.6
72 --- ChangeLog 10 Mar 2013 01:42:10 -0000 1.5
73 +++ ChangeLog 27 Sep 2013 12:56:05 -0000 1.6
74 @@ -1,6 +1,14 @@
75 # ChangeLog for net-misc/hylafaxplus
76 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
77 -# $Header: /var/cvsroot/gentoo-x86/net-misc/hylafaxplus/ChangeLog,v 1.5 2013/03/10 01:42:10 ottxor Exp $
78 +# $Header: /var/cvsroot/gentoo-x86/net-misc/hylafaxplus/ChangeLog,v 1.6 2013/09/27 12:56:05 pinkbyte Exp $
79 +
80 +*hylafaxplus-5.5.4 (27 Sep 2013)
81 +
82 + 27 Sep 2013; Sergey Popov <pinkbyte@g.o> +hylafaxplus-5.5.4.ebuild,
83 + metadata.xml:
84 + Version bump, wrt bug #438600. EAPI 5, respect CC/CXX/AR/RANLIB. Partially
85 + respect LDFLAGS. drop broken auto-detection of page format. Add net-dialup
86 + herd to metadata
87
88 10 Mar 2013; Christoph Junghans <ottxor@g.o>
89 hylafaxplus-5.5.1-r1.ebuild, hylafaxplus-5.5.1.ebuild:
90
91
92
93 1.1 net-misc/hylafaxplus/hylafaxplus-5.5.4.ebuild
94
95 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/hylafaxplus-5.5.4.ebuild?rev=1.1&view=markup
96 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/hylafaxplus-5.5.4.ebuild?rev=1.1&content-type=text/plain
97
98 Index: hylafaxplus-5.5.4.ebuild
99 ===================================================================
100 # Copyright 1999-2013 Gentoo Foundation
101 # Distributed under the terms of the GNU General Public License v2
102 # $Header: /var/cvsroot/gentoo-x86/net-misc/hylafaxplus/hylafaxplus-5.5.4.ebuild,v 1.1 2013/09/27 12:56:05 pinkbyte Exp $
103
104 EAPI="5"
105
106 inherit eutils multilib pam toolchain-funcs
107
108 MY_PN="${PN/plus/}"
109 MY_P="${MY_PN}-${PV}"
110
111 DESCRIPTION="Enterprise client-server fax package for class 1 and 2 fax modems."
112 HOMEPAGE="http://hylafax.sourceforge.net"
113 SRC_URI="mirror://sourceforge/hylafax/${MY_P}.tar.gz"
114
115 SLOT="0"
116 LICENSE="hylafaxplus"
117 KEYWORDS="~amd64 ~x86"
118
119 IUSE="jbig html ldap mgetty pam"
120
121 DEPEND=">=sys-libs/zlib-1.1.4
122 app-text/ghostscript-gpl
123 virtual/mta
124 media-libs/tiff[jbig?]
125 virtual/jpeg
126 jbig? ( media-libs/jbigkit )
127 virtual/awk
128 ldap? ( net-nds/openldap )
129 pam? ( virtual/pam )
130 mgetty? ( net-dialup/mgetty[-fax] )"
131
132 RDEPEND="${DEPEND}
133 net-mail/metamail
134 !net-dialup/sendpage"
135
136 S="${WORKDIR}/${MY_P}"
137
138 export CONFIG_PROTECT="${CONFIG_PROTECT} /var/spool/fax/etc /usr/lib/fax"
139
140 src_prepare() {
141 epatch "${FILESDIR}/ldconfig-patch"
142 # force it not to strip binaries
143 for dir in etc util faxalter faxcover faxd faxmail faxrm faxstat \
144 hfaxd sendfax sendpage ; do
145 sed -i -e "s:-idb:-idb \"nostrip\" -idb:g" \
146 "${dir}"/Makefile.in || die "sed failed"
147 done
148
149 sed -i -e "s:hostname:hostname -f:g" util/{faxrcvd,pollrcvd}.sh.in || die "sed on hostname failed"
150
151 # Respect LDFLAGS(at least partially)
152 sed -i -e "/^LDFLAGS/s/LDOPTS}/LDOPTS} ${LDFLAGS}/" defs.in || die "sed on defs.in failed"
153
154 sed -i -e "s|-fpic|-fPIC|g" \
155 configure || die
156
157 epatch_user
158 }
159
160 src_configure() {
161 do_configure() {
162 echo ./configure --nointeractive ${1}
163 # eval required for quoting in ${my_conf} to work properly, better way?
164 eval ./configure --nointeractive ${1} || die "./configure failed"
165 }
166 local my_conf="
167 --with-DIR_BIN=/usr/bin
168 --with-DIR_SBIN=/usr/sbin
169 --with-DIR_LIB=/usr/$(get_libdir)
170 --with-DIR_LIBEXEC=/usr/sbin
171 --with-DIR_LIBDATA=/usr/$(get_libdir)/fax
172 --with-DIR_LOCALE=/usr/share/locale
173 --with-DIR_LOCKS=/var/lock
174 --with-DIR_MAN=/usr/share/man
175 --with-DIR_SPOOL=/var/spool/fax
176 --with-DIR_HTML=/usr/share/doc/${P}/html
177 --with-DIR_CGI="${WORKDIR}"
178 --with-PATH_DPSRIP=/var/spool/fax/bin/ps2fax
179 --with-PATH_IMPRIP=\"\"
180 --with-SYSVINIT=no
181 --with-REGEX=yes
182 --with-LIBTIFF=\"-ltiff -ljpeg -lz\"
183 --with-OPTIMIZER=\"${CFLAGS}\"
184 --with-DSO=auto
185 --with-HTML=$(usex html)"
186
187 if use mgetty; then
188 my_conf="${my_conf} \
189 --with-PATH_GETTY=/sbin/mgetty \
190 --with-PATH_EGETTY=/sbin/mgetty \
191 --with-PATH_VGETTY=/usr/sbin/vgetty"
192 else
193 # GETTY defaults to /sbin/agetty
194 my_conf="${my_conf} \
195 --with-PATH_EGETTY=/bin/false \
196 --with-PATH_VGETTY=/bin/false"
197 fi
198
199 #--enable-pam isn't valid
200 use pam || my_conf="${my_conf} $(use_enable pam)"
201 use ldap || my_conf="${my_conf} $(use_enable ldap)"
202 use jbig || my_conf="${my_conf} $(use_enable jbig)"
203
204 tc-export CC CXX AR RANLIB
205
206 do_configure "${my_conf}"
207 }
208
209 src_compile() {
210 # Parallel building is borked
211 emake -j1
212 }
213
214 src_install() {
215 dodir /usr/{bin,sbin} /usr/$(get_libdir)/fax /usr/share/man
216 dodir /var/spool /var/spool/recvq /var/spool/fax
217 fowners uucp:uucp /var/spool/fax
218 fperms 0600 /var/spool/fax
219 dodir /usr/share/doc/${P}/samples
220
221 emake DESTDIR="${D}" \
222 BIN="${D}/usr/bin" \
223 SBIN="${D}/usr/sbin" \
224 LIBDIR="${D}/usr/$(get_libdir)" \
225 LIB="${D}/usr/$(get_libdir)" \
226 LIBEXEC="${D}/usr/sbin" \
227 LIBDATA="${D}/usr/$(get_libdir)/fax" \
228 DIR_LOCALE="${D}/usr/share/locale" \
229 MAN="${D}/usr/share/man" \
230 SPOOL="${D}/var/spool/fax" \
231 HTMLDIR="${D}/usr/share/doc/${PF}/html" \
232 install
233
234 keepdir /var/spool/fax/{archive,client,etc,pollq,recvq,tmp}
235 keepdir /var/spool/fax/{status,sendq,log,info,doneq,docq,dev}
236
237 generate_files # in this case, it only generates the env.d entry
238
239 einfo "Adding env.d entry for ${PN}"
240 doenvd "${T}/99${PN}"
241
242 newconfd "${FILESDIR}/${PN}-conf" ${PN}
243 newinitd "${FILESDIR}/${PN}-init" ${PN}
244
245 use pam && pamd_mimic_system ${MY_PN} auth account session
246
247 dodoc CONTRIBUTORS README TODO
248 docinto samples
249 }
250
251 pkg_postinst() {
252 elog
253 elog "The faxonly USE flag has been removed; since ${PN} does not"
254 elog "require mgetty, and certain fax files conflict, you must build"
255 elog "mgetty without fax support if you wish to use them both. You"
256 elog "may want to add both to package.use so any future updates are"
257 elog "correctly built:"
258 elog
259 elog " net-dialup/mgetty -fax"
260 elog " net-misc/hylafax [-mgetty|mgetty]"
261 elog
262 elog "See the docs and man pages for detailed configuration info."
263 elog
264 elog "Now run faxsetup and (if necessary) faxaddmodem."
265 elog
266 }
267
268 generate_files() {
269 cat <<-EOF > "${T}/99${PN}"
270 PATH="/var/spool/fax/bin"
271 CONFIG_PROTECT="/var/spool/fax/etc /usr/$(get_libdir)/fax"
272 EOF
273 }