diff options
author | agc <agc@pkgsrc.org> | 2007-04-24 19:06:03 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2007-04-24 19:06:03 +0000 |
commit | 4512c74efe19f16a57bfcb4c124f33bd5dab7717 (patch) | |
tree | befd53e7f143d96e4558e2385e85c6619859b7bd /filesystems/u9fs | |
parent | b5186ace64e54f46dd261761cb11a96615956abe (diff) | |
download | pkgsrc-4512c74efe19f16a57bfcb4c124f33bd5dab7717.tar.gz |
Initial import of u9fs-2.0.3 to the Packages Collection.
U9fs is a program that serves Unix files to Plan 9 machines
using the 9P protocol. It is typically invoked on a Unix
machine by inetd with its standard input and output connected
to a network connection, typically TCP on an Ethernet. It
typically runs as user root and multiplexes access to multiple
Plan 9 clients over the single wire. It assumes Plan 9 uids
match Unix login names, and changes to the corresponding Unix
effective uid when processing requests. U9fs serves both 9P1
(the 9P protocol as used by the second and third editions of
Plan 9) and 9P2000.
Diffstat (limited to 'filesystems/u9fs')
-rw-r--r-- | filesystems/u9fs/DESCR | 9 | ||||
-rw-r--r-- | filesystems/u9fs/MESSAGE | 19 | ||||
-rw-r--r-- | filesystems/u9fs/Makefile | 19 | ||||
-rw-r--r-- | filesystems/u9fs/PLIST | 3 | ||||
-rw-r--r-- | filesystems/u9fs/distinfo | 10 | ||||
-rw-r--r-- | filesystems/u9fs/patches/patch-aa | 24 | ||||
-rw-r--r-- | filesystems/u9fs/patches/patch-ab | 34 | ||||
-rw-r--r-- | filesystems/u9fs/patches/patch-ac | 20 | ||||
-rw-r--r-- | filesystems/u9fs/patches/patch-ad | 13 | ||||
-rw-r--r-- | filesystems/u9fs/patches/patch-ae | 10 |
10 files changed, 161 insertions, 0 deletions
diff --git a/filesystems/u9fs/DESCR b/filesystems/u9fs/DESCR new file mode 100644 index 00000000000..ca6643c3c5e --- /dev/null +++ b/filesystems/u9fs/DESCR @@ -0,0 +1,9 @@ +U9fs is a program that serves Unix files to Plan 9 machines using the +9P protocol. It is typically invoked on a Unix machine by inetd with +its standard input and output connected to a network connection, +typically TCP on an Ethernet. It typically runs as user root and +multiplexes access to multiple Plan 9 clients over the single wire. +It assumes Plan 9 uids match Unix login names, and changes to the +corresponding Unix effective uid when processing requests. U9fs +serves both 9P1 (the 9P protocol as used by the second and third +editions of Plan 9) and 9P2000. diff --git a/filesystems/u9fs/MESSAGE b/filesystems/u9fs/MESSAGE new file mode 100644 index 00000000000..9d8b9e50e00 --- /dev/null +++ b/filesystems/u9fs/MESSAGE @@ -0,0 +1,19 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $ + +To activate u9fs, you need to add the following lines to your +/etc/inetd.conf file: + + 564 stream tcp nowait root ${PREFIX}/libexec/u9fs u9fs -D -a none + +After that, tell inetd to reload its config file: + + /etc/rc.d/inetd reload + +********************************************************************* +WARNING: "-a none" ABOVE MEANS THAT NO AUTHENTICATION WILL BE DONE ON +ANY CLIENTS WHICH CONNECT TO u9fs. THIS IS ALMOST CERTAINLY NOT WHAT +YOU WANT +********************************************************************* + +=========================================================================== diff --git a/filesystems/u9fs/Makefile b/filesystems/u9fs/Makefile new file mode 100644 index 00000000000..c755582b9ec --- /dev/null +++ b/filesystems/u9fs/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $ +# + +DISTNAME= u9fs-2.0.3 +CATEGORIES= filesystems +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=v9fs/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://plan9.bell-labs.com/ +COMMENT= Unix file server using the 9P protocol + +WRKSRC= ${WRKDIR}/u9fs + +MAKE_FILE= makefile + +post-install: + ${INSTALL_MAN} ${WRKSRC}/u9fs.8 ${PREFIX}/${PKGMANDIR}/man8/ + +.include "../../mk/bsd.pkg.mk" diff --git a/filesystems/u9fs/PLIST b/filesystems/u9fs/PLIST new file mode 100644 index 00000000000..28209aac039 --- /dev/null +++ b/filesystems/u9fs/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $ +libexec/u9fs +man/man8/u9fs.8 diff --git a/filesystems/u9fs/distinfo b/filesystems/u9fs/distinfo new file mode 100644 index 00000000000..41c5283a6fe --- /dev/null +++ b/filesystems/u9fs/distinfo @@ -0,0 +1,10 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $ + +SHA1 (u9fs-2.0.3.tar.gz) = 98b6d1b26a516761ee392d2c3ed15528af84601b +RMD160 (u9fs-2.0.3.tar.gz) = 460879d27c4d282a3b4822c194b2abf458851b4d +Size (u9fs-2.0.3.tar.gz) = 42325 bytes +SHA1 (patch-aa) = 4568002cf8815b8090ac9fa1d2c41d576cefa40e +SHA1 (patch-ab) = 0cd3d25449ddce2657a24ea3de531adaac477df0 +SHA1 (patch-ac) = 7251853f1dc6cecaaf67c617e5dfb74ecae12b19 +SHA1 (patch-ad) = d7a26f4db9eb543ee47dc621b7a79be11d4f42cd +SHA1 (patch-ae) = 8fd3ddbe26275361878c5820f46092005f36f887 diff --git a/filesystems/u9fs/patches/patch-aa b/filesystems/u9fs/patches/patch-aa new file mode 100644 index 00000000000..a7a0593d14c --- /dev/null +++ b/filesystems/u9fs/patches/patch-aa @@ -0,0 +1,24 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $ + +--- makefile 2007/04/23 21:54:35 1.1 ++++ makefile 2007/04/23 21:55:35 +@@ -49,16 +49,16 @@ + fcall.h\ + plan9.h + +-u9fs: $(OFILES) ++u9fs all: $(OFILES) + $(LD) $(LDFLAGS) -o u9fs $(OFILES) $(LDTAIL) + +-%.o: %.c $(HFILES) ++.c.o: + $(CC) $(CFLAGS) -c $*.c + + clean: + rm -f *.o u9fs + + install: u9fs +- cp u9fs ../../bin ++ ${BSD_INSTALL_PROGRAM} u9fs ${PREFIX}/libexec/ + + .PHONY: clean install diff --git a/filesystems/u9fs/patches/patch-ab b/filesystems/u9fs/patches/patch-ab new file mode 100644 index 00000000000..ab3e21462d6 --- /dev/null +++ b/filesystems/u9fs/patches/patch-ab @@ -0,0 +1,34 @@ +$NetBSD: patch-ab,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $ + +--- u9fs.c 2007/04/23 22:01:05 1.1 ++++ u9fs.c 2007/04/23 22:29:28 +@@ -28,7 +28,14 @@ + #define DEFAULTLOG "/tmp/u9fs.log" + #endif + ++#if __linux__ + #include <linux/kdev_t.h> ++#elif __NetBSD__ ++#include <sys/types.h> ++#define MAJOR(m) major(m) ++#define MINOR(m) minor(m) ++#define MKDEV(maj,min) makedev(maj, min) ++#endif + + char *logfile = DEFAULTLOG; + char *rootpath = "/"; +@@ -752,11 +759,11 @@ + } + d->extension = estrdup(link); + } else if (d->mode&DMDEVICE) { +- int major = MAJOR(st->st_rdev); +- int minor = MINOR(st->st_rdev); ++ int majordev = MAJOR(st->st_rdev); ++ int minordev = MINOR(st->st_rdev); + + if(S_ISCHR(st->st_mode)) { +- sprintf(link, "c %u %u", major, minor); ++ sprintf(link, "c %u %u", majordev, minordev); + } else { + sprintf(link, "b %u %u", MAJOR(st->st_rdev), MINOR(st->st_rdev)); + } diff --git a/filesystems/u9fs/patches/patch-ac b/filesystems/u9fs/patches/patch-ac new file mode 100644 index 00000000000..f983de333fa --- /dev/null +++ b/filesystems/u9fs/patches/patch-ac @@ -0,0 +1,20 @@ +$NetBSD: patch-ac,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $ + +--- plan9.h 2007/04/23 22:30:40 1.1 ++++ plan9.h 2007/04/23 22:06:13 +@@ -1,9 +1,15 @@ ++#include <sys/param.h> ++ ++#if defined(BSD) && BSD >= 199506 ++#define _BSD_TYPES ++#else + /* magic to get SUSV2 standard, including pread, pwrite*/ + #define _XOPEN_SOURCE 500 + /* magic to get 64-bit pread/pwrite */ + #define _LARGEFILE64_SOURCE + /* magic to get 64-bit stat on Linux, maybe others */ + #define _FILE_OFFSET_BITS 64 ++#endif /* !BSD */ + + #ifdef sgi + #define _BSD_TYPES 1 /* for struct timeval */ diff --git a/filesystems/u9fs/patches/patch-ad b/filesystems/u9fs/patches/patch-ad new file mode 100644 index 00000000000..51849eea0da --- /dev/null +++ b/filesystems/u9fs/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $ + +--- oldfcall.c 2007/04/24 07:25:17 1.1 ++++ oldfcall.c 2007/04/24 07:26:09 +@@ -2,6 +2,8 @@ + #include <fcall.h> + #include <oldfcall.h> + ++#include <stdlib.h> ++ + /* + * routines to package the old protocol in the new structures. + */ diff --git a/filesystems/u9fs/patches/patch-ae b/filesystems/u9fs/patches/patch-ae new file mode 100644 index 00000000000..1b9501eecfb --- /dev/null +++ b/filesystems/u9fs/patches/patch-ae @@ -0,0 +1,10 @@ +$NetBSD: patch-ae,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $ + +--- safecpy.c 2007/04/24 07:25:17 1.1 ++++ safecpy.c 2007/04/24 07:26:57 +@@ -1,4 +1,5 @@ + #include <stdio.h> ++#include <string.h> + + void + safecpy(char *to, char *from, int tolen) |