
atftp PKGBUILD
By: a guest on
Apr 26th, 2010 | syntax:
Bash | size: 1.26 KB | hits: 132 | expires: Never
# Contributor: Humbert Julien <julroy67 [AT] gmail.com>
# Contributor: Jesse Young <jesseyoung@gmail.com>
pkgname=atftp
pkgver=0.7.6
pkgrel=2
pkgdesc="a client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349"
arch=('i686' 'x86_64')
url="http://freshmeat.net/projects/atftp/"
license=('GPL')
depends=('pcre' 'readline' 'tcp_wrappers')
makedepends=('bash' 'gcc')
conflicts=('netkit-tftp')
replaces=('netkit-tftp')
backup=()
install=
source=("http://ftp.de.debian.org/debian/pool/main/a/${pkgname}/${pkgname}_0.7.dfsg.orig.tar.gz"
"http://ftp.de.debian.org/debian/pool/main/a/atftp/atftp_0.7.dfsg-6.diff.gz")
md5sums=('aa269044a6f992eca78fee2f6119643c'
'b5d570affb1412e8e90b9dd24554ad96')
build() {
cd $startdir/src/$pkgname-0.7.dfsg
if [[ -z $srcdir/atftp_0.7.dfsg-6.diff ]] ; then
gunzip "$startdir/atftp_0.7.dfsg-6.diff.gz"
fi
patch -p1 -i "$startdir/atftp_0.7.dfsg-6.diff"
./configure --prefix=/usr --mandir=/usr/share/man \
--enable-libreadline || return 1
make || return 1
make DESTDIR=$startdir/pkg install || return 1
# remove in.tftpd link as it conflicts with extra/tftp-hpa
rm "$startdir/pkg/usr/share/man/man8/in.tftpd.8"
rm "$startdir/pkg/usr/sbin/in.tftpd"
}