Files
haikuports/net-ftp/atftp/atftp-0.8.0.recipe
2022-11-14 12:08:46 +01:00

76 lines
1.8 KiB
Bash

SUMMARY="Advanced tftp server and client"
DESCRIPTION="atftp is a client/server implementation of the TFTP protocol \
that implements RFCs 1350, 2090, 2347, 2348, and 2349. The server is \
multi-threaded and the client presents a friendly interface using libreadline."
HOMEPAGE="https://sourceforge.net/projects/atftp/"
COPYRIGHT="2000-2022 Jean-Pierre Lefebvre & Remi Lefebvre"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://sourceforge.net/projects/atftp/files/atftp-$portVersion.tar.gz"
CHECKSUM_SHA256="df2aa089c7670f9eab40e5598e5d2cb6a582dc5182926ea50b4d690e4e37f316"
SOURCE_FILENAME="atftp-$portVersion.tar.gz"
PATCHES="atftp-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
atftp$secondaryArchSuffix = $portVersion
cmd:atftp$commandSuffix = $portVersion
cmd:atftpd$commandSuffix = $portVersion
cmd:in.tftpd$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libpcre2_8$secondaryArchSuffix
lib:libreadline$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libncurses$secondaryArchSuffix
devel:libpcre2_8$secondaryArchSuffix
devel:libreadline$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autoheader
cmd:automake
cmd:awk
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
export LDFLAGS="-lnetwork -lbsd"
export CPPFLAGS="-D_BSD_SOURCE"
./autogen.sh
runConfigure --omit-dirs "binDir sbinDir" ./configure \
--bindir=$commandBinDir \
--sbindir=$commandBinDir \
--enable-readline \
--enable-libpcre
make $jobArgs
}
INSTALL()
{
make install
}
TEST()
{
make check
}