icb 5.0.9, icb chat client
This commit is contained in:
parent
61b8a16fd3
commit
1352d34028
25
net/icb/Makefile
Normal file
25
net/icb/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/05/06 12:09:23 form Exp $
|
||||
# NetBSD: Makefile,v 1.6 1998/04/15 11:15:34 frueauf Exp
|
||||
#
|
||||
|
||||
DISTNAME= icb-5.0.9
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ftp://vs.itam.nsc.ru/pub/OpenBSD/distfiles/ ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/
|
||||
|
||||
MAINTAINER= form@vs.itam.nsc.ru
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC}; \
|
||||
${SED} -e s,@PREFIX@,${PREFIX},g ${FILESDIR}/config >${WRKSRC}/config
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/icb/icb ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/icbserverdb ${PREFIX}/libdata
|
||||
${INSTALL} -d ${PREFIX}/libdata/icb
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/sample.icbrc \
|
||||
${WRKSRC}/contrib/bartender \
|
||||
${WRKSRC}/contrib/confuse \
|
||||
${WRKSRC}/contrib/echofile \
|
||||
${PREFIX}/libdata/icb
|
||||
|
||||
.include <bsd.port.mk>
|
55
net/icb/files/config
Normal file
55
net/icb/files/config
Normal file
@ -0,0 +1,55 @@
|
||||
#
|
||||
# THIS IS AN AUTOMATICALLY GENERATED FILE
|
||||
#
|
||||
# If you edit this file and later run "setup", your
|
||||
# changes will be lost. This file gets fed to "make",
|
||||
# so keep that in mind if you make changes.
|
||||
#
|
||||
|
||||
# Installing user's home directory
|
||||
HOME = /nonexistent
|
||||
|
||||
# Directory where the client will be installed.
|
||||
BINDIR = @PREFIX@/bin
|
||||
|
||||
# Directory where the manual page will be installed.
|
||||
MANDIR = @PREFIX@/man
|
||||
|
||||
# Compiler to use.
|
||||
CC = cc
|
||||
|
||||
# Compile options.
|
||||
CFLAGS = -O2 -DNO_LRAND48 -DSTRINGS_H -DTIME_H
|
||||
TCLCFLAGS = -O2 -DNO_LRAND48 -DSTRINGS_H -DTIME_H
|
||||
|
||||
# Lint flags
|
||||
LFLAGS = -u -DNO_LRAND48 -DSTRINGS_H -DTIME_H
|
||||
|
||||
# System dependent source file.
|
||||
SYSDEP =sysdep.bsd
|
||||
|
||||
# Other libraries to include.
|
||||
OTHERLIBS =-lcurses -ltermcap
|
||||
|
||||
# Resolver library
|
||||
RESOLVLIB =
|
||||
|
||||
# Parallel makes. Set to & for Sequents.
|
||||
PMAKE =
|
||||
|
||||
# Makefile dependency generator.
|
||||
MAKEDEPEND = makedepend
|
||||
|
||||
# Makefile dependency generator.
|
||||
DEPENDFLAGS = -fMake -DNO_LRAND48 -DSTRINGS_H -DTIME_H
|
||||
|
||||
# Hostname and port of remote server.
|
||||
DEFAULTHOST = crater.unm.edu
|
||||
DEFAULTPORT = 7326
|
||||
|
||||
# Directory for support files
|
||||
LIBDIR = @PREFIX@/libdata
|
||||
|
||||
# location of server database
|
||||
SERVERLIST = @PREFIX@/libdata/icbserverdb
|
||||
|
1
net/icb/files/md5
Normal file
1
net/icb/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (icb-5.0.9.tar.gz) = 1240504a8b0350a05c4441e7e91956e4
|
19
net/icb/patches/patch-aa
Normal file
19
net/icb/patches/patch-aa
Normal file
@ -0,0 +1,19 @@
|
||||
*** murgil/clientserve.c.orig Wed May 6 18:40:46 1998
|
||||
--- murgil/clientserve.c Wed May 6 18:43:34 1998
|
||||
***************
|
||||
*** 41,47 ****
|
||||
/* look at tty fd */
|
||||
FD_SET(0,&fdset); /**/
|
||||
|
||||
! signal(SIGALRM, gotalarm);
|
||||
timeisup = 0;
|
||||
|
||||
for (;;) {
|
||||
--- 41,47 ----
|
||||
/* look at tty fd */
|
||||
FD_SET(0,&fdset); /**/
|
||||
|
||||
! signal(SIGALRM, (void *)gotalarm);
|
||||
timeisup = 0;
|
||||
|
||||
for (;;) {
|
19
net/icb/patches/patch-ab
Normal file
19
net/icb/patches/patch-ab
Normal file
@ -0,0 +1,19 @@
|
||||
*** murgil/getrname.c.orig Wed May 6 18:43:56 1998
|
||||
--- murgil/getrname.c Wed May 6 18:45:17 1998
|
||||
***************
|
||||
*** 14,20 ****
|
||||
{
|
||||
static char rname[24];
|
||||
struct hostent *host;
|
||||
! #if defined(linux)
|
||||
#define PEER_CAST (struct sockaddr *)
|
||||
#define HOST_CAST (char *)
|
||||
#else
|
||||
--- 14,20 ----
|
||||
{
|
||||
static char rname[24];
|
||||
struct hostent *host;
|
||||
! #if defined(linux) || defined(__OpenBSD__)
|
||||
#define PEER_CAST (struct sockaddr *)
|
||||
#define HOST_CAST (char *)
|
||||
#else
|
19
net/icb/patches/patch-ac
Normal file
19
net/icb/patches/patch-ac
Normal file
@ -0,0 +1,19 @@
|
||||
*** murgil/serverserve.c.orig Wed May 6 18:47:32 1998
|
||||
--- murgil/serverserve.c Wed May 6 18:47:48 1998
|
||||
***************
|
||||
*** 33,39 ****
|
||||
if (port_fd > highestfd)
|
||||
highestfd = port_fd;
|
||||
|
||||
! signal(SIGALRM, gotalarm);
|
||||
timeisup = 0;
|
||||
|
||||
for (;;) {
|
||||
--- 33,39 ----
|
||||
if (port_fd > highestfd)
|
||||
highestfd = port_fd;
|
||||
|
||||
! signal(SIGALRM, (void *)gotalarm);
|
||||
timeisup = 0;
|
||||
|
||||
for (;;) {
|
36
net/icb/patches/patch-ad
Normal file
36
net/icb/patches/patch-ad
Normal file
@ -0,0 +1,36 @@
|
||||
*** tcl/tclCmdAH.c.orig Sat Feb 25 03:19:53 1995
|
||||
--- tcl/tclCmdAH.c Wed May 6 18:54:07 1998
|
||||
***************
|
||||
*** 38,45 ****
|
||||
--- 38,51 ----
|
||||
#include <sys/wait.h>
|
||||
#include "tclInt.h"
|
||||
|
||||
+ #if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||
+ #include <sys/param.h>
|
||||
+ #endif
|
||||
+
|
||||
extern int errno;
|
||||
+ #if !(defined(BSD) && BSD >= 199306)
|
||||
extern long lseek();
|
||||
+ #endif
|
||||
extern char *mktemp();
|
||||
|
||||
/*
|
||||
***************
|
||||
*** 627,633 ****
|
||||
while (1) {
|
||||
int child;
|
||||
|
||||
! child = wait(&status);
|
||||
if (child == -1) {
|
||||
sprintf(interp->result,
|
||||
"child process disappeared mysteriously");
|
||||
--- 633,639 ----
|
||||
while (1) {
|
||||
int child;
|
||||
|
||||
! child = wait((int *)&status);
|
||||
if (child == -1) {
|
||||
sprintf(interp->result,
|
||||
"child process disappeared mysteriously");
|
104
net/icb/patches/patch-ae
Normal file
104
net/icb/patches/patch-ae
Normal file
@ -0,0 +1,104 @@
|
||||
*** readline/readline.c.orig Wed May 6 18:49:08 1998
|
||||
--- readline/readline.c Wed May 6 18:51:35 1998
|
||||
***************
|
||||
*** 610,631 ****
|
||||
|
||||
rl_set_signals ()
|
||||
{
|
||||
! old_int = (SigHandler *)signal (SIGINT, rl_signal_handler);
|
||||
if (old_int == (SigHandler *)SIG_IGN)
|
||||
signal (SIGINT, SIG_IGN);
|
||||
|
||||
! old_alrm = (SigHandler *)signal (SIGALRM, rl_signal_handler);
|
||||
if (old_alrm == (SigHandler *)SIG_IGN)
|
||||
signal (SIGALRM, SIG_IGN);
|
||||
|
||||
#if defined (SIGTSTP)
|
||||
! old_tstp = (SigHandler *)signal (SIGTSTP, rl_signal_handler);
|
||||
if (old_tstp == (SigHandler *)SIG_IGN)
|
||||
signal (SIGTSTP, SIG_IGN);
|
||||
#endif
|
||||
#if defined (SIGTTOU)
|
||||
! old_ttou = (SigHandler *)signal (SIGTTOU, rl_signal_handler);
|
||||
! old_ttin = (SigHandler *)signal (SIGTTIN, rl_signal_handler);
|
||||
|
||||
if (old_tstp == (SigHandler *)SIG_IGN)
|
||||
{
|
||||
--- 610,631 ----
|
||||
|
||||
rl_set_signals ()
|
||||
{
|
||||
! old_int = (SigHandler *)signal (SIGINT, (void *)rl_signal_handler);
|
||||
if (old_int == (SigHandler *)SIG_IGN)
|
||||
signal (SIGINT, SIG_IGN);
|
||||
|
||||
! old_alrm = (SigHandler *)signal (SIGALRM, (void *)rl_signal_handler);
|
||||
if (old_alrm == (SigHandler *)SIG_IGN)
|
||||
signal (SIGALRM, SIG_IGN);
|
||||
|
||||
#if defined (SIGTSTP)
|
||||
! old_tstp = (SigHandler *)signal (SIGTSTP, (void *)rl_signal_handler);
|
||||
if (old_tstp == (SigHandler *)SIG_IGN)
|
||||
signal (SIGTSTP, SIG_IGN);
|
||||
#endif
|
||||
#if defined (SIGTTOU)
|
||||
! old_ttou = (SigHandler *)signal (SIGTTOU, (void *)rl_signal_handler);
|
||||
! old_ttin = (SigHandler *)signal (SIGTTIN, (void *)rl_signal_handler);
|
||||
|
||||
if (old_tstp == (SigHandler *)SIG_IGN)
|
||||
{
|
||||
***************
|
||||
*** 635,660 ****
|
||||
#endif
|
||||
|
||||
#if defined (SIGWINCH)
|
||||
! old_sigwinch = (SigHandler *)signal (SIGWINCH, rl_handle_sigwinch);
|
||||
#endif
|
||||
}
|
||||
|
||||
rl_clear_signals ()
|
||||
{
|
||||
! signal (SIGINT, old_int);
|
||||
! signal (SIGALRM, old_alrm);
|
||||
|
||||
#if defined (SIGTSTP)
|
||||
! signal (SIGTSTP, old_tstp);
|
||||
#endif
|
||||
|
||||
#if defined (SIGTTOU)
|
||||
! signal (SIGTTOU, old_ttou);
|
||||
! signal (SIGTTIN, old_ttin);
|
||||
#endif
|
||||
|
||||
#if defined (SIGWINCH)
|
||||
! signal (SIGWINCH, old_sigwinch);
|
||||
#endif
|
||||
}
|
||||
#endif /* HANDLE_SIGNALS */
|
||||
--- 635,660 ----
|
||||
#endif
|
||||
|
||||
#if defined (SIGWINCH)
|
||||
! old_sigwinch = (SigHandler *)signal (SIGWINCH, (void *)rl_handle_sigwinch);
|
||||
#endif
|
||||
}
|
||||
|
||||
rl_clear_signals ()
|
||||
{
|
||||
! signal (SIGINT, (void *)old_int);
|
||||
! signal (SIGALRM, (void *)old_alrm);
|
||||
|
||||
#if defined (SIGTSTP)
|
||||
! signal (SIGTSTP, (void *)old_tstp);
|
||||
#endif
|
||||
|
||||
#if defined (SIGTTOU)
|
||||
! signal (SIGTTOU, (void *)old_ttou);
|
||||
! signal (SIGTTIN, (void *)old_ttin);
|
||||
#endif
|
||||
|
||||
#if defined (SIGWINCH)
|
||||
! signal (SIGWINCH, (void *)old_sigwinch);
|
||||
#endif
|
||||
}
|
||||
#endif /* HANDLE_SIGNALS */
|
22
net/icb/patches/patch-af
Normal file
22
net/icb/patches/patch-af
Normal file
@ -0,0 +1,22 @@
|
||||
*** icb/strings.c.orig Sat Feb 25 03:20:30 1995
|
||||
--- icb/strings.c Wed May 6 18:32:20 1998
|
||||
***************
|
||||
*** 333,338 ****
|
||||
--- 333,339 ----
|
||||
/* cat multiple strings into one */
|
||||
/* call with strscat(dest, src, src, ...) */
|
||||
|
||||
+ #if 0
|
||||
char *
|
||||
strscat(va_alist)
|
||||
va_dcl
|
||||
***************
|
||||
*** 357,362 ****
|
||||
--- 358,364 ----
|
||||
*dest = '\0';
|
||||
return(dest);
|
||||
}
|
||||
+ #endif
|
||||
|
||||
char *basename(path)
|
||||
char *path;
|
19
net/icb/patches/patch-ag
Normal file
19
net/icb/patches/patch-ag
Normal file
@ -0,0 +1,19 @@
|
||||
*** icb/protos.h.orig Sat Feb 25 03:20:25 1995
|
||||
--- icb/protos.h Wed May 6 18:32:20 1998
|
||||
***************
|
||||
*** 64,70 ****
|
||||
int inserttab(void);
|
||||
int ishushed(char *nick);
|
||||
int lcaseit(char *s);
|
||||
! #ifdef linux
|
||||
int linebuffer(FILE *fp);
|
||||
#else
|
||||
int linebuffer(struct _iobuf *fp);
|
||||
--- 64,70 ----
|
||||
int inserttab(void);
|
||||
int ishushed(char *nick);
|
||||
int lcaseit(char *s);
|
||||
! #if defined(linux) || (defined(BSD) && BSD >= 199306)
|
||||
int linebuffer(FILE *fp);
|
||||
#else
|
||||
int linebuffer(struct _iobuf *fp);
|
31
net/icb/patches/patch-ah
Normal file
31
net/icb/patches/patch-ah
Normal file
@ -0,0 +1,31 @@
|
||||
*** icb/c_shell.c.orig Wed May 6 18:54:38 1998
|
||||
--- icb/c_shell.c Wed May 6 18:55:02 1998
|
||||
***************
|
||||
*** 60,72 ****
|
||||
signal(SIGQUIT, SIG_IGN);
|
||||
|
||||
/* wait for the child(ren) to die */
|
||||
! while ((w = wait(&status)) != pid && w != -1);
|
||||
|
||||
/* restore the terminal */
|
||||
icbterm();
|
||||
|
||||
/* restore signal processing */
|
||||
! signal(SIGINT, askquit);
|
||||
signal(SIGQUIT, SIG_DFL);
|
||||
|
||||
/* clean up a little */
|
||||
--- 60,72 ----
|
||||
signal(SIGQUIT, SIG_IGN);
|
||||
|
||||
/* wait for the child(ren) to die */
|
||||
! while ((w = wait((int *)&status)) != pid && w != -1);
|
||||
|
||||
/* restore the terminal */
|
||||
icbterm();
|
||||
|
||||
/* restore signal processing */
|
||||
! signal(SIGINT, (void *)askquit);
|
||||
signal(SIGQUIT, SIG_DFL);
|
||||
|
||||
/* clean up a little */
|
67
net/icb/patches/patch-ai
Normal file
67
net/icb/patches/patch-ai
Normal file
@ -0,0 +1,67 @@
|
||||
*** icb/signals.c.orig Wed May 6 18:55:15 1998
|
||||
--- icb/signals.c Wed May 6 18:55:55 1998
|
||||
***************
|
||||
*** 22,35 ****
|
||||
/* sighandler askquit(), suspend(), icbexit(); */
|
||||
|
||||
/* exit on a hangup or terminate signal */
|
||||
! signal(SIGHUP, icbexit);
|
||||
! signal(SIGTERM, icbexit);
|
||||
|
||||
/* on an interrupt, verify the user wants to quit */
|
||||
! signal(SIGINT, askquit);
|
||||
|
||||
/* suspend on a stop signal */
|
||||
! signal(SIGTSTP, suspend);
|
||||
}
|
||||
|
||||
|
||||
--- 22,35 ----
|
||||
/* sighandler askquit(), suspend(), icbexit(); */
|
||||
|
||||
/* exit on a hangup or terminate signal */
|
||||
! signal(SIGHUP, (void *)icbexit);
|
||||
! signal(SIGTERM, (void *)icbexit);
|
||||
|
||||
/* on an interrupt, verify the user wants to quit */
|
||||
! signal(SIGINT, (void *)askquit);
|
||||
|
||||
/* suspend on a stop signal */
|
||||
! signal(SIGTSTP, (void *)suspend);
|
||||
}
|
||||
|
||||
|
||||
***************
|
||||
*** 45,51 ****
|
||||
sigsetmask(sigblock(0) &~ mask(SIGTSTP));
|
||||
kill(0, SIGTSTP);
|
||||
sigblock(mask(SIGTSTP));
|
||||
! signal(SIGTSTP, suspend);
|
||||
icbterm();
|
||||
continued = 1;
|
||||
}
|
||||
--- 45,51 ----
|
||||
sigsetmask(sigblock(0) &~ mask(SIGTSTP));
|
||||
kill(0, SIGTSTP);
|
||||
sigblock(mask(SIGTSTP));
|
||||
! signal(SIGTSTP, (void *)suspend);
|
||||
icbterm();
|
||||
continued = 1;
|
||||
}
|
||||
***************
|
||||
*** 73,79 ****
|
||||
if (c == 'Y' || c == 'y')
|
||||
icbexit();
|
||||
|
||||
! signal(SIGINT, askquit);
|
||||
continued = 1;
|
||||
|
||||
if (oem)
|
||||
--- 73,79 ----
|
||||
if (c == 'Y' || c == 'y')
|
||||
icbexit();
|
||||
|
||||
! signal(SIGINT, (void *)askquit);
|
||||
continued = 1;
|
||||
|
||||
if (oem)
|
1
net/icb/pkg/COMMENT
Normal file
1
net/icb/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
Interenet CB - a mostly-defunct chat client
|
2
net/icb/pkg/DESCR
Normal file
2
net/icb/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
This is a chat client similar to irc, but for the icb protocol.
|
||||
Virtually nobody uses it these days.
|
8
net/icb/pkg/PLIST
Normal file
8
net/icb/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $NetBSD: PLIST,v 1.1 1998/03/18 22:40:47 cjs Exp $
|
||||
bin/icb
|
||||
libdata/icbserverdb
|
||||
libdata/icb/sample.icbrc
|
||||
libdata/icb/bartender
|
||||
libdata/icb/confuse
|
||||
libdata/icb/echofile
|
||||
@dirrm libdata/icb
|
Loading…
Reference in New Issue
Block a user