summaryrefslogtreecommitdiff
path: root/net-mail/Freemail
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-mail/Freemail
reinit the tree, so we can have metadata
Diffstat (limited to 'net-mail/Freemail')
-rw-r--r--net-mail/Freemail/Freemail-9999-r1.ebuild51
-rw-r--r--net-mail/Freemail/Manifest5
-rw-r--r--net-mail/Freemail/files/build.patch68
-rw-r--r--net-mail/Freemail/metadata.xml8
4 files changed, 132 insertions, 0 deletions
diff --git a/net-mail/Freemail/Freemail-9999-r1.ebuild b/net-mail/Freemail/Freemail-9999-r1.ebuild
new file mode 100644
index 000000000000..5220b68419a4
--- /dev/null
+++ b/net-mail/Freemail/Freemail-9999-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+EGIT_REPO_URI="https://github.com/freenet/plugin-Freemail-official.git"
+EGIT_PROJECT="Freemail/official"
+EANT_BUILD_TARGET="dist"
+inherit eutils git-2 java-pkg-2 java-ant-2
+
+DESCRIPTION="Anonymous IMAP/SMTP e-mail server over Freenet"
+HOMEPAGE="https://github.com/freenet/plugin-Freemail"
+SRC_URI=""
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+CDEPEND="dev-java/bcprov:1.38
+ net-p2p/freenet"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.5"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.5"
+
+EANT_GENTOO_CLASSPATH="bcprov freenet"
+
+src_prepare() {
+ epatch "${FILESDIR}"/build.patch
+ java-ant_rewrite-classpath
+}
+
+src_install() {
+ java-pkg_dojar dist/"${PN}.jar"
+ dodir /var/freenet/plugins
+ fperms freenet:freenet /var/freenet/plugins
+ dodoc README || die "installation of documentation failed"
+}
+
+pkg_postinst () {
+ #force chmod for previously existing plugins dir owned by root
+ [[ $(stat --format="%U" /var/freenet/plugins) == "freenet" ]] || chown \
+ freenet:freenet /var/freenet/plugins
+ elog "To load Freemail, go to the plugin page of freenet and enter at"
+ elog "Plugin-URL: /usr/share/Freemail/lib/Freemail.jar"
+ elog " 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 000000000000..515f13a4f198
--- /dev/null
+++ b/net-mail/Freemail/Manifest
@@ -0,0 +1,5 @@
+AUX build.patch 2909 SHA256 11d42fda202e3dfe138fcbd9ed56465418dc480860d90cf96f5c00e85a61a72b SHA512 e1e1a30956d67ab97c0a4bedcbbb931184ca215f1f7843708855ef0da14aabcea841bbbc1a36d76673522059c6ec2865d958ce78027d62f8ed0a942957f5ed0b WHIRLPOOL 5411dfb40fc712a03d99c845ddfcb0318b246ac96730bd0cdb5ef2fe78f6ea1a0cba05c0b0e787d45f849dff5ad1f600b4ec819ff51b93d5f3cc5eb7fdec3b82
+EBUILD Freemail-9999-r1.ebuild 1473 SHA256 e7a7b06faeb23488ef62f61b23efac1cde24033a592f0bb2c89b66fd9b046149 SHA512 480b187b09f35f0888b815f103c11c56a6583f6424f32a245aad686a9deaf8a0fec332f5b9f5d6effeee42faf92c074df568032c1975ebdf39575de39cea5c27 WHIRLPOOL 9b83e0ad941d33395cb3163e0442dfd29278676c18038573678f40d7cda6af29f39887da693fda866f04016161fe618917e671997835ddac1f224e73b2495e8d
+MISC ChangeLog 2861 SHA256 32864ac87360fad6539bf682ddbf32707099f987ae8a96a9cfab49e11a0e27bb SHA512 0d63cb0145243a770c8e8684dce7b690e10fbaa5265a2aecb37d622508460beca7469234b7b5f1c061dac2f93c791c59696956aaeccf61dc41fc9b0d1cf2ca86 WHIRLPOOL 5a87d5616ee56d29c2393549bc2c57bbad3f021d7f6c816c330577d1197688da1854afa6d1a0fb51297c3480f438e1f224cf6fe2c3494e15923515d4b045937b
+MISC ChangeLog-2015 1253 SHA256 65a628e3cebdee63984483b5407495145701dc89a4c3298c08bf33dbe292264a SHA512 d28f4a7bf47eb720ff8b5e832728ab6a8562a119aa947306cac203fe819fdf365e8ac43ef5a51dcc90cd52a1b7781bb456194dbe8e1ed2c9b42dac7e3b5479fa WHIRLPOOL ee7efedf75d002be83c70814be13e3a21e45f26c625a2feef6c186e8f3a152ef2df019354dfc29956d4cbee19dd15fa887dd0093f7661aac525a3599f9e83118
+MISC metadata.xml 256 SHA256 b1fcbeb75e9059c70100ccf278d492d9d2678ba93411e576ae760b3f308675cb SHA512 26e53ead25d8fef36a3759518b200c6a4ea0fc24d2c1f054ed85772cba5644118b231438d723ca25c22a55ed2fcf54e2c467279c9f3b49b6c1ced9997e3f098c WHIRLPOOL 25a36b6972f88def1dae7e912650b8fe3a0383d551c4a57967e1b8f80cde478e680e30c034f0481366f2da1d38a10e092ab4392902fa1b7f93cd801bb3f46dfa
diff --git a/net-mail/Freemail/files/build.patch b/net-mail/Freemail/files/build.patch
new file mode 100644
index 000000000000..3fef282f74ad
--- /dev/null
+++ b/net-mail/Freemail/files/build.patch
@@ -0,0 +1,68 @@
+--- build.xml 2009-06-26 16:46:58.829728329 +0200
++++ build.xml.new 2009-06-26 16:48:44.654930593 +0200
+@@ -5,64 +5,7 @@
+ <property name="build" location="build"/>
+ <property name="lib" location="lib"/>
+ <property name="dist" location="dist"/>
+- <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/>
diff --git a/net-mail/Freemail/metadata.xml b/net-mail/Freemail/metadata.xml
new file mode 100644
index 000000000000..3800f75787af
--- /dev/null
+++ b/net-mail/Freemail/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tommy@gentoo.org</email>
+ <name>Thomas Sachau (Tommy[D])</name>
+ </maintainer>
+</pkgmetadata>