diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-01-06 18:54:10 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-01-06 18:54:10 +0000 |
commit | 91cfe10d515dec397f134f5689180df3d8bfa87b (patch) | |
tree | fb5f46111480e2b91b766482a050ee34aa747554 /irc/slirc/files | |
parent | 3cc329279eafafcaa410b0a4d097281aa02e8838 (diff) | |
download | ports-91cfe10d515dec397f134f5689180df3d8bfa87b.tar.gz ports-91cfe10d515dec397f134f5689180df3d8bfa87b.zip |
Notes
Diffstat (limited to 'irc/slirc/files')
-rw-r--r-- | irc/slirc/files/patch-Makefile | 29 | ||||
-rw-r--r-- | irc/slirc/files/patch-VFile.txt | 5 | ||||
-rw-r--r-- | irc/slirc/files/patch-check_slang | 10 | ||||
-rw-r--r-- | irc/slirc/files/patch-lru.c | 14 | ||||
-rw-r--r-- | irc/slirc/files/patch-slirc.c | 30 | ||||
-rw-r--r-- | irc/slirc/files/patch-utils-module.c | 10 | ||||
-rw-r--r-- | irc/slirc/files/patch-vfile-module.c | 5 |
7 files changed, 103 insertions, 0 deletions
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), |