wok annotate hylafax/receipt @ rev 24949

updated nagios-nsca (2.9.2 -> 2.10.1)
author Hans-G?nter Theisgen
date Fri Apr 22 17:54:28 2022 +0100 (2022-04-22)
parents af8d823a3077
children 42621d26bf58
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@23934 27 # accept tiff version 4.1 as well:
Hans-G?nter@23934 28 sed -i 's|4.\[0\]|4.\[01\]|' 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 {
pascal@17485 57 mkdir -p $fs/usr
Hans-G?nter@23934 58
Hans-G?nter@23934 59 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23934 60 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@23934 61 cp -a $install/usr/lib $fs/usr
Hans-G?nter@23934 62 cp -a $install/var $fs
Hans-G?nter@23934 63 rm -rf $install/var/spool/hylafax/etc/templates
Hans-G?nter@23934 64 cp -a $install/etc $fs
pascal@17485 65 }