wok-next diff hylafax/receipt @ rev 18481
bash: post_install() not [ fails ] when you refuse to make bash default
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Oct 08 04:06:36 2015 +0300 (2015-10-08) |
parents | |
children | d5aab818505e |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/hylafax/receipt Thu Oct 08 04:06:36 2015 +0300 1.3 @@ -0,0 +1,52 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="hylafax" 1.7 +VERSION="6.0.6" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="enterprise-class system for sending and receiving facsimiles." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="BSD" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.hylafax.org/" 1.14 +WGET_URL="ftp://ftp.hylafax.org/source/$TARBALL" 1.15 + 1.16 +DEPENDS="jpeg tiff tiff-apps zlib postfix mgetty ghostscript" 1.17 +BUILD_DEPENDS="tiff-dev tiff-apps zlib-dev mgetty ghostscript" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + [ -f defs.org ] && cp defs.org defs 1.23 + [ -f etc/Makefile.org ] && cp etc/Makefile.org etc/Makefile 1.24 + sed -i -e 's|=/usr/local/|=/usr/|g' configure 1.25 + yes '' | ./configure 1.26 + make 1.27 + cp defs defs.org 1.28 + sed -i -e "s|= /usr/bin|= $DESTDIR/usr/bin|" \ 1.29 + -e "s|= /usr/sbin|= $DESTDIR//usr/sbin|" \ 1.30 + -e "s|= /usr/lib|= $DESTDIR/usr/lib|" \ 1.31 + -e "s|= /usr/man|= $DESTDIR/usr/man|" \ 1.32 + -e "s|= /var/|= $DESTDIR/var/|" \ 1.33 + -e 's|= uucp|= root|' \ 1.34 + -e 's|= bin|= root|' \ 1.35 + defs 1.36 + mkdir -p $DESTDIR/usr/lib $DESTDIR/var/spool/hylafax 1.37 + cp etc/Makefile etc/Makefile.org 1.38 + sed -i -e "s|/etc/init.d|$DESTDIR/etc/init.d|" \ 1.39 + -e "s|/etc/config|$DESTDIR/etc/config|" \ 1.40 + etc/Makefile 1.41 + mkdir -p $DESTDIR/etc/init.d 1.42 + make DESTDIR=$DESTDIR install 1.43 +} 1.44 + 1.45 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 +genpkg_rules() 1.47 +{ 1.48 + mkdir -p $fs/usr 1.49 + cp -a $install/usr/bin $fs/usr 1.50 + cp -a $install/usr/sbin $fs/usr 1.51 + cp -a $install/usr/lib $fs/usr 1.52 + cp -a $install/var $fs 1.53 + rm -rf $install/var/spool/hylafax/etc/templates 1.54 + cp -a $install/etc $fs 1.55 +}