aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Hinchee <henesy.dev@gmail.com>2024-10-26 07:15:14 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-10-26 07:55:34 +0700
commit27b4f24beaa0ccab960ca237e9462bb06f7d17b0 (patch)
treecf002cd5c74e128015e2b9802a01daf7251bb414
parent04609c0a41d10119fc307fdeeef04c7a80dee334 (diff)
development/9pro: Added (Git host).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/9pro/9pro.SlackBuild86
-rw-r--r--development/9pro/9pro.info10
-rw-r--r--development/9pro/README7
-rw-r--r--development/9pro/slack-desc19
4 files changed, 122 insertions, 0 deletions
diff --git a/development/9pro/9pro.SlackBuild b/development/9pro/9pro.SlackBuild
new file mode 100644
index 000000000000..9ed060dd5c27
--- /dev/null
+++ b/development/9pro/9pro.SlackBuild
@@ -0,0 +1,86 @@
+#!/bin/bash
+
+# Slackware build script for 9pro
+
+# Copyright 2024 Sean Hinchee
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=9pro
+VERSION=${VERSION:-20241024_2c1651bd}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/snap.tar.gz
+#cd $PRGNAM-$VERSION
+cd $PRGNAM
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# The makefile uses the build host's uname to determine the target architecture,
+# and won't handle our CFLAGS, and can't 'make install'.
+# (we can fool it a bit with CC though - Dave)
+make \
+CC="gcc $SLKCFLAGS -fcommon"
+
+install -D -t $PKG/usr/bin -m755 9pex
+install -D -t $PKG/usr/bin -m755 9gc
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/9pro/9pro.info b/development/9pro/9pro.info
new file mode 100644
index 000000000000..8037566854fe
--- /dev/null
+++ b/development/9pro/9pro.info
@@ -0,0 +1,10 @@
+PRGNAM="9pro"
+VERSION="20241024_2c1651bd"
+HOMEPAGE="https://shithub.us/git/sigrid/9pro/"
+DOWNLOAD="https://shithub.us/git/sigrid/9pro/2c1651bd5b23d04b203daf52801dd9b84bb9f6a9/snap.tar.gz"
+MD5SUM="dc778d582bfde3af081509797b6ce58c"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Sean Hinchee"
+EMAIL="henesy.dev@gmail.com"
diff --git a/development/9pro/README b/development/9pro/README
new file mode 100644
index 000000000000..b4002c455f2d
--- /dev/null
+++ b/development/9pro/README
@@ -0,0 +1,7 @@
+9pro -- Plan9-related tools for Unix-like operating systems.
+
+*9pex:share a directory over stdin/stdout, can be used with socat/inetd
+*9gc:a very simple stdin/stdout 9gridchan client
+
+This is all _WIP_ still. 9pex is working in read-only mode so far but
+lacks proper auth, async IO, some more error control etc.
diff --git a/development/9pro/slack-desc b/development/9pro/slack-desc
new file mode 100644
index 000000000000..99d193ad1d15
--- /dev/null
+++ b/development/9pro/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+9pro: 9pro (Tools for Plan9)
+9pro:
+9pro: Plan9-related tools for Unix-like operating systems.
+9pro:
+9pro: Homepage: http://shithub.us/sigrid/9pro/HEAD/info.html
+9pro:
+9pro:
+9pro:
+9pro:
+9pro:
+9pro: