aboutsummaryrefslogtreecommitdiff
path: root/net/rmsg
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2014-04-13 10:55:38 +0000
committerRene Ladan <rene@FreeBSD.org>2014-04-13 10:55:38 +0000
commitbac6e092c4705f6a79bf323ae7961d92aa017bb5 (patch)
tree945be4c82f4ab2b27427f5ba33627b6ec0e06991 /net/rmsg
parent0bd8a54ab1df83aba8d606431f2ca378711e1d69 (diff)
downloadports-bac6e092c4705f6a79bf323ae7961d92aa017bb5.tar.gz
ports-bac6e092c4705f6a79bf323ae7961d92aa017bb5.zip
Notes
Diffstat (limited to 'net/rmsg')
-rw-r--r--net/rmsg/Makefile28
-rw-r--r--net/rmsg/distinfo2
-rw-r--r--net/rmsg/files/patch-aa52
-rw-r--r--net/rmsg/files/patch-ab82
-rw-r--r--net/rmsg/files/patch-ac51
-rw-r--r--net/rmsg/files/patch-ae38
-rw-r--r--net/rmsg/files/patch-rmsg.c36
-rw-r--r--net/rmsg/files/patch-server.c98
-rw-r--r--net/rmsg/files/patch-xdr16
-rw-r--r--net/rmsg/files/rmsgd.in15
-rw-r--r--net/rmsg/pkg-descr24
11 files changed, 0 insertions, 442 deletions
diff --git a/net/rmsg/Makefile b/net/rmsg/Makefile
deleted file mode 100644
index 1cedbdfea3b4..000000000000
--- a/net/rmsg/Makefile
+++ /dev/null
@@ -1,28 +0,0 @@
-# Created by: torstenb@FreeBSD.org
-# $FreeBSD$
-
-PORTNAME= rmsg
-PORTVERSION= 1.64
-PORTREVISION= 1
-CATEGORIES= net
-MASTER_SITES= ftp://ftp.funet.fi/pub/unix/tcpip/
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Network messaging system
-
-DEPRECATED= Unmaintained since 2001
-EXPIRATION_DATE= 2014-04-12
-WRKSRC= ${WRKDIR}/rmsg
-MAN1= rmsg.1
-MAN8= rmsgd.8
-PLIST_FILES= bin/rmsg sbin/rmsgd
-USE_RC_SUBR= rmsgd
-
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} > 900007
-BROKEN= Does not build after the removal of utmp(5)
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/net/rmsg/distinfo b/net/rmsg/distinfo
deleted file mode 100644
index f2584fbee562..000000000000
--- a/net/rmsg/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (rmsg-1.64.tar.gz) = b604f7ed28b0e7ebb3ed5aa186d4761bc645cc9406c1bfea8d84823d496c5729
-SIZE (rmsg-1.64.tar.gz) = 15370
diff --git a/net/rmsg/files/patch-aa b/net/rmsg/files/patch-aa
deleted file mode 100644
index 817aeae21708..000000000000
--- a/net/rmsg/files/patch-aa
+++ /dev/null
@@ -1,52 +0,0 @@
-*** Makefile.orig Mon Oct 9 13:12:47 1995
---- Makefile Mon Oct 9 13:17:04 1995
-***************
-*** 3,25 ****
- # -DBSD if on a BSD system, -DHPUX and -DUSG5 if on hp-ux
- # -DBSD and -DSUNOS for SUNOS.
- # -DNOBODY=100 numeric id for nobody user if setuid to user fails
-! # (shouldn't happen)
- #CFLAGS = -O -DBITNET -DNOBODY=100
- #CFLAGS = -O -DBSD -DBITNET -DNOBODY=65534 -DSUNOS
-! CFLAGS = -O2 -DSVR4 -DNOBODY=32
- OBJS = xdr.o parser.o misc.o
- SRC = xdr.c parser.c misc.c
-! CC = gcc
-! LIBS = -lrpcsvc -lsocket -lnsl
- BIN = rmsg rmsgd
-
- # These are for make install
-! DAEMONDIR = /usr/local/etc
-! BINDIR = /usr/local/bin
-
-! MAN1 = /usr/local/man/man1
- # place for rmsg.1
-! MAN8 = /usr/local/man/man8
- # place for rmsgd.8
-
- all: $(BIN)
---- 3,26 ----
- # -DBSD if on a BSD system, -DHPUX and -DUSG5 if on hp-ux
- # -DBSD and -DSUNOS for SUNOS.
- # -DNOBODY=100 numeric id for nobody user if setuid to user fails
-! # (shouldn't hap
- #CFLAGS = -O -DBITNET -DNOBODY=100
- #CFLAGS = -O -DBSD -DBITNET -DNOBODY=65534 -DSUNOS
-! #CFLAGS = -O2 -DSVR4 -DNOBODY=32
-! CFLAGS+= -D_HAVE_PARAM_H
- OBJS = xdr.o parser.o misc.o
- SRC = xdr.c parser.c misc.c
-! #CC = gcc
-! LIBS = -lrpcsvc # -lsocket -lnsl
- BIN = rmsg rmsgd
-
- # These are for make install
-! DAEMONDIR = ${PREFIX}/sbin
-! BINDIR = ${PREFIX}/bin
-
-! MAN1 = ${PREFIX}/man/man1
- # place for rmsg.1
-! MAN8 = ${PREFIX}/man/man8
- # place for rmsgd.8
-
- all: $(BIN)
diff --git a/net/rmsg/files/patch-ab b/net/rmsg/files/patch-ab
deleted file mode 100644
index bc83dd37e9c3..000000000000
--- a/net/rmsg/files/patch-ab
+++ /dev/null
@@ -1,82 +0,0 @@
-*** parser.c Sat Jun 26 17:04:41 1993
---- parser.c Tue Apr 23 17:26:30 2013
-***************
-*** 11,22 ****
- * Last modified: Sat Aug 20 18:47:54 1988
- */
-
- #include <stdio.h>
-! #if defined(SVR4)
-! # include <string.h>
-! #else
-! # include <strings.h>
-! #endif /* SVR4 */
- #include <pwd.h>
- #include <ctype.h>
- #include <sys/types.h>
---- 11,19 ----
- * Last modified: Sat Aug 20 18:47:54 1988
- */
-
-+ #include <stdlib.h>
- #include <stdio.h>
-! #include <string.h>
- #include <pwd.h>
- #include <ctype.h>
- #include <sys/types.h>
-***************
-*** 71,79 ****
-
- /* end of config params */
-
-- struct passwd *getpwnam();
-- char *malloc();
--
- extern char *progname;
- extern int debug;
-
---- 68,73 ----
-***************
-*** 89,94 ****
---- 83,89 ----
- char *user;
- {
- struct passwd *pwd;
-+ uid_t nobody;
- static char line[LINE_LEN];
- static char config[PATHLEN];
-
-***************
-*** 107,119 ****
- a->next = 0;
- cur_ali = aliases = a;
-
- if (!(pwd = getpwnam(user)))
- return(ERR_UNK_USER);
-
- if (root) {
- (void) setgid (pwd->pw_gid);
- if (setuid (pwd->pw_uid) == -1)
-! (void) setuid(NOBODY);
- }
-
- (void) strcpy (home, pwd->pw_dir);
---- 102,119 ----
- a->next = 0;
- cur_ali = aliases = a;
-
-+ if (!(pwd = getpwnam("nobody")))
-+ exit(67);
-+
-+ nobody = pwd->pw_uid;
-+
- if (!(pwd = getpwnam(user)))
- return(ERR_UNK_USER);
-
- if (root) {
- (void) setgid (pwd->pw_gid);
- if (setuid (pwd->pw_uid) == -1)
-! (void) setuid(nobody);
- }
-
- (void) strcpy (home, pwd->pw_dir);
diff --git a/net/rmsg/files/patch-ac b/net/rmsg/files/patch-ac
deleted file mode 100644
index 5defeda51870..000000000000
--- a/net/rmsg/files/patch-ac
+++ /dev/null
@@ -1,51 +0,0 @@
-*** rmsg.h Sat Jun 26 17:05:59 1993
---- rmsg.h Tue Apr 23 17:18:46 2013
-***************
-*** 11,16 ****
---- 11,20 ----
- * Last modified: Sat Aug 20 16:43:03 1988
- */
-
-+ #ifdef _HAVE_PARAM_H
-+ #include <sys/param.h>
-+ #endif
-+
- #if defined(USG5) || defined(SVR4)
- # define index strchr
- # define rindex strrchr
-***************
-*** 46,57 ****
- #define PATHLEN 1024
- #define LINELEN 1024
-
- #define UTMP "/etc/utmp"
- #define UTMP_TTY_SIZE 8
- #define UTMP_NAME_SIZE 8
-
- struct command {
-! char *token; /* Command name, e.g. msglast */
- int (*function)(); /* Function which it is supposed to run */
- };
-
---- 50,70 ----
- #define PATHLEN 1024
- #define LINELEN 1024
-
-+
-+ #if (defined(BSD) && (BSD >= 199103))
-+ #include <paths.h>
-+ #include <utmp.h>
-+ #define UTMP _PATH_UTMP
-+ #define UTMP_TTY_SIZE UT_LINESIZE
-+ #define UTMP_NAME_SIZE UT_NAMESIZE
-+ #else
- #define UTMP "/etc/utmp"
- #define UTMP_TTY_SIZE 8
- #define UTMP_NAME_SIZE 8
-+ #endif
-
- struct command {
-! const char *token; /* Command name, e.g. msglast */
- int (*function)(); /* Function which it is supposed to run */
- };
-
diff --git a/net/rmsg/files/patch-ae b/net/rmsg/files/patch-ae
deleted file mode 100644
index 4661d739ebc9..000000000000
--- a/net/rmsg/files/patch-ae
+++ /dev/null
@@ -1,38 +0,0 @@
---- misc.c 1991-11-08 07:10:03.000000000 -0500
-+++ misc.c 2013-04-23 17:48:12.000000000 -0400
-@@ -12,5 +12,7 @@
- */
-
-+#include <libgen.h>
- #include <stdio.h>
-+#include <stdlib.h>
- #include <sys/types.h>
- #include <sys/types.h>
-@@ -21,18 +23,9 @@
- #endif
- #include <time.h>
-+#include <rpc/rpc.h>
- #include "rmsg.h"
- #include "rmsgprot.h"
-
--char *append(), *ctime(), *malloc(), *strcpy();
--long time();
--
--char *basename(x)
--char *x;
--{
-- char *tmp;
-- if (tmp = rindex (x, '/')) tmp++;
-- else tmp = x;
-- return (tmp);
--}
-+static char *append();
-
- /*
-@@ -107,5 +100,5 @@
- break;
- case 'd':
-- now = time((long *) NULL);
-+ now = time(NULL);
- p = ctime (&now);
- /* We don't want the cr */
diff --git a/net/rmsg/files/patch-rmsg.c b/net/rmsg/files/patch-rmsg.c
deleted file mode 100644
index 91e89437a4ad..000000000000
--- a/net/rmsg/files/patch-rmsg.c
+++ /dev/null
@@ -1,36 +0,0 @@
---- rmsg.c 1992-11-23 16:27:09.000000000 -0500
-+++ rmsg.c 2013-04-23 17:00:01.000000000 -0400
-@@ -30,4 +30,6 @@
- #include <string.h>
- #endif
-+#include <stdlib.h>
-+#include <unistd.h>
-
- #include <pwd.h>
-@@ -42,5 +44,2 @@
- #define HNLEN 200
-
--int xdr_rmsg(), getopt();
--char *getlogin(), *basename(), *index(), *rindex();
--uid_t getuid();
-@@ -49,9 +51,4 @@
- void report();
- char *getalias(), *parseheader();
--#ifdef SUNOS
--void *malloc();
--#else
--char *malloc();
--#endif
- void storeout();
- extern struct hostent *gethostbyname();
-@@ -72,9 +69,9 @@
- #endif
-
-+int
- main(argc,argv)
- int argc;
- char **argv;
- {
-- extern char *optargs;
- extern int optind;
-
diff --git a/net/rmsg/files/patch-server.c b/net/rmsg/files/patch-server.c
deleted file mode 100644
index 379dd440b668..000000000000
--- a/net/rmsg/files/patch-server.c
+++ /dev/null
@@ -1,98 +0,0 @@
---- server.c 1993-06-26 17:23:23.000000000 -0400
-+++ server.c 2013-04-23 17:13:15.000000000 -0400
-@@ -24,7 +24,11 @@
-
- #define SERVER
-
-+#include <libgen.h>
- #include <stdio.h>
-+#include <stdlib.h>
-+#include <sys/param.h>
-+#include <unistd.h>
- #if defined(SVR4)
- # include <netinet/in.h>
- #endif /* SVR4 */
-@@ -39,11 +43,7 @@
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <sys/file.h>
--#if defined(SVR4)
--# include <string.h>
--#else
--# include <strings.h>
--#endif /* SVR4 */
-+#include <string.h>
- #include <sys/ioctl.h>
- #ifndef USG5
- #include <sys/wait.h>
-@@ -54,19 +54,12 @@
- #endif /* USG5 || SVR4 */
-
- #include <sys/param.h>
--#include <sgtty.h>
- #include <sys/types.h>
- #include <ctype.h>
-
--int xdr_rmsg(), smsg();
-+static void smsg(struct svc_req *, SVCXPRT *);
- int tty_write(), dowrite();
--char *basename(), *parseheader();
--#ifdef SUNOS
--void *malloc();
--#else
--char *malloc();
--#endif
--long time();
-+char *parseheader();
- uid_t getuid();
- char *progname;
- int debug = 0;
-@@ -99,6 +93,9 @@
- }
-
- if (! strcmp (basename (progname), "rmsgd")) {
-+#if (defined(BSD) && (BSD >= 199306))
-+ (void)daemon(0,0);
-+#else
- if (fork()) _exit(0); /* make myself a daemon */
- #ifdef BSD
- fd = open("/dev/tty", O_RDWR); /* disconnect from control tty */
-@@ -109,10 +106,11 @@
- #else
- (void) setpgrp ();
- #endif
-+#endif
- }
-
- else {
-- (void) fprintf (stderr, "Starting from inetd not yet supported, rename me ase rmsgd and start\nfrom /etc/rc\n");
-+ (void) fprintf (stderr, "Starting from inetd not yet supported. Start via the rc.d script\n");
- }
-
- if (argc > 1)
-@@ -136,13 +134,14 @@
- exit(-3);
- }
-
-+void
- smsg(rqstp, transp)
- struct svc_req *rqstp;
- SVCXPRT *transp;
- {
- int child, pid, fd;
- unsigned int retval = 0;
--#if defined(HPUX) || defined(SVR4)
-+#if defined(HPUX) || defined(SVR4) || defined(BSD)
- int status;
- #else
- union wait status;
-@@ -198,6 +197,9 @@
- #if defined(HPUX) || defined(SVR4)
- if (status & 0xff) retval = -1;
- else retval = ((status & 0xffff) >> 8);
-+#elif defined(BSD)
-+ if (WIFSIGNALED(status)) retval = -1;
-+ else retval = WEXITSTATUS(status);
- #else
- if (status.w_termsig) retval = -1; /* ended in signal */
- else retval = status.w_retcode;
diff --git a/net/rmsg/files/patch-xdr b/net/rmsg/files/patch-xdr
deleted file mode 100644
index 85ff46810f25..000000000000
--- a/net/rmsg/files/patch-xdr
+++ /dev/null
@@ -1,16 +0,0 @@
---- xdr.c 1988-08-20 12:56:53.000000000 -0400
-+++ xdr.c 2013-04-23 17:35:08.000000000 -0400
-@@ -15,5 +15,3 @@
- #include "rmsgprot.h"
-
--int xdr_rmsg (xdrsp, rm)
-+bool_t xdr_rmsg (XDR *xdrsp, struct rmsg_par *rm)
--XDR *xdrsp;
--struct rmsg_par *rm;
---- rmsgprot.h 1988-08-20 12:56:51.000000000 -0400
-+++ rmsgprot.h 2013-04-23 17:34:03.000000000 -0400
-@@ -29,2 +29,4 @@
- char *msg;
- };
-+
-+bool_t xdr_rmsg(XDR *, struct rmsg_par *);
diff --git a/net/rmsg/files/rmsgd.in b/net/rmsg/files/rmsgd.in
deleted file mode 100644
index 24794ef13fac..000000000000
--- a/net/rmsg/files/rmsgd.in
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: rmsg
-# REQUIRE: DAEMON
-# BEFORE: LOGIN
-# KEYWORD: shutdown
-
-. /etc/rc.subr
-
-name="rmsgd"
-rcvar="rmsgd_enable"
-command="%%PREFIX%%/sbin/${name}"
-
-load_rc_config $name
-run_rc_command "$1"
diff --git a/net/rmsg/pkg-descr b/net/rmsg/pkg-descr
deleted file mode 100644
index 04f6dafca0c9..000000000000
--- a/net/rmsg/pkg-descr
+++ /dev/null
@@ -1,24 +0,0 @@
- The rmsg messaging system can be used to send write(1)-like messages to
-logged-on users. The system can cross machine boundaries: if another machine
-has rmsgd running, you can send messages to users on it.
- The system allows bitnet virtual machine-like 'virtual users' to whom
-any user can send messages and they can answer the messages. The rmsgd server
-makes this possible by allowing a command 'exec' in a user's .msgconf file, and
-whenever the user receives a message this command is executed and the message is
-piped to it.
- It is possible to log incoming and outgoing messages. You can specify a
-file to which the last (or every) incoming message will be stored.
- Rmsgd is the server daemon for the system. It should be started by
-root, but for now it works even if started by ordinary users, even though some
-capabilities are disabled for security reasons (that is, exec and logging of
-incoming messages, since that would be done by the user-id who started rmsgd and
-not the receiver).
- The server should be named 'rmsgd' to have it start as a daemon. Rmsg
-is the client end of the system. Rmsg is used by ordinary users to send
-messages. For example, rmsg foo@bar hello there ! ^D would send a message
-'hello there !' to user foo at machine bar. By default, rmsg stores the last
-outgoing message in the user's home directory in the file .msgout. Then msg -r
-user@machine can be used to resend the message. Messages are normally read from
-standard input until EOF.
- There are many options which can be set in a user's ~/.msgconf' file.
-Read the manual page for rmsg for more information.