updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / sendfile / PKGBUILD
blob3e0e502cb429b439d2479770282b41bc72989925
1 # Maintainer: mockfrog <arch AT mockfrog DOT de>
2 # Contributor: dorphell <dorphell@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 pkgname=sendfile
6 pkgver=2.1b
7 pkgrel=1
8 pkgdesc="The sendfile client transfers files to the sendfile daemon of the recipient's host"
9 arch=(i686 x86_64)
10 license=('GPL2')
11 optdepends=('xinetd')
12 depends=('perl')
13 source=(http://fex.rus.uni-stuttgart.de/download/${pkgname}-${pkgver}.tar.gz saft.xinetd)
14 md5sums=('0397cbbf6261b27a1ddcbbd11ff7335c'
15          '0e91e1865462e6877883dae0adb215ba')
16 url="http://www.belwue.de/projekte/saft/sendfile-us.html"
18 build() {
19 export MAKEFLAGS="-1"
20 cd ${srcdir}/${pkgname}-${pkgver}
21 ./makeconfig BINDIR=/usr/bin CONFIG=/etc SERVERDIR=/sbin MANDIR=/usr/share/man
22 sed -i s/\\/usr\\/local\\/etc\\//\\/etc\\// ./etc/sfdconf
23 sed -i 1c\\'#!/usr/bin/perl -w' ./src/pussy 
24 make || return 1
26 mkdir -p ${pkgdir}/var/spool/sendfile/LOG
27 chmod 700  ${pkgdir}/var/spool/sendfile/LOG
28 mkdir -p ${pkgdir}/var/spool/sendfile/OUTGOING
29 chmod 1777 ${pkgdir}/var/spool/sendfile/OUTGOING
31 cd ${srcdir}/${pkgname}-${pkgver}/src
32 install sendfiled -D ${pkgdir}/sbin/sendfiled
33 install fetchfile -D ${pkgdir}/usr/bin/fetchfile
34 install pussy -D ${pkgdir}/usr/bin/pussy
35 install receive -D ${pkgdir}/usr/bin/receive
36 install sendmsg -D ${pkgdir}/usr/bin/sendmsg
37 install sendfile -D ${pkgdir}/usr/bin/sendfile
38 install utf7encode -D ${pkgdir}/usr/bin/utf7encode
39 install wlock -D ${pkgdir}/usr/bin/wlock
40 ln -s /usr/bin/utf7encode ${pkgdir}/usr/bin/utf7decode
42 cd ${srcdir}/${pkgname}-${pkgver}/etc
43 install check_sendfile -D ${pkgdir}/etc/profile.d/check_sendfile.sh
45 install -m644 ${startdir}/saft.xinetd -D ${pkgdir}/etc/xinetd.d/saft
46 install -m644 sendfile.deny -D ${pkgdir}/etc/sendfile.deny
47 install -m644 sendfile.cf -D ${pkgdir}/etc/sendfile.cf
49 install sfconf -D ${pkgdir}/usr/bin/sfconf
50 install sfdconf -D ${pkgdir}/usr/bin/sfdconf
52 cd ${srcdir}/${pkgname}-${pkgver}/doc
53 install -m644 sendmsg.1 -D ${pkgdir}/usr/share/man/man1/sendmsg.1
54 install -m644 sendfile.1 -D ${pkgdir}/usr/share/man/man1/sendfile.1
55 install -m644 receive.1 -D ${pkgdir}/usr/share/man/man1/receive.1
56 install -m644 fetchfile.1 -D ${pkgdir}/usr/share/man/man1/fetchfile.1