mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Another biff replacement.
Submitted by: Dave Chapeskie <dchapes@ale.zeus.leitch.com>
This commit is contained in:
parent
272a1d3055
commit
050eccf96c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=1854
14 changed files with 538 additions and 0 deletions
19
mail/xbuffy/Makefile
Normal file
19
mail/xbuffy/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
# New ports collection makefile for: xbuffy
|
||||
# Version required: 3.2.1
|
||||
# Date created: 18 June 1995
|
||||
# Whom: dchapes@zeus.leitch.com
|
||||
#
|
||||
# $Id: Makefile,v $
|
||||
#
|
||||
|
||||
DISTNAME= xbuffy3.2.1
|
||||
PKGNAME= xbuffy-3.2.1
|
||||
CATEGORIES+= x11
|
||||
MASTER_SITES= ftp://sunsite.doc.ic.ac.uk/computing/graphics/systems/X11/contrib/utilities/
|
||||
MASTER_SITES+= ftp://ftp.cyf-kr.edu.pl/etc/lfs/x-contrib/utilities/
|
||||
|
||||
MAINTAINER= dchapes@zeus.leitch.com
|
||||
|
||||
USE_IMAKE= yes
|
||||
|
||||
.include <bsd.port.mk>
|
1
mail/xbuffy/distinfo
Normal file
1
mail/xbuffy/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (xbuffy3.2.1.tar.gz) = fe31f9759c80d0726b9e6dfb69abee2a
|
27
mail/xbuffy/files/patch-aa
Normal file
27
mail/xbuffy/files/patch-aa
Normal file
|
@ -0,0 +1,27 @@
|
|||
*** XBuffy.ad.orig Tue Jan 31 16:37:56 1995
|
||||
--- XBuffy.ad Wed Jun 21 16:37:30 1995
|
||||
***************
|
||||
*** 1,11 ****
|
||||
!
|
||||
! Application Defaults file for XBuffy, this is just meant as an example
|
||||
!
|
||||
! *nobeep: FALSE
|
||||
! *horiz: FALSE
|
||||
! *names: FALSE
|
||||
! *shortnames: TRUE
|
||||
! *polltime: 30
|
||||
! *priority: 15
|
||||
! *headertime: 10
|
||||
! *mailboxes: /usr/spool/mail/wfp5p:/home/wfp5p/.Mail/elmProblems
|
||||
--- 1,11 ----
|
||||
!
|
||||
! Application Defaults file for XBuffy, this is just meant as an example
|
||||
!
|
||||
! !XBuffy*nobeep: FALSE
|
||||
! !XBuffy*horiz: TRUE
|
||||
! !XBuffy*names: FALSE
|
||||
! !XBuffy*shortnames: TRUE
|
||||
! XBuffy*polltime: 30
|
||||
! XBuffy*priority: 15
|
||||
! XBuffy*headertime: 10
|
||||
! !XBuffy*mailboxes: /usr/spool/mail/wfp5p:/home/wfp5p/.Mail/elmProblems
|
29
mail/xbuffy/files/patch-ac
Normal file
29
mail/xbuffy/files/patch-ac
Normal file
|
@ -0,0 +1,29 @@
|
|||
*** libdyn/dyn_append.c.orig Fri Dec 10 14:56:02 1993
|
||||
--- libdyn/dyn_append.c Wed Jun 21 16:45:48 1995
|
||||
***************
|
||||
*** 11,16 ****
|
||||
--- 11,17 ----
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+ #include <string.h>
|
||||
|
||||
#include "dynP.h"
|
||||
|
||||
***************
|
||||
*** 20,26 ****
|
||||
int num;
|
||||
{
|
||||
if (obj->debug)
|
||||
! fprintf(stderr, "dyn: append: Writing %d bytes from %d to %d + %d\n",
|
||||
obj->el_size*num, els, obj->array, obj->num_el*obj->el_size);
|
||||
|
||||
if (obj->size < obj->num_el + num) {
|
||||
--- 21,27 ----
|
||||
int num;
|
||||
{
|
||||
if (obj->debug)
|
||||
! fprintf(stderr, "dyn: append: Writing %d bytes from %p to %p + %d\n",
|
||||
obj->el_size*num, els, obj->array, obj->num_el*obj->el_size);
|
||||
|
||||
if (obj->size < obj->num_el + num) {
|
11
mail/xbuffy/files/patch-ad
Normal file
11
mail/xbuffy/files/patch-ad
Normal file
|
@ -0,0 +1,11 @@
|
|||
*** libdyn/dyn_create.c.orig Fri Dec 10 14:56:02 1993
|
||||
--- libdyn/dyn_create.c Wed Jun 21 16:39:16 1995
|
||||
***************
|
||||
*** 12,17 ****
|
||||
--- 12,18 ----
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+ #include <stdlib.h>
|
||||
|
||||
#include "dynP.h"
|
46
mail/xbuffy/files/patch-ae
Normal file
46
mail/xbuffy/files/patch-ae
Normal file
|
@ -0,0 +1,46 @@
|
|||
*** libdyn/dyn_delete.c.orig Fri Dec 10 14:56:03 1993
|
||||
--- libdyn/dyn_delete.c Wed Jun 21 16:45:00 1995
|
||||
***************
|
||||
*** 11,16 ****
|
||||
--- 11,17 ----
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+ #include <string.h>
|
||||
|
||||
#include "dynP.h"
|
||||
|
||||
***************
|
||||
*** 45,51 ****
|
||||
else {
|
||||
if (obj->debug)
|
||||
fprintf(stderr,
|
||||
! "dyn: delete: copying %d bytes from %d + %d to + %d.\n",
|
||||
obj->el_size*(obj->num_el - index), obj->array,
|
||||
(index+1)*obj->el_size, index*obj->el_size);
|
||||
|
||||
--- 46,52 ----
|
||||
else {
|
||||
if (obj->debug)
|
||||
fprintf(stderr,
|
||||
! "dyn: delete: copying %d bytes from %p + %d to + %d.\n",
|
||||
obj->el_size*(obj->num_el - index), obj->array,
|
||||
(index+1)*obj->el_size, index*obj->el_size);
|
||||
|
||||
***************
|
||||
*** 56,62 ****
|
||||
if (obj->paranoid) {
|
||||
if (obj->debug)
|
||||
fprintf(stderr,
|
||||
! "dyn: delete: zeroing %d bytes from %d + %d\n",
|
||||
obj->el_size, obj->array,
|
||||
obj->el_size*(obj->num_el - 1));
|
||||
bzero(obj->array + obj->el_size*(obj->num_el - 1),
|
||||
--- 57,63 ----
|
||||
if (obj->paranoid) {
|
||||
if (obj->debug)
|
||||
fprintf(stderr,
|
||||
! "dyn: delete: zeroing %d bytes from %p + %d\n",
|
||||
obj->el_size, obj->array,
|
||||
obj->el_size*(obj->num_el - 1));
|
||||
bzero(obj->array + obj->el_size*(obj->num_el - 1),
|
46
mail/xbuffy/files/patch-af
Normal file
46
mail/xbuffy/files/patch-af
Normal file
|
@ -0,0 +1,46 @@
|
|||
*** libdyn/dyn_insert.c.orig Fri Dec 10 14:56:04 1993
|
||||
--- libdyn/dyn_insert.c Wed Jun 21 16:47:42 1995
|
||||
***************
|
||||
*** 11,16 ****
|
||||
--- 11,17 ----
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+ #include <string.h>
|
||||
#include "dynP.h"
|
||||
|
||||
int DynInsert(obj, index, els, num)
|
||||
***************
|
||||
*** 35,41 ****
|
||||
}
|
||||
|
||||
if (obj->debug)
|
||||
! fprintf(stderr,"dyn: insert: Moving %d bytes from %d + %d to + %d\n",
|
||||
(obj->num_el-index)*obj->el_size, obj->array,
|
||||
obj->el_size*index, obj->el_size*(index+num));
|
||||
|
||||
--- 36,42 ----
|
||||
}
|
||||
|
||||
if (obj->debug)
|
||||
! fprintf(stderr,"dyn: insert: Moving %d bytes from %p + %d to + %d\n",
|
||||
(obj->num_el-index)*obj->el_size, obj->array,
|
||||
obj->el_size*index, obj->el_size*(index+num));
|
||||
|
||||
***************
|
||||
*** 46,52 ****
|
||||
(obj->num_el-index)*obj->el_size);
|
||||
|
||||
if (obj->debug)
|
||||
! fprintf(stderr, "dyn: insert: Copying %d bytes from %d to %d + %d\n",
|
||||
obj->el_size*num, els, obj->array, obj->el_size*index);
|
||||
|
||||
bcopy(els, obj->array + obj->el_size*index, obj->el_size*num);
|
||||
--- 47,53 ----
|
||||
(obj->num_el-index)*obj->el_size);
|
||||
|
||||
if (obj->debug)
|
||||
! fprintf(stderr, "dyn: insert: Copying %d bytes from %p to %p + %d\n",
|
||||
obj->el_size*num, els, obj->array, obj->el_size*index);
|
||||
|
||||
bcopy(els, obj->array + obj->el_size*index, obj->el_size*num);
|
46
mail/xbuffy/files/patch-ag
Normal file
46
mail/xbuffy/files/patch-ag
Normal file
|
@ -0,0 +1,46 @@
|
|||
*** libdyn/dyn_put.c.orig Fri Dec 10 14:56:04 1993
|
||||
--- libdyn/dyn_put.c Wed Jun 21 16:43:13 1995
|
||||
***************
|
||||
*** 11,16 ****
|
||||
--- 11,17 ----
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+ #include <string.h>
|
||||
|
||||
#include "dynP.h"
|
||||
|
||||
***************
|
||||
*** 34,40 ****
|
||||
}
|
||||
|
||||
if (obj->debug)
|
||||
! fprintf(stderr, "dyn: get: Returning address %d + %d.\n",
|
||||
obj->array, obj->el_size*num);
|
||||
|
||||
return (DynPtr) obj->array + obj->el_size*num;
|
||||
--- 35,41 ----
|
||||
}
|
||||
|
||||
if (obj->debug)
|
||||
! fprintf(stderr, "dyn: get: Returning address %p + %d.\n",
|
||||
obj->array, obj->el_size*num);
|
||||
|
||||
return (DynPtr) obj->array + obj->el_size*num;
|
||||
***************
|
||||
*** 67,73 ****
|
||||
int ret;
|
||||
|
||||
if (obj->debug)
|
||||
! fprintf(stderr, "dyn: put: Writing %d bytes from %d to %d + %d\n",
|
||||
obj->el_size, el, obj->array, index*obj->el_size);
|
||||
|
||||
if ((ret = _DynResize(obj, index)) != DYN_OK)
|
||||
--- 68,74 ----
|
||||
int ret;
|
||||
|
||||
if (obj->debug)
|
||||
! fprintf(stderr, "dyn: put: Writing %d bytes from %p to %p + %d\n",
|
||||
obj->el_size, el, obj->array, index*obj->el_size);
|
||||
|
||||
if ((ret = _DynResize(obj, index)) != DYN_OK)
|
12
mail/xbuffy/files/patch-ah
Normal file
12
mail/xbuffy/files/patch-ah
Normal file
|
@ -0,0 +1,12 @@
|
|||
*** libdyn/dyn_realloc.c.orig Fri Dec 10 14:56:05 1993
|
||||
--- libdyn/dyn_realloc.c Wed Jun 21 16:46:32 1995
|
||||
***************
|
||||
*** 11,16 ****
|
||||
--- 11,17 ----
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+ #include <stdlib.h>
|
||||
|
||||
#include "dynP.h"
|
||||
|
86
mail/xbuffy/files/patch-ai
Normal file
86
mail/xbuffy/files/patch-ai
Normal file
|
@ -0,0 +1,86 @@
|
|||
*** nntp.c.orig Tue Jan 31 16:37:56 1995
|
||||
--- nntp.c Wed Jun 21 19:33:33 1995
|
||||
***************
|
||||
*** 73,79 ****
|
||||
}
|
||||
|
||||
|
||||
! int initNNTP()
|
||||
{
|
||||
char line[1024];
|
||||
int err;
|
||||
--- 73,79 ----
|
||||
}
|
||||
|
||||
|
||||
! void initNNTP()
|
||||
{
|
||||
char line[1024];
|
||||
int err;
|
||||
***************
|
||||
*** 101,107 ****
|
||||
|
||||
bcopy(*hp->h_addr_list, (char *) &server.sin_addr, hp->h_length);
|
||||
|
||||
! err = connect(sock, &server, sizeof(server));
|
||||
|
||||
if (err)
|
||||
Fatal("connect failed");
|
||||
--- 101,107 ----
|
||||
|
||||
bcopy(*hp->h_addr_list, (char *) &server.sin_addr, hp->h_length);
|
||||
|
||||
! err = connect(sock, (struct sockaddr*)&server, sizeof(server));
|
||||
|
||||
if (err)
|
||||
Fatal("connect failed");
|
||||
***************
|
||||
*** 137,143 ****
|
||||
|
||||
if ((x = atoi(line)) != 221)
|
||||
{
|
||||
! if (x = 423) /* then the article just don't exist */
|
||||
return (0);
|
||||
else
|
||||
Fatal("getHeaders: got a bad value: %s", line);
|
||||
--- 137,143 ----
|
||||
|
||||
if ((x = atoi(line)) != 221)
|
||||
{
|
||||
! if (x == 423) /* then the article just don't exist */
|
||||
return (0);
|
||||
else
|
||||
Fatal("getHeaders: got a bad value: %s", line);
|
||||
***************
|
||||
*** 184,190 ****
|
||||
return (fname);
|
||||
}
|
||||
|
||||
! int readNewsrcEntry(newsBox, firstArt, lastArt)
|
||||
BoxInfo_t *newsBox;
|
||||
long firstArt;
|
||||
long lastArt;
|
||||
--- 184,190 ----
|
||||
return (fname);
|
||||
}
|
||||
|
||||
! void readNewsrcEntry(newsBox, firstArt, lastArt)
|
||||
BoxInfo_t *newsBox;
|
||||
long firstArt;
|
||||
long lastArt;
|
||||
***************
|
||||
*** 289,300 ****
|
||||
DynObject headerString;
|
||||
Boolean *beenTouched;
|
||||
{
|
||||
- int sock, err, len;
|
||||
char line[1024];
|
||||
- long ipaddr;
|
||||
char *from;
|
||||
char *subject;
|
||||
- long firstScanArticle;
|
||||
long firstArticle;
|
||||
long lastArticle;
|
||||
long retVal;
|
||||
--- 289,297 ----
|
||||
[40;1H[K
|
201
mail/xbuffy/files/patch-ak
Normal file
201
mail/xbuffy/files/patch-ak
Normal file
|
@ -0,0 +1,201 @@
|
|||
*** xbuffy.c.orig Thu Mar 30 09:57:43 1995
|
||||
--- xbuffy.c Wed Jun 21 18:51:45 1995
|
||||
***************
|
||||
*** 179,193 ****
|
||||
void CheckBox(i)
|
||||
int i;
|
||||
{
|
||||
! int num;
|
||||
! char amt[MAX_STRING];
|
||||
Arg args[5];
|
||||
int nargs;
|
||||
- static BoxInfo_t *tempNews = 0;
|
||||
BoxInfo_t *currentBox;
|
||||
- int found;
|
||||
- static char *mailHeader = NULL;
|
||||
- int headerSize;
|
||||
Boolean beenTouched;
|
||||
Boolean isIcon = FALSE;
|
||||
|
||||
--- 179,188 ----
|
||||
void CheckBox(i)
|
||||
int i;
|
||||
{
|
||||
! int num = 0;
|
||||
Arg args[5];
|
||||
int nargs;
|
||||
BoxInfo_t *currentBox;
|
||||
Boolean beenTouched;
|
||||
Boolean isIcon = FALSE;
|
||||
|
||||
***************
|
||||
*** 276,283 ****
|
||||
char amt[MAX_STRING];
|
||||
char fmtString[MAX_STRING];
|
||||
char *ptr;
|
||||
! int offset;
|
||||
! Boolean name, shortName;
|
||||
Arg args[5];
|
||||
int nargs;
|
||||
|
||||
--- 271,277 ----
|
||||
char amt[MAX_STRING];
|
||||
char fmtString[MAX_STRING];
|
||||
char *ptr;
|
||||
! int offset;
|
||||
Arg args[5];
|
||||
int nargs;
|
||||
|
||||
***************
|
||||
*** 439,445 ****
|
||||
static XtIntervalId timerID;
|
||||
static int rootH = 0;
|
||||
static int rootW = 0;
|
||||
! int number;
|
||||
static Boolean firstTime = TRUE;
|
||||
static DynObject mailHeaders;
|
||||
static char *hdrPtr;
|
||||
--- 433,439 ----
|
||||
static XtIntervalId timerID;
|
||||
static int rootH = 0;
|
||||
static int rootW = 0;
|
||||
! int number = 0;
|
||||
static Boolean firstTime = TRUE;
|
||||
static DynObject mailHeaders;
|
||||
static char *hdrPtr;
|
||||
***************
|
||||
*** 620,631 ****
|
||||
XEvent *event;
|
||||
Boolean *cont;
|
||||
{
|
||||
- char *command;
|
||||
BoxInfo_t *currentBox;
|
||||
- char *tmp;
|
||||
- char buf[512];
|
||||
- char *av[5];
|
||||
- int ac = 0;
|
||||
|
||||
currentBox = &boxInfo[i];
|
||||
|
||||
--- 614,620 ----
|
||||
***************
|
||||
*** 665,671 ****
|
||||
char buffer[MAX_STRING];
|
||||
char From[MAX_STRING], Subject[MAX_STRING];
|
||||
register int count = 0;
|
||||
! int status;
|
||||
register Boolean in_header = FALSE;
|
||||
struct stat f_stat;
|
||||
|
||||
--- 654,660 ----
|
||||
char buffer[MAX_STRING];
|
||||
char From[MAX_STRING], Subject[MAX_STRING];
|
||||
register int count = 0;
|
||||
! int status = UNKNOWN;
|
||||
register Boolean in_header = FALSE;
|
||||
struct stat f_stat;
|
||||
|
||||
***************
|
||||
*** 697,704 ****
|
||||
|
||||
while (fgets(buffer, MAX_STRING - 2, fp) != 0)
|
||||
{
|
||||
! long CL;
|
||||
! int has_CL;
|
||||
|
||||
buffer[MAX_STRING - 1] = '\0'; /* just in case */
|
||||
if ((strchr(buffer, '\n') == NULL) && (!feof(fp)))
|
||||
--- 686,693 ----
|
||||
|
||||
while (fgets(buffer, MAX_STRING - 2, fp) != 0)
|
||||
{
|
||||
! long CL = 0L;
|
||||
! int has_CL = FALSE;
|
||||
|
||||
buffer[MAX_STRING - 1] = '\0'; /* just in case */
|
||||
if ((strchr(buffer, '\n') == NULL) && (!feof(fp)))
|
||||
***************
|
||||
*** 836,842 ****
|
||||
tempBox.type = BoxType;
|
||||
tempBox.boxNum = nBoxes;
|
||||
|
||||
! if (BoxType = NNTPBOX)
|
||||
{
|
||||
tempBox.articles = DynCreate(sizeof(Articles_t), 2);
|
||||
#ifdef DEBUG
|
||||
--- 825,831 ----
|
||||
tempBox.type = BoxType;
|
||||
tempBox.boxNum = nBoxes;
|
||||
|
||||
! if (BoxType == NNTPBOX)
|
||||
{
|
||||
tempBox.articles = DynCreate(sizeof(Articles_t), 2);
|
||||
#ifdef DEBUG
|
||||
***************
|
||||
*** 902,908 ****
|
||||
{
|
||||
char *mailPath = 0;
|
||||
char *boxes = 0;
|
||||
- int pos = 0;
|
||||
char *str = 0;
|
||||
|
||||
/* get mail path */
|
||||
--- 891,896 ----
|
||||
***************
|
||||
*** 946,952 ****
|
||||
{
|
||||
char *newsPath = 0;
|
||||
char *boxes = 0;
|
||||
- int pos = 0;
|
||||
char *str = 0;
|
||||
|
||||
/* get nntp path */
|
||||
--- 934,939 ----
|
||||
***************
|
||||
*** 1023,1028 ****
|
||||
--- 1010,1016 ----
|
||||
break;
|
||||
case NONE:
|
||||
case USR:
|
||||
+ case UNDEF:
|
||||
break;
|
||||
}
|
||||
|
||||
***************
|
||||
*** 1039,1044 ****
|
||||
--- 1027,1033 ----
|
||||
break;
|
||||
case NONE:
|
||||
case USR:
|
||||
+ case UNDEF:
|
||||
break;
|
||||
}
|
||||
|
||||
***************
|
||||
*** 1100,1113 ****
|
||||
};
|
||||
|
||||
#endif
|
||||
- FILE *boxes;
|
||||
static Boolean mailArgs;
|
||||
Widget form;
|
||||
- Widget command;
|
||||
int i;
|
||||
char *check;
|
||||
char name[MAX_STRING];
|
||||
- Pixel bg, fg;
|
||||
Arg args[5];
|
||||
int nargs;
|
||||
int pid;
|
||||
--- 1089,1099 ----
|
||||
***************
|
||||
*** 1223,1230 ****
|
||||
#ifdef NNTP
|
||||
else
|
||||
{
|
||||
- int dummy;
|
||||
-
|
||||
initBox(NEWstrdup(*argv), NNTPBOX, envPolltime, envHeadertime,
|
||||
UNDEF, data.command, data.audioCmd, NULL, data.origMode, data.nobeep,NULL,NULL);
|
||||
|
||||
--- 1209,1214 ----
|
1
mail/xbuffy/pkg-comment
Normal file
1
mail/xbuffy/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
XBuffy 3.2.1 - A replacement for xbiff that handles multiple mail files.
|
9
mail/xbuffy/pkg-descr
Normal file
9
mail/xbuffy/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
|||
Basically, XBuffy (and Xmultibiff) is a XBiff-type program with a lot
|
||||
of new options. With XBuffy you can watch multiple mailboxes. When
|
||||
new mail arrives, you can have a pop up window showing the From: and
|
||||
Subject: lines. You can also set it up to launch your favorite mail
|
||||
reader when you click on a box. Currently. xbuffy is only capable of
|
||||
watching mailboxes with the standard mailbox format (messages separated
|
||||
with a From line).
|
||||
|
||||
This is version 3.2.1.
|
4
mail/xbuffy/pkg-plist
Normal file
4
mail/xbuffy/pkg-plist
Normal file
|
@ -0,0 +1,4 @@
|
|||
@cwd /usr/X11R6
|
||||
@mode 755
|
||||
bin/xbuffy
|
||||
man/man1/xbuffy.1.gz
|
Loading…
Add table
Reference in a new issue