Gentoo Archives: gentoo-commits

From: "Matthew Marlow (mattm)" <mattm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/hylafaxplus: hylafaxplus-5.5.1.ebuild ChangeLog metadata.xml Manifest
Date: Thu, 05 Apr 2012 17:57:49
Message-Id: 20120405175740.376CF2004B@flycatcher.gentoo.org
1 mattm 12/04/05 17:57:40
2
3 Added: hylafaxplus-5.5.1.ebuild ChangeLog metadata.xml
4 Manifest
5 Log:
6 New package, hylafax plus, that is based on upstream fork of hylafax. Initial ebuilds were user submitted (Thanks to all those who contributed to bug 168890). I have made a number of modifications/fixes and have removed all keywords(package is masked). Ebuild now gets through repoman w/o any qa concerns but I will need to continue to revise it until it is ready to keyword as ~amd64 and ~x86 for user testing.
7
8 (Portage version: 2.1.10.55/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 net-misc/hylafaxplus/hylafaxplus-5.5.1.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/hylafaxplus-5.5.1.ebuild?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/hylafaxplus-5.5.1.ebuild?rev=1.1&content-type=text/plain
15
16 Index: hylafaxplus-5.5.1.ebuild
17 ===================================================================
18 # Copyright 1999-2012 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/net-misc/hylafaxplus/hylafaxplus-5.5.1.ebuild,v 1.1 2012/04/05 17:57:40 mattm Exp $
21
22 EAPI="2"
23
24 inherit eutils multilib pam toolchain-funcs
25
26 MY_PN=${PN/plus/}
27 MY_P="${MY_PN}-${PV}"
28
29 DESCRIPTION="Enterprise client-server fax package for class 1 and 2 fax modems."
30 HOMEPAGE="http://hylafax.sourceforge.net"
31 SRC_URI="mirror://sourceforge/hylafax/${MY_P}.tar.gz"
32
33 SLOT="0"
34 LICENSE="hylafaxplus"
35 KEYWORDS=""
36
37 IUSE="jbig pam mgetty html ldap"
38
39 DEPEND=">=sys-libs/zlib-1.1.4
40 !net-misc/hylafax
41 app-text/ghostscript-gpl
42 virtual/mta
43 media-libs/tiff[jbig?]
44 virtual/jpeg
45 jbig? ( media-libs/jbigkit )
46 sys-apps/gawk
47 ldap? ( net-nds/openldap )
48 pam? ( virtual/pam )
49 mgetty? ( net-dialup/mgetty[-fax] )"
50
51 RDEPEND="${DEPEND}
52 net-mail/metamail
53 !net-dialup/sendpage"
54
55 S=${WORKDIR}/${MY_P}
56
57 export CONFIG_PROTECT="${CONFIG_PROTECT} /var/spool/fax/etc /usr/lib/fax"
58
59 src_prepare() {
60 epatch "${FILESDIR}/ldconfig-patch"
61 # force it not to strip binaries
62 for dir in etc util faxalter faxcover faxd faxmail faxrm faxstat \
63 hfaxd sendfax sendpage ; do
64 sed -i -e "s:-idb:-idb \"nostrip\" -idb:g" \
65 "${dir}"/Makefile.in || die "sed failed"
66 done
67
68 sed -i -e "s|-fpic|-fPIC|g" \
69 configure || die
70 }
71
72 src_configure() {
73 local my_conf="
74 --with-DIR_BIN=/usr/bin
75 --with-DIR_SBIN=/usr/sbin
76 --with-DIR_LIB=/usr/$(get_libdir)
77 --with-DIR_LIBEXEC=/usr/sbin
78 --with-DIR_LIBDATA=/usr/$(get_libdir)/fax
79 --with-DIR_LOCALE=/usr/share/locale
80 --with-DIR_LOCKS=/var/lock
81 --with-DIR_MAN=/usr/share/man
82 --with-DIR_SPOOL=/var/spool/fax
83 --with-DIR_HTML=/usr/share/doc/${P}/html
84 --with-DIR_CGI="${WORKDIR}"
85 --with-PATH_DPSRIP=/var/spool/fax/bin/ps2fax
86 --with-PATH_IMPRIP=\"\"
87 --with-SYSVINIT=no
88 --with-REGEX=yes
89 --with-LIBTIFF=\"-ltiff -ljpeg -lz\"
90 --with-OPTIMIZER=\"${CFLAGS}\"
91 --with-DSO=auto"
92
93 if use html; then
94 my_conf="${my_conf} --with-HTML=yes"
95 else
96 my_conf="${my_conf} --with-HTML=no"
97 fi
98
99 if use mgetty; then
100 my_conf="${my_conf} \
101 --with-PATH_GETTY=/sbin/mgetty \
102 --with-PATH_EGETTY=/sbin/mgetty \
103 --with-PATH_VGETTY=/usr/sbin/vgetty"
104 else
105 # GETTY defaults to /sbin/agetty
106 my_conf="${my_conf} \
107 --with-PATH_EGETTY=/bin/false \
108 --with-PATH_VGETTY=/bin/false"
109 fi
110
111 if [ -h /etc/localtime ]; then
112 local continent=$(readlink /etc/localtime | cut -d / -f 5)
113 if [ "${continent}" == "Europe" ]; then
114 my_conf="${my_conf} --with-PAGESIZE=A4"
115 fi
116 fi
117
118 #--enable-pam isn't valid
119 use pam || my_conf="${my_conf} $(use_enable pam)"
120 use ldap || my_conf="${my_conf} $(use_enable ldap)"
121 use jbig || my_conf="${my_conf} $(use_enable jbig)"
122
123 myconf="CC=$(tc-getCC) CXX=$(tc-getCXX) ${my_conf}"
124
125 # eval required for quoting in ${my_conf} to work properly, better way?
126 eval ./configure --nointeractive ${my_conf} || die "./configure failed"
127 }
128
129 src_install() {
130 dodir /usr/{bin,sbin} /usr/$(get_libdir)/fax /usr/share/man
131 dodir /var/spool /var/spool/recvq
132 fowners uucp:uucp /var/spool/fax
133 fperms 0600 /var/spool/fax
134 dodir /usr/share/doc/${P}/samples
135
136 emake \
137 BIN=${D}/usr/bin \
138 SBIN=${D}/usr/sbin \
139 LIBDIR=${D}/usr/$(get_libdir) \
140 LIB=${D}/usr/$(get_libdir) \
141 LIBEXEC=${D}/usr/sbin \
142 LIBDATA=${D}/usr/$(get_libdir)/fax \
143 DIR_LOCALE=${D}/usr/share/locale \
144 MAN=${D}/usr/share/man \
145 SPOOL=${D}/var/spool/fax \
146 HTMLDIR=${D}/usr/share/doc/${P}/html \
147 install DESTDIR="${D}" || die "make install failed"
148
149 keepdir /var/spool/fax/{archive,client,etc,pollq,recvq,tmp}
150 keepdir /var/spool/fax/{status,sendq,log,info,doneq,docq,dev}
151
152 dosed "s:hostname:hostname -f:g" /var/spool/fax/bin/{faxrcvd,pollrcvd} \
153 || die "dosed hostname failed"
154
155 generate_files # in this case, it only generates the env.d entry
156
157 einfo "Adding env.d entry for ${PN}"
158 doenvd 99${P}
159
160 einfo "Adding init.d and conf.d entries for ${PN}"
161 newconfd "${FILESDIR}"/${PN}-conf ${PN}
162 newinitd "${FILESDIR}"/${PN}-init ${PN}
163
164 use pam && pamd_mimic_system ${MY_PN} auth account session
165
166 dodoc CONTRIBUTORS README TODO
167 docinto samples
168 }
169
170 pkg_postinst() {
171 elog
172 elog "The faxonly USE flag has been removed; since ${PN} does not"
173 elog "require mgetty, and certain fax files conflict, you must build"
174 elog "mgetty without fax support if you wish to use them both. You"
175 elog "may want to add both to package.use so any future updates are"
176 elog "correctly built:"
177 elog
178 elog " net-dialup/mgetty -fax"
179 elog " net-misc/hylafax [-mgetty|mgetty]"
180 elog
181 elog "There are additional files included in the documentation dir."
182 elog
183 elog "Note 1: hylafax.cron is provided for vixie-cron users and"
184 elog "should be placed in /etc/cron.d. Use as-is or adapt it to"
185 elog "your system config."
186 elog
187 elog "Note 2: if you need to use hylafax with iptables, then you"
188 elog "need to specify the port and use ip_conntrack_ftp as shown"
189 elog "in the included example modules file."
190 elog
191 elog "See the docs and man pages for detailed configuration info."
192 elog
193 elog "Now run faxsetup and (if necessary) faxaddmodem."
194 elog
195 }
196
197 generate_files() {
198 cat <<-EOF > 99${P}
199 PATH="/var/spool/fax/bin"
200 CONFIG_PROTECT="/var/spool/fax/etc /usr/$(get_libdir)/fax"
201 EOF
202 }
203
204
205
206 1.1 net-misc/hylafaxplus/ChangeLog
207
208 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/ChangeLog?rev=1.1&view=markup
209 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/ChangeLog?rev=1.1&content-type=text/plain
210
211 Index: ChangeLog
212 ===================================================================
213 # ChangeLog for net-misc/hylafaxplus
214 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
215 # $Header: /var/cvsroot/gentoo-x86/net-misc/hylafaxplus/ChangeLog,v 1.1 2012/04/05 17:57:40 mattm Exp $
216
217 05 Apr 2012; Matthew Marlowe <mattm@g.o> +hylafaxplus-5.5.1.ebuild,
218 +files/hylafaxplus-conf, +files/hylafaxplus-init, +files/ldconfig-patch,
219 +metadata.xml:
220 several additional fixes requested by repoman
221
222 *hylafaxplus-5.5.1 (05 Apr 2012)
223
224 05 Apr 2012; Matthew Marlowe <mattm@g.o> +hylafaxplus-5.5.1.ebuild,
225 +files/hylafaxplus-conf, +files/hylafaxplus-init, +files/ldconfig-patch,
226 +metadata.xml:
227 minor fixes to user created ebuild for first version, temp masked until all
228 bugs and issues worked out
229
230
231
232
233 1.1 net-misc/hylafaxplus/metadata.xml
234
235 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/metadata.xml?rev=1.1&view=markup
236 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/metadata.xml?rev=1.1&content-type=text/plain
237
238 Index: metadata.xml
239 ===================================================================
240 <?xml version="1.0" encoding="UTF-8"?>
241 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
242 <pkgmetadata>
243 <maintainer>
244 <email>mattm@g.o</email>
245 <name>Matthew Marlowe</name>
246 </maintainer>
247 <longdescription>
248 Enterprise client-server fax package for class 1 and 2 fax modems.
249 </longdescription>
250 <use>
251 <flag name='jbig'>JBIG Fax Compression Support</flag>
252 <flag name='pam'>hfaxd authentication via PAM</flag>
253 <flag name='mgetty'>Receive faxes via serial port connections</flag>
254 <flag name='html'>Convert faxes into html email</flag>
255 </use>
256 </pkgmetadata>
257
258
259
260 1.1 net-misc/hylafaxplus/Manifest
261
262 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/Manifest?rev=1.1&view=markup
263 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/hylafaxplus/Manifest?rev=1.1&content-type=text/plain
264
265 Index: Manifest
266 ===================================================================
267 AUX hylafaxplus-conf 572 RMD160 6494a6799af3708890fbe386678dc3f6498bae3b SHA1 7bab9e00be23e752b7deade652799683ef1cd66a SHA256 bc8851e560282ebce22073c146acaf2e848c4c1bdb49c4862b7f66c2062c2942
268 AUX hylafaxplus-init 3139 RMD160 f1183b6622cfec7b914dee456c7ce7008ef17967 SHA1 263bd93fc5ca9e9a1e17397776a498b2468f2d93 SHA256 be1280b1e28f7135f9bad491bbd068eabe8c450f43f69892676c5bea1bc7ebfd
269 AUX ldconfig-patch 463 RMD160 0ec21efb03d7c2e1b8ad109af5f416d6e9503729 SHA1 9d583db8da2eb460a0d48a82c79eef3f85f66c71 SHA256 7f2bef0bad6aa0c6474d3bdaf486a4637b75d3312348e6633a89fab66985786b
270 DIST hylafax-5.5.1.tar.gz 1304020 RMD160 5d8cfb64e903f5cf616aef9eacf0bea0daa0d316 SHA1 7ed0b864dd89689088c9a4256205afcb2444726b SHA256 96ac3dd60e3740184e3a5a68f0eeeafcede9aa9d3cc38bb3e8a4c06fb45f5f11
271 EBUILD hylafaxplus-5.5.1.ebuild 5123 RMD160 ae89d0fb3ffc23c0c84e2f5234b2fbb38d1647eb SHA1 f5e16535e712765a53067b81b62f4497d7521212 SHA256 b9701e8dd44095554ee940523db08a9e7c7183466bed1c39f0108fe8a4d12e2a
272 MISC ChangeLog 650 RMD160 74839bc78eb44d6d7761050e8b84e88f1b6565ec SHA1 ad6df3b1fd808297fc3da82c2772af820a5fbdda SHA256 03d110f84d728e0f4421d4c8bb2b96fd9f6d6c932a06c990e3c1c129c348b397
273 MISC metadata.xml 579 RMD160 b975907833247c77f3c0a131dc4b66c928267041 SHA1 79feeb7a8314fd90c8ae3edea9ff413529bbdb0e SHA256 52e22dd8e1acd94aea28b013c232afe316b2b3eb69cd52e4e2d25949fed6bf2d