diff options
author | Stuart Shelton <stuart@shelton.me> | 2013-02-15 13:51:46 +0000 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2013-02-15 13:51:46 +0000 |
commit | 3199d5a3560f20646418a1a38a01c5e2ac8229cf (patch) | |
tree | 64188ec0c6124f29e95e7e4524fe49f6bbda953b /net-mail | |
parent | Portage metadata (diff) | |
download | srcshelton-3199d5a3560f20646418a1a38a01c5e2ac8229cf.tar.gz srcshelton-3199d5a3560f20646418a1a38a01c5e2ac8229cf.tar.bz2 srcshelton-3199d5a3560f20646418a1a38a01c5e2ac8229cf.zip |
Out-of-tree ebuilds
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/davmail-bin/Manifest | 4 | ||||
-rw-r--r-- | net-mail/davmail-bin/davmail-bin-3.9.8.ebuild | 58 | ||||
-rw-r--r-- | net-mail/davmail-bin/files/davmail-3.9.8-initd | 43 | ||||
-rw-r--r-- | net-mail/davmail-bin/files/davmail.properties | 33 |
4 files changed, 138 insertions, 0 deletions
diff --git a/net-mail/davmail-bin/Manifest b/net-mail/davmail-bin/Manifest new file mode 100644 index 00000000..b0617a9e --- /dev/null +++ b/net-mail/davmail-bin/Manifest @@ -0,0 +1,4 @@ +AUX davmail-3.9.8-initd 1046 RMD160 1edb419926f69d31e969995c25bea5ef53590aaf SHA1 e135dbd43a885be0b0f631b45b4b4be27c0e29fc SHA256 8caec347f4e01737bad8bb02cc831f14b11a7686b4d18c0ae1894555e1b88dbd +AUX davmail.properties 879 RMD160 cf754916582f34d71084c58332446b4d4f4708f7 SHA1 01f4626165587341b1bbdb12fbc11330411d3ed8 SHA256 7bcf05750ea720cce434435acf660a01fac9217d23d1221d04b904af6d4b1622 +DIST davmail-3.9.8-1921.zip 4870397 RMD160 74deff81e9c04087d3e840b551302a2a00527203 SHA1 4022ad222f14ced1e550fe4d7cee81cb4116a7fc SHA256 f13bfa16a15e85fde9f2cb00308bb340ede4625966969d3fce3f352b45823956 +EBUILD davmail-bin-3.9.8.ebuild 1751 RMD160 0aadd185ed7ecf4ec6410ac95c70510245cc92b3 SHA1 24ce9a2641cea045192a689e92d13fc4e7aca2df SHA256 d0499b937442de7c9aeaa53161ccc0a09677c1c353be2cd49e5d7b78f1b655c9 diff --git a/net-mail/davmail-bin/davmail-bin-3.9.8.ebuild b/net-mail/davmail-bin/davmail-bin-3.9.8.ebuild new file mode 100644 index 00000000..d290b4ae --- /dev/null +++ b/net-mail/davmail-bin/davmail-bin-3.9.8.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit user + +DESCRIPTION="DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway" +HOMEPAGE="http://davmail.sourceforge.net/" +REV=1921 +MY_PN="${PN/-bin}" +MY_P="${MY_PN}-${PV}" +SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}-${REV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" +RDEPEND=">=virtual/jre-1.5" + +S="${WORKDIR}" + +pkg_setup() { + enewgroup davmail || die "DavMail Group creation failed" + enewuser davmail -1 -1 "/opt/${MY_P}" davmail || die "DavMail User creation failed" +} + +src_install () { + echo "CONFIG_PROTECT=\"${EPREFIX}/opt/${MY_P}/conf\"" > "${T}/90${MY_PN}" + + newinitd "${FILESDIR}"/"davmail-${PV}-initd" davmail || \ + die "Could not create init script" + sed -i "s|%INST_DIR%|/opt/${MY_P}|g" "${ED}"/etc/init.d/davmail || \ + die "Could not customise init script" + + exeinto /opt/"${MY_P}"/bin + doexe davmail.jar || die "Could not install Jar" + fperms 644 /opt/"${MY_P}"/bin/davmail.jar + + insinto /opt/"${MY_P}" + doins -r lib || die "Could not copy libraries" + insinto /opt/"${MY_P}"/conf + doins "${FILESDIR}"/davmail.properties || die "Could not copy properties" + + dodir /var/log/davmail || die "Could not create log directory" + fowners davmail:davmail /var/log/davmail || die "Could not change ownership of log directory" + + fowners davmail:davmail /opt/"${MY_P}" || die "Could not change ownership of DavMail directory" + + doenvd "${T}/90${MY_PN}" || die "Could not configure environment" + + einfo "davmail.properties has been installed to '/opt/${MY_P}/conf'" + einfo "Please see http://davmail.sourceforge.net/gettingstarted.html for details" + einfo "of how to configure DavMail" +} diff --git a/net-mail/davmail-bin/files/davmail-3.9.8-initd b/net-mail/davmail-bin/files/davmail-3.9.8-initd new file mode 100644 index 00000000..70dc6e1b --- /dev/null +++ b/net-mail/davmail-bin/files/davmail-3.9.8-initd @@ -0,0 +1,43 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Copyright 2012 Stuart Shelton +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DIR="%INST_DIR%" + +depend() { + need localmount + use net + before fetchmail dovecot +} + +start() { + ebegin "Building \$CLASSPATH" + found=1 + for JAR in $( find "${DIR}"/lib/ -type f -name \*.jar ); do + CLASSPATH="${CLASSPATH}:${JAR}" + found=0 + done + eend $found "Unable to find bundled Jar libraries" + unset found + + ebegin "Starting DavMail" + start-stop-daemon \ + --start --quiet --pidfile /var/run/davmail.pid \ + --user davmail:davmail --make-pidfile --background \ + --exec java -- -cp "${DIR}"/bin/davmail.jar:${CLASSPATH} davmail.DavGateway "${DIR}"/conf/davmail.properties + local ret=$? + eend $ret + return $ret +} + +stop() { + ebegin "Stopping DavMail" + start-stop-daemon \ + --stop --quiet --pidfile /var/run/davmail.pid + local ret=$? + eend $ret + return $ret +} + diff --git a/net-mail/davmail-bin/files/davmail.properties b/net-mail/davmail-bin/files/davmail.properties new file mode 100644 index 00000000..ddde6e38 --- /dev/null +++ b/net-mail/davmail-bin/files/davmail.properties @@ -0,0 +1,33 @@ +davmail.url=http://exchangeServer/exchange/ +davmail.enableEws=false +davmail.popPort=1110 +davmail.imapPort=1143 +davmail.smtpPort=1025 +davmail.caldavPort=1080 +davmail.ldapPort=1389 +davmail.keepDelay=30 +davmail.sentKeepDelay=90 +davmail.caldavPastDelay=90 +davmail.imapIdleDelay= +davmail.useSystemProxies=false +davmail.enableProxy=false +davmail.proxyHost= +davmail.proxyPort= +davmail.proxyUser= +davmail.proxyPassword= +davmail.ssl.keystoreType=JKS +davmail.ssl.keyPass= +davmail.ssl.keystoreFile= +davmail.ssl.keystorePass= +davmail.smtpSaveInSent=true +davmail.server=true +davmail.server.certificate.hash= +davmail.bindAddress= +davmail.clientSoTimeout= +davmail.allowRemote=true +davmail.disableUpdateCheck=false +log4j.rootLogger=WARN +log4j.logger.davmail=DEBUG +log4j.logger.org.apache.commons.httpclient=WARN +log4j.logger.httpclient.wire=WARN +davmail.logFilePath=/var/log/davmail/davmail.log |