wok annotate hylafax/receipt @ rev 17744

Up zpaq (7.02)
author necrophcodr <necrophcodr@necrophcodr.me>
date Sat Mar 07 18:21:38 2015 +0000 (2015-03-07)
parents
children be2ab6ab8f7e
rev   line source
pascal@17485 1 # SliTaz package receipt.
pascal@17485 2
pascal@17485 3 PACKAGE="hylafax"
pascal@17485 4 VERSION="6.0.6"
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"
pascal@17485 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17485 10 WEB_SITE="http://www.hylafax.org/"
pascal@17485 11 WGET_URL="ftp://ftp.hylafax.org/source/$TARBALL"
pascal@17485 12
pascal@17485 13 DEPENDS="jpeg tiff tiff-apps zlib postfix mgetty ghostscript"
pascal@17485 14 BUILD_DEPENDS="tiff-dev tiff-apps zlib-dev mgetty ghostscript"
pascal@17485 15
pascal@17485 16 # Rules to configure and make the package.
pascal@17485 17 compile_rules()
pascal@17485 18 {
pascal@17485 19 [ -f defs.org ] && cp defs.org defs
pascal@17485 20 [ -f etc/Makefile.org ] && cp etc/Makefile.org etc/Makefile
pascal@17485 21 sed -i -e 's|=/usr/local/|=/usr/|g' configure
pascal@17485 22 yes '' | ./configure
pascal@17485 23 make
pascal@17485 24 cp defs defs.org
pascal@17485 25 sed -i -e "s|= /usr/bin|= $DESTDIR/usr/bin|" \
pascal@17485 26 -e "s|= /usr/sbin|= $DESTDIR//usr/sbin|" \
pascal@17485 27 -e "s|= /usr/lib|= $DESTDIR/usr/lib|" \
pascal@17485 28 -e "s|= /usr/man|= $DESTDIR/usr/man|" \
pascal@17485 29 -e "s|= /var/|= $DESTDIR/var/|" \
pascal@17485 30 -e 's|= uucp|= root|' \
pascal@17485 31 -e 's|= bin|= root|' \
pascal@17485 32 defs
pascal@17485 33 mkdir -p $DESTDIR/usr/lib $DESTDIR/var/spool/hylafax
pascal@17485 34 cp etc/Makefile etc/Makefile.org
pascal@17485 35 sed -i -e "s|/etc/init.d|$DESTDIR/etc/init.d|" \
pascal@17485 36 -e "s|/etc/config|$DESTDIR/etc/config|" \
pascal@17485 37 etc/Makefile
pascal@17485 38 mkdir -p $DESTDIR/etc/init.d
pascal@17485 39 make DESTDIR=$DESTDIR install
pascal@17485 40 }
pascal@17485 41
pascal@17485 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17485 43 genpkg_rules()
pascal@17485 44 {
pascal@17485 45 mkdir -p $fs/usr
pascal@17485 46 cp -a $install/usr/bin $fs/usr
pascal@17485 47 cp -a $install/usr/sbin $fs/usr
pascal@17485 48 cp -a $install/usr/lib $fs/usr
pascal@17485 49 cp -a $install/var $fs
pascal@17485 50 rm -rf $install/var/spool/hylafax/etc/templates
pascal@17485 51 cp -a $install/etc $fs
pascal@17485 52 }