Ravenports generated: 12 Feb 2024 03:38
[ravenports.git] / bucket_D2 / libasr
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               libasr
4 VERSION=                1.0.4
5 KEYWORDS=               dns
6 VARIANTS=               standard
7 SDESC[standard]=        Asynchronous DNS resolver library
8 HOMEPAGE=               https://github.com/OpenSMTPD/libasr
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://github.com/OpenSMTPD/libasr/releases/download/1.0.4/
13 DISTFILE[1]=            libasr-1.0.4.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          groff:primary:standard
21 BUILDRUN_DEPENDS=       nss:caroot:standard
22
23 USES=                   autoreconf libtool
24
25 LICENSE=                ISCL:single BSD2CLAUSE:single BSD3CLAUSE:single
26                         CUSTOM1:single
27 LICENSE_TERMS=          single:{{WRKSRC}}/LICENCE
28 LICENSE_NAME=           CUSTOM1:"ISC License - OpenBSD Compat"
29 LICENSE_FILE=           ISCL:{{WRKDIR}}/ISCL_MAIN
30                         BSD2CLAUSE:{{WRKDIR}}/BSD2
31                         BSD3CLAUSE:{{WRKDIR}}/BSD3
32                         CUSTOM1:{{WRKDIR}}/ISCL_OPENBSD
33 LICENSE_AWK=            ISCL:"^$$"
34 LICENSE_SOURCE=         ISCL:{{WRKSRC}}/src/asr.h
35 LICENSE_SCHEME=         multi
36
37 FPC_EQUIVALENT=         dns/libasr
38
39 MUST_CONFIGURE=         gnu
40 CONFIGURE_ARGS=         --with-mantype="man"
41
42 INSTALL_TARGET=         install-strip
43 SOVERSION=              0.0.3
44
45 post-extract:
46         ${AWK} '/Jakob Schlyter/,/POSSIBILITY OF SUCH DAMAGE/' \
47                 ${WRKSRC}/LICENCE > ${WRKDIR}/BSD2
48         ${AWK} '/3-clause BSD license/,/\* SUCH DAMAGE/' \
49                 ${WRKSRC}/LICENCE > ${WRKDIR}/BSD3
50         ${AWK} '/work by Damien Miller/,/\* OR IN CONNECTION/' \
51                 ${WRKSRC}/LICENCE > ${WRKDIR}/ISCL_OPENBSD
52
53 [FILE:236:descriptions/desc.single]
54 libasr is a FREE asynchronous DNS resolver.
55
56 libasr runs on top of the OpenBSD operating system but also has a portable
57 version that can build and run on several systems, including:
58
59  * Linux
60  * FreeBSD
61  * NetBSD
62  * DragonFly
63  * MacOSX
64
65
66 [FILE:98:distinfo]
67 19fb6bed10d15c9775c8d008cd1130155917ae4e801c729fe85e6d88a545dab4       413258 libasr-1.0.4.tar.gz
68
69
70 [FILE:88:manifests/plist.single]
71 include/asr.h
72 lib/
73  libasr.a
74  libasr.so
75  libasr.so.%%SOMAJOR%%
76  libasr.so.%%SOVERSION%%
77
78
79 [FILE:333:patches/patch-openbsd-compat_recallocarray.c]
80 --- openbsd-compat/recallocarray.c.orig 2020-01-17 13:59:24 UTC
81 +++ openbsd-compat/recallocarray.c
82 @@ -79,7 +79,11 @@ recallocarray(void *ptr, size_t oldnmemb
83         } else
84                 memcpy(newptr, ptr, newsize);
85  
86 +#ifdef HAVE_EXPLICIT_BZERO
87         explicit_bzero(ptr, oldsize);
88 +#else
89 +       bzero(ptr, oldsize);
90 +#endif
91         free(ptr);
92  
93         return newptr;
94
95
96 [FILE:172:patches/patch-src_asr__private.h]
97 --- src/asr_private.h.orig      2020-01-17 13:59:24 UTC
98 +++ src/asr_private.h
99 @@ -16,6 +16,7 @@
100   */
101  
102  #include <stdio.h>
103 +#include <netinet/in.h>
104  
105  #include "asr_compat.h"
106  
107
108
109 [FILE:860:patches/patch-src_getaddrinfo__async.c]
110 --- src/getaddrinfo_async.c.orig        2020-01-17 13:59:24 UTC
111 +++ src/getaddrinfo_async.c
112 @@ -147,7 +147,7 @@ getaddrinfo_async_run(struct asr_query *
113                 }
114  
115                 if (as->as.ai.hostname && as->as.ai.hostname[0] == '\0') {
116 -                       ar->ar_gai_errno = EAI_NODATA;
117 +                       ar->ar_gai_errno = EAI_NONAME;
118                         async_set_state(as, ASR_STATE_HALT);
119                         break;
120                 }
121 @@ -262,7 +262,7 @@ getaddrinfo_async_run(struct asr_query *
122                                 }
123                         }
124                         if (ar->ar_gai_errno == 0 && as->as_count == 0) {
125 -                               ar->ar_gai_errno = EAI_NODATA;
126 +                               ar->ar_gai_errno = EAI_NONAME;
127                         }
128                         async_set_state(as, ASR_STATE_HALT);
129                         break;
130 @@ -445,7 +445,7 @@ getaddrinfo_async_run(struct asr_query *
131                 if (as->as_flags & ASYNC_AGAIN)
132                         ar->ar_gai_errno = EAI_AGAIN;
133                 else
134 -                       ar->ar_gai_errno = EAI_NODATA;
135 +                       ar->ar_gai_errno = EAI_NONAME;
136                 async_set_state(as, ASR_STATE_HALT);
137                 break;
138  
139
140
141 [FILE:293:patches/patch-src_res__search__async.c]
142 --- src/res_search_async.c.orig 2020-01-17 13:59:24 UTC
143 +++ src/res_search_async.c
144 @@ -22,6 +22,9 @@
145  #include <sys/uio.h>
146  #include <arpa/nameser.h>
147  #include <netdb.h>
148 +#if defined __DragonFly__ || defined __FreeBSD__
149 +#include <netinet/in.h>
150 +#endif
151  
152  #include <asr.h>
153  #include <errno.h>
154