summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorseb <seb>2003-09-16 19:41:50 +0000
committerseb <seb>2003-09-16 19:41:50 +0000
commit2bf19937e2c11915d81c5c0b974794631f2335c7 (patch)
tree6b67d94f359a458b3ebebd33238e96e6f991ac3f /chat
parent066c36a4f0b8a696c8675546ecdfaaa7f69b70f3 (diff)
downloadpkgsrc-2bf19937e2c11915d81c5c0b974794631f2335c7.tar.gz
Reimport chat/zephyr-current as chat/zephyr.
Approved by maintainer, sommerfeld@
Diffstat (limited to 'chat')
-rw-r--r--chat/zephyr/DESCR6
-rw-r--r--chat/zephyr/Makefile49
-rw-r--r--chat/zephyr/PLIST49
-rw-r--r--chat/zephyr/buildlink2.mk20
-rw-r--r--chat/zephyr/distinfo15
-rw-r--r--chat/zephyr/files/zhm.sh22
-rw-r--r--chat/zephyr/patches/patch-aa13
-rw-r--r--chat/zephyr/patches/patch-ab15
-rw-r--r--chat/zephyr/patches/patch-ac13
-rw-r--r--chat/zephyr/patches/patch-ad16
-rw-r--r--chat/zephyr/patches/patch-ae46
-rw-r--r--chat/zephyr/patches/patch-af14
-rw-r--r--chat/zephyr/patches/patch-ag24
-rw-r--r--chat/zephyr/patches/patch-ah15
-rw-r--r--chat/zephyr/patches/patch-ai13
-rw-r--r--chat/zephyr/patches/patch-aj24
-rw-r--r--chat/zephyr/patches/patch-ak13
17 files changed, 367 insertions, 0 deletions
diff --git a/chat/zephyr/DESCR b/chat/zephyr/DESCR
new file mode 100644
index 00000000000..b7edb9574a3
--- /dev/null
+++ b/chat/zephyr/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/Makefile b/chat/zephyr/Makefile
new file mode 100644
index 00000000000..01e2b7dbe38
--- /dev/null
+++ b/chat/zephyr/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/09/16 19:41:50 seb Exp $
+#
+
+DISTNAME= zephyr-20010518
+PKGREVISION= 1
+WRKSRC= ${WRKDIR}/zephyr
+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
+
+USE_BUILDLINK2= YES
+USE_PKGINSTALL= 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= --sysconfdir="${PKG_SYSCONFDIR}"
+CONFIGURE_ARGS+="--with-krb4"
+CONFIGURE_ARGS+="--with-hesiod"
+CONFIGURE_ARGS+="--with-ares"
+
+ZEPHYR_DOCDIR= ${PREFIX}/share/doc/zephyr
+ZEPHYR_DOCS= INSTALL NOTES OPERATING README USING
+
+PKG_SYSCONFSUBDIR= zephyr
+OWN_DIRS= ${PKG_SYSCONFDIR}/acl
+EGDIR= ${PREFIX}/share/examples/zephyr
+CONF_FILES= ${EGDIR}/default.subscriptions \
+ ${PKG_SYSCONFDIR}/default.subscriptions
+
+RCD_SCRIPTS= zhm
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA_DIR} ${ZEPHYR_DOCDIR}
+.for f in ${ZEPHYR_DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/$f ${ZEPHYR_DOCDIR}
+.endfor
+.undef f
+
+.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/PLIST b/chat/zephyr/PLIST
new file mode 100644
index 00000000000..dfe1253ce15
--- /dev/null
+++ b/chat/zephyr/PLIST
@@ -0,0 +1,49 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/16 19:41:50 seb 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
+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/examples/zephyr/default.subscriptions
+share/zephyr/XZwrite
+share/zephyr/xzwrite.bitmap
+share/zephyr/zwgc.desc
+share/zephyr/zwgc_resources
+@dirrm share/zephyr
+@dirrm share/examples/zephyr
+@dirrm share/doc/zephyr
+@dirrm include/zephyr
diff --git a/chat/zephyr/buildlink2.mk b/chat/zephyr/buildlink2.mk
new file mode 100644
index 00000000000..c26e3996fb5
--- /dev/null
+++ b/chat/zephyr/buildlink2.mk
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/09/16 19:41:50 seb Exp $
+
+.if !defined(ZEPHYR_BUILDLINK2_MK)
+ZEPHYR_BUILDLINK2_MK= # defined
+
+BUILDLINK_DEPENDS.zephyr?= zephyr>=20010518
+BUILDLINK_PKGSRCDIR.zephyr?= ../../chat/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/distinfo b/chat/zephyr/distinfo
new file mode 100644
index 00000000000..b1a2aa57c55
--- /dev/null
+++ b/chat/zephyr/distinfo
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/09/16 19:41:50 seb 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) = 2c756da1e62613333cca2b68ca9b5f6c96e0f147
+SHA1 (patch-ah) = 8282d416d24eafcb40ead93d4c376f1e8e80b207
+SHA1 (patch-ai) = bfa2d01d20884d31e58bd12a171938504d929e28
+SHA1 (patch-aj) = 3ec4b1624e2eecefe129ac53e870ce2fb2bce236
+SHA1 (patch-ak) = 7c2084aac1e4b30124c380fbc369cb6a6b41eb17
diff --git a/chat/zephyr/files/zhm.sh b/chat/zephyr/files/zhm.sh
new file mode 100644
index 00000000000..614ca4dd850
--- /dev/null
+++ b/chat/zephyr/files/zhm.sh
@@ -0,0 +1,22 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: zhm.sh,v 1.1.1.1 2003/09/16 19:41:50 seb Exp $
+#
+# PROVIDE: zhm
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="zhm"
+rcvar="$name"
+command="@PREFIX@/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/server.list"
+start_precmd="zhm_precmd"
+
+zhm_precmd()
+{
+ rc_flags="`cat @PKG_SYSCONFDIR@/server.list`"
+}
+load_rc_config "$name"
+run_rc_command "$1"
diff --git a/chat/zephyr/patches/patch-aa b/chat/zephyr/patches/patch-aa
new file mode 100644
index 00000000000..dc7dcb82d82
--- /dev/null
+++ b/chat/zephyr/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/09/16 19:41:50 seb 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/patches/patch-ab b/chat/zephyr/patches/patch-ab
new file mode 100644
index 00000000000..41f46a35aa1
--- /dev/null
+++ b/chat/zephyr/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/09/16 19:41:50 seb 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/patches/patch-ac b/chat/zephyr/patches/patch-ac
new file mode 100644
index 00000000000..4746b9e1805
--- /dev/null
+++ b/chat/zephyr/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/09/16 19:41:50 seb 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/patches/patch-ad b/chat/zephyr/patches/patch-ad
new file mode 100644
index 00000000000..559c1f4268c
--- /dev/null
+++ b/chat/zephyr/patches/patch-ad
@@ -0,0 +1,16 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/09/16 19:41:50 seb 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/patches/patch-ae b/chat/zephyr/patches/patch-ae
new file mode 100644
index 00000000000..e1310002061
--- /dev/null
+++ b/chat/zephyr/patches/patch-ae
@@ -0,0 +1,46 @@
+$NetBSD: patch-ae,v 1.1.1.1 2003/09/16 19:41:50 seb 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/patches/patch-af b/chat/zephyr/patches/patch-af
new file mode 100644
index 00000000000..150330b8fa9
--- /dev/null
+++ b/chat/zephyr/patches/patch-af
@@ -0,0 +1,14 @@
+$NetBSD: patch-af,v 1.1.1.1 2003/09/16 19:41:50 seb 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/patches/patch-ag b/chat/zephyr/patches/patch-ag
new file mode 100644
index 00000000000..e51390446c6
--- /dev/null
+++ b/chat/zephyr/patches/patch-ag
@@ -0,0 +1,24 @@
+$NetBSD: patch-ag,v 1.1.1.1 2003/09/16 19:41:50 seb Exp $
+
+--- server/realm.c.orig 2001-02-27 05:51:07.000000000 +0100
++++ server/realm.c
+@@ -498,7 +498,7 @@ realm_init()
+ char list_file[128];
+ char rlmprinc[ANAME_SZ+INST_SZ+REALM_SZ+3];
+
+- sprintf(list_file, "%s/zephyr/%s", SYSCONFDIR, REALM_LIST_FILE);
++ sprintf(list_file, "%s/%s", SYSCONFDIR, REALM_LIST_FILE);
+ rlmnames = get_realm_lists(list_file);
+ if (!rlmnames) {
+ zdbug((LOG_DEBUG, "No other realms"));
+@@ -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/patches/patch-ah b/chat/zephyr/patches/patch-ah
new file mode 100644
index 00000000000..1293113b8de
--- /dev/null
+++ b/chat/zephyr/patches/patch-ah
@@ -0,0 +1,15 @@
+$NetBSD: patch-ah,v 1.1.1.1 2003/09/16 19:41:50 seb 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;
diff --git a/chat/zephyr/patches/patch-ai b/chat/zephyr/patches/patch-ai
new file mode 100644
index 00000000000..6450b0f6cc3
--- /dev/null
+++ b/chat/zephyr/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1.1.1 2003/09/16 19:41:50 seb Exp $
+
+--- Makefile.in.orig 1998-06-11 21:10:02.000000000 +0200
++++ Makefile.in
+@@ -31,8 +31,6 @@ install:
+ ${ENSUREDIR} ${DESTDIR}${libdir} 755
+ ${ENSUREDIR} ${DESTDIR}${datadir} 755
+ ${ENSUREDIR} ${DESTDIR}${datadir}/zephyr 755
+- ${ENSUREDIR} ${DESTDIR}${sysconfdir} 755
+- ${ENSUREDIR} ${DESTDIR}${sysconfdir}/zephyr/acl 755
+ ${ENSUREDIR} ${DESTDIR}${sbindir} 755
+ ${ENSUREDIR} ${DESTDIR}${includedir} 755
+ ${ENSUREDIR} ${DESTDIR}${includedir}/zephyr 755
diff --git a/chat/zephyr/patches/patch-aj b/chat/zephyr/patches/patch-aj
new file mode 100644
index 00000000000..f77a0ec0867
--- /dev/null
+++ b/chat/zephyr/patches/patch-aj
@@ -0,0 +1,24 @@
+$NetBSD: patch-aj,v 1.1.1.1 2003/09/16 19:41:50 seb Exp $
+
+--- server/main.c.orig 2001-02-27 05:50:08.000000000 +0100
++++ server/main.c
+@@ -140,14 +140,14 @@ main(argc, argv)
+ extern int optind;
+
+ #ifndef HAVE_HESIOD
+- sprintf(list_file, "%s/zephyr/%s", SYSCONFDIR, SERVER_LIST_FILE);
++ sprintf(list_file, "%s/%s", SYSCONFDIR, SERVER_LIST_FILE);
+ #endif
+ #ifdef HAVE_KRB4
+- sprintf(srvtab_file, "%s/zephyr/%s", SYSCONFDIR, ZEPHYR_SRVTAB);
+- sprintf(tkt_file, "%s/zephyr/%s", SYSCONFDIR, ZEPHYR_TKFILE);
++ sprintf(srvtab_file, "%s/%s", SYSCONFDIR, ZEPHYR_SRVTAB);
++ sprintf(tkt_file, "%s/%s", SYSCONFDIR, ZEPHYR_TKFILE);
+ #endif
+- sprintf(acl_dir, "%s/zephyr/%s", SYSCONFDIR, ZEPHYR_ACL_DIR);
+- sprintf(subs_file, "%s/zephyr/%s", SYSCONFDIR, DEFAULT_SUBS_FILE);
++ sprintf(acl_dir, "%s/%s", SYSCONFDIR, ZEPHYR_ACL_DIR);
++ sprintf(subs_file, "%s/%s", SYSCONFDIR, DEFAULT_SUBS_FILE);
+
+ /* set name */
+ programname = strrchr(argv[0],'/');
diff --git a/chat/zephyr/patches/patch-ak b/chat/zephyr/patches/patch-ak
new file mode 100644
index 00000000000..be78f393f96
--- /dev/null
+++ b/chat/zephyr/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1.1.1 2003/09/16 19:41:50 seb Exp $
+
+--- server/Makefile.in.orig 2003-07-29 20:46:05.000000000 +0200
++++ server/Makefile.in
+@@ -52,7 +52,7 @@ install:
+ ${INSTALL} -m 755 -s zephyrd ${DESTDIR}${sbindir}
+ ${INSTALL} -m 644 ${srcdir}/zephyrd.8 ${DESTDIR}${mandir}/man8
+ ${INSTALL} -m 644 ${srcdir}/default.subscriptions \
+- ${DESTDIR}${sysconfdir}/zephyr
++ ${DESTDIR}${datadir}/examples/zephyr
+
+ clean:
+ rm -f ${OBJS} zephyrd zsrv_err.[ch]