From 6fa6ef530b72f78fbbc119d50998a9ff4175a36d Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Mon, 10 Oct 2016 13:32:05 +0200 Subject: [PATCH] New package: u9fs-20161010 --- srcpkgs/u9fs/patches/makefile.patch | 14 +++++++++++ .../u9fs/patches/musl-no-rhosts-auth.patch | 19 +++++++++++++++ srcpkgs/u9fs/template | 23 +++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 srcpkgs/u9fs/patches/makefile.patch create mode 100644 srcpkgs/u9fs/patches/musl-no-rhosts-auth.patch create mode 100644 srcpkgs/u9fs/template diff --git a/srcpkgs/u9fs/patches/makefile.patch b/srcpkgs/u9fs/patches/makefile.patch new file mode 100644 index 00000000000..b65e7a58fd0 --- /dev/null +++ b/srcpkgs/u9fs/patches/makefile.patch @@ -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 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 + diff --git a/srcpkgs/u9fs/patches/musl-no-rhosts-auth.patch b/srcpkgs/u9fs/patches/musl-no-rhosts-auth.patch new file mode 100644 index 00000000000..0b5245c41ef --- /dev/null +++ b/srcpkgs/u9fs/patches/musl-no-rhosts-auth.patch @@ -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 = { diff --git a/srcpkgs/u9fs/template b/srcpkgs/u9fs/template new file mode 100644 index 00000000000..0fb636a1af0 --- /dev/null +++ b/srcpkgs/u9fs/template @@ -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 " +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 +}