pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/libasr



Module Name:    pkgsrc
Committed By:   vins
Date:           Wed Sep 10 10:34:02 UTC 2025

Modified Files:
        pkgsrc/net/libasr: DESCR Makefile buildlink3.mk distinfo

Log Message:
net/libasr: update to 20240904

# pkgsrc changes

As of 22-06-2023, libasr is no more maintained independently [0].
The project encourages using the bundled version found in OpenSMTPD.
However, a modular approach seems more reasonable, as somebody could
make use of libasr without having to install the full smtpd suite.

This is also in line with the fact that we're still relying on a
patched libretls for OpenSMTPD instead of using the bundled libtls library.

The present libasr version is based on OpenSMTPD's (which in turn is in
sync with OpenBSD's src), with minor modifications and a couple of
patches for NetBSD/SunOS applied. Hosted on ftp.netbsd.org.

[0] https://github.com/OpenSMTPD/libasr/commit/05b8bf7d480c25195b365552f9ed6021cd0a68e3

# upstream changes (since 1.0.4)

* Readd knob to prefer ipv6 over ipv4.
* Readd SOCK_DNS.
* Do not ignore safety check when EAI_BADHINTS is not defined.
* Avoid non portable memcpy(malloc(0), ..., 0).
* Patch against asr errata OpenBSD.
* Fix minor compiler warnings.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/libasr/DESCR \
    pkgsrc/net/libasr/buildlink3.mk
cvs rdiff -u -r1.7 -r1.8 pkgsrc/net/libasr/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/libasr/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/libasr/DESCR
diff -u pkgsrc/net/libasr/DESCR:1.1 pkgsrc/net/libasr/DESCR:1.2
--- pkgsrc/net/libasr/DESCR:1.1 Sun May  1 05:03:23 2016
+++ pkgsrc/net/libasr/DESCR     Wed Sep 10 10:34:02 2025
@@ -1,10 +1,7 @@
-libasr is a FREE asynchronous DNS resolver.
+Libasr is a FREE asynchronous DNS resolver. The asr_* functions provide
+a simple interface for asynchronous address resolution and nameserver
+querying.  They should be used in place of the classical resolver
+functions of libc when blocking is not desirable.
 
-libasr runs on top of the OpenBSD operating system but also has a portable
-version that can build and run on several systems, including:
-
-* Linux
-* FreeBSD
-* NetBSD
-* DragonFly
-* MacOSX
+This version is based on the blundled copy found in the OpenSMTPD
+project.
Index: pkgsrc/net/libasr/buildlink3.mk
diff -u pkgsrc/net/libasr/buildlink3.mk:1.1 pkgsrc/net/libasr/buildlink3.mk:1.2
--- pkgsrc/net/libasr/buildlink3.mk:1.1 Sun May  1 05:03:23 2016
+++ pkgsrc/net/libasr/buildlink3.mk     Wed Sep 10 10:34:02 2025
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.1 2016/05/01 05:03:23 mef Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2025/09/10 10:34:02 vins Exp $
 
 BUILDLINK_TREE+=       libasr
 
 .if !defined(LIBASR_BUILDLINK3_MK)
 LIBASR_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.libasr+= libasr>=1.0.2
+BUILDLINK_API_DEPENDS.libasr+= libasr>=20240904
 BUILDLINK_PKGSRCDIR.libasr?=   ../../net/libasr
 .endif # LIBASR_BUILDLINK3_MK
 

Index: pkgsrc/net/libasr/Makefile
diff -u pkgsrc/net/libasr/Makefile:1.7 pkgsrc/net/libasr/Makefile:1.8
--- pkgsrc/net/libasr/Makefile:1.7      Tue Oct 24 22:10:22 2023
+++ pkgsrc/net/libasr/Makefile  Wed Sep 10 10:34:02 2025
@@ -1,25 +1,20 @@
-# $NetBSD: Makefile,v 1.7 2023/10/24 22:10:22 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2025/09/10 10:34:02 vins Exp $
 
-DISTNAME=      libasr-1.0.4
-PKGREVISION=   1
+DISTNAME=      libasr-20240904
 CATEGORIES=    net
-MASTER_SITES=  https://www.opensmtpd.org/archives/
+MASTER_SITES=  ftp://ftp.NetBSD.org/pub/NetBSD/misc/vins/dists/
+EXTRACT_SUFX=  .tar.xz
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://github.com/OpenSMTPD/libasr
+MAINTAINER=    vins%NetBSD.org@localhost
+HOMEPAGE=      https://man.openbsd.org/asr_run.3
 COMMENT=       Asynchronous DNS resolver library
 LICENSE=       isc AND modified-bsd AND 2-clause-bsd
 
 GNU_CONFIGURE=         yes
 USE_LIBTOOL=           yes
 
-CFLAGS.NetBSD+=                -D_OPENBSD_SOURCE   # strtonum()
-
-INSTALLATION_DIRS+=    ${PKGMANDIR}/man3
-
-post-install:
-       ${INSTALL_MAN} ${WRKSRC}/src/asr_run.3  \
-               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+CFLAGS.NetBSD+=                -D_OPENBSD_SOURCE       # strtonum()
+LDFLAGS.SunOS+=                -lresolv -lsocket -lnsl # libresolv(3LIB)
 
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/net/libasr/distinfo
diff -u pkgsrc/net/libasr/distinfo:1.4 pkgsrc/net/libasr/distinfo:1.5
--- pkgsrc/net/libasr/distinfo:1.4      Fri Sep  8 20:53:17 2023
+++ pkgsrc/net/libasr/distinfo  Wed Sep 10 10:34:02 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2023/09/08 20:53:17 vins Exp $
+$NetBSD: distinfo,v 1.5 2025/09/10 10:34:02 vins Exp $
 
-BLAKE2s (libasr-1.0.4.tar.gz) = 7b7e6962020512a2df6418344847d1f1bded37a4925ead8cce5f2e7c1a5783f2
-SHA512 (libasr-1.0.4.tar.gz) = 6f189f9f492da8204396fe1246b4a0162751b2060a881469649ecf987b7ac1cc834193d2052e80a09bf94fedc8fc64123e9dfcfe3a2e4395f9e26d37afc84501
-Size (libasr-1.0.4.tar.gz) = 413258 bytes
+BLAKE2s (libasr-20240904.tar.xz) = 23c63f84a22c157cff7e94998aa6b1e7ed0489991488c8c8da7afa9db0b3d393
+SHA512 (libasr-20240904.tar.xz) = dc2fb216abab0f71af8b97772757d1c67c936b73126af5088f12f494e11b71f5c2f305436eced522601323426755ea108e16b25472da3aae1163ad6e25b2c1a8
+Size (libasr-20240904.tar.xz) = 276936 bytes



Home | Main Index | Thread Index | Old Index