1SUMMARY="Advanced tftp server and client" 2DESCRIPTION="atftp is a client/server implementation of the TFTP protocol \ 3that implements RFCs 1350, 2090, 2347, 2348, and 2349. The server is \ 4multi-threaded and the client presents a friendly interface using libreadline." 5HOMEPAGE="https://sourceforge.net/projects/atftp/" 6COPYRIGHT="2000-2022 Jean-Pierre Lefebvre & Remi Lefebvre" 7LICENSE="GNU GPL v2" 8REVISION="1" 9SOURCE_URI="https://sourceforge.net/projects/atftp/files/atftp-$portVersion.tar.gz" 10CHECKSUM_SHA256="df2aa089c7670f9eab40e5598e5d2cb6a582dc5182926ea50b4d690e4e37f316" 11SOURCE_FILENAME="atftp-$portVersion.tar.gz" 12PATCHES="atftp-$portVersion.patchset" 13 14ARCHITECTURES="all !x86_gcc2" 15SECONDARY_ARCHITECTURES="x86" 16 17commandSuffix=$secondaryArchSuffix 18commandBinDir=$binDir 19if [ "$targetArchitecture" = x86_gcc2 ]; then 20 commandSuffix= 21 commandBinDir=$prefix/bin 22fi 23 24PROVIDES=" 25 atftp$secondaryArchSuffix = $portVersion 26 cmd:atftp$commandSuffix = $portVersion 27 cmd:atftpd$commandSuffix = $portVersion 28 cmd:in.tftpd$commandSuffix = $portVersion 29 " 30REQUIRES=" 31 haiku$secondaryArchSuffix 32 lib:libncurses$secondaryArchSuffix 33 lib:libpcre2_8$secondaryArchSuffix 34 lib:libreadline$secondaryArchSuffix 35 " 36 37BUILD_REQUIRES=" 38 haiku${secondaryArchSuffix}_devel 39 devel:libncurses$secondaryArchSuffix 40 devel:libpcre2_8$secondaryArchSuffix 41 devel:libreadline$secondaryArchSuffix 42 " 43BUILD_PREREQUIRES=" 44 cmd:aclocal 45 cmd:autoconf 46 cmd:autoheader 47 cmd:automake 48 cmd:awk 49 cmd:find 50 cmd:gcc$secondaryArchSuffix 51 cmd:make 52 " 53 54BUILD() 55{ 56 export LDFLAGS="-lnetwork -lbsd" 57 export CPPFLAGS="-D_BSD_SOURCE" 58 ./autogen.sh 59 runConfigure --omit-dirs "binDir sbinDir" ./configure \ 60 --bindir=$commandBinDir \ 61 --sbindir=$commandBinDir \ 62 --enable-readline \ 63 --enable-libpcre 64 make $jobArgs 65} 66 67INSTALL() 68{ 69 make install 70} 71 72TEST() 73{ 74 make check 75} 76