summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2007-04-30 21:00:47 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2007-04-30 21:00:47 +0000
commit9e23314c6c80e8834fd1a71e60a3ce238844b0e3 (patch)
tree9424cd778fbd1c925075b47a869b7455567c06fb
parentRemoved experimental octopussy ebuild. the tool is too bloated. (diff)
downloadoverlay-9e23314c6c80e8834fd1a71e60a3ce238844b0e3.tar.gz
overlay-9e23314c6c80e8834fd1a71e60a3ce238844b0e3.tar.bz2
overlay-9e23314c6c80e8834fd1a71e60a3ce238844b0e3.zip
Added nntprss to the stable overlay. Still using this tool successfully.
svn path=/stable/; revision=804
-rw-r--r--dev-java/jdbc-mysql/Manifest8
-rw-r--r--dev-java/jdbc-mysql/files/digest-jdbc-mysql-3.0.93
-rw-r--r--dev-java/jdbc-mysql/jdbc-mysql-3.0.9.ebuild28
-rw-r--r--net-news/nntprss/Manifest8
-rw-r--r--net-news/nntprss/files/digest-nntprss-0.5.1_beta1
-rw-r--r--net-news/nntprss/files/digest-nntprss-0.5.2_beta1
-rw-r--r--net-news/nntprss/files/log4j.properties22
-rwxr-xr-xnet-news/nntprss/files/nntprss33
-rw-r--r--net-news/nntprss/files/nntprss-config.xml40
-rwxr-xr-xnet-news/nntprss/files/nntprss-init15
-rw-r--r--net-news/nntprss/files/nntprss-sanitize.patch141
-rw-r--r--net-news/nntprss/nntprss-0.5.2_beta.ebuild109
12 files changed, 409 insertions, 0 deletions
diff --git a/dev-java/jdbc-mysql/Manifest b/dev-java/jdbc-mysql/Manifest
new file mode 100644
index 0000000..2dd10be
--- /dev/null
+++ b/dev-java/jdbc-mysql/Manifest
@@ -0,0 +1,8 @@
+DIST mysql-connector-java-3.0.9-stable.tar.gz 710663 RMD160 f6a4ca1bcba7d1d004aca38c480e1d02f128e783 SHA1 7171e85355571aeea23967ad366f453f41095982 SHA256 eeeaee3faed90950d7abf64b76f2bd30324db26d303bd2b9bd34b6a3473073ea
+EBUILD jdbc-mysql-3.0.9.ebuild 735 RMD160 d64c5c7c2e727385ecf74dd56aff3826b595b12d SHA1 01cf27e89e5cb0ffc2e2737ce13408327f5641c2 SHA256 e74316ca668921eecfc3fc1d7356c7aacd9938cbaa23a4134487fea6950d927c
+MD5 335b2bca73a3438f1b7dfb2d49d89c4d jdbc-mysql-3.0.9.ebuild 735
+RMD160 d64c5c7c2e727385ecf74dd56aff3826b595b12d jdbc-mysql-3.0.9.ebuild 735
+SHA256 e74316ca668921eecfc3fc1d7356c7aacd9938cbaa23a4134487fea6950d927c jdbc-mysql-3.0.9.ebuild 735
+MD5 944a852bf3eb86254531db5103b4003b files/digest-jdbc-mysql-3.0.9 301
+RMD160 332cefbda854f6a58b2471daf617e1bf651a5759 files/digest-jdbc-mysql-3.0.9 301
+SHA256 5f27b9c11d9b9d750046799a2f2cc5652c18313f782eaa1b402feb23a2770a80 files/digest-jdbc-mysql-3.0.9 301
diff --git a/dev-java/jdbc-mysql/files/digest-jdbc-mysql-3.0.9 b/dev-java/jdbc-mysql/files/digest-jdbc-mysql-3.0.9
new file mode 100644
index 0000000..940142e
--- /dev/null
+++ b/dev-java/jdbc-mysql/files/digest-jdbc-mysql-3.0.9
@@ -0,0 +1,3 @@
+MD5 a31d789843a5d333159995d2fcfa7481 mysql-connector-java-3.0.9-stable.tar.gz 710663
+RMD160 f6a4ca1bcba7d1d004aca38c480e1d02f128e783 mysql-connector-java-3.0.9-stable.tar.gz 710663
+SHA256 eeeaee3faed90950d7abf64b76f2bd30324db26d303bd2b9bd34b6a3473073ea mysql-connector-java-3.0.9-stable.tar.gz 710663
diff --git a/dev-java/jdbc-mysql/jdbc-mysql-3.0.9.ebuild b/dev-java/jdbc-mysql/jdbc-mysql-3.0.9.ebuild
new file mode 100644
index 0000000..2cdbf81
--- /dev/null
+++ b/dev-java/jdbc-mysql/jdbc-mysql-3.0.9.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/dev-java/jdbc-mysql/Attic/jdbc-mysql-3.0.9.ebuild,v 1.5 2004/03/22 23:17:16 zx dead $
+
+inherit java-pkg
+
+At=mysql-connector-java-${PV}-stable
+S=${WORKDIR}/${At}
+
+DESCRIPTION="MySQL JDBC driver"
+HOMEPAGE="http://www.mysql.com"
+SRC_URI="mirror://mysql/Downloads/Connector-J/${At}.tar.gz"
+RESTRICT="nomirror"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="x86 ppc sparc amd64"
+
+RDEPEND=">=virtual/jdk-1.2"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ einfo " This is a binary-only ebuild (for now)."
+}
+
+src_install() {
+ java-pkg_dojar ${At}-bin.jar
+ dodoc README CHANGES COPYING
+}
diff --git a/net-news/nntprss/Manifest b/net-news/nntprss/Manifest
new file mode 100644
index 0000000..5ee3923
--- /dev/null
+++ b/net-news/nntprss/Manifest
@@ -0,0 +1,8 @@
+MD5 a095f4c5ac2a8ef005860a504024ddc1 nntprss-0.5.2_beta.ebuild 2544
+MD5 0182cbbacefedba39c66dc277a762ed3 files/nntprss-init 363
+MD5 af5b28e4c85592adbb1d94bb554fb175 files/nntprss 507
+MD5 d25e2bd80d0c064185cbf3bbbc60b932 files/digest-nntprss-0.5.1_beta 74
+MD5 c302376bca1c667dcfd730d13f884237 files/log4j.properties 846
+MD5 f2894b747dada8411d9946cf0ef902f7 files/nntprss-sanitize.patch 4982
+MD5 3afcf486cce66f80043ce3ac10e0f6b0 files/nntprss-config.xml 1484
+MD5 4cd5de6720ce60cc0dce8afb417e575a files/digest-nntprss-0.5.2_beta 74
diff --git a/net-news/nntprss/files/digest-nntprss-0.5.1_beta b/net-news/nntprss/files/digest-nntprss-0.5.1_beta
new file mode 100644
index 0000000..d42196d
--- /dev/null
+++ b/net-news/nntprss/files/digest-nntprss-0.5.1_beta
@@ -0,0 +1 @@
+MD5 2b899fb12ca5daa76252b61ccdb06699 nntprss-src-0.5-beta-1.tar.gz 120469
diff --git a/net-news/nntprss/files/digest-nntprss-0.5.2_beta b/net-news/nntprss/files/digest-nntprss-0.5.2_beta
new file mode 100644
index 0000000..a654e78
--- /dev/null
+++ b/net-news/nntprss/files/digest-nntprss-0.5.2_beta
@@ -0,0 +1 @@
+MD5 1eacbad2f73df643f37aeca807f12f24 nntprss-src-0.5-beta-2.tar.gz 119381
diff --git a/net-news/nntprss/files/log4j.properties b/net-news/nntprss/files/log4j.properties
new file mode 100644
index 0000000..b9401d8
--- /dev/null
+++ b/net-news/nntprss/files/log4j.properties
@@ -0,0 +1,22 @@
+# Set root logger level to DEBUG and its only appender to CONSOLE.
+log4j.rootLogger=DEBUG, CONSOLE, FILE
+
+# Only log INFO and higher for wire class
+log4j.logger.httpclient.wire=INFO
+
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.FILE=org.apache.log4j.RollingFileAppender
+
+# Both CONSOLE and FILE use PatternLayout.
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %c{1} - %m%n
+
+log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.FILE.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %c{1} - %m%n
+log4j.appender.FILE.File=/var/log/nntprss.log
+log4j.appender.FILE.Append=false
+log4j.appender.FILE.MaxFileSize=500KB
+log4j.appender.FILE.MaxBackupIndex=1
+log4j.appender.FILE.Threshold=INFO
+
+
diff --git a/net-news/nntprss/files/nntprss b/net-news/nntprss/files/nntprss
new file mode 100755
index 0000000..3dda6d4
--- /dev/null
+++ b/net-news/nntprss/files/nntprss
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+ETC="/etc/nntprss/"
+XML="/usr/share/nntprss/"
+
+CLASSES="$ETC:$XML"
+
+LIBS="
+/usr/share/nntprss
+/usr/share/log4j
+/usr/share/commons-dbcp
+/usr/share/commons-pool
+/usr/share/commons-logging
+/usr/share/commons-httpclient
+/usr/share/commons-collections
+/usr/share/jdbc-mysql
+/usr/share/hsqldb
+/usr/share/jdbm-1
+/opt/jetty
+/opt/sun-j2ee-1.3.1
+"
+
+for lib in ${LIBS}
+ do
+
+ for jar in ${lib}/lib/*.jar
+ do
+ CLASSES="${CLASSES}:${jar}"
+ done
+
+done
+
+java -cp "$CLASSES" org.methodize.nntprss.Main
diff --git a/net-news/nntprss/files/nntprss-config.xml b/net-news/nntprss/files/nntprss-config.xml
new file mode 100644
index 0000000..c013149
--- /dev/null
+++ b/net-news/nntprss/files/nntprss-config.xml
@@ -0,0 +1,40 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!-- nntp//rss bootstrap configuration -->
+<!-- http://www.methodize.org/nntprss -->
+
+<nntprss>
+
+<!-- MySQL -->
+ <db connect='jdbc:mysql://127.0.0.1/nntprssdb?user=nntprss&amp;password=w0rldn3ws&amp;autoReconnect=true' driverClass='com.mysql.jdbc.Driver' daoClass='org.methodize.nntprss.feed.db.MySQLChannelDAO'/>
+
+<!-- Listener port for NNTP server -->
+ <nntp port='9119'/>
+
+<!-- Listener port for web admin interface -->
+ <admin port='7810'/>
+
+<!-- Poller configuration - number of threads -->
+ <poller threads='5'/>
+
+<!-- Subscription listeners -->
+<!--
+ <subscribe name='AmphetaDesk' port='8888' path='/index.html' param='add_url' />
+ <subscribe name='Radio Userland' port='5335' path='/system/pages/subscriptions' param='url' />
+ <subscribe name='Awasu' port='2604' path='/subscribe' param='url' />
+ <subscribe name='BottomFeeder' port='8666' path='/btf' param='rss' />
+ <subscribe name='Headline Viewer' port='8900' path='/add_provider' param='url' />
+ <subscribe name='Wildgrape NewsDesk' port='8888' path='NewsDesk.html' param='add_url' />
+-->
+
+<!-- Initial channel list -->
+<!-- These are the channels defined during a fresh installation of nntp//rss -->
+
+ <channels>
+
+ <channel name='org.slashdot' url='http://slashdot.org/index.rss' historical='true'/>
+ <channel name='org.methodize' url='http://rss.methodize.org/nntprss.xml' historical='true'/>
+
+ </channels>
+
+</nntprss>
diff --git a/net-news/nntprss/files/nntprss-init b/net-news/nntprss/files/nntprss-init
new file mode 100755
index 0000000..2d1d90b
--- /dev/null
+++ b/net-news/nntprss/files/nntprss-init
@@ -0,0 +1,15 @@
+#!/sbin/runscript
+# Copyright 2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2
+
+start() {
+ ebegin "Starting nntp//rss"
+ start-stop-daemon --start --background --quiet --exec /usr/sbin/nntprss
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping nntp//rss"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/nntprss
+ eend $?
+}
diff --git a/net-news/nntprss/files/nntprss-sanitize.patch b/net-news/nntprss/files/nntprss-sanitize.patch
new file mode 100644
index 0000000..f5775dc
--- /dev/null
+++ b/net-news/nntprss/files/nntprss-sanitize.patch
@@ -0,0 +1,141 @@
+Index: build.xml
+===================================================================
+RCS file: /cvsroot/nntprss/nntprss/build.xml,v
+retrieving revision 1.7
+diff -r1.7 build.xml
+16d15
+< <property name="nntprss-start.jar" value="${basedir}/nntprss-start.jar"/>
+24c23,53
+< <fileset dir="${ext}\lib">
+---
+> <fileset dir="/opt/jetty/lib">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/opt/jetty/extra/lib/">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/usr/share/hsqldb/lib/">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/usr/share/log4j/lib/">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/usr/share/crimson-1/lib">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/usr/share/commons-httpclient/lib">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/usr/share/xmlrpc/lib">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/opt/sun-j2ee-1.3.1/lib/">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/usr/share/commons-dbcp/lib">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/usr/share/commons-pool/lib">
+> <include name="*.jar"/>
+> </fileset>
+> <fileset dir="/usr/share/jdbm-1/lib/">
+43d71
+< <delete file="${nntprss-start.jar}" quiet="true"/>
+62,69d89
+< <target name="nntprss-start.jar" depends="classes">
+< <jar jarfile="${nntprss-start.jar}" basedir="${bin}"
+< manifest="${etc}/MANIFEST.MF" >
+< <include name="org/methodize/nntprss/Startup.class" />
+< </jar>
+< </target>
+<
+< <!-- ==================================================================== -->
+73,74d92
+< <exclude name="org/methodize/nntprss/Startup.class" />
+< <include name="xml/**" />
+79c97
+< <target name="jars" depends="nntprss-start.jar,nntprss.jar"
+---
+> <target name="jars" depends="nntprss.jar"
+91,108d108
+< <zip destfile="${basedir}/../nntprss-${version}.zip">
+< <zipfileset dir="ext/lib" includes="*" prefix="nntprss/ext/lib" />
+< <zipfileset dir="src/xml" includes="*" prefix="nntprss/xml" />
+< <zipfileset dir="." prefix="nntprss">
+< <include name="CHANGELOG"/>
+< <include name="LICENSE.TXT"/>
+< <include name="log4j.properties"/>
+< <include name="nntprss.exe"/>
+< <include name="nntprss.jar"/>
+< <include name="nntprss-config.xml"/>
+< <include name="nntprss-start.jar"/>
+< <include name="README.TXT"/>
+< <include name="users.properties.sample"/>
+< <include name="WINDOWS-SERVICE.TXT"/>
+< <include name="nntprss.ico"/>
+< <include name="systray4j.dll"/>
+< </zipfileset>
+< </zip>
+111d110
+< <tarfileset dir="ext/lib" includes="*" prefix="nntprss/ext/lib" />
+119d117
+< <include name="nntprss-start.jar"/>
+122d119
+< <include name="WINDOWS-SERVICE.TXT"/>
+124d120
+< <include name="systray4j.dll"/>
+134,146d129
+< <zip destfile="${basedir}/../nntprss-src-${version}.zip">
+< <zipfileset dir="src" includes="**/*.java" prefix="nntprss/src"/>
+< <zipfileset dir="etc" includes="MANIFEST.MF" prefix="nntprss/etc" />
+< <zipfileset dir="src/xml" includes="*" prefix="nntprss/src/xml" />
+< <zipfileset dir="." prefix="nntprss">
+< <include name="build.xml"/>
+< <include name="build.properties"/>
+< <include name="CHANGELOG"/>
+< <include name="LICENSE.TXT"/>
+< <include name="README.TXT"/>
+< </zipfileset>
+< </zip>
+<
+Index: etc/MANIFEST.MF
+===================================================================
+RCS file: /cvsroot/nntprss/nntprss/etc/MANIFEST.MF,v
+retrieving revision 1.1.1.1
+diff -r1.1.1.1 MANIFEST.MF
+2c2
+< Main-Class: org.methodize.nntprss.Startup
+---
+> Main-Class: org.methodize.nntprss.Main
+5c5
+< Name: org.methodize.nntprss.Startup.class
+---
+> Name: org.methodize.nntprss.Main.class
+Index: src/org/methodize/nntprss/Main.java
+===================================================================
+RCS file: /cvsroot/nntprss/nntprss/src/org/methodize/nntprss/Main.java,v
+retrieving revision 1.11
+diff -r1.11 Main.java
+62d61
+< private WindowsSysTray windowsSysTray = null;
+75,78d73
+< if (windowsSysTray != null) {
+< windowsSysTray.shutdown();
+< }
+<
+120,126d114
+< if (System
+< .getProperty("os.name")
+< .toLowerCase()
+< .startsWith("windows")) {
+< windowsSysTray = new WindowsSysTray();
+< }
+<
+154,160d141
+< if (windowsSysTray != null) {
+< windowsSysTray.setAdminURL(
+< "http://127.0.0.1:" + adminServer.getPort() + "/");
+< windowsSysTray.setChannelManager(channelManager);
+< windowsSysTray.showStarted();
+< }
+<
diff --git a/net-news/nntprss/nntprss-0.5.2_beta.ebuild b/net-news/nntprss/nntprss-0.5.2_beta.ebuild
new file mode 100644
index 0000000..7ff1f70
--- /dev/null
+++ b/net-news/nntprss/nntprss-0.5.2_beta.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils java-pkg
+
+MY_P="${PN}-src-${PVR:0:3}-${PVR/*_/}-${PVR:4:1}"
+
+DESCRIPTION="nntp//rss is a Java-based bridge between RSS feeds and NNTP clients, enabling you to read your favorite RSS syndicated content within your existing NNTP newsreader"
+HOMEPAGE="http://www.methodize.org/nntprss/"
+SRC_URI="http://www.gunnarwrobel.de/downloads/${MY_P}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4"
+
+DEPEND="
+www-servers/jetty
+dev-db/hsqldb
+>=dev-java/jdbm-1.0
+dev-java/log4j
+dev-java/crimson
+dev-java/xmlrpc
+dev-java/ant-core
+dev-java/commons-httpclient
+dev-java/commons-dbcp
+<=dev-java/jdbc-mysql-3.0.17
+dev-java/sun-j2ee
+>=virtual/jdk-1.4
+"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+
+ unpack ${A}
+ cd ${S}
+
+ rm LICENSE.TXT
+ cd src/org/methodize/nntprss/
+ ## Windows Systray? Be gone...
+ rm Startup.java WindowsSysTray.java
+ ## No derby in Gentoo yet. Have to stick to MySQL.
+ rm feed/db/DerbyChannelDAO.java
+ cd ../../../../
+
+ ## Fixes for removed systray and gentoo
+ ## java package structure
+ epatch ${FILESDIR}/nntprss-sanitize.patch
+
+}
+
+src_compile() {
+ local antflags="all"
+ ant ${antflags} || die "Compilation failed!"
+}
+
+src_install() {
+
+ dodoc README.TXT CHANGELOG
+ rm README.TXT CHANGELOG
+
+ java-pkg_dojar ${S}/nntprss.jar
+
+ XMLDIR=${shareroot}/xml
+ ETCDIR=/etc/${PN}
+ INIDIR=/etc/init.d
+
+ dodir ${XMLDIR}
+ insinto ${XMLDIR}
+ doins ${S}/src/xml/publish-config.xml
+
+ cd ${FILESDIR}
+
+ dodir ${ETCDIR}
+ insinto ${ETCDIR}
+ doins nntprss-config.xml
+ doins log4j.properties
+
+ insinto ${INIDIR}
+ newins nntprss-init nntprss
+
+ dobin nntprss
+
+}
+
+pkg_postinst() {
+ einfo "You need to create a mysql database for your"
+ einfo "nntprss installation and correct the settings"
+ einfo "in ${ETCDIR}/nntprss-config.xml"
+ einfo ""
+ einfo "> mysql -u root -p -e \"CREATE DATABASE nntprss;"
+ einfo " GRANT ALL PRIVILEGES ON nntprss.* TO 'nntprss'@'localhost' "
+ einfo " IDENTIFIED BY 'w0rldn3ws';"
+ einfo " FLUSH PRIVILEGES;\""
+ einfo ""
+ einfo "Then you can start nntprss using the init"
+ einfo "script. The application can be controlled"
+ einfo "by a web frontend that is configured to "
+ einfo "listen on port 7810."
+ einfo ""
+ einfo "The default port for the news server has been"
+ einfo "set to 9119. You can change it to 119 (the"
+ einfo "default news port) in case you have no other"
+ einfo "news server running."
+}
+