updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / atftp / PKGBUILD
bloba8fb05537a81c0047edb401fa8d435d28db4118e
1 # Contributor: Benjamin Bukowski <benjamin.bukowski@gmail.com>
3 pkgname=atftp
4 _pkgver=0.7
5 _patchver=11
6 pkgver=${_pkgver}.${_patchver}
7 pkgrel=1
8 pkgdesc="a client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349"
9 arch=('i686' 'x86_64')
10 url="http://freshmeat.net/projects/atftp/"
11 license=('GPL')
12 depends=('pcre' 'readline')
13 makedepends=('bash' 'gcc')
14 conflicts=('netkit-tftp')
15 replaces=('netkit-tftp')
16 backup=("etc/conf.d/atftpd")
17 install=
18 source=("http://ftp.debian.org/debian/pool/main/a/atftp/atftp_${_pkgver}.dfsg.orig.tar.gz"
19                                 "http://ftp.debian.org/debian/pool/main/a/atftp/atftp_${_pkgver}.dfsg-${_patchver}.diff.gz"
20                                 "atftpd.rc"     "atftpd.conf")
22 build() {
23   cd ${srcdir}/${pkgname}-${_pkgver}.dfsg
25   patch -p1 -i "${srcdir}/${pkgname}_${_pkgver}.dfsg-${_patchver}.diff"
27   ./configure --prefix=/usr --mandir=/usr/share/man \
28               --enable-libreadline --disable-libwrap || return 1
29   make || return 1
30   make DESTDIR=${pkgdir} install || return 1
32   install -Dm755 ${srcdir}/atftpd.rc ${pkgdir}/etc/rc.d/atftpd
33         install -Dm644 ${srcdir}/atftpd.conf ${pkgdir}/etc/conf.d/atftpd
34         install -dm775 --group=nobody ${pkgdir}/var/tftpboot 
36   # remove in.tftpd link as it conflicts with extra/tftp-hpa
37   rm "${pkgdir}/usr/share/man/man8/in.tftpd.8"
38   rm "${pkgdir}/usr/sbin/in.tftpd"
40 md5sums=('aa269044a6f992eca78fee2f6119643c'
41          '1636f199bf32c754a7bf34a5c647d138'
42          '748077fe60ae3a0bae20ada22ab70c61'
43          '28efb8468be3f4891b0ad5e5d67bc443')