wok annotate hylafax/receipt @ rev 25783

Up verbiste (0.1.49)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 24 13:23:01 2024 +0000 (7 weeks ago)
parents bc2b9d9bed6f
children
rev   line source
pascal@17485 1 # SliTaz package receipt.
pascal@17485 2
pascal@17485 3 PACKAGE="hylafax"
pascal@21031 4 VERSION="6.0.7"
pascal@17485 5 CATEGORY="network"
pascal@17485 6 SHORT_DESC="enterprise-class system for sending and receiving facsimiles."
pascal@17485 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17485 8 LICENSE="BSD"
Hans-G?nter@23934 9 WEB_SITE="https://www.hylafax.org/"
Hans-G?nter@23934 10
pascal@17485 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17485 12 WGET_URL="ftp://ftp.hylafax.org/source/$TARBALL"
pascal@17485 13
Hans-G?nter@23934 14 DEPENDS="ghostscript jpeg mgetty postfix tiff tiff-apps zlib"
Hans-G?nter@23934 15 BUILD_DEPENDS="ghostscript mgetty tiff-apps tiff-dev zlib-dev"
pascal@17485 16
pascal@24445 17 # What is the latest version available today?
pascal@24445 18 current_version()
pascal@24445 19 {
pascal@24614 20 wget -O - http://git.hylafax.org/HylaFAX 2>/dev/null | \
pascal@24614 21 sed '/>log</!d;/HYLAFAX/!d;s|.*HYLAFAX-||;s|".*||;s|_|.|g;q'
pascal@24445 22 }
pascal@24445 23
pascal@17485 24 # Rules to configure and make the package.
pascal@17485 25 compile_rules()
pascal@17485 26 {
Hans-G?nter@25355 27 # accept tiff version 4.* as well:
Hans-G?nter@25355 28 sed -i 's|4.\[0\]|4.*|' configure
Hans-G?nter@23934 29
pascal@17485 30 [ -f defs.org ] && cp defs.org defs
pascal@17485 31 [ -f etc/Makefile.org ] && cp etc/Makefile.org etc/Makefile
pascal@17485 32 sed -i -e 's|=/usr/local/|=/usr/|g' configure
pascal@17485 33 yes '' | ./configure
pascal@17485 34 make
pascal@17485 35 cp defs defs.org
pascal@17485 36 sed -i -e "s|= /usr/bin|= $DESTDIR/usr/bin|" \
pascal@17485 37 -e "s|= /usr/sbin|= $DESTDIR//usr/sbin|" \
pascal@17485 38 -e "s|= /usr/lib|= $DESTDIR/usr/lib|" \
pascal@17485 39 -e "s|= /usr/man|= $DESTDIR/usr/man|" \
pascal@17485 40 -e "s|= /var/|= $DESTDIR/var/|" \
pascal@17485 41 -e 's|= uucp|= root|' \
pascal@17485 42 -e 's|= bin|= root|' \
pascal@17485 43 defs
Hans-G?nter@23934 44 mkdir -p $DESTDIR/usr/lib
Hans-G?nter@23934 45 mkdir -p $DESTDIR/var/spool/hylafax
Hans-G?nter@23934 46 cp etc/Makefile etc/Makefile.org
pascal@17485 47 sed -i -e "s|/etc/init.d|$DESTDIR/etc/init.d|" \
pascal@17485 48 -e "s|/etc/config|$DESTDIR/etc/config|" \
pascal@17485 49 etc/Makefile
pascal@17485 50 mkdir -p $DESTDIR/etc/init.d
pascal@17485 51 make DESTDIR=$DESTDIR install
pascal@17485 52 }
pascal@17485 53
pascal@17485 54 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17485 55 genpkg_rules()
pascal@17485 56 {
Hans-G?nter@25355 57 cook_copy_folders bin
Hans-G?nter@25355 58 cook_copy_folders lib
Hans-G?nter@25355 59 cook_copy_folders sbin
Hans-G?nter@25355 60 cook_copy_folders var
Hans-G?nter@23934 61 rm -rf $install/var/spool/hylafax/etc/templates
Hans-G?nter@23934 62 cp -a $install/etc $fs
pascal@17485 63 }