wok view hylafax/receipt @ rev 24729

updated libdnet and libdnet-dev (1.12 -> 1.14)
author Hans-G?nter Theisgen
date Tue Mar 15 16:28:57 2022 +0100 (2022-03-15)
parents af8d823a3077
children 42621d26bf58
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.1 as well:
28 sed -i 's|4.\[0\]|4.\[01\]|' 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 mkdir -p $fs/usr
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/usr/sbin $fs/usr
61 cp -a $install/usr/lib $fs/usr
62 cp -a $install/var $fs
63 rm -rf $install/var/spool/hylafax/etc/templates
64 cp -a $install/etc $fs
65 }