summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-11-19 16:55:05 +0000
committerjoerg <joerg@FreeBSD.org>1995-11-19 16:55:05 +0000
commite1f292468c4589a640da85f72b9499d3532498e4 (patch)
tree47ea2e15a43b5a09962a5ccaa1c5109c328eacd5 /news
parente05856b9f7f09b5257b3f53e6c1059372133a6a4 (diff)
downloadFreeBSD-ports-e1f292468c4589a640da85f72b9499d3532498e4.zip
FreeBSD-ports-e1f292468c4589a640da85f72b9499d3532498e4.tar.gz
Karl-Johan Johnsson's X11 NNTP newsreader.
Submitted by: andreas@knobel.gun.de (Andreas Klemm)
Diffstat (limited to 'news')
-rw-r--r--news/knews/Makefile27
-rw-r--r--news/knews/distinfo1
-rw-r--r--news/knews/files/patch-aa36
-rw-r--r--news/knews/files/patch-ac64
-rw-r--r--news/knews/pkg-comment1
-rw-r--r--news/knews/pkg-descr17
-rw-r--r--news/knews/pkg-plist6
-rw-r--r--news/knews/scripts/pre-configure6
8 files changed, 158 insertions, 0 deletions
diff --git a/news/knews/Makefile b/news/knews/Makefile
new file mode 100644
index 0000000..79c4867
--- /dev/null
+++ b/news/knews/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: knews
+# Version required: 0.9.3
+# Date created: Sat Nov 18 15:23:47 MET 1995
+# Whom: Andreas Klemm <andreas@knobel.gun.de>
+#
+#
+
+DISTNAME= knews-0.9.3
+PKGNAME= knews-0.9.3
+CATEGORIES+= x11
+CATEGORIES+= news
+MASTER_SITES+= ftp://sunsite.unc.edu/pub/Linux/X11/xapps/networked/
+MASTER_SITES+= ftp://ftp.cc.gatech.edu/ac88/linux/X11/xapps/networked/
+MASTER_SITES+= ftp://ftp.germany.eu.net/pub/os/Linux/Mirror.SunSITE/X11/xapps/networked/
+MASTER_SITES+= ftp://ftp.funet.fi/pub/mirrors/sunsite.unc.edu/pub/Linux/X11/xapps/networked/
+
+# perhaps Andreas is going to maintain it personally some day... :)
+#MAINTAINER= andreas@knobel.gun.de
+MAINTAINER= joerg
+
+USE_IMAKE= yes
+MAKE_FLAGS= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man1 \
+ XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults -f
+
+IS_INTERACTIVE= no
+
+.include <bsd.port.mk>
diff --git a/news/knews/distinfo b/news/knews/distinfo
new file mode 100644
index 0000000..75f0abd
--- /dev/null
+++ b/news/knews/distinfo
@@ -0,0 +1 @@
+MD5 (knews-0.9.3.tar.gz) = a334f15710040284d74246b7d4c20fe4
diff --git a/news/knews/files/patch-aa b/news/knews/files/patch-aa
new file mode 100644
index 0000000..dbdce59
--- /dev/null
+++ b/news/knews/files/patch-aa
@@ -0,0 +1,36 @@
+*** configure.h.orig Sat Nov 18 17:06:08 1995
+--- configure.h Sat Nov 18 17:08:26 1995
+***************
+*** 6,12 ****
+ * You'll probably want to leave this as sendmail, but make sure the path
+ * is right. If you don't have sendmail, use /bin/false :-).
+ */
+! #define MAIL_COMMAND "/usr/lib/sendmail -t"
+
+
+ /* This macro controls the generation of email addresses.
+--- 6,12 ----
+ * You'll probably want to leave this as sendmail, but make sure the path
+ * is right. If you don't have sendmail, use /bin/false :-).
+ */
+! #define MAIL_COMMAND "/usr/sbin/sendmail -t"
+
+
+ /* This macro controls the generation of email addresses.
+***************
+*** 33,39 ****
+ * Both %s and %i are optional, although the editor will not be much use
+ * if you don't specify %s...
+ */
+! #define DEFAULT_EDIT_COMMAND "xterm -e vi +%i %s"
+
+
+ /* The default NNTPSERVER. Basically: don't set this, use $NNTPSERVER
+--- 33,39 ----
+ * Both %s and %i are optional, although the editor will not be much use
+ * if you don't specify %s...
+ */
+! #define DEFAULT_EDIT_COMMAND "xterm -cr red -fn 10x20 -bg lightsteelblue -e vi +%i %s"
+
+
+ /* The default NNTPSERVER. Basically: don't set this, use $NNTPSERVER
diff --git a/news/knews/files/patch-ac b/news/knews/files/patch-ac
new file mode 100644
index 0000000..f4245ba
--- /dev/null
+++ b/news/knews/files/patch-ac
@@ -0,0 +1,64 @@
+--- src/pedit.c.orig Thu Oct 5 11:50:50 1995
++++ src/pedit.c Sun Nov 19 16:54:27 1995
+@@ -394,38 +394,34 @@
+ }
+ }
+
+-#define MAX_REFS 8
+ static int print_references_header(FILE *fp, ARTICLE *art)
+ {
+- ARTICLE *arts[MAX_REFS + 2];
+- int i = MAX_REFS + 1, col, rows;
++ ARTICLE **arts, *a;
++ int i, j;
+
++ j = 0;
++ a = art;
+ do {
+- arts[i--] = art;
+- art = A_PARENT(art);
+- } while (i > 0 && art);
+-
+- if (art) {
+- while (A_PARENT(art))
+- art = A_PARENT(art);
+- arts[i] = art;
+- } else {
+- i++;
+- }
+-
+- rows = 1;
+- col = 11 + fprintf(fp, " <%s>", arts[i++]->msgid);
+- while (i < MAX_REFS + 2) {
+- if (col + arts[i]->hash_len > 75) {
+- rows++;
+- fprintf(fp, "\n ");
+- col = 1;
+- }
+- col += fprintf(fp, " <%s>", arts[i++]->msgid);
+- }
+- fprintf(fp, "\n");
++ a = A_PARENT(a);
++ j++;
++ } while (a);
+
+- return rows;
++ arts = (ARTICLE **)XtMalloc(sizeof(ARTICLE *) * j);
++
++ a = art;
++ i = j;
++ do {
++ arts[--i] = a;
++ a = A_PARENT(a);
++ } while(i);
++
++ for (i = 0; i < j; i++)
++ (void)fprintf(fp, " <%s>", arts[i]->msgid);
++ (void)fprintf(fp, "\n");
++
++ XtFree((char *)arts);
++
++ return 1;
+ }
+
+ static void print_attribution(FILE *fp, char *attr, ARTICLE *art)
diff --git a/news/knews/pkg-comment b/news/knews/pkg-comment
new file mode 100644
index 0000000..f47e0ea
--- /dev/null
+++ b/news/knews/pkg-comment
@@ -0,0 +1 @@
+knews-0.9.3: Knews is a threaded nntp newsreader for X
diff --git a/news/knews/pkg-descr b/news/knews/pkg-descr
new file mode 100644
index 0000000..2f39614
--- /dev/null
+++ b/news/knews/pkg-descr
@@ -0,0 +1,17 @@
+True threading, with a graphical tree for the threads.
+Full support for reading MIME articles, except message/partial.
+Some options that will improve things for people reading over slow lines:
+
+ o Background threading of groups in advance.
+ o Doesn't have to read the active file or group descriptions on startup.
+ o A mechansim for reading the spool directory.
+ o Kill file support. Articles can be
+ - marked read (killed), or
+ - marked with color blobs, based on regular expressions.
+ o Regular expression searching in articles and the newsgroup list.
+ o XPAT searching.
+ o Can use different fonts and colors for quoted text and headers in articles
+ o Lots of action procedures that can be tied to keys.
+ o Supports multiple nntp servers.
+ o Tagging of articles and saving or piping them in order.
+ o Uudecode function. Not perfect, but handles most cases.
diff --git a/news/knews/pkg-plist b/news/knews/pkg-plist
new file mode 100644
index 0000000..9d8af46
--- /dev/null
+++ b/news/knews/pkg-plist
@@ -0,0 +1,6 @@
+@cwd /usr/X11R6
+bin/knews
+bin/knewsd
+lib/X11/app-defaults/Knews
+man/man1/knews.1.gz
+man/man1/knewsd.1.gz
diff --git a/news/knews/scripts/pre-configure b/news/knews/scripts/pre-configure
new file mode 100644
index 0000000..15a1b97
--- /dev/null
+++ b/news/knews/scripts/pre-configure
@@ -0,0 +1,6 @@
+#! /bin/sh
+echo "You should tell knews the name of your NNTP server"
+echo "You can do this by setting the environment variable NNTPSERVER"
+echo "csh users: in .cshrc: setenv NNTPSERVER host.domain"
+echo "sh users: in .profile: NNTPSERVER=host.domain; export NNTPSERVER"
+exit 0
OpenPOWER on IntegriCloud