Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/hylafaxplus/
Date: Sun, 28 Aug 2022 00:05:07
Message-Id: 1661606885.f220ced899998a40d40158ec7b364b929713f295.sam@gentoo
1 commit: f220ced899998a40d40158ec7b364b929713f295
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 27 13:28:05 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 27 13:28:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f220ced8
7
8 net-misc/hylafaxplus: add 7.0.6
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/hylafaxplus/Manifest | 1 +
13 net-misc/hylafaxplus/hylafaxplus-7.0.6.ebuild | 160 ++++++++++++++++++++++++++
14 2 files changed, 161 insertions(+)
15
16 diff --git a/net-misc/hylafaxplus/Manifest b/net-misc/hylafaxplus/Manifest
17 index b133afba0840..c73f52d309e6 100644
18 --- a/net-misc/hylafaxplus/Manifest
19 +++ b/net-misc/hylafaxplus/Manifest
20 @@ -1 +1,2 @@
21 DIST hylafax-7.0.3.tar.gz 1405116 BLAKE2B dbf8f87380929eb79ca0f18042c3397460dd6774f16defde8e9427d1d14094e00f6be491552f3ff6cc4c3d1fad0ec67a0c1a5fa3b4cb1e07c2f0c956eaefe8ed SHA512 938a21e4573fdf12bbc03dfee85e00555e7790a83a26316ac9cd1983501860858175d599c35f3b383cb0748518644587c203fb429966b5de3b615689d856281a
22 +DIST hylafax-7.0.6.tar.gz 1418749 BLAKE2B 83fff43dbc5c51f542aa847f61ae1617514a4260695d5c79a036416578ac632a778d0b5263a80fa7ccea9e9923a783759295a39199bdd32a2cb0ecac47ac91b4 SHA512 d1f69e13017f5d013ff39cf050c3a7ac6cef19a9ee5910ebe774a7ae06d7d22fd21e31de9734847764caea995539f578c3c458ecec7b9523b5823a841337d9cb
23
24 diff --git a/net-misc/hylafaxplus/hylafaxplus-7.0.6.ebuild b/net-misc/hylafaxplus/hylafaxplus-7.0.6.ebuild
25 new file mode 100644
26 index 000000000000..c6074f9715ad
27 --- /dev/null
28 +++ b/net-misc/hylafaxplus/hylafaxplus-7.0.6.ebuild
29 @@ -0,0 +1,160 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit edo 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="https://hylafax.sourceforge.io/"
42 +SRC_URI="mirror://sourceforge/hylafax/${MY_P}.tar.gz"
43 +S="${WORKDIR}"/${MY_P}
44 +
45 +LICENSE="hylafaxplus"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="html jbig lcms ldap mgetty pam"
49 +
50 +DEPEND="
51 + app-text/ghostscript-gpl
52 + media-libs/tiff[jbig?]
53 + media-libs/libjpeg-turbo:=
54 + >=sys-libs/zlib-1.1.4
55 + virtual/awk
56 + virtual/libcrypt:=
57 + virtual/mta
58 + jbig? ( media-libs/jbigkit )
59 + lcms? ( media-libs/lcms )
60 + ldap? ( net-nds/openldap:= )
61 + mgetty? ( net-dialup/mgetty[-fax] )
62 + pam? ( sys-libs/pam )
63 +"
64 +RDEPEND="
65 + ${DEPEND}
66 + !net-dialup/mgetty[fax]
67 + !net-dialup/sendpage
68 + net-mail/metamail
69 +"
70 +
71 +CONFIG_PROTECT="${CONFIG_PROTECT} /var/spool/fax/etc /usr/lib/fax"
72 +CONFIG_PROTECT_MASK="${CONFIG_PROTECT_MASK} /var/spool/fax/etc/xferfaxlog"
73 +
74 +# See bug #706154, bug #810658 if need to patch for newer libtiff.
75 +
76 +PATCHES=(
77 + "${FILESDIR}"/ldconfig-patch
78 +)
79 +
80 +src_prepare() {
81 + default
82 +
83 + # Force it not to strip binaries
84 + for dir in etc util faxalter faxcover faxd faxmail faxrm faxstat \
85 + hfaxd sendfax sendpage ; do
86 + sed -i -e "s:-idb:-idb \"nostrip\" -idb:g" \
87 + "${dir}"/Makefile.in || die "sed on ${dir}/Makefile.in failed"
88 + done
89 +
90 + sed -i -e "s:hostname:hostname -f:g" util/{faxrcvd,pollrcvd}.sh.in || die "sed on hostname failed"
91 +
92 + # Respect LDFLAGS (at least partially)
93 + sed -i -e "/^LDFLAGS/s/LDOPTS}/LDOPTS} ${LDFLAGS}/" defs.in || die "sed on defs.in failed"
94 +
95 + sed -i -e "s|-fpic|-fPIC|g" \
96 + configure || die
97 +}
98 +
99 +src_configure() {
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/${PF}/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 +
122 + if use mgetty; then
123 + my_conf+=(
124 + --with-PATH_GETTY=/sbin/mgetty
125 + --with-PATH_EGETTY=/sbin/mgetty
126 + --with-PATH_VGETTY=/usr/sbin/vgetty
127 + )
128 + else
129 + # GETTY defaults to /sbin/agetty
130 + my_conf+=(
131 + --with-PATH_EGETTY=/bin/false
132 + --with-PATH_VGETTY=/bin/false
133 + )
134 + fi
135 +
136 + # --enable-pam isn't valid
137 + use pam || my_conf+=( $(use_enable pam) )
138 + use lcms || my_conf+=( $(use_enable lcms) )
139 + use ldap || my_conf+=( $(use_enable ldap) )
140 + use jbig || my_conf+=( $(use_enable jbig) )
141 +
142 + tc-export CC CXX AR RANLIB
143 +
144 + edo ./configure --nointeractive "${my_conf[@]}"
145 +}
146 +
147 +src_compile() {
148 + # Parallel building is borked, bug #????
149 + emake -j1
150 +}
151 +
152 +src_install() {
153 + dodir /usr/{bin,sbin} /usr/$(get_libdir)/fax /usr/share/man
154 + dodir /var/spool /var/spool/fax
155 + fowners uucp:uucp /var/spool/fax
156 + fperms 0600 /var/spool/fax
157 +
158 + dodir /usr/share/doc/${PF}/samples
159 + emake DESTDIR="${D}" \
160 + BIN="${D}/usr/bin" \
161 + SBIN="${D}/usr/sbin" \
162 + LIBDIR="${D}/usr/$(get_libdir)" \
163 + LIB="${D}/usr/$(get_libdir)" \
164 + LIBEXEC="${D}/usr/sbin" \
165 + LIBDATA="${D}/usr/$(get_libdir)/fax" \
166 + DIR_LOCALE="${D}/usr/share/locale" \
167 + MAN="${D}/usr/share/man" \
168 + SPOOL="${D}/var/spool/fax" \
169 + HTMLDIR="${D}/usr/share/doc/${PF}/html" \
170 + install
171 +
172 + keepdir /var/spool/fax/{archive,client,etc,pollq,recvq,tmp}
173 + keepdir /var/spool/fax/{status,sendq,log,info,doneq,docq,dev}
174 +
175 + einfo "Adding env.d entry for ${PN}"
176 + newenvd - 99hylafaxplus <<-EOF
177 + PATH="/var/spool/fax/bin"
178 + CONFIG_PROTECT="/var/spool/fax/etc /usr/$(get_libdir)/fax"
179 + CONFIG_PROTECT_MASK="/var/spool/fax/etc/xferfaxlog"
180 + EOF
181 +
182 + newconfd "${FILESDIR}"/${PN}-conf ${PN}
183 + newinitd "${FILESDIR}"/${PN}-init-r1 ${PN}
184 +
185 + use pam && pamd_mimic_system ${MY_PN} auth account session
186 +
187 + einstalldocs
188 + docinto samples
189 +}