Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+9
View File
@@ -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.
+19
View File
@@ -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
*********************************************************************
===========================================================================
+16
View File
@@ -0,0 +1,16 @@
# $NetBSD: Makefile,v 1.4 2012/10/03 16:08:33 asau 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
.include "../../mk/bsd.pkg.mk"
+3
View File
@@ -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
+10
View File
@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.4 2011/01/06 05:03:30 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) = 2a8f531d85187737b779fe6e339def22ae3c76e5
SHA1 (patch-ab) = c5fe5cdc5fccca3085f6c6542496623d43928bfe
SHA1 (patch-ac) = 7251853f1dc6cecaaf67c617e5dfb74ecae12b19
SHA1 (patch-ad) = d7a26f4db9eb543ee47dc621b7a79be11d4f42cd
SHA1 (patch-ae) = 8fd3ddbe26275361878c5820f46092005f36f887
+27
View File
@@ -0,0 +1,27 @@
$NetBSD: patch-aa,v 1.3 2009/07/08 16:44:49 joerg Exp $
--- makefile 2007/04/23 21:54:35 1.1
+++ makefile 2007/04/23 21:55:35
@@ -49,16 +49,19 @@
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_DATA_DIR} ${DESTDIR}${PREFIX}/libexec
+ ${BSD_INSTALL_PROGRAM} u9fs ${DESTDIR}${PREFIX}/libexec/
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+ ${BSD_INSTALL_MAN} u9fs.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
.PHONY: clean install
+34
View File
@@ -0,0 +1,34 @@
$NetBSD: patch-ab,v 1.2 2011/01/06 05:03:31 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 defined(__NetBSD__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__FreeBSD__)
+#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));
}
+20
View File
@@ -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 */
+13
View File
@@ -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.
*/
+10
View File
@@ -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)