blob: 3ba833d54759ee4ec146f1980091c1c3c3e6317d (
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
|
# Contributor: Cameron Banta <cbanta@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=hylafaxplus
_pkgname=hylafax
pkgver=5.5.9
pkgrel=2
pkgdesc="Making the Premier Open-Source Fax Management System Even Better"
url="http://hylafax.sourceforge.net"
arch="all"
license="MIT"
# check/test not supported from upstream
options="!check"
depends="ghostscript bash tiff-tools"
makedepends="zlib-dev tiff-dev gettext-dev openldap-dev lcms2-dev
libffi-dev jbig2dec-dev sed"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/hylafax/${_pkgname}-${pkgver}.tar.gz
$pkgname.initd
$pkgname.confd
musl-reg-startend.patch
"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
# 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
# parallel build breaks libfaxutil dso building
make -j1
}
package(){
cd "$builddir"
# 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="67ac84df2619db7fb88cd7ad3af4beff9918b2481fc8edf7cc7574941161dd7aa6186cfc49c6cdb2a1f073f6cbf2f2a4ed084ca70ebe288bf7cd8e752cd56b2d hylafax-5.5.9.tar.gz
3862cefcd26092000e4489c097537e5e0e2ae1f7c2a7a16b1e933b3bb78d136b6d8a65fb712ae245dd8ca881900408d0d9788bd2e0b859a9569fc6f4ede8cc7c hylafaxplus.initd
a2117eddc8f0ff70a23a90f2001dcb88c5bddee46ffa021d6d1701cc5cfc3bcb0362ead2b1b1ce2b288992728053c5947466d08916649f45e7dfb1876576e50f hylafaxplus.confd
be6e9f9d86340c63919aaf158c92d541904f2567b78ad2742a041f86333549b66715f108012de9a968b78bcdada8f94aa98320cda69724bf518ff3efbdf00f32 musl-reg-startend.patch"
|