update plan9/u9fs to 20210125

This switches plan9/u9fs to another upstream which has seen some small
development over the time, following what other package repositories
already did: https://bitbucket.org/plan9-from-bell-labs/u9fs

port-wise:

 - tweak the COMMENT
 - drop unneeded patches
 - install u9fs in sbin/ rather than bin/
 - install the manpage (and tweak it so it's useful in here.)

maintainer timeout, ok sthen@
This commit is contained in:
op 2022-09-11 07:25:10 +00:00
parent d8c8cd0442
commit e99aee537c
7 changed files with 60 additions and 51 deletions

View File

@ -1,28 +1,31 @@
COMMENT= serve 9P from Unix
COMMENT= 9P server for Unix
DISTNAME= u9fs-20110118
REVISION= 0
DISTNAME= u9fs-20210125
CATEGORIES= plan9
MASTER_SITES= http://plan9.bell-labs.com/sources/contrib/sl/u9fs/ \
http://openbsd.stanleylieber.com/u9fs/
EXTRACT_SUFX= -src.tgz
MASTER_SITES= https://bitbucket.org/plan9-from-bell-labs/u9fs/get/
COMMIT= d65923fd17e8
DISTFILES= ${DISTNAME}{${COMMIT}}${EXTRACT_SUFX}
MAINTAINER= Stanley Lieber <sl@stanleylieber.com>
# MIT
PERMIT_PACKAGE= Yes
WANTLIB= c
WANTLIB= c
WRKDIST= ${WRKDIR}
WRKDIST= ${WRKDIR}/plan9-from-bell-labs-u9fs-${COMMIT}
MAKE_FILE= makefile
MAKE_FLAGS= CC=${CC}
CFLAGS += -D_BSD_SOURCE -I.
MAKE_FLAGS= CC='${CC}' CFLAGS='${CFLAGS}'
ALL_TARGET= u9fs
NO_TEST= Yes
do-install:
${INSTALL_PROGRAM} ${WRKDIST}/u9fs ${PREFIX}/bin/u9fs
${INSTALL_PROGRAM} ${WRKDIST}/u9fs ${PREFIX}/sbin/u9fs
${INSTALL_MAN} ${WRKDIST}/u9fs.man ${PREFIX}/man/man8/u9fs.8
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (u9fs-20110118-src.tgz) = NnNgEnSprGLNvz9E2QkGWg+35luqtrc1ScBMkvlDbvs=
SIZE (u9fs-20110118-src.tgz) = 33674
SHA256 (u9fs-20210125.tar.gz) = IBYZwcKbrRye0byIav57SWXP0HgbIpbJ3ofbELpxYV0=
SIZE (u9fs-20210125.tar.gz) = 38319

View File

@ -1,23 +0,0 @@
--- 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

View File

@ -1,7 +0,0 @@
--- 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>

View File

@ -1,8 +0,0 @@
--- 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)

View File

@ -0,0 +1,43 @@
- change the section: 8 is more appropriate
- adjust the inetd example
Index: u9fs.man
--- u9fs.man.orig
+++ u9fs.man
@@ -1,4 +1,4 @@
-.TH U9FS 4
+.TH U9FS 8
.SH NAME
u9fs \- serve 9P from Unix
.SH SYNOPSIS
@@ -217,29 +217,11 @@ device access may produce unpredictable
results if the block size of the device is greater than 8192,
the maximum data size of a 9P message.
.PP
-The source to
-.I u9fs
-is in the Plan 9 directory
-.BR /sys/src/cmd/unix/u9fs .
-To install
-.I u9fs
-on a Unix system with an ANSI C compiler, copy the source to a directory on that system
-and run
-.BR make .
-Then install the binary in
-.BR /usr/etc/u9fs .
Add this line to
.BR inetd.conf :
.IP
.EX
-9fs stream tcp nowait root /usr/etc/u9fs u9fs
-.EE
-.PP
-and this to
-.BR services :
-.IP
-.EX
-9fs 564/tcp 9fs # Plan 9 fs
+564 stream tcp nowait root /usr/local/sbin/u9fs u9fs
.EE
.LP
Due to a bug in their

View File

@ -1 +1,2 @@
@bin bin/u9fs
@man man/man8/u9fs.8
@bin sbin/u9fs