wok-next view hylafax/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 75632eca5b07
children
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="ghostscript mgetty tiff-dev zlib-dev"
16 compile_rules()
17 {
18 [ -f defs.org ] && cp defs.org defs
19 [ -f etc/Makefile.org ] && cp etc/Makefile.org etc/Makefile
21 sed -i -e 's|=/usr/local/|=/usr/|g' \
22 configure
23 yes '' | ./configure
24 make
25 cp defs defs.org
26 sed \
27 -e "s|= /usr/bin|= $install/usr/bin|" \
28 -e "s|= /usr/sbin|= $install//usr/sbin|" \
29 -e "s|= /usr/lib|= $install/usr/lib|" \
30 -e "s|= /usr/man|= $install/usr/man|" \
31 -e "s|= /var/|= $install/var/|" \
32 -e 's|= uucp|= root|' \
33 -e 's|= bin|= root|' \
34 -i defs
36 mkdir -p $install/usr/lib
37 mkdir -p $install/var/spool/hylafax
39 cp etc/Makefile etc/Makefile.org
40 sed -i -e "s|/etc/init.d|$install/etc/init.d|" \
41 -e "s|/etc/config|$install/etc/config|" \
42 etc/Makefile
43 mkdir -p $install/etc/init.d
44 make DESTDIR=$install install
45 }
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/sbin $fs/usr
53 cp -a $install/usr/lib $fs/usr
54 cp -a $install/var $fs
55 rm -rf $install/var/spool/hylafax/etc/templates
57 cp -a $install/etc $fs
59 DEPENDS="ghostscript jpeg libtiff mgetty postfix tiff zlib"
60 }