mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
Tests do not compile without some minor modifications. (added a comment about that before TEST()). Test results are all PASS.
86 lines
1.9 KiB
Bash
86 lines
1.9 KiB
Bash
SUMMARY="A small dynamic DNS client"
|
|
DESCRIPTION="Yaddns is a small dynamic dns client with multiple servers \
|
|
support and a high flexibility."
|
|
HOMEPAGE="https://yaddns.github.io/"
|
|
COPYRIGHT="2015 Anthony Viallard and Raphael Huck"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/yaddns/yaddns/archive/refs/tags/yaddns-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="06a5c4409500ff0783c94bb825a3637e73b03072fff6cbfa6665308de67c22cd"
|
|
SOURCE_DIR="yaddns-yaddns-$portVersion"
|
|
PATCHES="yaddns-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
fi
|
|
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
yaddns$secondaryArchSuffix = $portVersion
|
|
cmd:yaddns = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autom4te
|
|
cmd:automake
|
|
cmd:autoreconf
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:makeinfo
|
|
"
|
|
|
|
USER_SETTINGS_FILES="
|
|
settings/yaddns.conf
|
|
"
|
|
|
|
defineDebugInfoPackage yaddns$secondaryArchSuffix \
|
|
$commandBinDir/yaddns
|
|
|
|
PATCH()
|
|
{
|
|
sed -i -e "s|/etc\(/yaddns\.conf\)|`finddir B_SYSTEM_SETTINGS_DIRECTORY`\1|;" \
|
|
doc/yaddns.1
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
CPPFLAGS="-D_BSD_SOURCE" \
|
|
LIBS="-Wl,--as-needed -lbnetapi -lbsd -lnetwork" runConfigure \
|
|
--omit-dirs binDir ./configure --bindir $commandBinDir
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
install -d $docDir
|
|
install AUTHORS $docDir
|
|
install etc/yaddns.conf $docDir/yaddns.conf.example
|
|
}
|
|
|
|
|
|
# For 1.1.2, make check fails to link due to the use of "extern" for two on yadds.h.
|
|
# To compile tests, remove those externs, and add 'LDFLAGS="-z muldefs"' before runConfigure on BUILD().
|
|
# For 1.1.2, tests results were: TOTAL:5 PASS: 5.
|
|
TEST()
|
|
{
|
|
LIBS="-Wl,--as-needed -lbnetapi -lnetwork" make check
|
|
}
|