Import libnfs-1.9.8.
LIBNFS is a client library for accessing NFS shares over a network. <...> from Brad ok jasper@
This commit is contained in:
parent
0297686fef
commit
3ed620b7da
23
devel/libnfs/Makefile
Normal file
23
devel/libnfs/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2015/08/25 06:40:04 ajacoutot Exp $
|
||||
|
||||
COMMENT= client library for accessing NFS
|
||||
|
||||
DISTNAME= libnfs-1.9.8
|
||||
CATEGORIES= devel net
|
||||
MASTER_SITES= https://sites.google.com/site/libnfstarballs/li/
|
||||
|
||||
SHARED_LIBS= nfs 0.0
|
||||
|
||||
HOMEPAGE= https://github.com/sahlberg/libnfs
|
||||
|
||||
MAINTAINER= Brad Smith <brad@comstyle.com>
|
||||
|
||||
# LGPLv2.1+, GPLv3+ and BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB= c
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/libnfs/distinfo
Normal file
2
devel/libnfs/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libnfs-1.9.8.tar.gz) = TUA/5a3B8Ndfos0mCpB4NGF/K6gf1G9DixbgoPyL/4E=
|
||||
SIZE (libnfs-1.9.8.tar.gz) = 505429
|
12
devel/libnfs/patches/patch-lib_socket_c
Normal file
12
devel/libnfs/patches/patch-lib_socket_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-lib_socket_c,v 1.1.1.1 2015/08/25 06:40:04 ajacoutot Exp $
|
||||
--- lib/socket.c.orig Thu Aug 20 14:55:57 2015
|
||||
+++ lib/socket.c Thu Aug 20 14:56:17 2015
|
||||
@@ -113,7 +113,7 @@ static int set_tcp_sockopt(int sockfd, int optname, in
|
||||
{
|
||||
int level;
|
||||
|
||||
- #if defined(__FreeBSD__) || defined(__sun) || (defined(__APPLE__) && defined(__MACH__))
|
||||
+ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sun) || (defined(__APPLE__) && defined(__MACH__))
|
||||
struct protoent *buf;
|
||||
|
||||
if ((buf = getprotobyname("tcp")) != NULL)
|
17
devel/libnfs/pkg/DESCR
Normal file
17
devel/libnfs/pkg/DESCR
Normal file
@ -0,0 +1,17 @@
|
||||
LIBNFS is a client library for accessing NFS shares over a network.
|
||||
|
||||
LIBNFS offers three different APIs, for different use :
|
||||
|
||||
1, RAW : A fully async low level RPC library for NFS protocols This API is
|
||||
described in include/libnfs-raw.h it offers a fully async interface to raw XDR
|
||||
encoded blobs. This API provides very flexible and precise control of the RPC
|
||||
issued.
|
||||
|
||||
2, NFS ASYNC : A fully asynchronous library for high level vfs functions This
|
||||
API is described by the *_async() functions in include/libnfs.h. This API
|
||||
provides a fully async access to posix vfs like functions such as stat(),
|
||||
read(), ...
|
||||
|
||||
3, NFS SYNC : A synchronous library for high level vfs functions This API is
|
||||
described by the *_sync() functions in include/libnfs.h. This API provides
|
||||
access to posix vfs like functions such as stat(), read(), ...
|
21
devel/libnfs/pkg/PLIST
Normal file
21
devel/libnfs/pkg/PLIST
Normal file
@ -0,0 +1,21 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2015/08/25 06:40:04 ajacoutot Exp $
|
||||
@bin bin/nfs-cat
|
||||
@bin bin/nfs-cp
|
||||
@bin bin/nfs-ls
|
||||
include/nfsc/
|
||||
include/nfsc/libnfs-raw-mount.h
|
||||
include/nfsc/libnfs-raw-nfs.h
|
||||
include/nfsc/libnfs-raw-nlm.h
|
||||
include/nfsc/libnfs-raw-nsm.h
|
||||
include/nfsc/libnfs-raw-portmap.h
|
||||
include/nfsc/libnfs-raw-rquota.h
|
||||
include/nfsc/libnfs-raw.h
|
||||
include/nfsc/libnfs-zdr.h
|
||||
include/nfsc/libnfs.h
|
||||
lib/libnfs.a
|
||||
lib/libnfs.la
|
||||
@lib lib/libnfs.so.${LIBnfs_VERSION}
|
||||
lib/pkgconfig/libnfs.pc
|
||||
@man man/man1/nfs-cat.1
|
||||
@man man/man1/nfs-cp.1
|
||||
@man man/man1/nfs-ls.1
|
Loading…
Reference in New Issue
Block a user