blob: 3a488ede5c3f7225033a4a1733a8964cdcad21c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# Contributor: Cameron Banta <cbanta@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=hylafax
pkgver=6.0.7
pkgrel=10
pkgdesc="Sends and receives faxes"
url="http://www.hylafax.org/"
arch="" # https://gitlab.alpinelinux.org/alpine/aports/-/issues/15384
license="MIT"
#depends on gcc for libgcc_s.so, it's scripts are hardcoded to bash
depends="ghostscript bash tiff-tools"
makedepends="zlib-dev tiff-dev gettext-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-openrc"
source="ftp://ftp.hylafax.org/source/hylafax-$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
hylafax-charset.patch
tiff-compat.patch
tiff-4.5.patch
format-security.patch
"
options="!check"
# secfixes:
# 6.0.6-r5:
# - CVE-2018-17141
prepare() {
default_prepare
update_config_guess
}
build() {
# the configure script does not handle ccache or distcc
export CC=gcc
export CXX=g++
./configure \
--nointeractive \
--disable-pam \
--with-DIR_BIN=/usr/bin \
--with-DIR_SBIN=/usr/sbin \
--with-DIR_LIB=/usr/lib \
--with-DIR_LIBEXEC=/usr/sbin \
--with-DIR_LIBDATA=/var/spool/"$pkgname"/lib \
--with-DIR_LOCALE=/usr/share/locale/"$pkgname" \
--with-DIR_LOCKS=/var/lock \
--with-DIR_MAN=/usr/share/man \
--with-DIR_SPOOL=/var/spool/"$pkgname" \
--with-DIR_HTML=/usr/share/doc/"$pkgname"/html \
--with-PATH_IMPRIP="" \
--with-SYSVINIT=no \
--with-REGEX=yes \
--with-LIBTIFF="-ltiff -lz" \
--with-LIBINTL="-lintl" \
--with-DSO=auto \
--with-PATH_EGETTY=/bin/false \
--with-PATH_VGETTY=/bin/false
make
}
package() {
# this makefile has issues installing, it doesn't use the standard
# install - but the following seems to work
mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/sbin
mkdir -p "$pkgdir"/usr/lib/"$pkgname" "$pkgdir"/usr/share/man
mkdir -p "$pkgdir"/usr/share/locale/$pkgname
mkdir -p "$pkgdir"/var/spool/"$pkgname"
mkdir -p "$pkgdir"/var/spool/"$pkgname"/lib
touch "$pkgdir"/var/spool/"$pkgname"/lib/pagesizes
chown uucp:uucp "$pkgdir"/var/spool/"$pkgname"
chmod 0600 "$pkgdir"/var/spool/"$pkgname"
make \
BIN="$pkgdir/usr/bin" \
SBIN="$pkgdir/usr/sbin" \
LIBDIR="$pkgdir/usr/lib" \
LIB="$pkgdir/usr/lib" \
LIBEXEC="$pkgdir/usr/sbin" \
LIBDATA="$pkgdir/var/spool/$pkgname"/lib \
MAN="$pkgdir/usr/share/man" \
LOCALEDIR="$pkgdir/usr/share/locale/$pkgname" \
SPOOL="$pkgdir/var/spool/$pkgname" \
HTMLDIR="$pkgdir/usr/share/doc/$pkgname/html" \
install
install -m644 -D "$srcdir/$pkgname-$pkgver/COPYRIGHT" \
"$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
install -m644 -D "$srcdir/$pkgname-$pkgver/README" \
"$pkgdir"/usr/share/doc/$pkgname/README
install -D -m755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
install -D -m644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname
}
sha512sums="
fc57feb416772a7a4bfaf5c3c76a0c2254ead2f63a72b3dfa465444327d440345a0402b7c7dad14f6d03029302ef39cf160c8ef5bfdee2c966fd15fbaac230a3 hylafax-6.0.7.tar.gz
012e204ee7f86804c8cb249f6c53452b7a36b7140aa4d8f61c5c63cfe1fdfb84c42be46b1e39ca37766d9fcb209db7d96a32a01108d1e66a8f7df28e72167ce0 hylafax.initd
3c07726cc9d7351dceb80a46354c6626e54b033b0f434c1db01db2a3b3ab5e9084d551dd23cae3ab40806f27aa5fa0a5b70c43a6b7802356871c0b343baa2376 hylafax.confd
f97c805a62dfcb57f85f614b6eb28bd6b58e0582ce4f9aa5166337a46d453ea038a098223d879d120f51454008a5e8ed2fa60ba6e8be12af7b7d5a4927c51471 hylafax-charset.patch
0e5efd8d0924857958b44cfac36649fe3143dd45c9b0275da9c9b801d88102e26b857fecd4a9dae6916126959bbb38cd230a1083cabb6fd973478b850226ce37 tiff-compat.patch
74987e151ad36c055179ecf7f716b8927eb76cd7bc056def2b2b93cb71c800f3330b0c57cd19e38281af7181952ec9d851cfb35ba36b3a30c66b92c14f7cb499 tiff-4.5.patch
57e04c5e575a02b3a64bab910e985532dfcf96c8c8613cbb918ee9b7114d4caedf309a27db5ccda3ff3dad97da76e9c3f0c9c81e1c9deab7b71c94411b9b5154 format-security.patch
"
|