summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2005-01-17 19:52:35 +0000
committerSven Wegener <swegener@gentoo.org>2005-01-17 19:52:35 +0000
commit76650ed2f8591ed42d0c65d73bc8991866a8dad9 (patch)
treef75ddb93a334f86aca5998102d8964f3517cde31 /net-nntp
parentRemove that file too. (diff)
downloadgentoo-2-76650ed2f8591ed42d0c65d73bc8991866a8dad9.tar.gz
gentoo-2-76650ed2f8591ed42d0c65d73bc8991866a8dad9.tar.bz2
gentoo-2-76650ed2f8591ed42d0c65d73bc8991866a8dad9.zip
Moved from net-news/leafnode to net-nntp/leafnode.
Diffstat (limited to 'net-nntp')
-rw-r--r--net-nntp/leafnode/ChangeLog271
-rw-r--r--net-nntp/leafnode/Manifest23
-rw-r--r--net-nntp/leafnode/files/digest-leafnode-1.10.61
-rw-r--r--net-nntp/leafnode/files/digest-leafnode-1.10.71
-rw-r--r--net-nntp/leafnode/files/digest-leafnode-2.0.0_alpha200412271
-rw-r--r--net-nntp/leafnode/files/fetchnews.cron10
-rw-r--r--net-nntp/leafnode/files/leafnode.xinetd12
-rw-r--r--net-nntp/leafnode/files/local.groups2
-rw-r--r--net-nntp/leafnode/files/moderators1
-rw-r--r--net-nntp/leafnode/files/texpire.cron10
-rw-r--r--net-nntp/leafnode/leafnode-1.10.6.ebuild68
-rw-r--r--net-nntp/leafnode/leafnode-1.10.7.ebuild68
-rw-r--r--net-nntp/leafnode/leafnode-2.0.0_alpha20041227.ebuild75
-rw-r--r--net-nntp/leafnode/metadata.xml5
14 files changed, 548 insertions, 0 deletions
diff --git a/net-nntp/leafnode/ChangeLog b/net-nntp/leafnode/ChangeLog
new file mode 100644
index 000000000000..533edfce6716
--- /dev/null
+++ b/net-nntp/leafnode/ChangeLog
@@ -0,0 +1,271 @@
+# ChangeLog for net-news/leafnode
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/leafnode/ChangeLog,v 1.1 2005/01/17 19:52:35 swegener Exp $
+
+*leafnode-1.10.7 (17 Jan 2005)
+
+ 17 Jan 2005; Sven Wegener <swegener@gentoo.org> +metadata.xml,
+ +files/fetchnews.cron, +files/leafnode.xinetd, +files/local.groups,
+ +files/moderators, +files/texpire.cron, +leafnode-1.10.6.ebuild,
+ +leafnode-1.10.7.ebuild, +leafnode-2.0.0_alpha20041227.ebuild:
+ Moved from net-news/leafnode to net-nntp/leafnode.
+
+*leafnode-2.0.0_alpha20041227 (31 Dec 2004)
+
+ 31 Dec 2004; Sven Wegener <swegener@gentoo.org>
+ -leafnode-2.0.0_alpha20041215.ebuild,
+ +leafnode-2.0.0_alpha20041227.ebuild:
+ Version bump. Added support for the pam USE flag. Bug #76075 and #76077 by
+ Daniel Webert.
+
+ 19 Dec 2004; Sven Wegener <swegener@gentoo.org> +files/local.groups,
+ +files/moderators, leafnode-2.0.0_alpha20041215.ebuild:
+ Added example local.groups and moderators files. Fixed /var/spool/news
+ permissions. Thanks to Daniel Webert <rockoo@rockoo.homelinux.org> in bug
+ #74845.
+
+*leafnode-2.0.0_alpha20041215 (18 Dec 2004)
+
+ 18 Dec 2004; Sven Wegener <swegener@gentoo.org>
+ -leafnode-2.0.0_alpha20041113.ebuild,
+ +leafnode-2.0.0_alpha20041215.ebuild:
+ Version bump in the development series.
+
+*leafnode-2.0.0_alpha20041113 (05 Dec 2004)
+
+ 05 Dec 2004; Sven Wegener <swegener@gentoo.org>
+ -leafnode-2.0.0_alpha20041007.ebuild,
+ +leafnode-2.0.0_alpha20041113.ebuild:
+ Version bump in the development series.
+
+*leafnode-1.10.7 (22 Nov 2004)
+
+ 22 Nov 2004; Sven Wegener <swegener@gentoo.org> -leafnode-1.10.5.ebuild,
+ +leafnode-1.10.7.ebuild:
+ Version bump. Removed old ebuild.
+
+ 13 Nov 2004; Sven Wegener <swegener@gentoo.org> leafnode-1.10.6.ebuild:
+ Marked stable on x86.
+
+ 22 Oct 2004; Jason Wever <weeve@gentoo.org>
+ leafnode-2.0.0_alpha20041007.ebuild:
+ Added ~sparc keyword.
+
+*leafnode-2.0.0_alpha20041007 (17 Oct 2004)
+
+ 17 Oct 2004; Sven Wegener <swegener@gentoo.org>
+ -leafnode-2.0.0_alpha20040513.ebuild,
+ -leafnode-2.0.0_alpha20040813.ebuild,
+ +leafnode-2.0.0_alpha20041007.ebuild:
+ Version bump in the development series. Removed old development ebuilds.
+
+*leafnode-1.10.6 (03 Oct 2004)
+
+ 03 Oct 2004; Sven Wegener <swegener@gentoo.org> +leafnode-1.10.6.ebuild:
+ Version bump.
+
+ 03 Oct 2004; Sven Wegener <swegener@gentoo.org> -leafnode-1.10.1.ebuild,
+ -leafnode-1.10.2.ebuild, -leafnode-1.10.4.ebuild, leafnode-1.10.5.ebuild,
+ -leafnode-1.9.49.ebuild, -leafnode-1.9.50.ebuild:
+ Marked stable on x86. Removed old ebuilds.
+
+*leafnode-1.10.5 (04 Sep 2004)
+
+ 04 Sep 2004; Sven Wegener <swegener@gentoo.org> +leafnode-1.10.5.ebuild:
+ Version bump.
+
+*leafnode-2.0.0_alpha20040813 (16 Aug 2004)
+
+ 16 Aug 2004; Sven Wegener <swegener@gentoo.org>
+ +leafnode-2.0.0_alpha20040813.ebuild:
+ Version bump in the development series.
+
+*leafnode-1.10.4 (16 Aug 2004)
+
+ 16 Aug 2004; Sven Wegener <swegener@gentoo.org> +leafnode-1.10.4.ebuild:
+ Version bump.
+
+*leafnode-1.10.2 (22 Jul 2004)
+
+ 22 Jul 2004; Sven Wegener <swegener@gentoo.org> +leafnode-1.10.2.ebuild:
+ Version bump.
+
+*leafnode-2.0.0_alpha20040513 (29 Jun 2004)
+
+ 29 Jun 2004; Sven Wegener <swegener@gentoo.org>
+ -leafnode-2.0.0_alpha20040206.ebuild, +leafnode-2.0.0_alpha20040513.ebuild:
+ Version bump to 2.0.0_alpha20040513 in the pre-release series and removed the
+ older ebuild as upstream source package has been dropped. Thanks to Daniel
+ Webert <daniel_webert@web.de> in bug #55365. Fixed bug #43094 so that leafnode
+ looks in the right directories for configuration files. Thanks to Rui Malheiro
+ <rmalheiro@6mil.pt> for reporting and providing a patch. Tidied the ebuild a
+ bit. Thanks to tove <bugs@veller.net> in bug #43039 for reporting and
+ providing a solution.
+
+*leafnode-1.10.1 (29 Jun 2004)
+
+ 29 Jun 2004; Sven Wegener <swegener@gentoo.org> files/fetchnews.cron,
+ files/texpire.cron, +leafnode-1.10.1.ebuild, leafnode-1.9.49.ebuild,
+ leafnode-1.9.50.ebuild:
+ Version bump to 1.10.1 in the stable series. This should close bug #50177
+ (leafnode 1.9.19 to 1.9.52 doesn't recover from dupes in some groups) and
+ #53089 (Leafnode 1.9.54 ebuild, fixes memory leak). Thanks to Dirk-Lueder
+ Kreie <deelkar@gmx.de> for both reports. Tidied the ebuilds a bit as part of
+ bug #43039.
+
+ 19 Jun 2004; Sven Wegener <swegener@gentoo.org> +metadata.xml:
+ Added metadata.xml
+
+ 04 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> leafnode-1.9.42.ebuild,
+ leafnode-2.0.0_alpha20030621.ebuild, leafnode-2.0.0_alpha20031028.ebuild:
+ thin ebuilds
+
+ 24 Apr 2004; Ferris McCormick <fmccor@gentoo.org> leafnode-1.9.50.ebuild:
+ Add ~sparc keyword at user request (build verified)
+
+*leafnode-2.0.0_alpha20040206 (26 Feb 2004)
+
+ 26 Feb 2004; Stewart Honsberger <blkdeath@gentoo.org>
+ leafnode-2.0.0_alpha20040206.ebuild:
+ Version bump.
+
+ 26 Feb 2004; Stewart Honsberger <blkdeath@gentoo.org>
+ leafnode-1.9.49.ebuild, leafnode-1.9.50.ebuild:
+ Added ~ppc
+
+ 25 Feb 2004; Stewart Honsberger <blkdeath@gentoo.org>
+ leafnode-1.9.49.ebuild:
+ Marked 1.9.49 stable on x86
+
+*leafnode-1.9.50 (25 Feb 2004)
+
+ 25 Feb 2004; Stewart Honsberger <blkdeath@gentoo.org>
+ leafnode-1.9.50.ebuild:
+ Version bump.
+
+*leafnode-1.9.49 (17 Feb 2004)
+
+ 17 Feb 2004; Stewart Honsberger <blkdeath@gentoo.org>
+ leafnode-1.9.49.ebuild:
+ pkg_postinst ${S} mis-use corrected.
+
+*leafnode-2.0.0_alpha20031028 (20 Nov 2003)
+
+ 20 Nov 2003; Stewart Honsberger <blkdeath@gentoo.org>
+ leafnode-2.0.0_alpha20031028.ebuild:
+ Removed slot'ing due to file incompatabilities. This version should be
+ installed by itself.
+
+ 17 Nov 2003; Stewart Honsberger <blkdeath@gentoo.org> metadata.xml:
+ Version bump, ${S} and mkdir fixes
+
+ 30 Oct 2003; Martin Holzer <mholzer@gentoo.org> leafnode-1.9.42.ebuild,
+ leafnode-2.0.0_alpha20030621.ebuild:
+ adding /var/lib/news
+
+ 21 Oct 2003; Martin Holzer <mholzer@gentoo.org> leafnode-1.9.42.ebuild,
+ leafnode-2.0.0_alpha20030621.ebuild:
+ Changing xinetd to virtual/inetd. Closes #31706.
+
+*leafnode-1.9.42 (28 Jun 2003)
+
+ 28 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> leafnode-1.9.42.ebuild :
+ Comitting directly to stable becuse of severe loss of data bugfixes. Closing #21599.
+
+*leafnode-2.0.0_alpha20030621 (27 Jun 2003)
+
+ 27 Jun 2003; Stewart Honsberger <blkdeath@gentoo.org>
+ leafnode-2.0.0_alpha20030621.ebuild:
+ Initial ebuild for Leafnode 2. Functionality enhancements, etc.
+ NOTE: This is ALPHA software. Use/test at your own peril!
+
+ Initial ebuild contributed by Torsten <t_veller@gmx.de>
+
+*leafnode-1.9.36 (18 Mar 2003)
+
+ 18 Mar 2003; Martin Holzer <mholzer@gentoo.org> leafnode-1.9.31.ebuild,
+ leafnode-1.9.36.ebuild:
+ version bumped. added addictional docs being installed. closes #17745.
+
+*leafnode-1.9.33 (09 Mar 2003)
+
+ 09 Mar 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Version bump.
+
+*leafnode-1.9.31 (02 Jan 2003)
+
+ 02 Jan 2003; Daniel Ahlberg <aliz@gentoo.org> leafnode-1.9.31.ebuild :
+ Security update.
+ 19 Jan 2003; Thomas Raschbacher <lordvan@gentoo.org> leafnode-1.9.31.ebuild:
+ fixed download location (bug #14056) cuz its now on sf.net
+
+*leafnode-1.9.30-r1 (30 Dec 2002)
+ 30 Dec 2002; Thomas Raschbacher <lordvan@gentoo.org> leafnode-1.9.30-r1 ebuild:
+ fixed dep for xinetd(reported in IRC by SirDodger in #gentoo.de)
+
+*leafnode-1.9.30 (30 Dec 2002)
+ 30 Dec 2002; Thomas Raschbacher <lordvan@gentoo.org> leafnode-1.9.30 ebuild:
+ Version bump and removed patch again :)
+
+*leafnode-1.9.29 (06 Nov 2002)
+
+ 06 Nov 2002; Bruce A. Locke <blocke@shivan.org> leafnode-1.9.29.ebuild:
+ Version bump with upstream patch. Reminder from bug #7781, submitted by
+ markus-krainer@chello.at (Markus Krainer).
+
+*leafnode-1.9.24 (03 Aug 2002)
+
+ 03 Aug 2002; Bruce A. Locke <blocke@shivan.org> leafnode-1.9.24.ebuild,
+ files/digest-leafnode-1.9.24, files/fetchnews.cron, files/texpire.cron:
+
+ Version bump, dodoc update, and two new cron files contributed by
+ Markus Krainer (markus-krainer@chello.at)
+
+*leafnode-1.9.22 (23 Apr 2002)
+
+ 23 Apr 2002; Markus Krainer <krainer@chello.at> leafnode-1.9.22.ebuild,
+ files/digest-leafnode-1.9.22, ChangeLog :
+
+ - New version 1.9.22
+ - Fix /var/lock/news not being created (bug #1976)
+
+*leafnode-1.9.21 (16 Apr 2002)
+
+ 16 Apr 2002; Bruce A. Locke <blocke@shivan.org> leafnode-1.9.21.ebuild:
+
+ Committed to CVS as 1.9.21 ebuild
+
+ 07 Apr 2002; Markus Krainer <krainer@chello.at> leafnode-1.9.20.ebuild,
+ files/digest-leafnode-1.9.20, ChangeLog :
+
+ - New version 1.9.20
+ - Removed "--host" option for ./configure (seems deprecated)
+ - Added "--localstatedir=/var" to ./configure (use /var instead of /usr/var)
+ - Added "--sysconfdir=/etc/leafnode" to ./configure
+ - Changed INSTALLROOT to DESTDIR in make install
+ - Removed doc_german from dodoc
+ - display a warning as there are incompatible changes to prev. version
+
+*leafnode-1.9.19 (24 Feb 2002)
+
+ 24 Feb 2002; Chris Houser <chouser@gentoo.org> leafnode-1.9.19.ebuild :
+
+ - More verbose error messages
+ - Removed extraneous settings
+ - Moved creation of news spool dirs to post-install, so that they aren't
+ removed on unmerge
+ - User's CFLAGS settings were being ignored. Fixed.
+ - Checked in to ebuild tree
+
+ 6 Feb 2002; M. Krainer <krainer@chello.at> leafnode-1.9.19.ebuild,
+ files/leafnode.xinetd :
+
+ - Added german documentation to /usr/share/doc/leafnode-1.9.19/doc_german
+ - Added configuration file /etc/xinetd.d/leafnode-nntp (service is
+ disabled by default)
+
+ 5 Feb 2002; M. Krainer <krainer@chello.at> leafnode-1.9.19.ebuild,
+ ChangeLog, files/digest-leafnode-1.9.19 :
+
+ - Initial ebuild and ChangeLog for leafnode.
+
diff --git a/net-nntp/leafnode/Manifest b/net-nntp/leafnode/Manifest
new file mode 100644
index 000000000000..faec4c708bde
--- /dev/null
+++ b/net-nntp/leafnode/Manifest
@@ -0,0 +1,23 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 4d469a9f2a17556e35ff6ef2b369308a leafnode-1.10.7.ebuild 1915
+MD5 21c07786ccc5dd31fe8a9be1fd6d2d38 leafnode-1.10.6.ebuild 1914
+MD5 728580542a60523adf04c9af4a82376f leafnode-2.0.0_alpha20041227.ebuild 2123
+MD5 9b06d658c43e949162433a56453ce869 ChangeLog 9307
+MD5 d4764f5c17f5e0b416f7ddf271c77d71 metadata.xml 161
+MD5 dbc24acfe37122337d045dc7045c6dd7 files/local.groups 83
+MD5 510836c882c3365d0441ba7d8854ba6b files/leafnode.xinetd 230
+MD5 5909cb0566e88e7694e85246c78fe4ff files/fetchnews.cron 177
+MD5 6124341facdbd0739add2a9fb4f7decc files/digest-leafnode-1.10.6 72
+MD5 b6d88ee397baea66413c839681c4e717 files/digest-leafnode-1.10.7 72
+MD5 c26d4b571aa7c3964a7e9fa0a10a3c90 files/moderators 29
+MD5 9c64ff9210bac687cdee3cfe9af1696f files/digest-leafnode-2.0.0_alpha20041227 82
+MD5 72cc5e849b413ec0cf288a65980dd3b5 files/texpire.cron 158
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFB1KqlI1lqEGTUzyQRAgCJAKDas57S5WLivxlzhiaYz+SJ+uUNKgCgq/Wt
+FYL92oCrDGJE6o9Uu4DMtuU=
+=l9kL
+-----END PGP SIGNATURE-----
diff --git a/net-nntp/leafnode/files/digest-leafnode-1.10.6 b/net-nntp/leafnode/files/digest-leafnode-1.10.6
new file mode 100644
index 000000000000..08bc7a74a39d
--- /dev/null
+++ b/net-nntp/leafnode/files/digest-leafnode-1.10.6
@@ -0,0 +1 @@
+MD5 5280f805fdc3db66e7b168944732f852 leafnode-1.10.6.rel.tar.bz2 384293
diff --git a/net-nntp/leafnode/files/digest-leafnode-1.10.7 b/net-nntp/leafnode/files/digest-leafnode-1.10.7
new file mode 100644
index 000000000000..e2102419815c
--- /dev/null
+++ b/net-nntp/leafnode/files/digest-leafnode-1.10.7
@@ -0,0 +1 @@
+MD5 e3ebe05e4480d47a7d37e1902dee71a5 leafnode-1.10.7.rel.tar.bz2 384931
diff --git a/net-nntp/leafnode/files/digest-leafnode-2.0.0_alpha20041227 b/net-nntp/leafnode/files/digest-leafnode-2.0.0_alpha20041227
new file mode 100644
index 000000000000..e6252c5750fc
--- /dev/null
+++ b/net-nntp/leafnode/files/digest-leafnode-2.0.0_alpha20041227
@@ -0,0 +1 @@
+MD5 50bfd892705195954327de154a5801e8 leafnode-2.0.0.alpha20041227a.tar.bz2 284237
diff --git a/net-nntp/leafnode/files/fetchnews.cron b/net-nntp/leafnode/files/fetchnews.cron
new file mode 100644
index 000000000000..cd4569e6d656
--- /dev/null
+++ b/net-nntp/leafnode/files/fetchnews.cron
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Uncomment the following if you want to regularly
+# fetch new messages from your news server.
+#
+#
+# This is part of the leafnode package.
+#
+
+#/usr/sbin/fetchnews
diff --git a/net-nntp/leafnode/files/leafnode.xinetd b/net-nntp/leafnode/files/leafnode.xinetd
new file mode 100644
index 000000000000..fc36ecaaaa03
--- /dev/null
+++ b/net-nntp/leafnode/files/leafnode.xinetd
@@ -0,0 +1,12 @@
+# default: off
+# description: Leafnode - accepts connections on port 119 (NNTP)
+
+service nntp
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = news
+ server = /usr/sbin/leafnode
+ disable = yes
+}
diff --git a/net-nntp/leafnode/files/local.groups b/net-nntp/leafnode/files/local.groups
new file mode 100644
index 000000000000..8d1fd9ff2680
--- /dev/null
+++ b/net-nntp/leafnode/files/local.groups
@@ -0,0 +1,2 @@
+local.testing y local group for testing
+local.special m local group with moderator
diff --git a/net-nntp/leafnode/files/moderators b/net-nntp/leafnode/files/moderators
new file mode 100644
index 000000000000..a0c9f1ea9148
--- /dev/null
+++ b/net-nntp/leafnode/files/moderators
@@ -0,0 +1 @@
+local.special:root@localhost
diff --git a/net-nntp/leafnode/files/texpire.cron b/net-nntp/leafnode/files/texpire.cron
new file mode 100644
index 000000000000..643da1ee9000
--- /dev/null
+++ b/net-nntp/leafnode/files/texpire.cron
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Uncomment the following if you want to
+# clean up your news spool regularly.
+#
+#
+# This is part of the leafnode package.
+#
+
+#/usr/sbin/texpire
diff --git a/net-nntp/leafnode/leafnode-1.10.6.ebuild b/net-nntp/leafnode/leafnode-1.10.6.ebuild
new file mode 100644
index 000000000000..cf0f6c6f7c63
--- /dev/null
+++ b/net-nntp/leafnode/leafnode-1.10.6.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/leafnode/leafnode-1.10.6.ebuild,v 1.1 2005/01/17 19:52:35 swegener Exp $
+
+MY_P=${P}.rel
+
+DESCRIPTION="A USENET software package designed for small sites"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+HOMEPAGE="http://leafnode.sourceforge.net/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~ppc ~sparc"
+IUSE="ipv6"
+
+DEPEND=">=dev-libs/libpcre-3.9"
+RDEPEND="${DEPEND}
+ virtual/inetd"
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ econf \
+ --sysconfdir=/etc/leafnode \
+ --localstatedir=/var \
+ --with-spooldir=/var/spool/news \
+ $(use_with ipv6) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "make install failed"
+
+ # remove the spool dirs -- put them back in during pkg_postinst, so that
+ # they don't get removed during an unmerge or upgrade
+ rm -rf ${D}/var/spool
+
+ # add .keep file to /var/lock/news to avoid ebuild to ignore the empty dir
+ keepdir /var/lock/news
+
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/leafnode.xinetd leafnode-nntp
+
+ exeinto /etc/cron.hourly
+ doexe ${FILESDIR}/fetchnews.cron
+ exeinto /etc/cron.daily
+ doexe ${FILESDIR}/texpire.cron
+
+ dodoc \
+ COPYING* CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS \
+ TODO README.FIRST README-daemontools UNINSTALL-daemontools \
+ README README-MAINTAINER README-FQDN
+ dohtml FAQ.html FAQ.xml README-FQDN.html
+}
+
+pkg_postinst() {
+ mkdir -p ${ROOT}/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going}
+ mkdir -p ${ROOT}/var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
+ chown -R news:news ${ROOT}/var/spool/news
+
+ mkdir -p ${ROOT}/var/lib/news
+ chown -R news:news ${ROOT}/var/lib/news
+
+ zcat ${ROOT}/usr/share/doc/${PF}/README.FIRST.gz | while read line ;
+ do
+ einfo $line
+ done
+}
diff --git a/net-nntp/leafnode/leafnode-1.10.7.ebuild b/net-nntp/leafnode/leafnode-1.10.7.ebuild
new file mode 100644
index 000000000000..14be7fc7819c
--- /dev/null
+++ b/net-nntp/leafnode/leafnode-1.10.7.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/leafnode/leafnode-1.10.7.ebuild,v 1.1 2005/01/17 19:52:35 swegener Exp $
+
+MY_P=${P}.rel
+
+DESCRIPTION="A USENET software package designed for small sites"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+HOMEPAGE="http://leafnode.sourceforge.net/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc"
+IUSE="ipv6"
+
+DEPEND=">=dev-libs/libpcre-3.9"
+RDEPEND="${DEPEND}
+ virtual/inetd"
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ econf \
+ --sysconfdir=/etc/leafnode \
+ --localstatedir=/var \
+ --with-spooldir=/var/spool/news \
+ $(use_with ipv6) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "make install failed"
+
+ # remove the spool dirs -- put them back in during pkg_postinst, so that
+ # they don't get removed during an unmerge or upgrade
+ rm -rf ${D}/var/spool
+
+ # add .keep file to /var/lock/news to avoid ebuild to ignore the empty dir
+ keepdir /var/lock/news
+
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/leafnode.xinetd leafnode-nntp
+
+ exeinto /etc/cron.hourly
+ doexe ${FILESDIR}/fetchnews.cron
+ exeinto /etc/cron.daily
+ doexe ${FILESDIR}/texpire.cron
+
+ dodoc \
+ COPYING* CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS \
+ TODO README.FIRST README-daemontools UNINSTALL-daemontools \
+ README README-MAINTAINER README-FQDN
+ dohtml FAQ.html FAQ.xml README-FQDN.html
+}
+
+pkg_postinst() {
+ mkdir -p ${ROOT}/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going}
+ mkdir -p ${ROOT}/var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
+ chown -R news:news ${ROOT}/var/spool/news
+
+ mkdir -p ${ROOT}/var/lib/news
+ chown -R news:news ${ROOT}/var/lib/news
+
+ zcat ${ROOT}/usr/share/doc/${PF}/README.FIRST.gz | while read line ;
+ do
+ einfo $line
+ done
+}
diff --git a/net-nntp/leafnode/leafnode-2.0.0_alpha20041227.ebuild b/net-nntp/leafnode/leafnode-2.0.0_alpha20041227.ebuild
new file mode 100644
index 000000000000..ec41e586c1b4
--- /dev/null
+++ b/net-nntp/leafnode/leafnode-2.0.0_alpha20041227.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/leafnode/leafnode-2.0.0_alpha20041227.ebuild,v 1.1 2005/01/17 19:52:35 swegener Exp $
+
+inherit flag-o-matic
+
+MY_P=${P/_/.}a
+
+DESCRIPTION="A USENET software package designed for small sites"
+SRC_URI="http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/${MY_P}.tar.bz2"
+HOMEPAGE="http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc"
+IUSE="ipv6 pam"
+
+DEPEND=">=dev-libs/libpcre-3.9
+ pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+ virtual/inetd"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+ append-ldflags -Wl,-z,now
+
+ econf \
+ --sysconfdir=/etc/leafnode \
+ --with-runas-user=news \
+ --localstatedir=/var \
+ --with-spooldir=/var/spool/news \
+ $(use_with ipv6) \
+ $(use_with pam) \
+ || die "./configure failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "make install failed"
+
+ rm -rf ${D}/var/spool
+ keepdir /var/lock/news
+
+ insinto /etc/leafnode
+ doins ${FILESDIR}/{local.groups,moderators} || die "doins failed"
+
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/leafnode.xinetd leafnode-nntp || die "newins failed"
+
+ exeinto /etc/cron.hourly
+ doexe ${FILESDIR}/fetchnews.cron || die "doexe failed"
+ exeinto /etc/cron.daily
+ doexe ${FILESDIR}/texpire.cron || die "doexe failed"
+
+ dodoc \
+ AUTHORS COPYING* CREDITS ChangeLog DEBUGGING ENVIRONMENT FAQ \
+ INSTALL NEWS TODO README README_FIRST UPDATING || die "dodoc failed"
+ dohtml README.html || die "dohtml failed"
+}
+
+pkg_postinst() {
+ mkdir -p ${ROOT}/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going}
+ mkdir -p ${ROOT}/var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
+
+ chown -R news:news ${ROOT}/var/spool/news
+ find ${ROOT}/var/spool/news -type d -exec chmod 02775 {} \;
+
+ zcat ${ROOT}/usr/share/doc/${PF}/README_FIRST.gz | while read line
+ do
+ einfo $line
+ done
+
+ einfo
+ einfo "DO MAKE SURE THAT YOU RUN texpire -r IF YOU HAVE ARTICLES IN THE SPOOL"
+}
diff --git a/net-nntp/leafnode/metadata.xml b/net-nntp/leafnode/metadata.xml
new file mode 100644
index 000000000000..4d0ebe73a55f
--- /dev/null
+++ b/net-nntp/leafnode/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>