aboutsummaryrefslogtreecommitdiffstats
path: root/irc/slirc
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-01-07 02:54:10 +0800
committerknu <knu@FreeBSD.org>2001-01-07 02:54:10 +0800
commiteef4ad68daa53a6dcb6307d8b93e66dc88f021cf (patch)
tree2946d415b2053ae0cd9176051fcd1466a7838f26 /irc/slirc
parentb56f043a4d42bc499a183ecb0298aeabd8a95134 (diff)
downloadfreebsd-ports-gnome-eef4ad68daa53a6dcb6307d8b93e66dc88f021cf.tar.gz
freebsd-ports-gnome-eef4ad68daa53a6dcb6307d8b93e66dc88f021cf.tar.zst
freebsd-ports-gnome-eef4ad68daa53a6dcb6307d8b93e66dc88f021cf.zip
Add {irc,japanese}/slirc, a SLang-based IRC client.
Diffstat (limited to 'irc/slirc')
-rw-r--r--irc/slirc/Makefile54
-rw-r--r--irc/slirc/distinfo1
-rw-r--r--irc/slirc/files/patch-Makefile29
-rw-r--r--irc/slirc/files/patch-VFile.txt5
-rw-r--r--irc/slirc/files/patch-check_slang10
-rw-r--r--irc/slirc/files/patch-lru.c14
-rw-r--r--irc/slirc/files/patch-slirc.c30
-rw-r--r--irc/slirc/files/patch-utils-module.c10
-rw-r--r--irc/slirc/files/patch-vfile-module.c5
-rw-r--r--irc/slirc/pkg-comment1
-rw-r--r--irc/slirc/pkg-descr6
-rw-r--r--irc/slirc/pkg-message18
-rw-r--r--irc/slirc/pkg-plist39
13 files changed, 222 insertions, 0 deletions
diff --git a/irc/slirc/Makefile b/irc/slirc/Makefile
new file mode 100644
index 000000000000..8573b64dcfed
--- /dev/null
+++ b/irc/slirc/Makefile
@@ -0,0 +1,54 @@
+# New ports collection makefile for: SLirc
+# Date created: 6 Jan 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= slirc
+PORTVERSION= 0.12
+# Assign with += for slave ports
+CATEGORIES+= irc
+MASTER_SITES= http://www.megsinet.com/~stabro/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= knu@FreeBSD.org
+
+LIB_DEPENDS= ${LIB_DEPENDS_LIBSLANG}
+
+USE_GMAKE= yes
+
+SLANG_INCDIR?= ${PREFIX}/include
+SLANG_LIBDIR?= ${PREFIX}/lib
+LIB_DEPENDS_LIBSLANG?= slang.1:${PORTSDIR}/devel/libslang
+
+MAKE_ARGS= SLANG_INCDIR="${SLANG_INCDIR}" \
+ SLANG_LIBDIR="${SLANG_LIBDIR}" \
+ ${MAKE_ARGS_JA}
+PLIST_SUB= JA=${PLIST_JA}
+PLIST_JA?= "@comment "
+
+# Assign with += for slave ports
+DOCS+= BUGS \
+ CHANGES \
+ COPYING \
+ FAQ \
+ LACK-OF-WARRANTY \
+ README \
+ README.dropin \
+ README.gutsbonesbloodtoilsweat \
+ TODO \
+ scripts/slirc.hlp \
+ sldocs/VFile.txt \
+ sldocs/utilsfun.txt
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/slirc
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/slirc/
+.endfor
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/irc/slirc/distinfo b/irc/slirc/distinfo
new file mode 100644
index 000000000000..eecb66500a6c
--- /dev/null
+++ b/irc/slirc/distinfo
@@ -0,0 +1 @@
+MD5 (slirc-0.12.tgz) = d5210681b5719d095ffa7f683e98860c
diff --git a/irc/slirc/files/patch-Makefile b/irc/slirc/files/patch-Makefile
new file mode 100644
index 000000000000..c5ad06f4d151
--- /dev/null
+++ b/irc/slirc/files/patch-Makefile
@@ -0,0 +1,29 @@
+--- Makefile.orig Tue Aug 24 05:42:02 1999
++++ Makefile Sat Jan 6 08:50:21 2001
+@@ -1,10 +1,10 @@
+ #!/bin/make -f
+
+-CC=gcc
+-CFLAGS:=-Wall -Wmissing-declarations -Wstrict-prototypes -O2 -Iinclude
++CC?=cc
++CFLAGS+=-Wall -Wmissing-declarations -Wstrict-prototypes -I$(SLANG_INCDIR) $(KANJI)
+ SOFLAGS:=-shared -fPIC -Wl,-export-dynamic
+ LDFLAGS:=-s
+-LIBS:=-ldl -lm -Llib -lslang
++LIBS:=-lm -ltermcap -L$(SLANG_LIBDIR) -lslang
+
+ pwd:=$(shell pwd)
+
+@@ -45,9 +45,9 @@
+ [ -d $(lib_dir) ] || mkdir -p $(lib_dir)
+ [ -d $(CFG_DIR) ] || mkdir -p $(CFG_DIR)
+ [ -d $(script_dir) ] || mkdir -p $(script_dir)
+- install -p -o root -g root -m755 slirc $(bin_dir)
+- install -p -o root -g root -m755 $(MODULES) $(CFG_DIR)
+- install -p -o root -g root -m644 scripts/*.sl $(script_dir)
++ install -p -o root -g wheel -m755 slirc $(bin_dir)
++ install -p -o root -g wheel -m755 $(MODULES) $(CFG_DIR)
++ install -p -o root -g wheel -m644 scripts/*.sl $(script_dir)
+ endif
+
+ slirc: slirc.o lru.o slload.o windoze.o
diff --git a/irc/slirc/files/patch-VFile.txt b/irc/slirc/files/patch-VFile.txt
new file mode 100644
index 000000000000..31ffdebd0ef6
--- /dev/null
+++ b/irc/slirc/files/patch-VFile.txt
@@ -0,0 +1,5 @@
+--- sldocs/VFile.txt.orig Sun Aug 22 00:40:49 1999
++++ sldocs/VFile.txt Sat Jan 6 20:26:41 2001
+@@ -213 +213 @@
+- O_SYNC
++ O_FSYNC
diff --git a/irc/slirc/files/patch-check_slang b/irc/slirc/files/patch-check_slang
new file mode 100644
index 000000000000..f3efc828ac3f
--- /dev/null
+++ b/irc/slirc/files/patch-check_slang
@@ -0,0 +1,10 @@
+--- check_slang.orig Sat Aug 21 03:25:35 1999
++++ check_slang Sat Jan 6 09:39:13 2001
+@@ -1,5 +1,5 @@
+-#!/bin/bash
+-
++#!/bin/sh
++exit 0 # FreeBSD port: We know we have libslang already installed.
+ # This little script to alert people who didn't bother to read
+ # step (0) in the README installation instructions
+
diff --git a/irc/slirc/files/patch-lru.c b/irc/slirc/files/patch-lru.c
new file mode 100644
index 000000000000..7bd0f79306a8
--- /dev/null
+++ b/irc/slirc/files/patch-lru.c
@@ -0,0 +1,14 @@
+--- lru.c.orig Sun Aug 22 20:14:28 1999
++++ lru.c Sun Jan 7 02:37:54 2001
+@@ -253,8 +253,9 @@
+ if (el) {
+ do {
+ if (!(p = index(el->str, '!')))
+- p = "NoBang";
+- len = p - el->str;
++ len = strlen(el->str);
++ else
++ len = p - el->str;
+ if (ix + len > SLtt_Screen_Cols - 2)
+ break;
+ if (ix) {
diff --git a/irc/slirc/files/patch-slirc.c b/irc/slirc/files/patch-slirc.c
new file mode 100644
index 000000000000..6534fe35650a
--- /dev/null
+++ b/irc/slirc/files/patch-slirc.c
@@ -0,0 +1,30 @@
+--- slirc.c.orig Tue Aug 24 00:15:11 1999
++++ slirc.c Sun Jan 7 03:17:46 2001
+@@ -242,7 +242,7 @@
+ {
+ char secs[8];
+
+- sprintf(Status, "%s -> %s Server[%s] %s",
++ snprintf(Status, sizeof(Status), "%s -> %s Server[%s] %s",
+ NickName, Target, ServerName, StatMsg);
+
+ SLsmg_gotorc(start, 0);
+@@ -339,13 +339,15 @@
+
+ /* now for scripts search-path */
+ if((q = getenv("HOME")))
+- sprintf(SLirc_Load_Path,"%s/.slirc/scripts:",q);
++ snprintf(SLirc_Load_Path, 196, "%s/.slirc/scripts",q);
+ else
+- sprintf(SLirc_Load_Path,"/home/%s/.slirc/scripts:",p);
++ snprintf(SLirc_Load_Path, 196, "/home/%s/.slirc/scripts",p);
+
+ if (2 != SLpath_file_exists(SLirc_Load_Path))
+ SLirc_Load_Path[0] = '\0';
+-
++ else
++ strcat(SLirc_Load_Path, ":");
++
+ strcat(SLirc_Load_Path,SCRIPTPATH); /* SCRIPTPATH defined in Makefile */
+ }
+
diff --git a/irc/slirc/files/patch-utils-module.c b/irc/slirc/files/patch-utils-module.c
new file mode 100644
index 000000000000..eee15bcfca27
--- /dev/null
+++ b/irc/slirc/files/patch-utils-module.c
@@ -0,0 +1,10 @@
+--- utils-module.c.orig Mon Aug 23 01:39:11 1999
++++ utils-module.c Sat Jan 6 08:46:47 2001
+@@ -11,6 +11,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <slang.h>
++#include <sys/types.h>
+
+ /* this was just to verify that cp0 will be an slstring
+ static int is_same(char *cp0)
diff --git a/irc/slirc/files/patch-vfile-module.c b/irc/slirc/files/patch-vfile-module.c
new file mode 100644
index 000000000000..d3e3041e6375
--- /dev/null
+++ b/irc/slirc/files/patch-vfile-module.c
@@ -0,0 +1,5 @@
+--- vfile-module.c.orig Tue Aug 24 00:08:56 1999
++++ vfile-module.c Sat Jan 6 20:25:43 2001
+@@ -2067 +2067 @@
+- MAKE_ICONSTANT("O_SYNC", O_SYNC),
++ MAKE_ICONSTANT("O_FSYNC", O_FSYNC),
diff --git a/irc/slirc/pkg-comment b/irc/slirc/pkg-comment
new file mode 100644
index 000000000000..bf5e3c095116
--- /dev/null
+++ b/irc/slirc/pkg-comment
@@ -0,0 +1 @@
+A SLang-based IRC client
diff --git a/irc/slirc/pkg-descr b/irc/slirc/pkg-descr
new file mode 100644
index 000000000000..41ee7acf83a0
--- /dev/null
+++ b/irc/slirc/pkg-descr
@@ -0,0 +1,6 @@
+SLirc is an irc client based on J.E.D.'s libslang. It was originally
+created by Dave Cridland, and then Stan Brooks got involved and is
+maintaining the code.
+
+Author: Stan Brooks <stabro@megsinet.net>
+WWW: http://www.megsinet.com/~stabro/slirc.html
diff --git a/irc/slirc/pkg-message b/irc/slirc/pkg-message
new file mode 100644
index 000000000000..175236ed3db5
--- /dev/null
+++ b/irc/slirc/pkg-message
@@ -0,0 +1,18 @@
+************************************************************
+Quickstart:
+
+- Copy config.sl and colours.sl to ~/.slirc/scripts
+
+ mkdir -p ~/.slirc/scripts
+ cp ${PREFIX}/lib/slirc/scripts/config.sl ~/.slirc/scripts
+ cp ${PREFIX}/lib/slirc/scripts/colours.sl ~/.slirc/scripts
+
+- Edit ~/.slirc/scripts/config.sl
+
+ () = s_putlast(servers,"server:port::nick");
+ variable chan_on_connect = "channel";
+
+- Set your name to the environment variable "IRCNAME"
+
+ export IRCNAME="John Doe"
+************************************************************
diff --git a/irc/slirc/pkg-plist b/irc/slirc/pkg-plist
new file mode 100644
index 000000000000..087c767acae5
--- /dev/null
+++ b/irc/slirc/pkg-plist
@@ -0,0 +1,39 @@
+bin/slirc
+lib/slirc/vfile-module.so
+lib/slirc/utils-module.so
+lib/slirc/scripts/LList.sl
+lib/slirc/scripts/RBL.sl
+lib/slirc/scripts/ak47.sl
+lib/slirc/scripts/bot-kernel.sl
+lib/slirc/scripts/bot.sl
+lib/slirc/scripts/colours.sl
+lib/slirc/scripts/config.sl
+lib/slirc/scripts/ctcp.sl
+lib/slirc/scripts/ctcp_cmd.sl
+lib/slirc/scripts/dcc.sl
+lib/slirc/scripts/editor.sl
+lib/slirc/scripts/flip.sl
+lib/slirc/scripts/goodies.sl
+lib/slirc/scripts/init.sl
+lib/slirc/scripts/lists.sl
+lib/slirc/scripts/op-stuff.sl
+lib/slirc/scripts/registry.sl
+lib/slirc/scripts/slftp.sl
+lib/slirc/scripts/standard.sl
+lib/slirc/scripts/tab-ex.sl
+@dirrm lib/slirc/scripts
+@dirrm lib/slirc
+share/doc/slirc/BUGS
+share/doc/slirc/CHANGES
+share/doc/slirc/COPYING
+share/doc/slirc/FAQ
+share/doc/slirc/LACK-OF-WARRANTY
+share/doc/slirc/README
+share/doc/slirc/README.dropin
+share/doc/slirc/README.gutsbonesbloodtoilsweat
+%%JA%%share/doc/slirc/README.ja
+share/doc/slirc/TODO
+share/doc/slirc/VFile.txt
+share/doc/slirc/slirc.hlp
+share/doc/slirc/utilsfun.txt
+@dirrm share/doc/slirc