wok-6.x view hylafax/receipt @ rev 23934
hylafax: accept tiff version 4.1 as well
author | Hans-G?nter Theisgen |
---|---|
date | Mon Sep 07 16:46:15 2020 +0100 (2020-09-07) |
parents | be2ab6ab8f7e |
children | af8d823a3077 |
line source
1 # SliTaz package receipt.
3 PACKAGE="hylafax"
4 VERSION="6.0.7"
5 CATEGORY="network"
6 SHORT_DESC="enterprise-class system for sending and receiving facsimiles."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.hylafax.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://ftp.hylafax.org/source/$TARBALL"
14 DEPENDS="ghostscript jpeg mgetty postfix tiff tiff-apps zlib"
15 BUILD_DEPENDS="ghostscript mgetty tiff-apps tiff-dev zlib-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # accept tiff version 4.1 as well:
21 sed -i 's|4.\[0\]|4.\[01\]|' configure
23 [ -f defs.org ] && cp defs.org defs
24 [ -f etc/Makefile.org ] && cp etc/Makefile.org etc/Makefile
25 sed -i -e 's|=/usr/local/|=/usr/|g' configure
26 yes '' | ./configure
27 make
28 cp defs defs.org
29 sed -i -e "s|= /usr/bin|= $DESTDIR/usr/bin|" \
30 -e "s|= /usr/sbin|= $DESTDIR//usr/sbin|" \
31 -e "s|= /usr/lib|= $DESTDIR/usr/lib|" \
32 -e "s|= /usr/man|= $DESTDIR/usr/man|" \
33 -e "s|= /var/|= $DESTDIR/var/|" \
34 -e 's|= uucp|= root|' \
35 -e 's|= bin|= root|' \
36 defs
37 mkdir -p $DESTDIR/usr/lib
38 mkdir -p $DESTDIR/var/spool/hylafax
39 cp etc/Makefile etc/Makefile.org
40 sed -i -e "s|/etc/init.d|$DESTDIR/etc/init.d|" \
41 -e "s|/etc/config|$DESTDIR/etc/config|" \
42 etc/Makefile
43 mkdir -p $DESTDIR/etc/init.d
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 cp -a $install/usr/lib $fs/usr
55 cp -a $install/var $fs
56 rm -rf $install/var/spool/hylafax/etc/templates
57 cp -a $install/etc $fs
58 }