1 # Contributor: Benjamin Bukowski <benjamin.bukowski@gmail.com>
6 pkgver=${_pkgver}.${_patchver}
8 pkgdesc="a client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349"
10 url="http://freshmeat.net/projects/atftp/"
12 depends=('pcre' 'readline')
13 makedepends=('bash' 'gcc')
14 conflicts=('netkit-tftp')
15 replaces=('netkit-tftp')
16 backup=("etc/conf.d/atftpd")
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")
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
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')