summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-news/nntprss/nntprss-0.5.2_beta.ebuild')
-rw-r--r--net-news/nntprss/nntprss-0.5.2_beta.ebuild109
1 files changed, 109 insertions, 0 deletions
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."
+}
+