summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@gmx.de>2011-11-21 12:59:21 +0100
committerSven Eden <sven.eden@gmx.de>2011-11-21 12:59:21 +0100
commita2e11c7ae0653e3503ad6a35f84a2e92bc81bbcc (patch)
tree4fe406bd13b427f005bb79c44715147fa0a90ea2 /net-mail/davmail-bin
parentP-UAE: Fixed order problem (diff)
downloadseden-a2e11c7ae0653e3503ad6a35f84a2e92bc81bbcc.tar.gz
seden-a2e11c7ae0653e3503ad6a35f84a2e92bc81bbcc.tar.bz2
seden-a2e11c7ae0653e3503ad6a35f84a2e92bc81bbcc.zip
davmail: Re-Added to overlay
Diffstat (limited to 'net-mail/davmail-bin')
-rw-r--r--net-mail/davmail-bin/ChangeLog11
-rw-r--r--net-mail/davmail-bin/Manifest8
-rw-r--r--net-mail/davmail-bin/davmail-bin-3.9.6.ebuild69
-rw-r--r--net-mail/davmail-bin/files/davmail.desktop11
-rw-r--r--net-mail/davmail-bin/files/davmail.pngbin0 -> 4218 bytes
-rw-r--r--net-mail/davmail-bin/files/initd36
-rw-r--r--net-mail/davmail-bin/metadata.xml13
7 files changed, 148 insertions, 0 deletions
diff --git a/net-mail/davmail-bin/ChangeLog b/net-mail/davmail-bin/ChangeLog
new file mode 100644
index 0000000..7324092
--- /dev/null
+++ b/net-mail/davmail-bin/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-mail/davmail-bin
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*davmail-bin-3.9.6 (21 Nov 2011)
+
+ 21 Nov 2011; Sven Eden <sven.eden@gmx.de> +davmail-3.9.6.ebuild :
+ Re-added to my overlay, and renamed to davmail-bin. The unbundled
+ version in the java-overlay causes too many problems on my system,
+ I have therefore decided to keep the bundled (binary) version in my own
+ overlay.
diff --git a/net-mail/davmail-bin/Manifest b/net-mail/davmail-bin/Manifest
new file mode 100644
index 0000000..a70ee12
--- /dev/null
+++ b/net-mail/davmail-bin/Manifest
@@ -0,0 +1,8 @@
+AUX davmail.desktop 211 RMD160 a0c72ff2427b813d292c706c89878e556b13e2ea SHA1 bd2a652ca3265221694973071573e747d4cb0c29 SHA256 3f6a7ec2a20f4148452212733a238b89ba709d94f1231e3b8fb993ab0d77a222
+AUX davmail.png 4218 RMD160 1b271ae8e6f85f1550c5140080fb6b7f64799afc SHA1 44fe30922093156f2c594065c59bed7442ec5083 SHA256 b50a1e8d9ac3e20acf88f77d9524f986041282e9f6ae120c78ee64cf6a20df7e
+AUX initd 737 RMD160 be5914cb8bcd4973b23d169d2b9b1aa2eeb9ba74 SHA1 25e8b0cdd2cbf6c50dfb827957336853f5f3f08d SHA256 9ed1aa645383983e609943886765228daef6505f32484d29af2bc7bf5663ef6a
+DIST davmail-linux-x86-3.9.6-1843.tgz 6387336 RMD160 d159fb72e8564e9692bf9fe2afe6a342d2a7b362 SHA1 6a097ac8f2bd6633a0988ea321054954e0b36940 SHA256 524fabfa45b232effe9c6463a2bccbeb690cf314200bff1312fce8f6cafc2a5d
+DIST davmail-linux-x86_64-3.9.6-1843.tgz 6532833 RMD160 f961b8ffbd97a5ffe83a2d7d9bb742cb374ecd43 SHA1 986857af90c84a90466d1f1f08b6b53a578611a9 SHA256 5acdf58efa254756aa46d65d8b9d2d20e9c4ecb2550ab38151f3e1a8b1e398b7
+EBUILD davmail-bin-3.9.6.ebuild 1666 RMD160 248d98af0d011c212b82b50b3b1927d691d09c35 SHA1 69f2e0efd8e6c66ede5bdc88ee668a233e78dde9 SHA256 3326159d19aafa6fafe129010dc8c3744b9bffd56f4ad876629d4b1cdc2e19b3
+MISC ChangeLog 445 RMD160 0779ccf6d76faf674a5ec0c951a2fae35a5c6ef3 SHA1 c58dec57a204e772c46aa2abe3939861f926ec29 SHA256 4ef0e8662c5b9f072dbee528bccc30f8e4f2fab20acc22f586648a4f94ea8ee5
+MISC metadata.xml 512 RMD160 ee2a9786a4bc210bcbd9e3098d3bfb0e18d2f7da SHA1 527b4c0c960efabc803a9721cfe03df3f161529e SHA256 65eeddc3377134a494f194ad22d9212463c65ce9addcd3276781829cdc0abd09
diff --git a/net-mail/davmail-bin/davmail-bin-3.9.6.ebuild b/net-mail/davmail-bin/davmail-bin-3.9.6.ebuild
new file mode 100644
index 0000000..dce656a
--- /dev/null
+++ b/net-mail/davmail-bin/davmail-bin-3.9.6.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: net-mail/davmail-3.9.1 $
+
+EAPI="3"
+inherit eutils
+
+MY_REV="1843"
+MY_PN="davmail"
+MY_P_A="${MY_PN}-linux-x86"
+MY_P_B="${PV}-${MY_REV}"
+SRC_URI="x86? (
+ mirror://sourceforge/${MY_PN}/${MY_P_A}-${MY_P_B}.tgz
+ )
+ amd64? (
+ mirror://sourceforge/${MY_PN}/${MY_P_A}_64-${MY_P_B}.tgz
+ )"
+DESCRIPTION="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
+HOMEPAGE="http://davmail.sourceforge.net/"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="menu server"
+
+DEPEND="|| ( virtual/jre:1.6 virtual/jdk:1.6 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ if use server ; then
+ enewuser davmail -1 -1 /dev/null
+ fi
+}
+
+src_install() {
+ cd "${S}"
+ # Fix the script BASE=
+ sed -i -e "s@BASE=.*@BASE=/opt/davmail@" davmail.sh
+ dodir "/opt/$MY_PN"
+ cp -a * "${D}/opt/$MY_PN"
+ dodir "/opt/bin"
+ dosym "/opt/$MY_PN/davmail.sh" "/opt/bin/davmail.sh"
+
+ if use menu; then
+ domenu "${FILESDIR}"/davmail.desktop
+ doicon "${FILESDIR}"/davmail.png
+ fi
+
+ if use server ; then
+ insinto /etc
+ doins "${FILESDIR}"/davmail.properties
+ newinitd "${FILESDIR}"/davmail.init davmail
+ newconfd "${FILESDIR}"/davmail.confd davmail
+ fi
+}
+
+pkg_postinst() {
+ if use server ; then
+ elog "You have chosen to run davmail as a system service."
+ elog "You will need to modify /etc/davmail.properties"
+ elog "to service your needs. You may find it easier to"
+ elog "run the davmail.sh, configure it via the GUI and"
+ elog "copy the resulting ~/.davmail.properties to /etc."
+ fi
+}
+
diff --git a/net-mail/davmail-bin/files/davmail.desktop b/net-mail/davmail-bin/files/davmail.desktop
new file mode 100644
index 0000000..e573c5a
--- /dev/null
+++ b/net-mail/davmail-bin/files/davmail.desktop
@@ -0,0 +1,11 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Type=Application
+Name=DavMail Gateway
+Comment=Exchange connector
+Icon=davmail
+Terminal=false
+Categories=Network;Email;
+Exec=/opt/bin/davmail.sh
diff --git a/net-mail/davmail-bin/files/davmail.png b/net-mail/davmail-bin/files/davmail.png
new file mode 100644
index 0000000..d262a95
--- /dev/null
+++ b/net-mail/davmail-bin/files/davmail.png
Binary files differ
diff --git a/net-mail/davmail-bin/files/initd b/net-mail/davmail-bin/files/initd
new file mode 100644
index 0000000..a6df7dd
--- /dev/null
+++ b/net-mail/davmail-bin/files/initd
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+
+CONFIG="/etc/${SVCNAME}.properties"
+PIDFILE="/var/run/${SVCNAME}.pid"
+SUFFIX="${SVCNAME#*.}"
+
+if [[ "${SVCNAME}" == "${SUFFIX}" ]]; then
+ SUFFIX=""
+else
+ SUFFIX=" (${SUFFIX})"
+fi
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting DavMail${SUFFIX} gateway"
+
+ if ! $(grep -Fl "davmail.server=true" "${CONFIG}" &> /dev/null); then
+ eend 1 "Ensure that ${CONFIG} has the line davmail.server=true"
+ return 1
+ fi
+
+ start-stop-daemon --start --user davmail --chdir /var/log/davmail \
+ --make-pidfile --pidfile "${PIDFILE}" --background \
+ --exec /usr/bin/davmail -- "${CONFIG}"
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DavMail${SUFFIX} gateway"
+ start-stop-daemon --stop --user davmail --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/net-mail/davmail-bin/metadata.xml b/net-mail/davmail-bin/metadata.xml
new file mode 100644
index 0000000..7d9cf45
--- /dev/null
+++ b/net-mail/davmail-bin/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>sven.eden@gmx.de</email>
+ <description>Maintaining in seden overlay, until davmail is added to the tree.</description>
+</maintainer>
+<use>
+ <flag name='menu'>Add an entry to the menu of your dektop environment</flag>
+ <flag name='server'>Add a davmail user and an entry to /etc/init.d to use davmail as a service</flag>
+</use>
+</pkgmetadata>