From owner-svn-ports-all@freebsd.org Fri Dec 30 12:11:03 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DCC9C9716A; Fri, 30 Dec 2016 12:11:03 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 78929111E; Fri, 30 Dec 2016 12:11:03 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBUCB2AJ068571; Fri, 30 Dec 2016 12:11:02 GMT (envelope-from hrs@FreeBSD.org) Received: (from hrs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBUCB22M068568; Fri, 30 Dec 2016 12:11:02 GMT (envelope-from hrs@FreeBSD.org) Message-Id: <201612301211.uBUCB22M068568@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hrs set sender to hrs@FreeBSD.org using -f From: Hiroki Sato Date: Fri, 30 Dec 2016 12:11:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r429970 - in head/net/nfsshell: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2016 12:11:03 -0000 Author: hrs Date: Fri Dec 30 12:11:02 2016 New Revision: 429970 URL: https://svnweb.freebsd.org/changeset/ports/429970 Log: - Add LICENSE. - Fix readline dependency. - Fix errno-to-string function for mountpoint->fhs_status. Added: head/net/nfsshell/files/patch-nfsshell.c (contents, props changed) Deleted: head/net/nfsshell/files/patch-nfs.c Modified: head/net/nfsshell/Makefile head/net/nfsshell/files/patch-nfs_prot_xdr.c Modified: head/net/nfsshell/Makefile ============================================================================== --- head/net/nfsshell/Makefile Fri Dec 30 12:02:56 2016 (r429969) +++ head/net/nfsshell/Makefile Fri Dec 30 12:11:02 2016 (r429970) @@ -3,21 +3,23 @@ PORTNAME= nfsshell PORTVERSION= 20130510 +PORTREVISION= 1 CATEGORIES= net #MASTER_SITES= http://www.cs.vu.nl/pub/leendert/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= hrs@FreeBSD.org COMMENT= Userland NFS command tool +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= localbase readline USE_GITHUB= yes GH_ACCOUNT= NetDirect GH_TAGNAME= 09cdd52 - -USES= readline - ALL_TARGET= nfsshell -MAKE_ARGS= CC="${CC}" LIBS="-lreadline ${LDFLAGS}" - +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DREADLINE" \ + LIBS="-lreadline ${LDFLAGS}" PLIST_FILES= bin/nfsshell do-install: Modified: head/net/nfsshell/files/patch-nfs_prot_xdr.c ============================================================================== --- head/net/nfsshell/files/patch-nfs_prot_xdr.c Fri Dec 30 12:02:56 2016 (r429969) +++ head/net/nfsshell/files/patch-nfs_prot_xdr.c Fri Dec 30 12:11:02 2016 (r429970) @@ -1,5 +1,5 @@ ---- nfs_prot_xdr.c.orig 2013-12-28 16:36:09.000000000 +0100 -+++ nfs_prot_xdr.c 2013-12-28 16:36:34.000000000 +0100 +--- nfs_prot_xdr.c.orig 2013-05-10 21:40:04 UTC ++++ nfs_prot_xdr.c @@ -4,6 +4,7 @@ */ Added: head/net/nfsshell/files/patch-nfsshell.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nfsshell/files/patch-nfsshell.c Fri Dec 30 12:11:02 2016 (r429970) @@ -0,0 +1,67 @@ +--- nfsshell.c.orig 2013-05-10 21:40:04 UTC ++++ nfsshell.c +@@ -70,7 +70,7 @@ + #include + #include + #include +-#include ++#include + #include "mount.h" + #include "nfs_prot.h" + #include +@@ -238,6 +238,7 @@ void do_status(int, char **); + void do_help(int, char **); + + AUTH *create_authenticator(void); ++char *mount_error(enum mountstat3); + char *nfs_error(enum nfsstat3); + int open_mount(char *); + void close_mount(void); +@@ -1915,7 +1916,7 @@ open_nfs(char *path, int port, int flags + } + if (mountpoint->fhs_status != MNT3_OK) { + fprintf(stderr, "Mount failed: %s\n", +- nfs_error(mountpoint->fhs_status)); ++ mount_error(mountpoint->fhs_status)); + return 0; + } + fhandle3_to_nfs_fh3(&directory_handle, &mountpoint->mountres3_u.mountinfo.fhandle); +@@ -2253,6 +2254,38 @@ umatchpattern(char *s, char *p) + } + + /* ++ * MOUNT errors ++ */ ++char * ++mount_error(enum mountstat3 stat) ++{ ++ switch (stat) { ++ case MNT3_OK: ++ return "No error"; ++ case MNT3ERR_PERM: ++ return "Not owner"; ++ case MNT3ERR_NOENT: ++ return "No such file or directory"; ++ case MNT3ERR_IO: ++ return "I/O error"; ++ case MNT3ERR_ACCES: ++ return "Permission denied"; ++ case MNT3ERR_NOTDIR: ++ return "Not a directory"; ++ case MNT3ERR_INVAL: ++ return "Invalid parameter"; ++ case MNT3ERR_NAMETOOLONG: ++ return "File name too long"; ++ case MNT3ERR_NOTSUPP: ++ return "Operation is not supported"; ++ case MNT3ERR_SERVERFAULT: ++ return "Other server error"; ++ default: ++ return "UKNOWN MOUNT ERROR"; ++ } ++} ++ ++/* + * NFS errors + */ + char *