Date: Sun, 6 Feb 2005 00:01:39 +0100 (CET) From: Johan van Selst <johans@stack.nl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/77153: New port: net/nfsshell (nfs command tool) Message-ID: <20050205230139.34B883D1D@mailhost.gletsjer.net> Resent-Message-ID: <200502052300.j15N0eRp040591@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 77153 >Category: ports >Synopsis: New port: net/nfsshell (nfs command tool) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 05 23:00:40 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Johan van Selst >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD coyote.gletsjer.net 6.0-CURRENT FreeBSD 6.0-CURRENT #25: Sun Dec 26 14:32:05 CET 2004 root@coyote.gletsjer.net:/spare3/obj/spare3/src/sys/coyote i386 >Description: nfsshell is a simple tool to execute commands on open nfs shares, using an ftp-like interface. It's a useful tool to manually check (or show) security problems. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # nfsshell # nfsshell/Makefile # nfsshell/distinfo # nfsshell/files # nfsshell/files/patch-nfs.c # nfsshell/files/patch-Makefile # nfsshell/pkg-descr # echo c - nfsshell mkdir -p nfsshell > /dev/null 2>&1 echo x - nfsshell/Makefile sed 's/^X//' >nfsshell/Makefile << 'END-of-nfsshell/Makefile' X# New ports collection makefile for: nfsshell X# Date created: 5 February 2005 X# Whom: johans@stack.nl X# X# $FreeBSD$ X# X XPORTNAME= nfsshell XPORTVERSION= 0 XCATEGORIES= net XMASTER_SITES= http://www.cs.vu.nl/pub/leendert/ XDISTNAME= ${PORTNAME} X XMAINTAINER= johans@stack.nl XCOMMENT= Userland NFS command tool X XWRKSRC= ${WRKDIR}/nfs XALL_TARGET= nfs XPLIST_FILES= bin/nfsshell X X.include <bsd.port.pre.mk> X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/nfs ${PREFIX}/bin/nfsshell X X.include <bsd.port.post.mk> END-of-nfsshell/Makefile echo x - nfsshell/distinfo sed 's/^X//' >nfsshell/distinfo << 'END-of-nfsshell/distinfo' XMD5 (nfsshell.tar.gz) = d447235518691fc3176ce89a6d836ce7 XSIZE (nfsshell.tar.gz) = 29213 END-of-nfsshell/distinfo echo c - nfsshell/files mkdir -p nfsshell/files > /dev/null 2>&1 echo x - nfsshell/files/patch-nfs.c sed 's/^X//' >nfsshell/files/patch-nfs.c << 'END-of-nfsshell/files/patch-nfs.c' X--- nfs.c.orig Sat Feb 5 23:17:18 2005 X+++ nfs.c Sat Feb 5 23:17:09 2005 X@@ -50,7 +50,6 @@ X #include <netinet/in.h> X #include <arpa/inet.h> X #include <sys/time.h> X-#include <sys/sysmacros.h> X #include "mount.h" X #include "nfs_prot.h" X #include <netinet/in_systm.h> END-of-nfsshell/files/patch-nfs.c echo x - nfsshell/files/patch-Makefile sed 's/^X//' >nfsshell/files/patch-Makefile << 'END-of-nfsshell/files/patch-Makefile' X--- Makefile.orig Sat Feb 5 23:17:28 2005 X+++ Makefile Sat Feb 5 23:18:58 2005 X@@ -22,10 +22,15 @@ X # X X # uncomment the following 4 lines for Solaris 2.x X+#CC = gcc X+#CFLAGS = -DSYSV -DREADLINE -I/usr/local/include X+#LIBS = -lsocket -L/usr/ucblib -R/usr/ucblib -lrpcsoc -lnsl \ X+# -L/usr/local/lib -lreadline -lhistory -ltermlib X+ X+# uncomment the following 3 lines for FreeBSD X CC = gcc X-CFLAGS = -DSYSV -DREADLINE -I/usr/local/include X-LIBS = -lsocket -L/usr/ucblib -R/usr/ucblib -lrpcsoc -lnsl \ X- -L/usr/local/lib -lreadline -lhistory -ltermlib X+CFLAGS = -DREADLINE X+LIBS = -lreadline X X # uncomment the following 3 lines for AIX X #CC = gcc END-of-nfsshell/files/patch-Makefile echo x - nfsshell/pkg-descr sed 's/^X//' >nfsshell/pkg-descr << 'END-of-nfsshell/pkg-descr' Xnfs shell provides user level access to an NFS server, over UDP or TCP, Xsupports source routing and "secure" (privileged port) mounts. It's a Xuseful tool to manually check (or show) security problems after a security Xscanner has detected them. END-of-nfsshell/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050205230139.34B883D1D>