Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/hylafaxplus/
Date: Thu, 20 Sep 2018 10:11:00
Message-Id: 1537438248.0f71187c2fa23ef3d373d7b37bec73930e663c4a.jer@gentoo
1 commit: 0f71187c2fa23ef3d373d7b37bec73930e663c4a
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 20 09:53:45 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 20 10:10:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f71187c
7
8 net-misc/hylafaxplus: Version 5.6.1.
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 net-misc/hylafaxplus/Manifest | 1 +
13 net-misc/hylafaxplus/hylafaxplus-5.6.1.ebuild | 162 ++++++++++++++++++++++++++
14 2 files changed, 163 insertions(+)
15
16 diff --git a/net-misc/hylafaxplus/Manifest b/net-misc/hylafaxplus/Manifest
17 index fe42c6252f6..7490efae86e 100644
18 --- a/net-misc/hylafaxplus/Manifest
19 +++ b/net-misc/hylafaxplus/Manifest
20 @@ -1,2 +1,3 @@
21 DIST hylafax-5.5.5.tar.gz 1353495 BLAKE2B e1b41a5cf5502ad28467625495171c085f43f4352b73bfd633da851a1366502aca04a157790ad4a7f3d634a6adbb5dab4c1eeb294283352e9eedaf03c565cb42 SHA512 ee6225ae044c567093103f35c30d848db757636c1d8db78e8f7cb43eb01ea34ab229a81ca4175e2bf30d3c87b598d5b5797b7d92b0dc852bf4b69c697baca8cf
22 DIST hylafax-5.5.9.tar.gz 1364807 BLAKE2B 1e63d28dbe42170af65369ceab6b76b30fb264515992bb7f3561722eccae21e2d790e50eab3f1f9bdbb8c48e369166c90271aa8cf37c1905fda44c3b31b18b71 SHA512 67ac84df2619db7fb88cd7ad3af4beff9918b2481fc8edf7cc7574941161dd7aa6186cfc49c6cdb2a1f073f6cbf2f2a4ed084ca70ebe288bf7cd8e752cd56b2d
23 +DIST hylafax-5.6.1.tar.gz 1370677 BLAKE2B bd93d54f2c3e2c5c4c33617a0d95569c82bcbd32f669fb2ea513b86e112a5743ae6b4ddc8d43f3bd4af6006517e8787392c84bf60e715c104ddb0d819b22985a SHA512 c86c33dc9e8feec4e265156fa3bbda18cf187feeef5c812ff3d3c7857de048a688bb979fcd3494ee8fe58a004a384a2a161d05245c86d0c304311d63f62a9eb1
24
25 diff --git a/net-misc/hylafaxplus/hylafaxplus-5.6.1.ebuild b/net-misc/hylafaxplus/hylafaxplus-5.6.1.ebuild
26 new file mode 100644
27 index 00000000000..18d1e65d47a
28 --- /dev/null
29 +++ b/net-misc/hylafaxplus/hylafaxplus-5.6.1.ebuild
30 @@ -0,0 +1,162 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit pam toolchain-funcs
36 +
37 +MY_PN="${PN/plus/}"
38 +MY_P="${MY_PN}-${PV}"
39 +
40 +DESCRIPTION="Enterprise client-server fax package for class 1 and 2 fax modems"
41 +HOMEPAGE="http://hylafax.sourceforge.net"
42 +SRC_URI="mirror://sourceforge/hylafax/${MY_P}.tar.gz"
43 +
44 +SLOT="0"
45 +LICENSE="hylafaxplus"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="jbig html lcms ldap mgetty pam"
48 +
49 +DEPEND="
50 + >=sys-libs/zlib-1.1.4
51 + app-text/ghostscript-gpl
52 + virtual/mta
53 + media-libs/tiff:0[jbig?]
54 + virtual/jpeg:0
55 + jbig? ( media-libs/jbigkit )
56 + virtual/awk
57 + lcms? ( media-libs/lcms )
58 + ldap? ( net-nds/openldap )
59 + pam? ( virtual/pam )
60 + mgetty? ( net-dialup/mgetty[-fax] )
61 + !net-dialup/mgetty[fax]
62 +"
63 +RDEPEND="${DEPEND}
64 + net-mail/metamail
65 + !net-dialup/sendpage
66 +"
67 +
68 +S="${WORKDIR}/${MY_P}"
69 +
70 +export CONFIG_PROTECT="${CONFIG_PROTECT} /var/spool/fax/etc /usr/lib/fax"
71 +export CONFIG_PROTECT_MASK="${CONFIG_PROTECT_MASK} /var/spool/fax/etc/xferfaxlog"
72 +
73 +PATCHES=( "${FILESDIR}/ldconfig-patch" )
74 +
75 +src_prepare() {
76 + default
77 +
78 + # force it not to strip binaries
79 + for dir in etc util faxalter faxcover faxd faxmail faxrm faxstat \
80 + hfaxd sendfax sendpage ; do
81 + sed -i -e "s:-idb:-idb \"nostrip\" -idb:g" \
82 + "${dir}"/Makefile.in || die "sed failed"
83 + done
84 +
85 + sed -i -e "s:hostname:hostname -f:g" util/{faxrcvd,pollrcvd}.sh.in || die "sed on hostname failed"
86 +
87 + # Respect LDFLAGS(at least partially)
88 + sed -i -e "/^LDFLAGS/s/LDOPTS}/LDOPTS} ${LDFLAGS}/" defs.in || die "sed on defs.in failed"
89 +
90 + sed -i -e "s|-fpic|-fPIC|g" \
91 + configure || die
92 +}
93 +
94 +src_configure() {
95 + do_configure() {
96 + echo ./configure --nointeractive ${1}
97 + # eval required for quoting in ${my_conf} to work properly, better way?
98 + eval ./configure --nointeractive ${1} || die "./configure failed"
99 + }
100 + local my_conf="
101 + --with-DIR_BIN=/usr/bin
102 + --with-DIR_SBIN=/usr/sbin
103 + --with-DIR_LIB=/usr/$(get_libdir)
104 + --with-DIR_LIBEXEC=/usr/sbin
105 + --with-DIR_LIBDATA=/usr/$(get_libdir)/fax
106 + --with-DIR_LOCALE=/usr/share/locale
107 + --with-DIR_LOCKS=/var/lock
108 + --with-DIR_MAN=/usr/share/man
109 + --with-DIR_SPOOL=/var/spool/fax
110 + --with-DIR_HTML=/usr/share/doc/${P}/html
111 + --with-DIR_CGI="${WORKDIR}"
112 + --with-PATH_DPSRIP=/var/spool/fax/bin/ps2fax
113 + --with-PATH_IMPRIP=\"\"
114 + --with-SYSVINIT=no
115 + --with-REGEX=yes
116 + --with-LIBTIFF=\"-ltiff -ljpeg -lz\"
117 + --with-OPTIMIZER=\"${CFLAGS}\"
118 + --with-DSO=auto
119 + --with-HTML=$(usex html)"
120 +
121 + if use mgetty; then
122 + my_conf="${my_conf} \
123 + --with-PATH_GETTY=/sbin/mgetty \
124 + --with-PATH_EGETTY=/sbin/mgetty \
125 + --with-PATH_VGETTY=/usr/sbin/vgetty"
126 + else
127 + # GETTY defaults to /sbin/agetty
128 + my_conf="${my_conf} \
129 + --with-PATH_EGETTY=/bin/false \
130 + --with-PATH_VGETTY=/bin/false"
131 + fi
132 +
133 + #--enable-pam isn't valid
134 + use pam || my_conf="${my_conf} $(use_enable pam)"
135 + use lcms || my_conf="${my_conf} $(use_enable lcms)"
136 + use ldap || my_conf="${my_conf} $(use_enable ldap)"
137 + use jbig || my_conf="${my_conf} $(use_enable jbig)"
138 +
139 + tc-export CC CXX AR RANLIB
140 +
141 + do_configure "${my_conf}"
142 +}
143 +
144 +src_compile() {
145 + # Parallel building is borked, bug #????
146 + emake -j1
147 +}
148 +
149 +src_install() {
150 + dodir /usr/{bin,sbin} /usr/$(get_libdir)/fax /usr/share/man
151 + dodir /var/spool /var/spool/fax
152 + fowners uucp:uucp /var/spool/fax
153 + fperms 0600 /var/spool/fax
154 + dodir "/usr/share/doc/${P}/samples"
155 +
156 + emake DESTDIR="${D}" \
157 + BIN="${D}/usr/bin" \
158 + SBIN="${D}/usr/sbin" \
159 + LIBDIR="${D}/usr/$(get_libdir)" \
160 + LIB="${D}/usr/$(get_libdir)" \
161 + LIBEXEC="${D}/usr/sbin" \
162 + LIBDATA="${D}/usr/$(get_libdir)/fax" \
163 + DIR_LOCALE="${D}/usr/share/locale" \
164 + MAN="${D}/usr/share/man" \
165 + SPOOL="${D}/var/spool/fax" \
166 + HTMLDIR="${D}/usr/share/doc/${PF}/html" \
167 + install
168 +
169 + keepdir /var/spool/fax/{archive,client,etc,pollq,recvq,tmp}
170 + keepdir /var/spool/fax/{status,sendq,log,info,doneq,docq,dev}
171 +
172 + generate_files # in this case, it only generates the env.d entry
173 +
174 + einfo "Adding env.d entry for ${PN}"
175 + doenvd "${T}/99${PN}"
176 +
177 + newconfd "${FILESDIR}/${PN}-conf" ${PN}
178 + newinitd "${FILESDIR}/${PN}-init" ${PN}
179 +
180 + use pam && pamd_mimic_system ${MY_PN} auth account session
181 +
182 + einstalldocs
183 + docinto samples
184 +}
185 +
186 +generate_files() {
187 + cat <<-EOF > "${T}/99${PN}"
188 + PATH="/var/spool/fax/bin"
189 + CONFIG_PROTECT="/var/spool/fax/etc /usr/$(get_libdir)/fax"
190 + CONFIG_PROTECT_MASK="/var/spool/fax/etc/xferfaxlog"
191 + EOF
192 +}