wok-next view hylafax/receipt @ rev 21257

encfs: use cmake
author Hans-G?nter Theisgen
date Fri Dec 06 13:47:57 2019 +0100 (2019-12-06)
parents d5aab818505e
children fb066ce7f955
line source
1 # SliTaz package receipt v2.
3 PACKAGE="hylafax"
4 VERSION="6.0.6"
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 BUILD_DEPENDS="tiff-dev zlib-dev mgetty ghostscript"
16 compile_rules() {
17 [ -f defs.org ] && cp defs.org defs
18 [ -f etc/Makefile.org ] && cp etc/Makefile.org etc/Makefile
19 sed -i -e 's|=/usr/local/|=/usr/|g' configure
20 yes '' | ./configure
21 make
22 cp defs defs.org
23 sed \
24 -e "s|= /usr/bin|= $install/usr/bin|" \
25 -e "s|= /usr/sbin|= $install//usr/sbin|" \
26 -e "s|= /usr/lib|= $install/usr/lib|" \
27 -e "s|= /usr/man|= $install/usr/man|" \
28 -e "s|= /var/|= $install/var/|" \
29 -e 's|= uucp|= root|' \
30 -e 's|= bin|= root|' \
31 -i defs
32 mkdir -p $install/usr/lib $install/var/spool/hylafax
33 cp etc/Makefile etc/Makefile.org
34 sed -i -e "s|/etc/init.d|$install/etc/init.d|" \
35 -e "s|/etc/config|$install/etc/config|" \
36 etc/Makefile
37 mkdir -p $install/etc/init.d
38 make DESTDIR=$install install
39 }
41 genpkg_rules() {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $install/usr/lib $fs/usr
46 cp -a $install/var $fs
47 rm -rf $install/var/spool/hylafax/etc/templates
48 cp -a $install/etc $fs
49 DEPENDS="jpeg libtiff tiff zlib postfix mgetty ghostscript"
50 }