aboutsummaryrefslogtreecommitdiff
path: root/network/tinyirc/tinyirc.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-09-26 01:27:51 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:52:26 +0700
commit201397b12bc8bfb9c1347b2d4e8c9155536a9b59 (patch)
treed6b4b1f7622dc4bf4998618848bc13f66cf5e518 /network/tinyirc/tinyirc.SlackBuild
parent3b765199ac6b5f1b2bf75d0ca82ea773448cb2cc (diff)
network/tinyirc: Change default server.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/tinyirc/tinyirc.SlackBuild')
-rw-r--r--network/tinyirc/tinyirc.SlackBuild23
1 files changed, 16 insertions, 7 deletions
diff --git a/network/tinyirc/tinyirc.SlackBuild b/network/tinyirc/tinyirc.SlackBuild
index 7d6ad66a8dba4..fe40f024affe2 100644
--- a/network/tinyirc/tinyirc.SlackBuild
+++ b/network/tinyirc/tinyirc.SlackBuild
@@ -6,11 +6,15 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210925 bkw: BUILD=2, change default server to libera since
+# freenode has become a bad joke. Also add SERVER and PORT env vars,
+# since someone might not agree with me.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tinyirc
VERSION=${VERSION:-1.1_4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -25,9 +29,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
@@ -68,10 +69,13 @@ for i in $( cat debian/patches/series ); do
patch -p1 < debian/patches/$i
done
+SERVER="${SERVER:-irc.libera.chat}"
+PORT="${PORT:-6667}"
+
# Change the default server and port to something people actually use.
make $PRGNAM \
- SERVER="chat.freenode.net" \
- PORT=6667 \
+ SERVER="$SERVER" \
+ PORT="$PORT" \
CFLAGS="$SLKCFLAGS -DPOSIX -DDO_CTCP -DCURSES -DHAVE_NCURSES" \
LIBS=-lncurses \
CC=${CC:-gcc}
@@ -79,6 +83,9 @@ make $PRGNAM \
mkdir -p $PKG/usr/bin
install -m0755 -s $PRGNAM $PKG/usr/bin
+# Derp!
+sed -i 's|left, left|left, right|' debian/$PRGNAM.1.pod
+
mkdir -p $PKG/usr/man/man1
pod2man -cSlackBuilds.org -s1 -r1.1 -nTINYIRC debian/$PRGNAM.1.pod | \
gzip -9c > $PKG/usr/man/man1/$PRGNAM.1.gz
@@ -91,7 +98,9 @@ cp -a COPYING announce *.txt $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
+sed -e "s,@SERVER@,$SERVER," \
+ -e "s,@PORT@,$PORT," \
+ $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE