wok-current view hylafax/receipt @ rev 25604

Use gcc49 to build mysql
author Stanislas Leduc <shann@slitaz.org>
date Fri Sep 01 20:31:42 2023 +0000 (16 months ago)
parents bc2b9d9bed6f
children
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - http://git.hylafax.org/HylaFAX 2>/dev/null | \
21 sed '/>log</!d;/HYLAFAX/!d;s|.*HYLAFAX-||;s|".*||;s|_|.|g;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # accept tiff version 4.* as well:
28 sed -i 's|4.\[0\]|4.*|' configure
30 [ -f defs.org ] && cp defs.org defs
31 [ -f etc/Makefile.org ] && cp etc/Makefile.org etc/Makefile
32 sed -i -e 's|=/usr/local/|=/usr/|g' configure
33 yes '' | ./configure
34 make
35 cp defs defs.org
36 sed -i -e "s|= /usr/bin|= $DESTDIR/usr/bin|" \
37 -e "s|= /usr/sbin|= $DESTDIR//usr/sbin|" \
38 -e "s|= /usr/lib|= $DESTDIR/usr/lib|" \
39 -e "s|= /usr/man|= $DESTDIR/usr/man|" \
40 -e "s|= /var/|= $DESTDIR/var/|" \
41 -e 's|= uucp|= root|' \
42 -e 's|= bin|= root|' \
43 defs
44 mkdir -p $DESTDIR/usr/lib
45 mkdir -p $DESTDIR/var/spool/hylafax
46 cp etc/Makefile etc/Makefile.org
47 sed -i -e "s|/etc/init.d|$DESTDIR/etc/init.d|" \
48 -e "s|/etc/config|$DESTDIR/etc/config|" \
49 etc/Makefile
50 mkdir -p $DESTDIR/etc/init.d
51 make DESTDIR=$DESTDIR install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 cook_copy_folders bin
58 cook_copy_folders lib
59 cook_copy_folders sbin
60 cook_copy_folders var
61 rm -rf $install/var/spool/hylafax/etc/templates
62 cp -a $install/etc $fs
63 }