diff options
author | Sven Wegener <swegener@gentoo.org> | 2005-01-17 19:55:00 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2005-01-17 19:55:00 +0000 |
commit | db9e78f265222513be310cbe652da22a76909a67 (patch) | |
tree | 5e2ba038d59095c68660e4abe83878fe5a907ea4 /net-nntp | |
parent | Moved net-news/leafnode to net-nntp/leafnode (diff) | |
download | historical-db9e78f265222513be310cbe652da22a76909a67.tar.gz historical-db9e78f265222513be310cbe652da22a76909a67.tar.bz2 historical-db9e78f265222513be310cbe652da22a76909a67.zip |
Moved from net-news/knews to net-nntp/knews.
Diffstat (limited to 'net-nntp')
-rw-r--r-- | net-nntp/knews/ChangeLog | 39 | ||||
-rw-r--r-- | net-nntp/knews/Manifest | 5 | ||||
-rw-r--r-- | net-nntp/knews/files/digest-knews-1.0.1b-r2 | 2 | ||||
-rw-r--r-- | net-nntp/knews/files/knews-1.0.1b-r1.patch | 32 | ||||
-rw-r--r-- | net-nntp/knews/knews-1.0.1b-r2.ebuild | 78 | ||||
-rw-r--r-- | net-nntp/knews/metadata.xml | 5 |
6 files changed, 161 insertions, 0 deletions
diff --git a/net-nntp/knews/ChangeLog b/net-nntp/knews/ChangeLog new file mode 100644 index 000000000000..ad42e40fce67 --- /dev/null +++ b/net-nntp/knews/ChangeLog @@ -0,0 +1,39 @@ +# ChangeLog for net-news/knews +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-nntp/knews/ChangeLog,v 1.1 2005/01/17 19:55:00 swegener Exp $ + +*knews-1.0.1b-r2 (17 Jan 2005) + + 17 Jan 2005; Sven Wegener <swegener@gentoo.org> +metadata.xml, + +files/knews-1.0.1b-r1.patch, +knews-1.0.1b-r2.ebuild: + Moved from net-news/knews to net-nntp/knews. + + 19 Jul 2004; David Holm <dholm@gentoo.org> knews-1.0.1b-r2.ebuild: + Added to ~ppc. + + 08 Jul 2004; Sven Wegener <swegener@gentoo.org> knews-1.0.1b-r2.ebuild: + Made repoman happy, removed unnecessary comments in header. + + 19 Jun 2004; Sven Wegener <swegener@gentoo.org> +metadata.xml: + Added metadata.xml + + 18 Apr 2004; Michael Sterrett <mr_bones_@gentoo.org> knews-1.0.1b-r1.ebuild: + remove older ebuild + +*knews-1.0.1b-r2 (27 Sep 2002) + + 22 Apr 2003; Brandon Low <lostlogic@gentoo.org> knews-1.0.1b-r2.ebuild: + Change supersed dependencies + + 27 Sep 2002; Seemant Kulleen <seemant@gentoo.org> knews-1.0.1b-r2.ebuild + files/digest-knews-1.0.1b-r2 : + + Applied a set of debian patches to make this more solid. Also, changed + configure flags depending on USE flags. (of course, there is no + ./configure script -- why would there be? that's just silly...) Thanks + to: achim.linder@nikocity.de (Achim Linder) in bug #7506 + +*knews-1.0.1b-r1 (12 Apr 2002) + 12 Apr 2002; Spider <spider@gentoo.org>: + Create Changelog + new revision with updated libpng dependency diff --git a/net-nntp/knews/Manifest b/net-nntp/knews/Manifest new file mode 100644 index 000000000000..0efafc204b9c --- /dev/null +++ b/net-nntp/knews/Manifest @@ -0,0 +1,5 @@ +MD5 8dcb537892ce3a2d80694f6dad677897 ChangeLog 1274 +MD5 4d722847fa938ace4c73efded6c78ba6 knews-1.0.1b-r2.ebuild 1852 +MD5 d4764f5c17f5e0b416f7ddf271c77d71 metadata.xml 161 +MD5 a134c01ff5938de372b1a0a6096115b6 files/digest-knews-1.0.1b-r2 135 +MD5 d86069c6b8c7c978700693cc8b427273 files/knews-1.0.1b-r1.patch 638 diff --git a/net-nntp/knews/files/digest-knews-1.0.1b-r2 b/net-nntp/knews/files/digest-knews-1.0.1b-r2 new file mode 100644 index 000000000000..04b31682ea01 --- /dev/null +++ b/net-nntp/knews/files/digest-knews-1.0.1b-r2 @@ -0,0 +1,2 @@ +MD5 850ebff7772d576314060ebe6ef81b73 knews-1.0b.1.tar.gz 392225 +MD5 19dba49bee12dea7f75060da577f0b81 knews-1.0b.1-gentoo.diff.bz2 3892 diff --git a/net-nntp/knews/files/knews-1.0.1b-r1.patch b/net-nntp/knews/files/knews-1.0.1b-r1.patch new file mode 100644 index 000000000000..81447c4fcc07 --- /dev/null +++ b/net-nntp/knews/files/knews-1.0.1b-r1.patch @@ -0,0 +1,32 @@ +--- /util/knewsd.c Mon Aug 31 15:40:05 1998 ++++ util/knewsd.c Thu Aug 1 18:16:04 2002 +@@ -619,6 +619,7 @@ + FILE *fp = NULL; + long first, last, no; + char *c; ++ char *lfl = NULL; + + if (!group_path) { + printf(CODE_TO_STR(NNTP_ERR_NCING) " Not in a newsgroup.\r\n"); +@@ -677,15 +678,18 @@ + if (no > last) + break; + ++ lfl = strchr(buffer, '\n'); ++ if (lfl) ++ lfl[0]=0; + fputs(buffer, stdout); +- if (!strchr(buffer, '\n')) { ++ if (!lfl) { + int ch; + + while ((ch = getc(fp)) != EOF && ch != '\n') + putchar(ch); +- +- printf("\r\n"); + } ++ ++ printf("\r\n"); + } + + fclose(fp); diff --git a/net-nntp/knews/knews-1.0.1b-r2.ebuild b/net-nntp/knews/knews-1.0.1b-r2.ebuild new file mode 100644 index 000000000000..a5b841445fb4 --- /dev/null +++ b/net-nntp/knews/knews-1.0.1b-r2.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-nntp/knews/knews-1.0.1b-r2.ebuild,v 1.1 2005/01/17 19:55:00 swegener Exp $ + +IUSE="xface png jpeg" + +MY_P=${PN}-1.0b.1 +S=${WORKDIR}/${MY_P} +DESCRIPTION="A threaded newsreader for X." +SRC_URI="http://www.matematik.su.se/~kjj/${MY_P}.tar.gz + mirror://gentoo/${MY_P}-gentoo.diff.bz2" +HOMEPAGE="http://www.matematik.su.se/~kjj/" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 amd64 ~ppc" + +DEPEND="virtual/x11 + virtual/mta + =sys-apps/sed-4* + jpeg? ( >=media-libs/jpeg-6 ) + png? ( >=media-libs/libpng-1.2.1 ) + xface? ( >=media-libs/compface-1.4 )" + +# If knews used autoconf, we wouldn't need this patch. +src_unpack() { + unpack ${A} + cd ${S} + use jpeg \ + && sed -i "s:\(#define HAVE_JPEG\).*:\1\t1:" configure.h + + use png \ + && sed -i "s:\(#define HAVE_PNG\).*:\1\t1:" configure.h + + use xface \ + && sed -i "s:\(#define HAVE_COMPFACE\).*:\1\t1:" configure.h + + sed -i "s:\(#define HAVE_XPM\).*:\1\t1:" configure.h + + sed -i "s:\(#define DEFAULT_EDIT_COMMAND\).*:\1 \"${EDITOR} %s\":" configure.h + + patch -p1 < ${WORKDIR}/${MY_P}-gentoo.diff || die +} + +src_compile() { + xmkmf || die + make Makefiles || die + make clean || die + make all || die + pushd util/knewsd || die + xmkmf || die + make all || die + popd || die +} + +src_install () { + #Install knews + make DESTDIR=${D} install || die + make DESTDIR=${D} DOCHTMLDIR=/usr/share/doc/${P} \ + MANPATH=/usr/share/man MANSUFFIX=1 install.man || die + + dodir /etc/knews + touch ${D}/etc//knews/mailname + touch ${D}/etc/knews/newsserver + + #Other docs. + dodoc COPYING COPYRIGHT Changes README +} + + +pkg_postinst() { + + einfo "Please be sure to set your local domain in" + einfo " /etc/knews/mailname" + einfo "" + einfo "And please set your news server in" + einfo " /etc/knews/newsserver" +} diff --git a/net-nntp/knews/metadata.xml b/net-nntp/knews/metadata.xml new file mode 100644 index 000000000000..4d0ebe73a55f --- /dev/null +++ b/net-nntp/knews/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> |