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