diff options
author | root <root@rshg054.dnsready.net> | 2012-01-31 23:14:57 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-31 23:14:57 +0000 |
commit | c34f78dd37c2a2015d43de5d89748a2f8147ba1b (patch) | |
tree | 2e3912930db02e8f8cbfa8a58eae203b886fa2d9 /testing/hylafax/PKGBUILD | |
parent | 902eddd7e029eda6fc1c668b31e696c6ca3edbc7 (diff) |
Tue Jan 31 23:14:56 UTC 2012
Diffstat (limited to 'testing/hylafax/PKGBUILD')
-rw-r--r-- | testing/hylafax/PKGBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/hylafax/PKGBUILD b/testing/hylafax/PKGBUILD new file mode 100644 index 000000000..74ece5343 --- /dev/null +++ b/testing/hylafax/PKGBUILD @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 148161 2012-01-30 18:47:17Z ibiru $ +# Maintainer: Paul Mattal <paul@archlinux.org> +pkgname=hylafax +pkgver=6.0.5 +pkgrel=3 +pkgdesc="Fax Server" +arch=('i686' 'x86_64') +install='hylafax.install' +license=('custom') +depends=('libtiff' 'pam' 'ghostscript') +makedepends=('smtp-server') +url="http://www.hylafax.org/" +backup=(var/spool/hylafax/bin/{faxrcvd,notify} + usr/lib/fax/{faxcover.ps,hfaxd.conf,pagesizes,typerules} + var/spool/hylafax/etc/hosts.hfaxd) +source=(ftp://ftp.hylafax.org/source/${pkgname}-${pkgver}.tar.gz + hylafax + hylafax.cron.daily + config.local + configure-6.0.5.patch + hylafax-libtiff4.patch) +md5sums=('eb9ac942354ad708e20e4583cec6615f' + '6602288a405324d8c8e3c5eac2bf19fd' + '52beffe7dc296b4f9ce9fd0387f7804e' + '0d2ce24d918226a852539aebf57d3f4a' + '51d9f639bb76e5e39cdc8e2ac07e208d' + '3d239c186f24720e945508d349b069b1') + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + cp ../config.local . + # fix compiling + patch -Np0 -i ../configure-6.0.5.patch + patch -Np1 -i ../hylafax-libtiff4.patch + ./configure --nointeractive --with-OPTIMIZER="${CFLAGS}" + make +} + +package () { + cd "$srcdir/${pkgname}-${pkgver}" + mkdir -p "$pkgdir"/usr/{bin,lib/fax,sbin,share/ghostscript/fonts} + mkdir -p "$pkgdir"/var/{spool/hylafax,lock} + make ROOT="$pkgdir" install + install -D -m 755 "$srcdir"/hylafax "$pkgdir"/etc/rc.d/hylafax + install -D -m 744 "$srcdir"/hylafax.cron.daily "$pkgdir"/etc/cron.daily/hylafax + # add missing awk file for notify-4.1 script + install -D -m 755 "$srcdir"/${pkgname}-${pkgver}/util/notify.awk \ + "$pkgdir"/var/spool/hylafax/bin/notify.awk + # fix permission on /var/lock + chmod 1777 "$pkgdir"/var/lock + + install -D -m644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT +} |