diff options
author | sommerfeld <sommerfeld> | 2002-12-30 17:39:26 +0000 |
---|---|---|
committer | sommerfeld <sommerfeld> | 2002-12-30 17:39:26 +0000 |
commit | 101dba0b51271098a4bd8cc8761be8551590e6c1 (patch) | |
tree | 0ef0bab92a6a1cca7340733ce28b6de2f09db921 /chat | |
parent | 27b22e7690d393992132c15c9c29e24e312b78d0 (diff) | |
download | pkgsrc-101dba0b51271098a4bd8cc8761be8551590e6c1.tar.gz |
This is the Project Athena Zephyr notification system 2001/05/28
snapshot.
Zephyr allows users to send messages to other users or to groups of
users. Users can view incoming Zephyr messages as windowgrams
(transient X windows) or as text on a terminal.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/zephyr-current/DESCR | 6 | ||||
-rw-r--r-- | chat/zephyr-current/Makefile | 40 | ||||
-rw-r--r-- | chat/zephyr-current/PLIST | 51 | ||||
-rw-r--r-- | chat/zephyr-current/buildlink2.mk | 20 | ||||
-rw-r--r-- | chat/zephyr-current/distinfo | 12 | ||||
-rw-r--r-- | chat/zephyr-current/files/zhm.sh | 24 | ||||
-rw-r--r-- | chat/zephyr-current/patches/patch-aa | 13 | ||||
-rw-r--r-- | chat/zephyr-current/patches/patch-ab | 15 | ||||
-rw-r--r-- | chat/zephyr-current/patches/patch-ac | 13 | ||||
-rw-r--r-- | chat/zephyr-current/patches/patch-ad | 16 | ||||
-rw-r--r-- | chat/zephyr-current/patches/patch-ae | 46 | ||||
-rw-r--r-- | chat/zephyr-current/patches/patch-af | 14 | ||||
-rw-r--r-- | chat/zephyr-current/patches/patch-ag | 15 | ||||
-rw-r--r-- | chat/zephyr-current/patches/patch-ah | 15 |
14 files changed, 300 insertions, 0 deletions
diff --git a/chat/zephyr-current/DESCR b/chat/zephyr-current/DESCR new file mode 100644 index 00000000000..a91eb85239c --- /dev/null +++ b/chat/zephyr-current/DESCR @@ -0,0 +1,6 @@ +This is the Project Athena Zephyr notification system 2001/05/28 +snapshot. + +Zephyr allows users to send messages to other users or to groups of +users. Users can view incoming Zephyr messages as windowgrams +(transient X windows) or as text on a terminal. diff --git a/chat/zephyr-current/Makefile b/chat/zephyr-current/Makefile new file mode 100644 index 00000000000..d2d28118e40 --- /dev/null +++ b/chat/zephyr-current/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/12/30 17:39:26 sommerfeld Exp $ +# + +DISTNAME= zephyr-20010518 +CATEGORIES= chat net +MASTER_SITES= ftp://athena-dist.mit.edu/pub/ATHENA/zephyr/ + +MAINTAINER= sommerfeld@netbsd.org +HOMEPAGE= http://web.mit.edu/olh/Zephyr/index.html +COMMENT= Project Athena's original Instant Messaging system + +WRKSRC= ${WRKDIR}/zephyr +USE_BUILDLINK2= YES +GNU_CONFIGURE= YES +USE_X11= YES + +# N.B. the following assume NetBSD-only. +CPPFLAGS+= -I/usr/include/kerberosIV -I/usr/include/krb5 +LDFLAGS+= -lroken -lcrypto -lcom_err -ledit -lcurses +CONFIGURE_ARGS+="--with-krb4" +CONFIGURE_ARGS+="--with-hesiod" +CONFIGURE_ARGS+="--with-ares" + +ZEPHYR_RCDIR= ${PREFIX}/etc/rc.d +ZEPHYR_DOCDIR= ${PREFIX}/share/doc/zephyr +ZEPHYR_DOCS= INSTALL NOTES OPERATING README USING + +post-install: + ${INSTALL_DATA_DIR} ${ZEPHYR_RCDIR} + ${SED} -e 's|@prefix@|'${PREFIX}'|g' < ${FILESDIR}/zhm.sh > ${WRKDIR}/zhm.sh + ${INSTALL_SCRIPT} ${WRKDIR}/zhm.sh ${ZEPHYR_RCDIR}/zhm + ${INSTALL_DATA_DIR} ${ZEPHYR_DOCDIR} + for f in ${ZEPHYR_DOCS} ; do \ + ${INSTALL_DATA} ${WRKSRC}/$$f ${ZEPHYR_DOCDIR} ; \ + done + +.include "../../devel/readline/buildlink2.mk" +.include "../../net/hesiod/buildlink2.mk" +.include "../../net/libares/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/chat/zephyr-current/PLIST b/chat/zephyr-current/PLIST new file mode 100644 index 00000000000..7d17aa1dfff --- /dev/null +++ b/chat/zephyr-current/PLIST @@ -0,0 +1,51 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/30 17:39:26 sommerfeld Exp $ +bin/xzwrite +bin/zaway +bin/zctl +bin/zleave +bin/zlocate +bin/zmailnotify +bin/znol +bin/zstat +bin/zwgc +bin/zwrite +etc/rc.d/zhm +etc/zephyr/default.subscriptions +include/zephyr/mit-copyright.h +include/zephyr/zephyr.h +include/zephyr/zephyr_err.h +lib/libzephyr.a +man/man1/xzwrite.1 +man/man1/zaway.1 +man/man1/zctl.1 +man/man1/zephyr.1 +man/man1/zleave.1 +man/man1/zlocate.1 +man/man1/zmailnotify.1 +man/man1/znol.1 +man/man1/zwgc.1 +man/man1/zwrite.1 +man/man8/zephyrd.8 +man/man8/zhm.8 +man/man8/zpopnotify.8 +man/man8/zshutdown_notify.8 +man/man8/zstat.8 +sbin/zephyrd +sbin/zhm +sbin/zpopnotify +sbin/zshutdown_notify +share/doc/zephyr/INSTALL +share/doc/zephyr/NOTES +share/doc/zephyr/OPERATING +share/doc/zephyr/README +share/doc/zephyr/USING +share/zephyr/XZwrite +share/zephyr/xzwrite.bitmap +share/zephyr/zwgc.desc +share/zephyr/zwgc_resources +@dirrm share/zephyr +@dirrm share/doc/zephyr +@dirrm include/zephyr +@exec ${MKDIR} %D/etc/zephyr/acl +@dirrm etc/zephyr/acl +@dirrm etc/zephyr diff --git a/chat/zephyr-current/buildlink2.mk b/chat/zephyr-current/buildlink2.mk new file mode 100644 index 00000000000..b1c4a1c5692 --- /dev/null +++ b/chat/zephyr-current/buildlink2.mk @@ -0,0 +1,20 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2002/12/30 17:39:26 sommerfeld Exp $ + +.if !defined(ZEPHYR_BUILDLINK2_MK) +ZEPHYR_BUILDLINK2_MK= # defined + +BUILDLINK_DEPENDS.zephyr?= zephyr>=20010518 +BUILDLINK_PKGSRCDIR.zephyr?= ../../net/zephyr-current + +BUILDLINK_PACKAGES+= zephyr +EVAL_PREFIX+= BUILDLINK_PREFIX.zephyr=zephyr +BUILDLINK_PREFIX.zephyr_DEFAULT= ${LOCALBASE} + +BUILDLINK_FILES.zephyr= include/zephyr/* +BUILDLINK_FILES.zephyr+= lib/libzephyr.* + +BUILDLINK_TARGETS+= zephyr-buildlink + +zephyr-buildlink: _BUILDLINK_USE + +.endif # ZEPHYR_BUILDLINK2_MK diff --git a/chat/zephyr-current/distinfo b/chat/zephyr-current/distinfo new file mode 100644 index 00000000000..5cfc5185c5e --- /dev/null +++ b/chat/zephyr-current/distinfo @@ -0,0 +1,12 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/12/30 17:39:26 sommerfeld Exp $ + +SHA1 (zephyr-20010518.tar.gz) = cd2fca9c2f0bfaa8e69c94813bedc87d66d3ac1c +Size (zephyr-20010518.tar.gz) = 342259 bytes +SHA1 (patch-aa) = f4338f0da9085e1780c52c9b2be2366b7a0f22c2 +SHA1 (patch-ab) = 61cbadf511806c1c16e489ac6d14de347b09277a +SHA1 (patch-ac) = db350fc16d88818d4cce287fad220a2c3e84dabe +SHA1 (patch-ad) = b0f8c408afc2e7fe9a673a5f2ec562a3e34e225c +SHA1 (patch-ae) = 76b4a43282f3d8d8d42d72f66c677a652ff33e22 +SHA1 (patch-af) = 4ebb22fa3c1b2ed351ee267be737d34d8292129c +SHA1 (patch-ag) = 6aa65ab0183ddce7418802664ef4fd7f41662923 +SHA1 (patch-ah) = 8282d416d24eafcb40ead93d4c376f1e8e80b207 diff --git a/chat/zephyr-current/files/zhm.sh b/chat/zephyr-current/files/zhm.sh new file mode 100644 index 00000000000..0cbf643f534 --- /dev/null +++ b/chat/zephyr-current/files/zhm.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# +# $NetBSD: zhm.sh,v 1.1.1.1 2002/12/30 17:39:27 sommerfeld Exp $ +# +# PROVIDE: zhm +# REQUIRE: DAEMON + +. /etc/rc.subr + +PREFIX=${PREFIX-@prefix@} + +name="zhm" +rcvar="$name" +command="${PREFIX}/sbin/${name}" +pidfile="/var/run/${name}.pid" +required_files="${PREFIX}/etc/zephyr/server.list" +start_precmd="zhm_precmd" + +zhm_precmd() +{ + rc_flags="`cat ${PREFIX}/etc/zephyr/server.list`" +} +load_rc_config "$name" +run_rc_command "$1" diff --git a/chat/zephyr-current/patches/patch-aa b/chat/zephyr-current/patches/patch-aa new file mode 100644 index 00000000000..774c5e64994 --- /dev/null +++ b/chat/zephyr-current/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/12/30 17:39:26 sommerfeld Exp $ + +--- lib/Makefile.in.orig Sat Jan 31 18:55:07 1998 ++++ lib/Makefile.in +@@ -42,7 +42,7 @@ libzephyr.a: ${OBJS} + + zephyr_err.c ${BUILDTOP}/h/zephyr/zephyr_err.h: zephyr_err.et + compile_et ${srcdir}/zephyr_err.et +- mv zephyr_err.h ${BUILDTOP}/h/zephyr ++ cp zephyr_err.h ${BUILDTOP}/h/zephyr + + .c.o: + ${CC} -c ${ALL_CFLAGS} $< diff --git a/chat/zephyr-current/patches/patch-ab b/chat/zephyr-current/patches/patch-ab new file mode 100644 index 00000000000..5b76a1bfb27 --- /dev/null +++ b/chat/zephyr-current/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/12/30 17:39:26 sommerfeld Exp $ + +--- lib/ZMkAuth.c.orig Fri Jan 22 18:19:16 1999 ++++ lib/ZMkAuth.c +@@ -42,7 +42,9 @@ Code_t ZMakeAuthentication(notice, buffe + char *cstart, *cend; + ZChecksum_t checksum; + CREDENTIALS cred; +- extern unsigned long des_quad_cksum(); ++#ifdef ERROR_TABLE_BASE_krb ++#define krb_err_base ERROR_TABLE_BASE_krb ++#endif + + now = time(0); + if (last_authent_time == 0 || (now - last_authent_time > 120)) { diff --git a/chat/zephyr-current/patches/patch-ac b/chat/zephyr-current/patches/patch-ac new file mode 100644 index 00000000000..f40d17197f5 --- /dev/null +++ b/chat/zephyr-current/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/12/30 17:39:26 sommerfeld Exp $ + +--- clients/zctl/zctl.c.orig Thu Aug 12 20:19:38 1999 ++++ clients/zctl/zctl.c +@@ -12,7 +12,7 @@ + + #include <sysdep.h> + #include <zephyr/zephyr.h> +-#include <ss/ss.h> ++#include <ss.h> + #include <com_err.h> + #include <pwd.h> + #include <netdb.h> diff --git a/chat/zephyr-current/patches/patch-ad b/chat/zephyr-current/patches/patch-ad new file mode 100644 index 00000000000..fbe8bd9061f --- /dev/null +++ b/chat/zephyr-current/patches/patch-ad @@ -0,0 +1,16 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/12/30 17:39:26 sommerfeld Exp $ + +--- server/zserver.h.orig Mon Feb 26 23:58:14 2001 ++++ server/zserver.h +@@ -268,9 +268,9 @@ void sweep_ticket_hash_table __P((void * + #ifndef NOENCRYPTION + Sched *check_key_sched_cache __P((des_cblock key)); + void add_to_key_sched_cache __P((des_cblock key, Sched *sched)); +-int krb_set_key __P((char *key, int cvt)); ++int krb_set_key __P((void *key, int cvt)); + int krb_rd_req __P((KTEXT authent, char *service, char *instance, +- unsigned KRB_INT32 from_addr, AUTH_DAT *ad, char *fn)); ++ KRB_INT32 from_addr, AUTH_DAT *ad, char *fn)); + int krb_find_ticket __P((KTEXT authent, KTEXT ticket)); + int krb_get_lrealm __P((char *r, int n)); + #endif diff --git a/chat/zephyr-current/patches/patch-ae b/chat/zephyr-current/patches/patch-ae new file mode 100644 index 00000000000..4c0f70dfe11 --- /dev/null +++ b/chat/zephyr-current/patches/patch-ae @@ -0,0 +1,46 @@ +$NetBSD: patch-ae,v 1.1.1.1 2002/12/30 17:39:27 sommerfeld Exp $ + +--- server/kopt.c.orig Mon Feb 26 23:48:01 2001 ++++ server/kopt.c +@@ -161,7 +161,7 @@ void add_to_key_sched_cache(key, sched) + + int + krb_set_key(key,cvt) +- char *key; ++ void *key; + int cvt; + { + #ifdef NOENCRYPTION +@@ -172,7 +172,7 @@ krb_set_key(key,cvt) + int ret; + + if (cvt) +- string_to_key(key,serv_key); ++ string_to_key((char *)key,serv_key); + else + memcpy((char *)serv_key,key,8); + +@@ -187,6 +187,14 @@ krb_set_key(key,cvt) + #endif /* NOENCRYPTION */ + } + ++static u_long ++swap_u_long(u_long x) ++{ ++ return ((x & 0xff000000) >> 24) | ++ ((x & 0x00ff0000) >> 8) | ++ ((x & 0x0000ff00) << 8) | ++ ((x & 0x000000ff) << 24); ++} + + /* + * krb_rd_req() takes an AUTH_MSG_APPL_REQUEST or +@@ -234,7 +242,7 @@ krb_rd_req(authent,service,instance,from + KTEXT authent; /* The received message */ + char *service; /* Service name */ + char *instance; /* Service instance */ +- unsigned KRB_INT32 from_addr; /* Net address of originating host */ ++ KRB_INT32 from_addr; /* Net address of originating host */ + AUTH_DAT *ad; /* Structure to be filled in */ + char *fn; /* Filename to get keys from */ + { diff --git a/chat/zephyr-current/patches/patch-af b/chat/zephyr-current/patches/patch-af new file mode 100644 index 00000000000..5038cea8748 --- /dev/null +++ b/chat/zephyr-current/patches/patch-af @@ -0,0 +1,14 @@ +$NetBSD: patch-af,v 1.1.1.1 2002/12/30 17:39:27 sommerfeld Exp $ + +--- server/kstuff.c.orig Tue Apr 10 19:28:20 2001 ++++ server/kstuff.c +@@ -124,6 +124,9 @@ SendKerberosData(fd, ticket, service, ho + char p[32]; + int written; + int size_to_write; ++#ifdef ERROR_TABLE_BASE_krb ++#define krb_err_base ERROR_TABLE_BASE_krb ++#endif + + rem = krb_mk_req(ticket, service, host, ZGetRealm(), (u_long) 0); + if (rem != KSUCCESS) diff --git a/chat/zephyr-current/patches/patch-ag b/chat/zephyr-current/patches/patch-ag new file mode 100644 index 00000000000..61ab6518a9c --- /dev/null +++ b/chat/zephyr-current/patches/patch-ag @@ -0,0 +1,15 @@ +$NetBSD: patch-ag,v 1.1.1.1 2002/12/30 17:39:27 sommerfeld Exp $ + +--- server/realm.c.orig Mon Feb 26 23:51:07 2001 ++++ server/realm.c +@@ -1096,6 +1096,10 @@ realm_dump_realms(fp) + } + + #ifdef HAVE_KRB4 ++#ifdef ERROR_TABLE_BASE_krb ++#define krb_err_base ERROR_TABLE_BASE_krb ++#endif ++ + static void + realm_sendit_auth(notice, who, auth, realm, ack_to_sender) + ZNotice_t *notice; diff --git a/chat/zephyr-current/patches/patch-ah b/chat/zephyr-current/patches/patch-ah new file mode 100644 index 00000000000..3bfaf282d05 --- /dev/null +++ b/chat/zephyr-current/patches/patch-ah @@ -0,0 +1,15 @@ +$NetBSD: patch-ah,v 1.1.1.1 2002/12/30 17:39:27 sommerfeld Exp $ + +--- zhm/zhm.c.orig Fri May 19 19:19:21 2000 ++++ zhm/zhm.c +@@ -22,7 +22,9 @@ int use_hesiod = 0; + #define srandom srand48 + #endif + +-#define PIDDIR "/var/athena/" ++#ifndef PIDDIR ++#define PIDDIR "/var/run/" ++#endif + + int hmdebug, rebootflag, noflushflag, errflg, dieflag, inetd, oldpid, nofork; + int no_server = 1, nservchang, nserv, nclt; |