summaryrefslogtreecommitdiff
path: root/net-nntp/leafnode
diff options
context:
space:
mode:
Diffstat (limited to 'net-nntp/leafnode')
-rw-r--r--net-nntp/leafnode/Manifest11
-rw-r--r--net-nntp/leafnode/files/fetchnews.cron10
-rw-r--r--net-nntp/leafnode/files/leafnode-1.11.11-checkpeerlocal_ipv6_fix.patch19
-rw-r--r--net-nntp/leafnode/files/leafnode.xinetd12
-rw-r--r--net-nntp/leafnode/files/texpire.cron10
-rw-r--r--net-nntp/leafnode/leafnode-1.11.10.ebuild47
-rw-r--r--net-nntp/leafnode/leafnode-1.11.11.ebuild52
-rw-r--r--net-nntp/leafnode/metadata.xml10
8 files changed, 171 insertions, 0 deletions
diff --git a/net-nntp/leafnode/Manifest b/net-nntp/leafnode/Manifest
new file mode 100644
index 000000000000..e4f86530e72e
--- /dev/null
+++ b/net-nntp/leafnode/Manifest
@@ -0,0 +1,11 @@
+AUX fetchnews.cron 177 SHA256 4fc9999fb5598c5c6df96b72ca876cee5b7b485df5c86bb2f454f4a129dfe981 SHA512 b28ff182309f6e6fde2d8d64b97dd76bae6dc5b4b1f0337b23a77c49019e6194299be13fd654b2a83a6bde61f2002918bb7cf0fc1f2b79cb9701e997d090d6cf WHIRLPOOL 52c6760f568649ce6e8310522af3aca062d12f6e02389f344920df976f754c77323d961ad41e8900b578025cb588b5e95b4b04e37706244a09bb14dc07758f9b
+AUX leafnode-1.11.11-checkpeerlocal_ipv6_fix.patch 607 SHA256 11bcabd2ea18de66e21645f7f2acc0787a8cb7ec69a59bd26a535e40d4445821 SHA512 eac21cb4a1af2ad7be2301c2cd882125d7d7c2027dc5d71eae781eed4e24ec153c55226b880cd0d9f3ead76d935dd124d5605c4388e3fe04c0bda0875beb3fe1 WHIRLPOOL 85d591d3d03e9aae7abfa2b0a0d51dfedcd09c729bbaa6edfba562870e186e5e308150bab55e9993b2fd7805a5c25a313ff43d5c98c5c36adce674029397129a
+AUX leafnode.xinetd 230 SHA256 a8dd35146f27ad737eeab74512fb01f17ba526769d218fc4a9ff2225b0827828 SHA512 3f471eb9c4b0f9d8ba51f43bfd53477012b241ea487b1f64b3c4a7a44bc04b1867731aab46ff92ebeaeba61157a58301bcb0f64b80185dea13a33298fc34bcc6 WHIRLPOOL 8d024cd55fe9d520916087036c2c7227b49683908555d70405f94b57a06c1806ac3d54bef45c29ddd99074d6c73dcdd1252611ec1ee179afc1d12325ba07478c
+AUX texpire.cron 158 SHA256 acd65f4a3b6ddbee3e1f21a4aa1ce0124e7983bfe9387bc379079c2e621f745f SHA512 a0c1089588349a4d11888a392302e1667c195933744ea4ca844eacf35e2df8d63edce1758491b947b11c35761a52e1f4a17295965a3d52103d46410332d6dc78 WHIRLPOOL fc945ae2fca56d871e43e012562ad905af354c071c6326dedaa9b9d1c17787f2f5f8699d84e0b9ef96f887356c88eec829cda4d63340717c42bcd4941db1a80b
+DIST leafnode-1.11.10.tar.bz2 493480 SHA256 d75ba79961a8900b273eb74c3ad6976bf9fd64c2fa0284273e65f98190c5f2bc SHA512 efffbe9a3fe10da64ebfaff31738b66e9783923ea119e2f792bc0e7e1811d570e85c5ddec17af6787333958deeee3af9bec87d1312c37eb19e355147dfa721ae WHIRLPOOL ed47717d7c2a6d21ba0b07f0daf5a5c716ff90034ea3747d57958163142eb154778267b9c370082b0e5a8e7e35942b3334bd6ff9f9d476186e27d838e2a26897
+DIST leafnode-1.11.11.tar.bz2 500482 SHA256 3ec325216fb5ddcbca13746e3f4aab4b49be11616a321b25978ffd971747adc0 SHA512 3a476a32f2e59ed0812379efc2ad1964347094417e7fc01d93f84d0cfaed78a66b2f2f40d1ac36f8a0f8844523ab57b9a605d4bd73ea309248c0562e7c26248a WHIRLPOOL 76435a83f4f82d1832ce25e054016e6ec7090a16221575b179e6c3e923a916c9a4b1ea00747783d2988da0c447cd410ea4d9681431208444ec8b80f11e41ac48
+EBUILD leafnode-1.11.10.ebuild 1244 SHA256 bebb9b0b59d7a0f7f6779cb645f766a9283dc964c204b07b015045add0ec2ae9 SHA512 5f376dfdcf8833985976fcbc1815202f84fb2da035c7d20d98e18311169fe8c9315b2a295d942df35e238988346367ba65c4e5bc679566054d195aa00926361f WHIRLPOOL dc312d61a2a4036768177cb96e0da8d3ed908f0d3d7f62ec4b75f8e18f6ad4a99237aa1bb075e93b280aeb755ba976678ca819a426ad6a2f71a32b4070df4765
+EBUILD leafnode-1.11.11.ebuild 1325 SHA256 d852fe927c6e8704b438cf9afc254dcc29f4075bfbf8df22f98e38e83c80900b SHA512 85bdd4fed3fd3848a7be9fef9d8dd9e7f18c11a5016ed69ec3bb27b8d71a6a88fd02b0beccb04f632ab6468fe22ca06f75b6f36f3196dc35653ab0da8fa97bd0 WHIRLPOOL a8b4c54b748dbae571b86530a7c110e7bdcb8c2092cddffe553c280f79496bf0300130dc005265b14d9c0f39495bbf3d3080a73b527036d28865ab642c51da74
+MISC ChangeLog 3752 SHA256 d670e73dab0637fb9e2db96c21761b9854c70b8b89cf228f8e3faa2436c3c88b SHA512 3350b91062388c815c88363fc40203e71738fb8545450663c0d8c25be694037c8f79d72970f4e2ae4ff2dff03fb2cd7d0f71daf95e1960be3bf3ea8db965e6a0 WHIRLPOOL 823444f753a75b79c2133b49ed3472a832e3a080d512aa2efb5f7de41666a4fa9d99290e8b2947856bdf27ca865d35817c4cfb2a1de88c2d475a0949657b0105
+MISC ChangeLog-2015 15414 SHA256 331f2a4d8900e3c4de28bb02641265b6a4ab2174622c884eb3820cb3d44bd067 SHA512 caa10e627a18b4b06e878d199a4dfb3e503cd48d91b6c5d9acb54597bac4cb883a9cf9b4ccf384bbe68e1a723702667b09046b6a29e44472c33adc7c3f3cd0b5 WHIRLPOOL 6d347f6ad9c1abf7f15036f38873ba3549a3995963cf60e0f4c203b664efa5e193ec59bcd0a903840477fb1ee5281627ffedd77f00aae3b822b112c146e0a8e1
+MISC metadata.xml 299 SHA256 00669d11c55cbe22f76abe9573495d3386f981ec3a7dab5a1e492fb0194cec31 SHA512 c3b9d08a226dd447da43fcd3a09f3536004369d7b909099d79a226794ab48c9bb4325b69f13effbb14ca6c59f99de8aaf7167c5e93d934d1b4b1ae24c2bfd0f5 WHIRLPOOL c0e5a8ad2362ac783a2810b2280f5d0d4c1692b07741b9e710bdc8e39ccf3a2573e4ffcc1ee1dde195190ebed54c70896851a04cbfa6c1c30970b8d198a98216
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-1.11.11-checkpeerlocal_ipv6_fix.patch b/net-nntp/leafnode/files/leafnode-1.11.11-checkpeerlocal_ipv6_fix.patch
new file mode 100644
index 000000000000..ef215e4c1857
--- /dev/null
+++ b/net-nntp/leafnode/files/leafnode-1.11.11-checkpeerlocal_ipv6_fix.patch
@@ -0,0 +1,19 @@
+diff -x '*~' -purN a/checkpeerlocal.c b/checkpeerlocal.c
+--- a/checkpeerlocal.c 2015-08-25 00:03:26.000000000 +0200
++++ b/checkpeerlocal.c 2017-07-14 20:12:26.109653383 +0200
+@@ -208,6 +208,7 @@ int checkpeerlocal(int sock)
+ }
+ #endif
+
++#ifdef HAVE_IPV6
+ if (IN6_IS_ADDR_V4MAPPED(&addr.sin6.sin6_addr)) {
+ /* map to IPv4 */
+ struct sockaddr_in si;
+@@ -216,6 +217,7 @@ int checkpeerlocal(int sock)
+ memcpy(&addr.sin, &si, sizeof(struct sockaddr_in));
+ D(pat(&addr.sa));
+ }
++#endif
+
+ if (getifaddrs(&ifap) != 0) {
+ D(printf("getifaddrs failed: %s\n", strerror(errno)));
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/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.11.10.ebuild b/net-nntp/leafnode/leafnode-1.11.10.ebuild
new file mode 100644
index 000000000000..a5fdbeef4edf
--- /dev/null
+++ b/net-nntp/leafnode/leafnode-1.11.10.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="A USENET software package designed for small sites"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+HOMEPAGE="http://leafnode.sourceforge.net/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="ipv6"
+
+DEPEND=">=dev-libs/libpcre-3.9"
+RDEPEND="${DEPEND}
+ virtual/inetd"
+DOCS=( CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS README-daemontools UNINSTALL-daemontools README README-MAINTAINER README-FQDN )
+
+src_configure() {
+ econf \
+ --sysconfdir=/etc/leafnode \
+ --localstatedir=/var \
+ --with-spooldir=/var/spool/news \
+ $(use_with ipv6)
+}
+
+src_install() {
+ default
+
+ keepdir \
+ /var/lock/news \
+ /var/lib/news \
+ /var/spool/news/{failed.postings,interesting.groups,leaf.node,out.going,temp.files} \
+ /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}
+
+ fowners -R news:news /var/{lib,spool}/news
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/leafnode.xinetd leafnode-nntp
+
+ exeinto /etc/cron.hourly
+ newexe "${FILESDIR}"/fetchnews.cron fetchnews
+ exeinto /etc/cron.daily
+ newexe "${FILESDIR}"/texpire.cron texpire
+
+ dohtml FAQ.html FAQ.xml README-FQDN.html
+}
diff --git a/net-nntp/leafnode/leafnode-1.11.11.ebuild b/net-nntp/leafnode/leafnode-1.11.11.ebuild
new file mode 100644
index 000000000000..180b97d7c5ad
--- /dev/null
+++ b/net-nntp/leafnode/leafnode-1.11.11.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit epatch
+
+DESCRIPTION="A USENET software package designed for small sites"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+HOMEPAGE="http://leafnode.sourceforge.net/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="ipv6"
+
+DEPEND=">=dev-libs/libpcre-3.9"
+RDEPEND="${DEPEND}
+ virtual/inetd"
+DOCS=( CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS README-daemontools UNINSTALL-daemontools README README-MAINTAINER README-FQDN )
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-${PV}-checkpeerlocal_ipv6_fix.patch"
+}
+
+src_configure() {
+ econf \
+ --sysconfdir=/etc/leafnode \
+ --localstatedir=/var \
+ --with-spooldir=/var/spool/news \
+ $(use_with ipv6)
+}
+
+src_install() {
+ default
+
+ keepdir \
+ /var/lib/news \
+ /var/spool/news/{failed.postings,interesting.groups,leaf.node,out.going,temp.files} \
+ /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}
+
+ fowners -R news:news /var/{lib,spool}/news
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/leafnode.xinetd leafnode-nntp
+
+ exeinto /etc/cron.hourly
+ newexe "${FILESDIR}"/fetchnews.cron fetchnews
+ exeinto /etc/cron.daily
+ newexe "${FILESDIR}"/texpire.cron texpire
+
+ dohtml FAQ.html FAQ.xml README-FQDN.html
+}
diff --git a/net-nntp/leafnode/metadata.xml b/net-nntp/leafnode/metadata.xml
new file mode 100644
index 000000000000..f1a24c0e134f
--- /dev/null
+++ b/net-nntp/leafnode/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">leafnode</remote-id>
+ </upstream>
+</pkgmetadata>