From 69814b4a5180cd3361b4ca52f44a69a15ab8a46d Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 18 Aug 2015 21:10:39 +0000 Subject: [PATCH] libasr: add recipe for version 1.0.2 --- net-libs/libasr/libasr-1.0.2.recipe | 79 +++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 net-libs/libasr/libasr-1.0.2.recipe diff --git a/net-libs/libasr/libasr-1.0.2.recipe b/net-libs/libasr/libasr-1.0.2.recipe new file mode 100644 index 000000000..99c8e4e99 --- /dev/null +++ b/net-libs/libasr/libasr-1.0.2.recipe @@ -0,0 +1,79 @@ +SUMMARY="Async Resolver Implementation from OpenBSD/OpenSMTPD" +DESCRIPTION="libasr is a free, simple and portable asynchronous resolver \ +library. \ +It allows to run dns queries and perform hostname resolutions in a fully \ +asynchronous fashion. The implementation is thread-less, fork-less, and \ +does not make use of signals or other \"tricks\" that might get in the \ +developer's way. The API was initially developped for the OpenBSD \ +operating system, where it is natively supported." +HOMEPAGE="https://github.com/OpenSMTPD/libasr/" +COPYRIGHT="2001 Jakob Schlyter + Internet Software Consortium + David Mazieres + Damien Miller + Markus Friedl + Todd C. Miller + Henning Brauer + Pierre-Yves Ritschard + Reyk Floeter + Theo de Raadt + Ted Unangst + Charles Longeau + The Regents of the University of California + Ian F. Darwin + Damien Miller + Eric P. Allman" +# wanted to add ISC, but the package creation failed although the license +# file is available in /system/data/licenses/ +LICENSE="BSD (2-clause)" +REVISION="1" +SOURCE_URI="https://github.com/OpenSMTPD/libasr/archive/libasr-$portVersion.tar.gz" +SOURCE_DIR="libasr-libasr-$portVersion" +CHECKSUM_SHA256="4ab54264206e255fd6c2de982764bb5ce7857ec8f649ad3ee45771244593b6e1" + +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + libasr$secondaryArchSuffix = $portVersion + lib:libasr$secondaryArchSuffix = 0.0.2 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + " + +PROVIDES_devel=" + libasr${secondaryArchSuffix}_devel = $portVersion + devel:libasr$secondaryArchSuffix = 0.0.2 compat >= 0 + " +REQUIRES_devel=" + libasr$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libssl$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:libtoolize + " + +BUILD() +{ + touch README NEWS AUTHORS + autoreconf -fi + runConfigure ./configure CFLAGS="-D_BSD_SOURCE" + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLib libasr + packageEntries devel $developDir +}