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