aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2014-02-13 19:27:19 +0000
committerStuart Shelton <stuart@shelton.me>2014-02-13 19:27:19 +0000
commit19c6614b3fbc142cc4118e49787e88897f4e507a (patch)
treeeee6e8e2ebe8fa99bbeddcb998cf4d711d3e30ac /net-mail/davmail-bin/davmail-bin-4.4.1.ebuild
parentUpdate lvm2-2.02.97-r1, lvm2-2.02.103 (diff)
downloadsrcshelton-19c6614b3fbc142cc4118e49787e88897f4e507a.tar.gz
srcshelton-19c6614b3fbc142cc4118e49787e88897f4e507a.tar.bz2
srcshelton-19c6614b3fbc142cc4118e49787e88897f4e507a.zip
Add net-mail/davmail-bin-4.4.1
Diffstat (limited to 'net-mail/davmail-bin/davmail-bin-4.4.1.ebuild')
-rw-r--r--net-mail/davmail-bin/davmail-bin-4.4.1.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/net-mail/davmail-bin/davmail-bin-4.4.1.ebuild b/net-mail/davmail-bin/davmail-bin-4.4.1.ebuild
new file mode 100644
index 00000000..773a2737
--- /dev/null
+++ b/net-mail/davmail-bin/davmail-bin-4.4.1.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=2225
+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-3.9.8-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"
+}