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