New package: u9fs-20161010
This commit is contained in:
parent
224cd716ef
commit
6fa6ef530b
3 changed files with 56 additions and 0 deletions
14
srcpkgs/u9fs/patches/makefile.patch
Normal file
14
srcpkgs/u9fs/patches/makefile.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- makefile.orig 2016-10-10 13:35:16.980246499 +0200
|
||||
+++ makefile 2016-10-10 13:35:39.805246090 +0200
|
||||
@@ -15,9 +15,8 @@
|
||||
# If you need <inttypes.h> copy sun-inttypes.h to inttypes.h.
|
||||
#
|
||||
#CC=cc
|
||||
-CFLAGS=-g -O -I.
|
||||
-LD=cc
|
||||
-LDFLAGS=
|
||||
+LD=${CC}
|
||||
+CFLAGS+=-g -I.
|
||||
LDTAIL=
|
||||
DESTROOT=/usr/local
|
||||
|
19
srcpkgs/u9fs/patches/musl-no-rhosts-auth.patch
Normal file
19
srcpkgs/u9fs/patches/musl-no-rhosts-auth.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- authrhosts.c.orig 2016-10-10 13:51:34.924228986 +0200
|
||||
+++ authrhosts.c 2016-10-10 13:51:37.359228942 +0200
|
||||
@@ -24,11 +24,16 @@
|
||||
{
|
||||
USED(tx);
|
||||
|
||||
+#ifdef __GLIBC__
|
||||
if(ruserok(remotehostname, 0, rx->uname, rx->uname) < 0){
|
||||
fprint(2, "ruserok(%s, %s) not okay\n", remotehostname, rx->uname);
|
||||
return "u9fs: rhosts authentication failed";
|
||||
}
|
||||
return 0;
|
||||
+#else
|
||||
+ USED(rx);
|
||||
+ return "u9fs: rhosts authentication failed";
|
||||
+#endif
|
||||
}
|
||||
|
||||
Auth authrhosts = {
|
23
srcpkgs/u9fs/template
Normal file
23
srcpkgs/u9fs/template
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Template file for 'u9fs'
|
||||
pkgname=u9fs
|
||||
version=20161010
|
||||
revision=1
|
||||
_commit=f900662fbd61
|
||||
wrksrc="plan9-from-bell-labs-u9fs-${_commit}"
|
||||
short_desc="Serves the Plan 9 protocol 9P from user-space"
|
||||
maintainer="Michael Gehring <mg@ebfe.org>"
|
||||
license="custom"
|
||||
homepage="http://plan9.bell-labs.com/magic/man2html/4/u9fs"
|
||||
distfiles="https://bitbucket.org/plan9-from-bell-labs/u9fs/get/${_commit}.tar.gz"
|
||||
checksum=5b98b779ab29e5dd64997ac5df7b17a9c72fe1483120de297517ba0396b2c46e
|
||||
|
||||
do_build() {
|
||||
make
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin u9fs
|
||||
vlicense LICENSE
|
||||
mv u9fs.man u9fs.8
|
||||
vman u9fs.8
|
||||
}
|
Loading…
Reference in a new issue