summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson2021-09-12 18:56:28 +0200
committer Willy Sudiarto Raharjo2021-10-12 19:52:24 +0200
commitee5489e7ef85645b40c47b57d803c4ffe4f6c62f (patch)
tree23dd8ddf7fc8964d302cd5cb6546fd1b23f29a39
parent5084926e25107b6bc50bd90c50f179f24412d68a (diff)
downloadslackbuilds-ee5489e7ef85645b40c47b57d803c4ffe4f6c62f.tar.gz
network/ipxnet: Fix doinst.sh.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/ipxnet/README23
-rw-r--r--network/ipxnet/doinst.sh2
-rw-r--r--network/ipxnet/ipxnet.SlackBuild7
3 files changed, 17 insertions, 15 deletions
diff --git a/network/ipxnet/README b/network/ipxnet/README
index 1b7786bbf5..9479ebe331 100644
--- a/network/ipxnet/README
+++ b/network/ipxnet/README
@@ -3,9 +3,9 @@ ipxnet (tunnel IPX over TCP/IP)
Host a standalone IPX network over tcp for old DOS games running in
dosbox.
-For more information, see "https://www.dosbox.com/wiki/connectivity". Note
-that the "Start IPX server" step is unnecessary when using this build
-of ipxnet.
+For more information, see "https://www.dosbox.com/wiki/connectivity".
+Note that the "Start IPX server" step is unnecessary when using this
+build of ipxnet.
There are two use cases for ipxnet, with two separate executables:
@@ -13,11 +13,13 @@ There are two use cases for ipxnet, with two separate executables:
this, there's no need for an init script. The executable for users is
called "ipxnet". It logs to standard output only, and doesn't detach
from the terminal. The officially assigned UDP port number can't be
- used, as it's port 213 and normal users can't bind to ports below 1024.
+ used, as it's port 213 and normal users can't bind to ports below
+ 1024.
- Persistent daemon, that starts at boot and runs until shutdown. The
executable for this is "ipxnet-system", but you don't normally run it
- directly. Instead, there's an init script. To make ipxnet start at boot:
+ directly. Instead, there's an init script. To make ipxnet start at
+ boot:
# chmod 755 /etc/rc.d/rc.ipxnet
@@ -40,8 +42,9 @@ in the SlackBuild's environment. It's a bad idea to run this as root,
since it hasn't been audited for security. If you're really paranoid,
you probably will want to create a dedicated ipxnet user and group.
-ipxnet-system also has the cap_net_bind_service capability set, meaning
-it must be installed on a filesystem that supports capabilities (this
-includes but is not limited to ext2/3/4 and reiserfs v3). This is required
-for it to run as "nobody" yet be able to bind to low-numbered ports,
-and is a much safer alternative to running it as root.
+ipxnet-system also has the cap_net_bind_service capability set,
+meaning it must be installed on a filesystem that supports
+capabilities (this includes but is not limited to ext2/3/4 and
+reiserfs v3). This is required for it to run as "nobody" yet be able
+to bind to low-numbered ports, and is a much safer alternative to
+running it as root.
diff --git a/network/ipxnet/doinst.sh b/network/ipxnet/doinst.sh
index 5af0d51745..a767f83f1c 100644
--- a/network/ipxnet/doinst.sh
+++ b/network/ipxnet/doinst.sh
@@ -29,4 +29,4 @@ touch var/log/ipxnet.log
chown @IPXUSER@:@IPXGROUP@ var/log/ipxnet.log
# 14.2 uses tar-1.15 for makepkg, can't handle capabilities, so:
-[ -e /sbin/setcap] && /sbin/setcap cap_net_bind_service=epi usr/sbin/ipxnet-system
+[ -e /sbin/setcap ] && /sbin/setcap cap_net_bind_service=epi usr/sbin/ipxnet-system
diff --git a/network/ipxnet/ipxnet.SlackBuild b/network/ipxnet/ipxnet.SlackBuild
index 95c1402f90..a04c31a252 100644
--- a/network/ipxnet/ipxnet.SlackBuild
+++ b/network/ipxnet/ipxnet.SlackBuild
@@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210911 bkw: fix missing space before ] in doinst.sh. Grr.
+
# We install the binary setuid nobody/nogroup by default.
IPXUSER="${IPXUSER:-nobody}"
IPXGROUP="${IPXGROUP:-nogroup}"
@@ -14,7 +16,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ipxnet
VERSION=${VERSION:-20120808.0dce97e}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -26,9 +28,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0