pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/filesystems/u9fs Initial import of u9fs-2.0.3 to the P...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e42ef832b3d6
branches:  trunk
changeset: 528206:e42ef832b3d6
user:      agc <agc%pkgsrc.org@localhost>
date:      Tue Apr 24 19:06:03 2007 +0000

description:
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:

 filesystems/u9fs/DESCR            |   9 +++++++++
 filesystems/u9fs/MESSAGE          |  19 +++++++++++++++++++
 filesystems/u9fs/Makefile         |  19 +++++++++++++++++++
 filesystems/u9fs/PLIST            |   3 +++
 filesystems/u9fs/distinfo         |  10 ++++++++++
 filesystems/u9fs/patches/patch-aa |  24 ++++++++++++++++++++++++
 filesystems/u9fs/patches/patch-ab |  34 ++++++++++++++++++++++++++++++++++
 filesystems/u9fs/patches/patch-ac |  20 ++++++++++++++++++++
 filesystems/u9fs/patches/patch-ad |  13 +++++++++++++
 filesystems/u9fs/patches/patch-ae |  10 ++++++++++
 10 files changed, 161 insertions(+), 0 deletions(-)

diffs (201 lines):

diff -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/DESCR    Tue Apr 24 19:06:03 2007 +0000
@@ -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 -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/MESSAGE  Tue Apr 24 19:06:03 2007 +0000
@@ -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 -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/Makefile Tue Apr 24 19:06:03 2007 +0000
@@ -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@localhost
+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 -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/PLIST    Tue Apr 24 19:06:03 2007 +0000
@@ -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 -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/distinfo Tue Apr 24 19:06:03 2007 +0000
@@ -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 -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/patches/patch-aa Tue Apr 24 19:06:03 2007 +0000
@@ -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 -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/patches/patch-ab Tue Apr 24 19:06:03 2007 +0000
@@ -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 -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/patches/patch-ac Tue Apr 24 19:06:03 2007 +0000
@@ -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 -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/patches/patch-ad Tue Apr 24 19:06:03 2007 +0000
@@ -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 -r 07727771ba5a -r e42ef832b3d6 filesystems/u9fs/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/u9fs/patches/patch-ae Tue Apr 24 19:06:03 2007 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index