diff options
author | Gunnar Wrobel <wrobel@gentoo.org> | 2007-04-30 21:00:47 +0000 |
---|---|---|
committer | Gunnar Wrobel <wrobel@gentoo.org> | 2007-04-30 21:00:47 +0000 |
commit | 9e23314c6c80e8834fd1a71e60a3ce238844b0e3 (patch) | |
tree | 9424cd778fbd1c925075b47a869b7455567c06fb /net-news/nntprss/files | |
parent | Removed experimental octopussy ebuild. the tool is too bloated. (diff) | |
download | overlay-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
Diffstat (limited to 'net-news/nntprss/files')
-rw-r--r-- | net-news/nntprss/files/digest-nntprss-0.5.1_beta | 1 | ||||
-rw-r--r-- | net-news/nntprss/files/digest-nntprss-0.5.2_beta | 1 | ||||
-rw-r--r-- | net-news/nntprss/files/log4j.properties | 22 | ||||
-rwxr-xr-x | net-news/nntprss/files/nntprss | 33 | ||||
-rw-r--r-- | net-news/nntprss/files/nntprss-config.xml | 40 | ||||
-rwxr-xr-x | net-news/nntprss/files/nntprss-init | 15 | ||||
-rw-r--r-- | net-news/nntprss/files/nntprss-sanitize.patch | 141 |
7 files changed, 253 insertions, 0 deletions
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&password=w0rldn3ws&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(); +< } +< |