From ced28ab9add59acab47bd18fe9d14d5aa6d27592 Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Mon, 17 Jan 2005 19:55:00 +0000 Subject: Moved from net-news/knews to net-nntp/knews. --- net-nntp/knews/ChangeLog | 39 +++++++++++++++ net-nntp/knews/Manifest | 5 ++ net-nntp/knews/files/digest-knews-1.0.1b-r2 | 2 + net-nntp/knews/files/knews-1.0.1b-r1.patch | 32 ++++++++++++ net-nntp/knews/knews-1.0.1b-r2.ebuild | 78 +++++++++++++++++++++++++++++ net-nntp/knews/metadata.xml | 5 ++ 6 files changed, 161 insertions(+) create mode 100644 net-nntp/knews/ChangeLog create mode 100644 net-nntp/knews/Manifest create mode 100644 net-nntp/knews/files/digest-knews-1.0.1b-r2 create mode 100644 net-nntp/knews/files/knews-1.0.1b-r1.patch create mode 100644 net-nntp/knews/knews-1.0.1b-r2.ebuild create mode 100644 net-nntp/knews/metadata.xml (limited to 'net-nntp/knews') 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 +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 knews-1.0.1b-r2.ebuild: + Added to ~ppc. + + 08 Jul 2004; Sven Wegener knews-1.0.1b-r2.ebuild: + Made repoman happy, removed unnecessary comments in header. + + 19 Jun 2004; Sven Wegener +metadata.xml: + Added metadata.xml + + 18 Apr 2004; Michael Sterrett knews-1.0.1b-r1.ebuild: + remove older ebuild + +*knews-1.0.1b-r2 (27 Sep 2002) + + 22 Apr 2003; Brandon Low knews-1.0.1b-r2.ebuild: + Change supersed dependencies + + 27 Sep 2002; Seemant Kulleen 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 : + 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 @@ + + + +net-news + -- cgit v1.2.3-65-gdbad