diff options
author | Mike Heffner <mikeh@FreeBSD.org> | 2001-03-29 19:36:35 +0000 |
---|---|---|
committer | Mike Heffner <mikeh@FreeBSD.org> | 2001-03-29 19:36:35 +0000 |
commit | bbd04186197fa2b47d4e30c0fd322299c1d8e93f (patch) | |
tree | 6e249d5a461166a58d4d377b71c47894f488d0cf /net/zephyr | |
parent | 3f3d7628f06c66b6a2637bd79b255d0e7fc2f440 (diff) | |
download | ports-bbd04186197fa2b47d4e30c0fd322299c1d8e93f.tar.gz ports-bbd04186197fa2b47d4e30c0fd322299c1d8e93f.zip |
Notes
Diffstat (limited to 'net/zephyr')
-rw-r--r-- | net/zephyr/Makefile | 3 | ||||
-rw-r--r-- | net/zephyr/files/patch-aa | 13 | ||||
-rw-r--r-- | net/zephyr/files/patch-ad | 196 | ||||
-rw-r--r-- | net/zephyr/pkg-plist | 11 |
4 files changed, 216 insertions, 7 deletions
diff --git a/net/zephyr/Makefile b/net/zephyr/Makefile index df5a56acc2c2..1ed6c4591e7a 100644 --- a/net/zephyr/Makefile +++ b/net/zephyr/Makefile @@ -15,11 +15,12 @@ MAINTAINER= ports@FreeBSD.org WRKSRC= ${WRKDIR}/zephyr USE_XLIB= yes + +GNU_CONFIGURE= yes .if exists(/usr/lib/libkrb.a) && defined(MAKE_EBONES) CONFIGURE_ARGS="--with-krb4" .endif -HAS_CONFIGURE= yes MAN1= zephyr.1 xzwrite.1 zaway.1 zctl.1 zleave.1 zlocate.1 \ zmailnotify.1 znol.1 zwgc.1 zwrite.1 MAN8= zpopnotify.8 zshutdown_notify.8 zstat.8 zephyrd.8 zhm.8 diff --git a/net/zephyr/files/patch-aa b/net/zephyr/files/patch-aa index f869bce8bc6a..1f20e69de1e0 100644 --- a/net/zephyr/files/patch-aa +++ b/net/zephyr/files/patch-aa @@ -11,3 +11,16 @@ clean: rm -f ${OBJS} xzwrite +--- zwgc/Makefile.in.orig Mon Mar 12 14:51:08 2001 ++++ zwgc/Makefile.in Mon Mar 12 14:51:38 2001 +@@ -85,8 +85,8 @@ + install: zwgc + ${INSTALL} -m 755 -s zwgc ${DESTDIR}${bindir} + ${INSTALL} -m 644 ${srcdir}/zwgc.1 ${DESTDIR}${mandir}/man1 +- ${INSTALL} -m 644 ${srcdir}/zwgc.desc ${DESTDIR}${datadir}/zephyr +- ${INSTALL} -m 644 ${srcdir}/zwgc_resources ${DESTDIR}${datadir}/zephyr ++ ${INSTALL} -m 644 ${srcdir}/zwgc.desc ${DESTDIR}${datadir} ++ ${INSTALL} -m 644 ${srcdir}/zwgc_resources ${DESTDIR}${datadir} + + clean: + rm -f ${OBJS} zwgc port_dictionary.[ch] pointer_dictionary.[ch] diff --git a/net/zephyr/files/patch-ad b/net/zephyr/files/patch-ad index d1e072fb1470..0b7a7d33efd6 100644 --- a/net/zephyr/files/patch-ad +++ b/net/zephyr/files/patch-ad @@ -11,3 +11,199 @@ } ZUnique_Id_t; /* Checksum */ +--- lib/ZParseNot.c.orig Thu Aug 12 20:19:44 1999 ++++ lib/ZParseNot.c Sun Mar 11 23:18:38 2001 +@@ -151,10 +151,10 @@ + + if (numfields) { + if (ZReadAscii(ptr, end-ptr, (unsigned char *)¬ice->z_uid, +- sizeof(ZUnique_Id_t)) == ZERR_BADFIELD) ++ sizeof(notice->z_uid)) == ZERR_BADFIELD) + BAD_PACKET; +- notice->z_time.tv_sec = ntohl((u_long) notice->z_uid.tv.tv_sec); +- notice->z_time.tv_usec = ntohl((u_long) notice->z_uid.tv.tv_usec); ++ notice->z_time.tv_sec = ntohl((u_long) notice->z_uid.zuid_sec); ++ notice->z_time.tv_usec = ntohl((u_long) notice->z_uid.zuid_usec); + numfields--; + next_field (ptr); + } +@@ -265,10 +265,10 @@ + + if (numfields) { + if (ZReadAscii(ptr, end-ptr, (unsigned char *)¬ice->z_multiuid, +- sizeof(ZUnique_Id_t)) == ZERR_BADFIELD) ++ sizeof(notice->z_multiuid)) == ZERR_BADFIELD) + BAD_PACKET; +- notice->z_time.tv_sec = ntohl((u_long) notice->z_multiuid.tv.tv_sec); +- notice->z_time.tv_usec = ntohl((u_long) notice->z_multiuid.tv.tv_usec); ++ notice->z_time.tv_sec = ntohl((u_long) notice->z_multiuid.zuid_sec); ++ notice->z_time.tv_usec = ntohl((u_long) notice->z_multiuid.zuid_usec); + numfields--; + next_field (ptr); + } +--- lib/Zinternal.c.orig Sun Mar 11 23:20:05 2001 ++++ lib/Zinternal.c Sun Mar 11 23:46:57 2001 +@@ -585,6 +585,7 @@ + Code_t retval; + static char version[BUFSIZ]; /* default init should be all \0 */ + struct sockaddr_in name; ++ struct timeval tv; + int namelen = sizeof(name); + + if (!notice->z_sender) +@@ -604,9 +605,9 @@ + + notice->z_multinotice = ""; + +- (void) gettimeofday(¬ice->z_uid.tv, (struct timezone *)0); +- notice->z_uid.tv.tv_sec = htonl((u_long) notice->z_uid.tv.tv_sec); +- notice->z_uid.tv.tv_usec = htonl((u_long) notice->z_uid.tv.tv_usec); ++ (void) gettimeofday(&tv, (struct timezone *)0); ++ notice->z_uid.zuid_sec = htonl((u_long) tv.tv_sec); ++ notice->z_uid.zuid_usec = htonl((u_long) tv.tv_usec); + + (void) memcpy(¬ice->z_uid.zuid_addr, &__My_addr, sizeof(__My_addr)); + +@@ -684,7 +685,7 @@ + ptr += strlen(ptr)+1; + + if (ZMakeAscii(ptr, end-ptr, (unsigned char *)¬ice->z_uid, +- sizeof(ZUnique_Id_t)) == ZERR_FIELDLEN) ++ sizeof(notice->z_uid)) == ZERR_FIELDLEN) + return (ZERR_HEADERLEN); + ptr += strlen(ptr)+1; + +@@ -738,7 +739,7 @@ + return (ZERR_HEADERLEN); + + if (ZMakeAscii(ptr, end-ptr, (unsigned char *)¬ice->z_multiuid, +- sizeof(ZUnique_Id_t)) == ZERR_FIELDLEN) ++ sizeof(notice->z_multiuid)) == ZERR_FIELDLEN) + return (ZERR_HEADERLEN); + ptr += strlen(ptr)+1; + +@@ -858,6 +859,7 @@ + char multi[64]; + int offset, hdrsize, fragsize, ret_len, message_len, waitforack; + Code_t retval; ++ struct timeval tv; + + hdrsize = len-notice->z_message_len; + fragsize = Z_MAXPKTLEN-hdrsize-Z_FRAGFUDGE; +@@ -873,12 +875,9 @@ + (void) sprintf(multi, "%d/%d", offset, notice->z_message_len); + partnotice.z_multinotice = multi; + if (offset > 0) { +- (void) gettimeofday(&partnotice.z_uid.tv, +- (struct timezone *)0); +- partnotice.z_uid.tv.tv_sec = +- htonl((u_long) partnotice.z_uid.tv.tv_sec); +- partnotice.z_uid.tv.tv_usec = +- htonl((u_long) partnotice.z_uid.tv.tv_usec); ++ (void) gettimeofday(&tv, (struct timezone *)0); ++ partnotice.z_uid.zuid_sec = htonl((u_long) tv.tv_sec); ++ partnotice.z_uid.zuid_usec = htonl((u_long) tv.tv_usec); + (void) memcpy((char *)&partnotice.z_uid.zuid_addr, &__My_addr, + sizeof(__My_addr)); + } +--- server/dispatch.c.orig Sun Mar 11 23:27:40 2001 ++++ server/dispatch.c Sun Mar 11 23:34:42 2001 +@@ -25,8 +25,8 @@ + #define NACKTAB_HASHVAL(sockaddr, uid) (((sockaddr).sin_addr.s_addr ^ \ + (sockaddr).sin_port ^ \ + (uid).zuid_addr.s_addr ^ \ +- (uid).tv.tv_sec ^ \ +- (uid).tv.tv_usec) % NACKTAB_HASHSIZE) ++ (uid).zuid_sec ^ \ ++ (uid).zuid_usec) % NACKTAB_HASHSIZE) + #define HOSTS_SIZE_INIT 256 + + #ifdef DEBUG +@@ -820,9 +820,10 @@ + + /* search the not-yet-acked table for this packet, and flush it. */ + #if 0 +- zdbug((LOG_DEBUG, "nack_cancel: %s:%08X,%08X", ++ zdbug((LOG_DEBUG, "nack_cancel: %s:%08lX,%08lX", + inet_ntoa(notice->z_uid.zuid_addr), +- notice->z_uid.tv.tv_sec, notice->z_uid.tv.tv_usec)); ++ (u_long) notice->z_uid.zuid_sec, ++ (u_long) notice->z_uid.zuid_usec)); + #endif + hashval = NACKTAB_HASHVAL(*who, notice->z_uid); + for (nacked = nacktab[hashval]; nacked; nacked = nacked->next) { +@@ -840,9 +841,10 @@ + } + + #if 1 +- zdbug((LOG_DEBUG,"nack_cancel: nack not found %s:%08X,%08X", ++ zdbug((LOG_DEBUG,"nack_cancel: nack not found %s:%08lX,%08lX", + inet_ntoa (notice->z_uid.zuid_addr), +- notice->z_uid.tv.tv_sec, notice->z_uid.tv.tv_usec)); ++ (u_long) notice->z_uid.zuid_sec, ++ (u_long) notice->z_uid.zuid_usec)); + #endif + } + +--- server/realm.c.orig Sun Mar 11 23:35:16 2001 ++++ server/realm.c Sun Mar 11 23:40:06 2001 +@@ -240,9 +240,10 @@ + ZPacket_t retval; + + #if 0 +- zdbug((LOG_DEBUG, "rlm_nack_cancel: %s:%08X,%08X", ++ zdbug((LOG_DEBUG, "rlm_nack_cancel: %s:%08lX,%08lX", + inet_ntoa(notice->z_uid.zuid_addr), +- notice->z_uid.tv.tv_sec, notice->z_uid.tv.tv_usec)); ++ (u_long) notice->z_uid.zuid_sec, ++ (u_long) notice->z_uid.zuid_usec)); + #endif + if (!which) { + syslog(LOG_ERR, "non-realm ack?"); +@@ -266,9 +267,10 @@ + } + } + #if 0 +- zdbug((LOG_DEBUG,"nack_cancel: nack not found %s:%08X,%08X", ++ zdbug((LOG_DEBUG,"nack_cancel: nack not found %s:%08lX,%08lX", + inet_ntoa (notice->z_uid.zuid_addr), +- notice->z_uid.tv.tv_sec, notice->z_uid.tv.tv_usec)); ++ (u_long) notice->z_uid.zuid_sec, ++ (u_long) notice->z_uid.zuid_usec)); + #endif + return; + } +@@ -743,6 +745,7 @@ + int buffer_len, hdrlen, offset, fragsize, ret_len, message_len; + int origoffset, origlen; + Code_t retval; ++ struct timeval tv; + Unacked *nacked; + char buf[1024], multi[64]; + CREDENTIALS cred; +@@ -857,11 +860,9 @@ + (void) sprintf(multi, "%d/%d", offset+origoffset, origlen); + partnotice.z_multinotice = multi; + if (offset > 0) { +- (void) gettimeofday(&partnotice.z_uid.tv, (struct timezone *)0); +- partnotice.z_uid.tv.tv_sec = htonl((u_long) +- partnotice.z_uid.tv.tv_sec); +- partnotice.z_uid.tv.tv_usec = htonl((u_long) +- partnotice.z_uid.tv.tv_usec); ++ (void) gettimeofday(&tv, (struct timezone *)0); ++ partnotice.z_uid.zuid_sec = htonl((u_long) tv.tv_sec); ++ partnotice.z_uid.zuid_usec = htonl((u_long) tv.tv_usec); + (void) memcpy((char *)&partnotice.z_uid.zuid_addr, &__My_addr, + sizeof(__My_addr)); + } +--- server/server.c.orig Sun Mar 11 23:40:14 2001 ++++ server/server.c Sun Mar 11 23:40:44 2001 +@@ -22,7 +22,7 @@ + + #define SRV_NACKTAB_HASHSIZE 1023 + #define SRV_NACKTAB_HASHVAL(which, uid) (((which) ^ (uid).zuid_addr.s_addr ^ \ +- (uid).tv.tv_sec ^ (uid).tv.tv_usec) \ ++ (uid).zuid_sec ^ (uid).zuid_usec) \ + % SRV_NACKTAB_HASHSIZE) + /* + * Server manager. Deal with traffic to and from other servers. diff --git a/net/zephyr/pkg-plist b/net/zephyr/pkg-plist index 3a19af7b85a2..b93c3d5865d9 100644 --- a/net/zephyr/pkg-plist +++ b/net/zephyr/pkg-plist @@ -1,4 +1,3 @@ -@cwd /usr/local bin/xzwrite bin/zaway bin/zctl @@ -7,24 +6,24 @@ bin/zlocate bin/zmailnotify bin/znol bin/zstat -bin/zwrite bin/zwgc -etc/zephyr/default.subscriptions +bin/zwrite etc/rc.d/zhm.sh +etc/zephyr/default.subscriptions include/zephyr/mit-copyright.h include/zephyr/zephyr.h include/zephyr/zephyr_err.h lib/libzephyr.a -sbin/zshutdown_notify -sbin/zpopnotify sbin/zephyrd sbin/zhm -share/zephyr/XZwrite +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 |