summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2005-01-17 20:11:09 +0000
committerSven Wegener <swegener@gentoo.org>2005-01-17 20:11:09 +0000
commit73e3b3c2812c935f05a60b91064b967245e1eebd (patch)
tree3e280be612ce47892075e1a01e6242ffc4c50519 /net-nntp
parentRemoved files left over from package move. (diff)
downloadgentoo-2-73e3b3c2812c935f05a60b91064b967245e1eebd.tar.gz
gentoo-2-73e3b3c2812c935f05a60b91064b967245e1eebd.tar.bz2
gentoo-2-73e3b3c2812c935f05a60b91064b967245e1eebd.zip
Moved from net-news/slrn to net-nntp/slrn.
Diffstat (limited to 'net-nntp')
-rw-r--r--net-nntp/slrn/ChangeLog170
-rw-r--r--net-nntp/slrn/Manifest15
-rw-r--r--net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-mime.diff11
-rw-r--r--net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-post.diff12
-rw-r--r--net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-ranges.diff27
-rw-r--r--net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-ranges2.diff26
-rw-r--r--net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-utf8.patch11
-rw-r--r--net-nntp/slrn/files/0.9.8.1/slrn-0.9.8.1-fetch.diff30
-rw-r--r--net-nntp/slrn/files/0.9.8.1/slrn-0.9.8.1-lastchar2.diff150
-rw-r--r--net-nntp/slrn/files/digest-slrn-0.9.8.01
-rw-r--r--net-nntp/slrn/files/digest-slrn-0.9.8.0-r11
-rw-r--r--net-nntp/slrn/files/digest-slrn-0.9.8.11
-rw-r--r--net-nntp/slrn/metadata.xml5
-rw-r--r--net-nntp/slrn/slrn-0.9.8.0-r1.ebuild51
-rw-r--r--net-nntp/slrn/slrn-0.9.8.0.ebuild39
-rw-r--r--net-nntp/slrn/slrn-0.9.8.1.ebuild62
16 files changed, 612 insertions, 0 deletions
diff --git a/net-nntp/slrn/ChangeLog b/net-nntp/slrn/ChangeLog
new file mode 100644
index 000000000000..8c2b1b585fbf
--- /dev/null
+++ b/net-nntp/slrn/ChangeLog
@@ -0,0 +1,170 @@
+# ChangeLog for net-news/slrn
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/slrn/ChangeLog,v 1.1 2005/01/17 20:11:08 swegener Exp $
+
+*slrn-0.9.8.1 (17 Jan 2005)
+
+ 17 Jan 2005; Sven Wegener <swegener@gentoo.org> +metadata.xml,
+ +files/0.9.8.0/slrn-0.9.8.0-mime.diff,
+ +files/0.9.8.0/slrn-0.9.8.0-post.diff,
+ +files/0.9.8.0/slrn-0.9.8.0-ranges.diff,
+ +files/0.9.8.0/slrn-0.9.8.0-ranges2.diff,
+ +files/0.9.8.0/slrn-0.9.8.0-utf8.patch,
+ +files/0.9.8.1/slrn-0.9.8.1-fetch.diff,
+ +files/0.9.8.1/slrn-0.9.8.1-lastchar2.diff, +slrn-0.9.8.0-r1.ebuild,
+ +slrn-0.9.8.0.ebuild, +slrn-0.9.8.1.ebuild:
+ Moved from net-news/slrn to net-nntp/slrn.
+
+ 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 18 Dec 2004; Sven Wegener <swegener@gentoo.org> slrn-0.9.8.1.ebuild:
+ Added built_with_use magic to depend on sys-libs/slang with unicode support,
+ if the unicode USE flag is active.
+
+ 07 Dec 2004; Gustavo Zacarias <gustavoz@gentoo.org> slrn-0.9.8.1.ebuild:
+ Stable on sparc
+
+ 05 Dec 2004; Sven Wegener <swegener@gentoo.org> slrn-0.9.8.0-r1.ebuild,
+ -slrn-0.9.8.0-r2.ebuild, slrn-0.9.8.0.ebuild, slrn-0.9.8.1.ebuild:
+ Marked 0.9.8.1 stable on x86. Removed old ebuild. Some general cleanup.
+
+ 13 Nov 2004; Sven Wegener <swegener@gentoo.org>
+ -files/0.9.8.1/slrn-0.9.8.1-lastchar.diff,
+ +files/0.9.8.1/slrn-0.9.8.1-lastchar2.diff, slrn-0.9.8.1.ebuild:
+ Updated lastchar patch from upstream.
+
+ 17 Oct 2004; Sven Wegener <swegener@gentoo.org>
+ +files/0.9.8.1/slrn-0.9.8.1-fetch.diff,
+ +files/0.9.8.1/slrn-0.9.8.1-lastchar.diff, slrn-0.9.8.1.ebuild:
+ Added two bugfix patches from upstream.
+
+*slrn-0.9.8.1 (09 Oct 2004)
+
+ 09 Oct 2004; Sven Wegener <swegener@gentoo.org> -slrn-0.9.8.0_p1.ebuild,
+ +slrn-0.9.8.1.ebuild:
+ Version bump.
+
+*slrn-0.9.8.0_p1 (02 Oct 2004)
+
+ 02 Oct 2004; Sven Wegener <swegener@gentoo.org> +slrn-0.9.8.0_p1.ebuild:
+ Version bump. Preview release of the upcoming 0.9.8.1.
+
+ 24 Sep 2004; Sven Wegener <swegener@gentoo.org> -slrn-0.9.7.4-r1.ebuild,
+ -slrn-0.9.7.4.ebuild:
+ Removed old ebuilds.
+
+ 23 Aug 2004; Bryan Østergaard <kloeri@gentoo.org> slrn-0.9.8.0-r1.ebuild:
+ Stable on alpha.
+
+ 19 Aug 2004; Gustavo Zacarias <gustavoz@gentoo.org> slrn-0.9.8.0-r1.ebuild:
+ Stable on sparc
+
+*slrn-0.9.8.0-r2 (13 Aug 2004)
+
+ 13 Aug 2004; Sven Wegener <swegener@gentoo.org>
+ +files/0.9.8.0/slrn-0.9.8.0-utf8.patch, +slrn-0.9.8.0-r2.ebuild:
+ Added patch from SuSE that avoids sending 8859-1 characters to UTF-8 slang.
+ Closes bug #60083.
+
+ 24 Jul 2004; Lars Weiler <pylon@gentoo.org> slrn-0.9.8.0-r1.ebuild:
+ Added ppc as stable.
+
+ 08 Jul 2004; Sven Wegener <swegener@gentoo.org> slrn-0.9.7.4-r1.ebuild,
+ slrn-0.9.7.4.ebuild, slrn-0.9.8.0.ebuild:
+ Made repoman happy, removed unnecessary comments in header.
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ slrn-0.9.7.4-r1.ebuild, slrn-0.9.7.4.ebuild, slrn-0.9.8.0.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 22 Jun 2004; Gustavo Zacarias <gustavoz@gentoo.org> slrn-0.9.8.0-r1.ebuild:
+ Keyworded ~sparc wrt #54351
+
+ 22 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> slrn-0.9.8.0-r1.ebuild:
+ Add ~alpha, bug #54351.
+
+ 19 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> slrn-0.9.8.0-r1.ebuild:
+ Marked ~amd64.
+
+ 19 Jun 2004; Sven Wegener <swegener@gentoo.org> slrn-0.9.7.4-r1.ebuild,
+ slrn-0.9.7.4.ebuild, slrn-0.9.8.0.ebuild:
+ Removed S=${WORKDIR}/${P}
+
+*slrn-0.9.8.0-r1 (18 Jun 2004)
+
+ 18 Jun 2004; Sven Wegener <swegener@gentoo.org> +metadata.xml,
+ +files/0.9.8.0/slrn-0.9.8.0-mime.diff,
+ +files/0.9.8.0/slrn-0.9.8.0-post.diff,
+ +files/0.9.8.0/slrn-0.9.8.0-ranges.diff,
+ +files/0.9.8.0/slrn-0.9.8.0-ranges2.diff, +slrn-0.9.8.0-r1.ebuild:
+ Added support for decoding yEnc encoded articles using dev-libs/uulib via the
+ local use flag uudeview. Added four patches from upstream maintainers which
+ fix minor issues. Added metadata.xml.
+
+ 28 Feb 2004; Jason Wever <weeve@gentoo.org> slrn-0.9.8.0.ebuild:
+ Stable for sparcenstein.
+
+ 20 Feb 2004; Aron Griffis <agriffis@gentoo.org> slrn-0.9.8.0.ebuild:
+ stable on alpha
+
+ 26 Sep 2003; <solar@gentoo.org> slrn-0.9.8.0.ebuild:
+ bump x86 to stable
+
+*slrn-0.9.8.0 (05 Sep 2003)
+
+ 05 Sep 2003; <solar@gentoo.org> slrn-0.9.8.0.ebuild:
+ version bump to fix potential XRef buffer overflow vulnerabilty. fixes bug
+ #27850
+
+ 12 Jun 2003; <msterret@gentoo.org> slrn-0.9.7.4-r1.ebuild,
+ slrn-0.9.7.4.ebuild:
+ fix Header
+
+*slrn-0.9.7.4-r1 (25 Mar 2003)
+
+ 25 Mar 2003; Aron Griffis <agriffis@gentoo.org> slrn-0.9.7.4-r1.ebuild:
+ Add ~alpha to KEYWORDS
+
+*slrn-0.9.7.4 (12 Jun 2003)
+
+ 13 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Added missing changelog entry.
+
+*slrn-slrn-0.7.7.4-r1 (04 Jul 2002)
+
+ 22 Dec 2002; Stefan Jones <cretin@gentoo.org> slrn-slrn-0.7.7.4-r1.ebuild :
+ Added sparc KEYWORD
+
+ 04 Aug 2002; Calum Selkirk <cselkirk@gentoo.org>
+ *slrn-slrn-0.7.7.4-r1.ebuild:
+
+ Added a patch to fix broken nls translations (patch Author Thomas Schultz).
+ Also added a test for nls.
+ This fixes #6019
+
+*slrn-slrn-0.7.7.4 (23 Jun 2002)
+
+ 28 Jul 2002; Calum Selkrik <cselkirk@gentoo.org> slrn-0.9.7.4.ebuild :
+
+ minor typo
+
+ 28 Jul 2002; Calum Selkrik <cselkirk@gentoo.org> slrn-0.9.7.4.ebuild :
+
+ Added ppc to KEYWORDS.
+ Added RDEPEND
+
+ 23 Jun 2002; Ben Lutgens <lamer@gentoo.org> ChangeLog :
+
+ Latest version from upstream. Included two new patches and removed the
+ deprecated ones (ssl support is included now)
+
+*slrn-0.9.7.3 (1 Feb 2002)
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/net-nntp/slrn/Manifest b/net-nntp/slrn/Manifest
new file mode 100644
index 000000000000..fa6c45611ff2
--- /dev/null
+++ b/net-nntp/slrn/Manifest
@@ -0,0 +1,15 @@
+MD5 56286c460d561db07d37bf0630f4114e slrn-0.9.8.1.ebuild 1527
+MD5 c77e16a14e5ecaa0ccb7973d6691c046 ChangeLog 5471
+MD5 bb960304d7deb5449d7d2540163ca55c slrn-0.9.8.0.ebuild 973
+MD5 bd8605addbad0498a5a11a5c1d2cc6f0 slrn-0.9.8.0-r1.ebuild 1199
+MD5 d4764f5c17f5e0b416f7ddf271c77d71 metadata.xml 161
+MD5 ee69dcaa439926ef61572ab61825bf74 files/digest-slrn-0.9.8.1 66
+MD5 d023c37bf388d5a3d465ae1fe19767b9 files/digest-slrn-0.9.8.0-r1 65
+MD5 d023c37bf388d5a3d465ae1fe19767b9 files/digest-slrn-0.9.8.0 65
+MD5 39f274095df53e98ae1e5dad26bd2614 files/0.9.8.0/slrn-0.9.8.0-ranges.diff 721
+MD5 b6ca9be0d72ea5342eaadd2229b22b3e files/0.9.8.0/slrn-0.9.8.0-utf8.patch 322
+MD5 aec97981fff230f801619e5047a0dc13 files/0.9.8.0/slrn-0.9.8.0-mime.diff 393
+MD5 f7cb12ae4f279161334f22f526f7753c files/0.9.8.0/slrn-0.9.8.0-post.diff 298
+MD5 c6206596799c2e5186648f76c63515a6 files/0.9.8.0/slrn-0.9.8.0-ranges2.diff 615
+MD5 01717350eabdcda662ff2444d8b3e560 files/0.9.8.1/slrn-0.9.8.1-lastchar2.diff 4732
+MD5 969471685aa7412bc60869649312618f files/0.9.8.1/slrn-0.9.8.1-fetch.diff 920
diff --git a/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-mime.diff b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-mime.diff
new file mode 100644
index 000000000000..f6375e76e589
--- /dev/null
+++ b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-mime.diff
@@ -0,0 +1,11 @@
+--- slrn/src/mime.c~ 2002-11-01 13:32:34.000000000 +0100
++++ slrn/src/mime.c 2003-11-21 18:39:34.000000000 +0100
+@@ -650,7 +650,7 @@
+ l = a->lines;
+
+ /* skip header and separator */
+- while (((l != NULL) && (l->flags & HEADER_LINE)) || l->buf[0] == '\0')
++ while ((l != NULL) && ((l->flags & HEADER_LINE) || l->buf[0] == '\0'))
+ l = l->next;
+
+ if (l == NULL) return;
diff --git a/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-post.diff b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-post.diff
new file mode 100644
index 000000000000..3378877abfc2
--- /dev/null
+++ b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-post.diff
@@ -0,0 +1,12 @@
+--- slrn-0.9.8.0/src/post.c 2003-07-31 19:21:18.000000000 +0200
++++ slrn/src/post.c 2003-09-04 23:56:33.000000000 +0200
+@@ -1233,6 +1234,9 @@
+
+ va_start(ap, fmt);
+ Slrn_Post_Obj->po_vprintf(fmt, ap);
++ va_end(ap);
++
++ va_start(ap, fmt);
+ vfprintf(fcc_fp, fmt, ap);
+ va_end(ap);
+ }
diff --git a/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-ranges.diff b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-ranges.diff
new file mode 100644
index 000000000000..4888cbdd91ee
--- /dev/null
+++ b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-ranges.diff
@@ -0,0 +1,27 @@
+--- slrn-0.9.8.0/src/ranges.c 2003-08-02 01:19:39.000000000 +0200
++++ slrn/src/ranges.c 2003-09-02 14:45:34.000000000 +0200
+@@ -264,13 +264,17 @@
+ do
+ {
+ /* skip ranges that don't intersect at all */
+- if (b != NULL)
+- while ((a != NULL) && (a->max < b->min))
+- a = a->next;
+-
+- if (a != NULL)
+- while ((b != NULL) && (b->max < a->min))
+- b = b->next;
++ do
++ {
++ if (b != NULL)
++ while ((a != NULL) && (a->max < b->min))
++ a = a->next;
++
++ if (a != NULL)
++ while ((b != NULL) && (b->max < a->min))
++ b = b->next;
++ }
++ while ((a!=NULL) && (b!=NULL) && (a->max < b->min));
+
+ /* append a range containing the next intersection */
+ if ((a!=NULL) && (b!=NULL))
diff --git a/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-ranges2.diff b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-ranges2.diff
new file mode 100644
index 000000000000..cce311cddd2f
--- /dev/null
+++ b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-ranges2.diff
@@ -0,0 +1,26 @@
+--- slrn/src/ranges.c.orig 2004-02-12 22:38:53.000000000 +0100
++++ slrn/src/ranges.c 2004-02-12 23:02:33.000000000 +0100
+@@ -136,7 +136,22 @@
+ r->next = n;
+
+ return head;
+- }
++ }
++
++ /* Do we need to insert a new range? */
++ if (max+1 < r->min)
++ {
++ Slrn_Range_Type *n;
++ n = (Slrn_Range_Type *) slrn_safe_malloc (sizeof(Slrn_Range_Type));
++ n->min = min;
++ n->max = max;
++ n->next = r;
++ n->prev = r->prev;
++ n->prev->next = n;
++ r->prev = n;
++
++ return head;
++ }
+
+ /* Update min / max values */
+ if (min < r->min)
diff --git a/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-utf8.patch b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-utf8.patch
new file mode 100644
index 000000000000..107dd5e2d715
--- /dev/null
+++ b/net-nntp/slrn/files/0.9.8.0/slrn-0.9.8.0-utf8.patch
@@ -0,0 +1,11 @@
+--- src/misc.c
++++ src/misc.c
+@@ -458,7 +458,7 @@
+
+ while (s1 < smax)
+ {
+- if ((*s1 & 0x80) && (eight_bit > (unsigned int) *s1))
++ if ((*s1 & 0x80) && ((eight_bit > (unsigned int) *s1) || (SLsmg_Is_Unicode)))
+ {
+ if (s != (char *) s1)
+ SLsmg_write_nchars (s, (unsigned int) ((char *)s1 - s));
diff --git a/net-nntp/slrn/files/0.9.8.1/slrn-0.9.8.1-fetch.diff b/net-nntp/slrn/files/0.9.8.1/slrn-0.9.8.1-fetch.diff
new file mode 100644
index 000000000000..a6aa030f6528
--- /dev/null
+++ b/net-nntp/slrn/files/0.9.8.1/slrn-0.9.8.1-fetch.diff
@@ -0,0 +1,30 @@
+--- slrn-0.9.8.1/src/slrnpull.c 2004-02-28 23:08:17.000000000 +0100
++++ slrn/src/slrnpull.c 2004-10-10 01:42:31.000000000 +0200
+@@ -1647,7 +1647,7 @@
+ || (((unsigned int)server_max <= gmax) && (gmin <= gmax)))
+ {
+ log_message (_("%s: no new articles available."), g->name);
+- return 0;
++ goto fetch_marked_bodies;
+ }
+
+ Num_Duplicates = 0;
+@@ -1667,7 +1667,7 @@
+ g->max = g->server_max;
+ log_message (_("%s: No new articles available."), g->name);
+ slrn_free ((char *) numbers);
+- return 0;
++ goto fetch_marked_bodies;
+ }
+
+ log_message (_("%s: %u articles available."), g->name, num_numbers - i);
+@@ -1716,7 +1716,8 @@
+ }
+
+ /* Now, fetch marked article bodies. */
+-
++
++ fetch_marked_bodies:
+ /* Don't request bodies that are no longer there. */
+ if (server_min > 1)
+ g->requests = slrn_ranges_remove (g->requests, 1, server_min-1);
diff --git a/net-nntp/slrn/files/0.9.8.1/slrn-0.9.8.1-lastchar2.diff b/net-nntp/slrn/files/0.9.8.1/slrn-0.9.8.1-lastchar2.diff
new file mode 100644
index 000000000000..1e02ad3b968f
--- /dev/null
+++ b/net-nntp/slrn/files/0.9.8.1/slrn-0.9.8.1-lastchar2.diff
@@ -0,0 +1,150 @@
+diff -ru slrn-0.9.8.1.orig/src/group.c slrn-0.9.8.1/src/group.c
+--- slrn-0.9.8.1.orig/src/group.c 2004-08-15 23:09:31.000000000 +0200
++++ slrn-0.9.8.1/src/group.c 2004-11-05 23:01:51.391610936 +0100
+@@ -3,7 +3,7 @@
+ This file is part of SLRN.
+
+ Copyright (c) 1994, 1999 John E. Davis <davis@space.mit.edu>
+- Copyright (c) 2001-2003 Thomas Schultz <tststs@gmx.de>
++ Copyright (c) 2001-2004 Thomas Schultz <tststs@gmx.de>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the Free
+@@ -2605,7 +2605,10 @@
+ if ((p == pmax) || (p == vline))
+ continue;
+
+- vline[vlen-1] = 0; /* kill \n and NULL terminate */
++ if (vline[vlen-1] == '\n')
++ vline[vlen-1] = 0;
++ else
++ vline[vlen] = 0;
+
+ if (-1 == add_group (vline, (unsigned int) (p - vline),
+ ((ch == '!') ? GROUP_UNSUBSCRIBED : 0), 0, 0))
+diff -ru slrn-0.9.8.1.orig/src/misc.c slrn-0.9.8.1/src/misc.c
+--- slrn-0.9.8.1.orig/src/misc.c 2004-09-27 23:30:35.000000000 +0200
++++ slrn-0.9.8.1/src/misc.c 2004-11-05 23:02:09.519855024 +0100
+@@ -1165,8 +1165,11 @@
+ if (vlen == 0) continue;
+
+ line = slrn_safe_malloc (vlen+512); /* add some for MIME overhead */
+- slrn_strncpy (line, vline, vlen);
+- line[vlen-1] = 0; /* kill \n and NULL terminate */
++ strncpy (line, vline, vlen);
++ if (line[vlen-1] == '\n')
++ line[vlen-1] = 0;
++ else
++ line[vlen] = 0;
+
+ if (header)
+ {
+diff -ru slrn-0.9.8.1.orig/src/post.c slrn-0.9.8.1/src/post.c
+--- slrn-0.9.8.1.orig/src/post.c 2004-09-28 11:05:54.000000000 +0200
++++ slrn-0.9.8.1/src/post.c 2004-11-05 23:02:53.936102728 +0100
+@@ -467,7 +467,10 @@
+ linenum = 0;
+ while ((NULL != (vline = vgets (vp, &vlen))) && (*vline != '\n'))
+ {
+- vline[vlen-1] = 0;
++ if (vline[vlen-1] == '\n')
++ vline[vlen-1] = 0;
++ else
++ vline[vlen] = 0;
+ linenum++;
+ if (0 == slrn_case_strncmp ((unsigned char *)vline,
+ (unsigned char *) "Cc: ", 4))
+@@ -540,7 +543,10 @@
+
+ while ((NULL != (vline = vgets (vp, &vlen))) && (*vline != '\n'))
+ {
+- vline[vlen-1] = 0;
++ if (vline[vlen-1] == '\n')
++ vline[vlen-1] = 0;
++ else
++ vline[vlen] = 0;
+ linenum++;
+ if (linenum == cc_line) continue;
+ if (is_empty_header (vline)) continue;
+@@ -593,7 +599,10 @@
+
+ while (NULL != (vline = vgets (vp, &vlen)))
+ {
+- vline[vlen-1] = 0;
++ if (vline[vlen-1] == '\n')
++ vline[vlen-1] = 0;
++ else
++ vline[vlen] = 0;
+ fputs (vline, pp);
+ fputs ("\n", pp);
+ }
+@@ -1411,8 +1420,11 @@
+ if (vlen == 0) continue;
+
+ linep = slrn_safe_malloc (vlen+512); /* add some for MIME overhead */
+- slrn_strncpy (linep, vline, vlen);
+- linep[vlen-1] = 0; /* kill \n and NULL terminate */
++ strncpy (linep, vline, vlen);
++ if (linep[vlen-1] == '\n')
++ linep[vlen-1] = 0; /* kill \n and NULL terminate */
++ else
++ linep[vlen] = 0;
+
+ if (header)
+ {
+diff -ru slrn-0.9.8.1.orig/src/slrnpull.c slrn-0.9.8.1/src/slrnpull.c
+--- slrn-0.9.8.1.orig/src/slrnpull.c 2004-02-28 23:08:17.000000000 +0100
++++ slrn-0.9.8.1/src/slrnpull.c 2004-11-05 23:03:18.859313824 +0100
+@@ -3273,7 +3273,10 @@
+
+ if (NULL != (vline = vgets (vp, &vlen)))
+ {
+- vline[vlen] = 0; /* make sure line is NULL terminated */
++ if (vline[vlen-1] == '\n')
++ vline[vlen-1] = 0; /* make sure line is NULL terminated */
++ else
++ vline[vlen] = 0;
+ group->headers = slrn_ranges_from_newsrc_line (vline);
+ }
+
+@@ -3382,7 +3385,10 @@
+ if (NULL == (group = find_group_type (vline)))
+ continue;
+
+- vline[vlen-1] = 0; /* kill \n and NULL terminate */
++ if (vline[vlen-1] == '\n')
++ vline[vlen-1] = 0;
++ else
++ vline[vlen] = 0;
+
+ r = slrn_ranges_from_newsrc_line (p+1);
+ group->requests = slrn_ranges_merge (group->requests, r);
+diff -ru slrn-0.9.8.1.orig/src/spool.c slrn-0.9.8.1/src/spool.c
+--- slrn-0.9.8.1.orig/src/spool.c 2004-08-15 22:48:13.000000000 +0200
++++ slrn-0.9.8.1/src/spool.c 2004-11-05 23:04:17.628379568 +0100
+@@ -1757,7 +1757,10 @@
+
+ if (NULL != (vline = vgets (vp, &vlen)))
+ {
+- vline[vlen] = 0; /* make sure line is NULL terminated */
++ if (vline[vlen-1] == '\n')
++ vline[vlen-1] = 0; /* make sure line is NULL terminated */
++ else
++ vline[vlen] = 0;
+ retval = slrn_ranges_from_newsrc_line (vline);
+ }
+
+@@ -1787,8 +1790,11 @@
+ if ((p == pmax) || (p == vline) ||
+ (strncmp(vline, group, (p-vline))))
+ continue;
+-
+- vline[vlen-1] = 0; /* kill \n and NULL terminate */
++
++ if (vline[vlen-1] == '\n')
++ vline[vlen-1] = 0;
++ else
++ vline[vlen] = 0;
+
+ retval = slrn_ranges_from_newsrc_line (p+1);
+ break;
diff --git a/net-nntp/slrn/files/digest-slrn-0.9.8.0 b/net-nntp/slrn/files/digest-slrn-0.9.8.0
new file mode 100644
index 000000000000..02026be11140
--- /dev/null
+++ b/net-nntp/slrn/files/digest-slrn-0.9.8.0
@@ -0,0 +1 @@
+MD5 47e9931771114ba192356a0473e9649e slrn-0.9.8.0.tar.bz2 995881
diff --git a/net-nntp/slrn/files/digest-slrn-0.9.8.0-r1 b/net-nntp/slrn/files/digest-slrn-0.9.8.0-r1
new file mode 100644
index 000000000000..02026be11140
--- /dev/null
+++ b/net-nntp/slrn/files/digest-slrn-0.9.8.0-r1
@@ -0,0 +1 @@
+MD5 47e9931771114ba192356a0473e9649e slrn-0.9.8.0.tar.bz2 995881
diff --git a/net-nntp/slrn/files/digest-slrn-0.9.8.1 b/net-nntp/slrn/files/digest-slrn-0.9.8.1
new file mode 100644
index 000000000000..805549a2f480
--- /dev/null
+++ b/net-nntp/slrn/files/digest-slrn-0.9.8.1
@@ -0,0 +1 @@
+MD5 9b613007df537444a5f8a4a2994fadb7 slrn-0.9.8.1.tar.bz2 1034332
diff --git a/net-nntp/slrn/metadata.xml b/net-nntp/slrn/metadata.xml
new file mode 100644
index 000000000000..4d0ebe73a55f
--- /dev/null
+++ b/net-nntp/slrn/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-news</herd>
+</pkgmetadata>
diff --git a/net-nntp/slrn/slrn-0.9.8.0-r1.ebuild b/net-nntp/slrn/slrn-0.9.8.0-r1.ebuild
new file mode 100644
index 000000000000..5404d1a19ed0
--- /dev/null
+++ b/net-nntp/slrn/slrn-0.9.8.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/slrn/slrn-0.9.8.0-r1.ebuild,v 1.1 2005/01/17 20:11:08 swegener Exp $
+
+inherit eutils
+
+# Upstream patches from http://slrn.sourceforge.net/patches/
+# ${FILESDIR}/${PV}/${P}-<name>.diff
+SLRN_PATCHES="mime post ranges ranges2"
+
+DESCRIPTION="s-lang Newsreader"
+HOMEPAGE="http://slrn.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+SLOT="0"
+LICENSE="GPL-2"
+#KEYWORDS="~ppc ~ia64"
+KEYWORDS="x86 ~amd64 alpha sparc ppc"
+IUSE="ssl nls uudeview"
+
+RDEPEND="virtual/mta
+ >=app-arch/sharutils-4.2.1
+ >=sys-libs/slang-1.4.4
+ ssl? ( >=dev-libs/openssl-0.9.6 )"
+DEPEND="${RDEPEND}
+ uudeview? ( dev-libs/uulib )
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ for i in ${SLRN_PATCHES}
+ do
+ epatch ${FILESDIR}/${PV}/${P}-${i}.diff
+ done
+}
+
+src_compile() {
+ econf \
+ --with-docdir=/usr/share/doc/${PF} \
+ --with-slrnpull \
+ $(use_enable nls) \
+ $(use_with ssl) \
+ $(use_with uudeview) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ make DESTDIR=${D} install || die "make install failed"
+}
diff --git a/net-nntp/slrn/slrn-0.9.8.0.ebuild b/net-nntp/slrn/slrn-0.9.8.0.ebuild
new file mode 100644
index 000000000000..8946be7272f0
--- /dev/null
+++ b/net-nntp/slrn/slrn-0.9.8.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/slrn/slrn-0.9.8.0.ebuild,v 1.1 2005/01/17 20:11:08 swegener Exp $
+
+IUSE="ssl nls"
+
+DESCRIPTION="s-lang Newsreader"
+PATCH_URI="http://slrn.sourceforge.net/patches"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 ~ppc sparc alpha ia64"
+
+HOMEPAGE="http://slrn.sourceforge.net/"
+
+RDEPEND="virtual/libc
+ virtual/mta
+ >=app-arch/sharutils-4.2.1
+ >=sys-libs/slang-1.4.4
+ ssl? ( >=dev-libs/openssl-0.9.6 )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_compile() {
+ econf \
+ --with-docdir=/usr/share/doc/${PF} \
+ --with-slrnpull \
+ $(use_enable nls) \
+ $(use_with ssl) \
+ $(use_with uudeview) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ make DESTDIR=${D} DOCDIR=/usr/share/doc/${P} install || die
+ find $D/usr/share/doc -type f | xargs gzip
+}
diff --git a/net-nntp/slrn/slrn-0.9.8.1.ebuild b/net-nntp/slrn/slrn-0.9.8.1.ebuild
new file mode 100644
index 000000000000..71c03d9a4069
--- /dev/null
+++ b/net-nntp/slrn/slrn-0.9.8.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/slrn/slrn-0.9.8.1.ebuild,v 1.1 2005/01/17 20:11:08 swegener Exp $
+
+inherit eutils
+
+# Upstream patches from http://slrn.sourceforge.net/patches/
+# ${FILESDIR}/${PV}/${P}-<name>.diff
+SLRN_PATCHES="fetch lastchar2"
+
+DESCRIPTION="s-lang Newsreader"
+HOMEPAGE="http://slrn.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 sparc ~ppc x86"
+IUSE="ssl nls unicode uudeview"
+
+RDEPEND="virtual/mta
+ >=app-arch/sharutils-4.2.1
+ >=sys-libs/slang-1.4.9-r1
+ ssl? ( >=dev-libs/openssl-0.9.6 )"
+DEPEND="${RDEPEND}
+ uudeview? ( dev-libs/uulib )
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() (
+ if use unicode && ! built_with_use sys-libs/slang unicode
+ then
+ eerror "For USE=\"unicode\" support you need to have your sys-libs/slang also compiled"
+ eerror "with USE=\"unicode\" support."
+ die "sys-libs/slang with USE=\"unicode\" support needed"
+ fi
+)
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ for i in ${SLRN_PATCHES}
+ do
+ epatch ${FILESDIR}/${PV}/${P}-${i}.diff
+ done
+
+ use unicode && epatch ${FILESDIR}/0.9.8.0/slrn-0.9.8.0-utf8.patch
+}
+
+src_compile() {
+ econf \
+ --with-docdir=/usr/share/doc/${PF} \
+ --with-slrnpull \
+ $(use_enable nls) \
+ $(use_with ssl) \
+ $(use_with uudeview) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ make DESTDIR=${D} install || die "make install failed"
+}