import u9fs
U9fs is a program that serves Unix files to Plan 9 machines using the 9P protocol. Its standard input and output are connected to a network connection, typically TCP on an Ethernet. It assumes Plan 9 uids match Unix login names, and changes to the corresponding Unix effective uid when processing requests. Characters in file and directory names unacceptable to Plan 9 are translated into a three-character sequence: followed by two hexadecimal digits. U9fs serves both 9P1 (the 9P protocol as used by the second and third editions of Plan 9) and 9P2000. from Stanley Lieber (MAINTAINER), with some tweaks by me. ok sthen@
This commit is contained in:
parent
b169c8b7c3
commit
c31ae32b24
32
plan9/u9fs/Makefile
Normal file
32
plan9/u9fs/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/16 08:44:49 jasper Exp $
|
||||
|
||||
COMMENT= serve 9P from Unix
|
||||
|
||||
DISTNAME= u9fs-20110118
|
||||
CATEGORIES= plan9
|
||||
|
||||
MASTER_SITES= http://plan9.bell-labs.com/sources/contrib/sl/u9fs/ \
|
||||
http://openbsd.stanleylieber.com/u9fs/
|
||||
EXTRACT_SUFX= -src.tgz
|
||||
|
||||
MAINTAINER= Stanley Lieber <stanley.lieber@gmail.com>
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c
|
||||
|
||||
WRKDIST= ${WRKDIR}
|
||||
|
||||
MAKE_FILE= makefile
|
||||
|
||||
MAKE_FLAGS= CC=${CC}
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKDIST}/u9fs ${PREFIX}/bin/u9fs
|
||||
|
||||
.include <bsd.port.mk>
|
5
plan9/u9fs/distinfo
Normal file
5
plan9/u9fs/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (u9fs-20110118-src.tgz) = 6uXgx0IXXZ+vUeiqP+ZjyA==
|
||||
RMD160 (u9fs-20110118-src.tgz) = 9d9VHX+dLp9Fa+Eugtcp3AGYEDo=
|
||||
SHA1 (u9fs-20110118-src.tgz) = yYwFMz2quHGaNeGdiMKDr0lLlCI=
|
||||
SHA256 (u9fs-20110118-src.tgz) = NnNgEnSprGLNvz9E2QkGWg+35luqtrc1ScBMkvlDbvs=
|
||||
SIZE (u9fs-20110118-src.tgz) = 33674
|
24
plan9/u9fs/patches/patch-makefile
Normal file
24
plan9/u9fs/patches/patch-makefile
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-makefile,v 1.1.1.1 2011/03/16 08:44:49 jasper Exp $
|
||||
--- makefile.orig Sat Mar 29 21:21:38 2003
|
||||
+++ makefile Tue Mar 15 14:41:10 2011
|
||||
@@ -15,7 +15,7 @@
|
||||
# If you need <inttypes.h> copy sun-inttypes.h to inttypes.h.
|
||||
#
|
||||
#CC=cc
|
||||
-CFLAGS=-g -I.
|
||||
+CFLAGS+=-g -I.
|
||||
LD=cc
|
||||
LDFLAGS=
|
||||
LDTAIL=
|
||||
@@ -57,7 +57,9 @@ u9fs: $(OFILES)
|
||||
clean:
|
||||
rm -f *.o u9fs
|
||||
|
||||
-install: u9fs
|
||||
- cp u9fs ../../bin
|
||||
+#install: u9fs
|
||||
+# cp u9fs ../../bin
|
||||
+
|
||||
+all: u9fs
|
||||
|
||||
.PHONY: clean install
|
8
plan9/u9fs/patches/patch-oldfcall_c
Normal file
8
plan9/u9fs/patches/patch-oldfcall_c
Normal file
@ -0,0 +1,8 @@
|
||||
$OpenBSD: patch-oldfcall_c,v 1.1.1.1 2011/03/16 08:44:49 jasper Exp $
|
||||
--- oldfcall.c.orig Sat Mar 2 19:05:52 2002
|
||||
+++ oldfcall.c Tue Mar 15 14:43:08 2011
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <stdlib.h>
|
||||
#include <plan9.h>
|
||||
#include <fcall.h>
|
||||
#include <oldfcall.h>
|
9
plan9/u9fs/patches/patch-safecpy_c
Normal file
9
plan9/u9fs/patches/patch-safecpy_c
Normal file
@ -0,0 +1,9 @@
|
||||
$OpenBSD: patch-safecpy_c,v 1.1.1.1 2011/03/16 08:44:49 jasper Exp $
|
||||
--- safecpy.c.orig Tue Mar 15 14:41:45 2011
|
||||
+++ safecpy.c Tue Mar 15 14:41:53 2011
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
|
||||
void
|
||||
safecpy(char *to, char *from, int tolen)
|
8
plan9/u9fs/pkg/DESCR
Normal file
8
plan9/u9fs/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
U9fs is a program that serves Unix files to Plan 9 machines using the 9P
|
||||
protocol. Its standard input and output are connected to a network
|
||||
connection, typically TCP on an Ethernet. It assumes Plan 9 uids match
|
||||
Unix login names, and changes to the corresponding Unix effective uid
|
||||
when processing requests. Characters in file and directory names
|
||||
unacceptable to Plan 9 are translated into a three-character sequence:
|
||||
followed by two hexadecimal digits. U9fs serves both 9P1 (the 9P
|
||||
protocol as used by the second and third editions of Plan 9) and 9P2000.
|
2
plan9/u9fs/pkg/PLIST
Normal file
2
plan9/u9fs/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/16 08:44:49 jasper Exp $
|
||||
@bin bin/u9fs
|
Loading…
Reference in New Issue
Block a user