Index | Thread | Search

From:
Brad Smith <brad@comstyle.com>
Subject:
UPDATE: libnfs 6.0.2
To:
ports@openbsd.org
Date:
Sun, 20 Jul 2025 16:43:01 -0400

Download raw body.

Thread
  • Brad Smith:

    UPDATE: libnfs 6.0.2

Here is an update to libnfs 6.0.2.

I sent an update for fio to kurt@ which builds with the new API.


Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/libnfs/Makefile,v
retrieving revision 1.10
diff -u -p -u -p -r1.10 Makefile
--- Makefile	21 Sep 2023 09:49:58 -0000	1.10
+++ Makefile	20 Jul 2025 20:15:57 -0000
@@ -1,10 +1,12 @@
 COMMENT=	client library for accessing NFS
 
-DISTNAME=	libnfs-5.0.2
+DISTNAME=	libnfs-6.0.2
+GH_ACCOUNT=	sahlberg
+GH_PROJECT=	libnfs
+GH_COMMIT=	ec2ae237b974f2edaea9229d677779a7d7d93666
 CATEGORIES=	devel net
-SITES=		https://github.com/sahlberg/libnfs/archive/
 
-SHARED_LIBS=	nfs	2.2
+SHARED_LIBS=	nfs	3.0
 
 HOMEPAGE=	https://github.com/sahlberg/libnfs
 
@@ -15,11 +17,14 @@ PERMIT_PACKAGE=	Yes
 
 WANTLIB=	c
 
-AUTOCONF_VERSION=	2.69
-AUTOMAKE_VERSION=	1.16
+MODULES=	devel/cmake
 
-CONFIGURE_STYLE= autoreconf
+CONFIGURE_ARGS+=-DENABLE_UTILS=ON
 
-WRKDIST=	${WRKDIR}/libnfs-${DISTNAME}
+NO_TEST=	Yes
+
+# find out why this is broken with cmake
+post-install:
+	${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${PREFIX}/man/man1
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/libnfs/distinfo,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 distinfo
--- distinfo	26 Oct 2022 03:31:13 -0000	1.5
+++ distinfo	20 Jul 2025 20:15:57 -0000
@@ -1,2 +1,2 @@
-SHA256 (libnfs-5.0.2.tar.gz) = Y35WZDsZ2p+6mPBoR3iMTa0wi3IxVqZHSAQQNdzfm9M=
-SIZE (libnfs-5.0.2.tar.gz) = 281154
+SHA256 (libnfs-6.0.2-ec2ae237.tar.gz) = 3gZqAIjodHiEsmAwG84d5JRhuN0H43hIddXo9UobAXI=
+SIZE (libnfs-6.0.2-ec2ae237.tar.gz) = 349709
Index: patches/patch-include_nfsc_libnfs_h
===================================================================
RCS file: patches/patch-include_nfsc_libnfs_h
diff -N patches/patch-include_nfsc_libnfs_h
--- patches/patch-include_nfsc_libnfs_h	11 Mar 2022 18:50:37 -0000	1.5
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-Index: include/nfsc/libnfs.h
---- include/nfsc/libnfs.h.orig
-+++ include/nfsc/libnfs.h
-@@ -38,6 +38,9 @@
- #ifdef __cplusplus
- extern "C" {
- #endif
-+#if defined(__OpenBSD__)
-+#include <sys/time.h> /* gettimeofday */
-+#endif
- 
- #define LIBNFS_FEATURE_READAHEAD
- #define LIBNFS_FEATURE_PAGECACHE
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/libnfs/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 PLIST
--- pkg/PLIST	11 Mar 2022 18:50:37 -0000	1.4
+++ pkg/PLIST	20 Jul 2025 20:15:57 -0000
@@ -13,8 +13,12 @@ include/nfsc/libnfs-raw-rquota.h
 include/nfsc/libnfs-raw.h
 include/nfsc/libnfs-zdr.h
 include/nfsc/libnfs.h
-@static-lib lib/libnfs.a
-lib/libnfs.la
+lib/cmake/
+lib/cmake/libnfs/
+lib/cmake/libnfs/FindNFS.cmake
+lib/cmake/libnfs/libnfs-config${MODCMAKE_BUILD_SUFFIX}
+lib/cmake/libnfs/libnfs-config-version.cmake
+lib/cmake/libnfs/libnfs-config.cmake
 @lib lib/libnfs.so.${LIBnfs_VERSION}
 lib/pkgconfig/libnfs.pc
 @man man/man1/nfs-cat.1