diff options
author | Thomas Sachau <tommy@gentoo.org> | 2008-10-08 19:17:18 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2008-10-08 19:17:18 +0000 |
commit | 98394a1100f4dd11eb3b3dbf51b2dc5473421785 (patch) | |
tree | 28a5c2c4c7b4112cd8637d5d8532a554cabed06d | |
parent | dev-java/db4o: Use a mirror with fixed tarball (diff) | |
download | sunrise-98394a1100f4dd11eb3b3dbf51b2dc5473421785.tar.gz sunrise-98394a1100f4dd11eb3b3dbf51b2dc5473421785.tar.bz2 sunrise-98394a1100f4dd11eb3b3dbf51b2dc5473421785.zip |
net-mail/Freemail: New ebuild for bug 240447, thanks to Dennis Nezic for the initial ebuild and patch
svn path=/sunrise/; revision=7200
-rw-r--r-- | net-mail/Freemail/ChangeLog | 9 | ||||
-rw-r--r-- | net-mail/Freemail/Freemail-9999.ebuild | 51 | ||||
-rw-r--r-- | net-mail/Freemail/Manifest | 4 | ||||
-rw-r--r-- | net-mail/Freemail/files/build.patch | 86 | ||||
-rw-r--r-- | net-mail/Freemail/metadata.xml | 5 |
5 files changed, 155 insertions, 0 deletions
diff --git a/net-mail/Freemail/ChangeLog b/net-mail/Freemail/ChangeLog new file mode 100644 index 000000000..2c6887b82 --- /dev/null +++ b/net-mail/Freemail/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-mail/Freemail +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 08 Oct 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +Freemail-9999.ebuild, +files/build.patch, +metadata.xml: + New ebuild for bug 240447, thanks to Dennis Nezic for the initial ebuild and + patch + diff --git a/net-mail/Freemail/Freemail-9999.ebuild b/net-mail/Freemail/Freemail-9999.ebuild new file mode 100644 index 000000000..9a26faa9e --- /dev/null +++ b/net-mail/Freemail/Freemail-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +ESVN_REPO_URI="http://freenet.googlecode.com/svn/trunk/apps/Freemail" +ESVN_OPTIONS="--ignore-externals" +EANT_BUILD_TARGET="dist" +inherit eutils java-pkg-2 java-ant-2 subversion + +DESCRIPTION="Anonymous IMAP/SMTP e-mail server over Freenet" +HOMEPAGE="http://www.freenetproject.org/tools.html" +SRC_URI="" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +CDEPEND="dev-java/bcprov + net-p2p/freenet" +DEPEND="${CDEPEND} + >=virtual/jdk-1.5" +RDEPEND="${CDEPEND} + >=virtual/jre-1.5" + +pkg_setup() { + java-pkg-2_pkg_setup +} + +src_unpack() { + subversion_src_unpack + cd "${S}" + epatch "${FILESDIR}"/build.patch + java-pkg_jar-from bcprov bcprov.jar + java-pkg_jar-from freenet freenet.jar +} + +src_install() { + java-pkg_dojar lib/Freemail.jar + dodir /var/freenet/plugins + dosym ../../../usr/share/Freemail/lib/Freemail.jar /var/freenet/plugins/Freemail.jar + dodoc README || die "installation of documentation failed" +} + +pkg_postinst () { + elog "To load Freemail, go to the plugin page of freenet and enter at" + elog "Plugin-URL: plugins/Freemail.jar. This should load the Freemail plugin." + elog "Set your email client to IMAP port 3143 and SMTP port 3025 on localhost." + elog "To bind freemail to different ports, or to a different freenet node, edit" + elog "/var/freenet/globalconfig." +} diff --git a/net-mail/Freemail/Manifest b/net-mail/Freemail/Manifest new file mode 100644 index 000000000..59c9461bf --- /dev/null +++ b/net-mail/Freemail/Manifest @@ -0,0 +1,4 @@ +AUX build.patch 3712 RMD160 6695292b211f71bc63cd88f681d5cfadf650c7bc SHA1 53dfa8367687e87f9be21cb724a9dd5f29c941c4 SHA256 0048c4a858f6f5991d85f10ff9aaa5251197414db69ceb89586e1a7d83427f4b +EBUILD Freemail-9999.ebuild 1404 RMD160 b6486dc894ec6bbd296df60f1218bcaafb7b196f SHA1 ae7daab66ef3cb9ce73c923ba7c55a1ec37b255b SHA256 640ac0929279b09bdfc979270ec061f800f9926e61c366c666a570e5e3be8cb1 +MISC ChangeLog 325 RMD160 3f50bb5e2e36db6d5be7442875c91ab6cf7bd21c SHA1 dcd38e5b41ab919ec1e5e5aac433ab2e7538f026 SHA256 f68e9534c6579676638f0cacd365e9e745c51408e09bff1da4af2b0ef0aabde1 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/net-mail/Freemail/files/build.patch b/net-mail/Freemail/files/build.patch new file mode 100644 index 000000000..0e17e5d4d --- /dev/null +++ b/net-mail/Freemail/files/build.patch @@ -0,0 +1,86 @@ +--- build.xml 2008-10-08 18:58:11.000000000 +0200 ++++ build.xml.new 2008-10-08 18:59:25.000000000 +0200 +@@ -4,64 +4,8 @@ + <property name="src" location="src"/> + <property name="build" location="build"/> + <property name="lib" location="lib"/> +- <property name="deps" location="deps"/> +- +- <property name="bcdist" value="lcrypto-jdk14-138"/> +- <property name="freenetjarurl.url" value="http://downloads.freenetproject.org/alpha/freenet-testing-latest.jar.url"/> +- <property name="freenetjarurl.localpath" value="${deps}/freenet-testing-latest.jar.url"/> +- <property name="freenetjar" value="freenet-main.jar"/> +- +- <target name="freenetjar-check"> +- <available file="${deps}/${freenetjar}" property="freenetjar.present" /> +- </target> +- +- <!-- Fetching the Freenet jar here is far from optimal: +- Ideally we'd compile against a the freenet jar or class files +- which the user almost certainly has on their computer already. +- Unfortunately about the only sensible way of doing this would +- be with Maven2, and both Freenet and Freemail import code from +- other projects which would make things difficult and/or ugly. +- --> +- <target name="freenetjar-fetch" depends="freenetjar-check" unless="freenetjar.present"> +- <echo> +- Attempting to fetch Freenet main jar - ant cannot do this reliably, so if it fails, delete ${deps}/${freenetjar} and ${freenetjarurl.localpath} and run ant again. +- </echo> +- <mkdir dir="${deps}" /> +- <!-- loadresource directly from an HTTP URL is causing problems --> +- <get src="${freenetjarurl.url}" +- dest="${freenetjarurl.localpath}" /> +- <loadfile property="freenetjar.url" +- srcFile="${freenetjarurl.localpath}" /> +- <get src="${freenetjar.url}" +- dest="${deps}/${freenetjar}" +- verbose="true" /> +- </target> +- +- <target name="bouncycastle-check"> +- <available file="${deps}/${bcdist}" property="bouncycastle-dist.present" /> +- <available file="${build}/org/bouncycastle" property="bouncycastle-bin.present" /> +- </target> +- +- <target name="bouncycastle-fetch" depends="bouncycastle-check" unless="bouncycastle-dist.present"> +- <mkdir dir="${deps}" /> +- <get src="http://www.bouncycastle.org/download/${bcdist}.zip" +- dest="${deps}/${bcdist}.zip" +- verbose="true" +- usetimestamp="true" /> +- +- <unzip src="${deps}/${bcdist}.zip" dest="${deps}" /> +- </target> +- +- <target name="bouncycastle-compile" depends="bouncycastle-fetch" unless="bouncycastle-bin.present"> +- <mkdir dir="build" /> +- <javac srcdir="${deps}/${bcdist}/src" destdir="${build}" debug="on" optimize="on" source="1.4" nowarn="true"> +- <exclude name="**/test/*" /> +- <exclude name="org/bouncycastle/util/IPTest.java" /> +- <exclude name="org/bouncycastle/util/AllTests.java" /> +- </javac> +- </target> + +- <target name="compile" depends="bouncycastle-compile, freenetjar-fetch"> ++ <target name="compile"> + <mkdir dir="${build}"/> + + <tstamp/> +@@ -70,7 +14,8 @@ + It makes it much easier to run --> + <javac srcdir="${src}" destdir="${build}" debug="on" optimize="on" source="1.4"> + <classpath> +- <pathelement location="${deps}/${freenetjar}"/> ++ <pathelement location="freenet.jar"/> ++ <pathelement location="bcprov.jar"/> + </classpath> + </javac> + <copy todir="${build}/freemailgui/text"> +@@ -88,6 +33,7 @@ + <manifest> + <attribute name="Main-Class" value="freemail.FreemailCli"/> + <attribute name="Plugin-Main-Class" value="freemail.FreemailPlugin"/> ++ <attribute name="Class-Path" value="/usr/share/bcprov/lib/bcprov.jar /usr/share/freenet/lib/freenet.jar"/> + <attribute name="Built-By" value="${user.name}"/> + <section name="common"> + <attribute name="Implementation-Title" value="Freemail"/> diff --git a/net-mail/Freemail/metadata.xml b/net-mail/Freemail/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/net-mail/Freemail/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>maintainer-wanted</herd> +</pkgmetadata> |