Browse Source

new ebuild: net-mail/davmail-bin

copied from pentoo overlay
master
Brian S. Stephan 2 months ago
parent
commit
d84a3719ef
2 changed files with 78 additions and 0 deletions
  1. +1
    -0
      net-mail/davmail-bin/Manifest
  2. +77
    -0
      net-mail/davmail-bin/davmail-bin-5.4.0.3135.ebuild

+ 1
- 0
net-mail/davmail-bin/Manifest View File

@@ -0,0 +1 @@
DIST davmail-5.4.0-3135.zip 6311121 BLAKE2B 29ec02acb84c4b3ffb1774a5d9b3a228ce7ba3fd3085cccd0b3dfbcab081a40c3ade3f089dd5df6388314ef77c3fb75b303dacef3dbf6e6a0d5695cc374bd0cb SHA512 0cf0464c1d4edbd1060dbedccd8cf5a588ef0093ebf2ef0dcf97adc25eaaf189b37808d0725104b82c6a6d23b6d1f842341ed47d73074e9aabff1ce0cc28f066

+ 77
- 0
net-mail/davmail-bin/davmail-bin-5.4.0.3135.ebuild View File

@@ -0,0 +1,77 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit eutils java-pkg-2 user

#https://sourceforge.net/projects/davmail/files/davmail/
MY_PN="davmail"

DESCRIPTION="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
HOMEPAGE="http://davmail.sourceforge.net/"
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}-$(ver_cut 1-3)-$(ver_cut 4).zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 -*"
IUSE="server"

DEPEND="|| (
>=virtual/jre-1.6:*
>=virtual/jdk-1.6:*
)
!net-mail/davmail"
RDEPEND="${DEPEND}"
S="${WORKDIR}"

pkg_setup() {
if use server ; then
enewuser davmail -1 -1 /dev/null
fi
}

java-pkg-2_src_compile() {
einfo ""
}

src_install() {
# libraries
java-pkg_dojar lib/*.jar
java-pkg_dojar ${MY_PN}.jar

# icon
# doicon "${FILESDIR}"/${MY_PN}.png

# create wrapper script for the client
java-pkg_dolauncher ${MY_PN} --main ${MY_PN}.DavGateway --java_args ""

# desktop entry
make_desktop_entry ${MY_PN} "DavMail" /usr/share/pixmaps/${MY_PN}.png "Network"

if use server ; then
# log file
touch ${MY_PN}.log
insinto /var/log
doins ${MY_PN}.log
fowners ${MY_PN} /var/log/${MY_PN}.log

# config files
insinto /etc
doins "${FILESDIR}"/${MY_PN}.properties
newinitd "${FILESDIR}"/${MY_PN}.init ${MY_PN}
newconfd "${FILESDIR}"/${MY_PN}.conf ${MY_PN}
fi
}

pkg_postinst() {
if use server ; then
elog
elog "You have chosen to run ${MY_PN} as a system service. You will need to"
elog "modify /etc/${MY_PN}.properties to serve your needs."
elog
elog "You may find it easier to run the ${MY_PN}, configure it via the GUI"
elog "and copy the resulting ~/.${MY_PN}.properties to /etc. Make sure you"
elog "set ${MY_PN}.server=true and ${MY_PN}.allowRemote=true."
elog
fi
}

Loading…
Cancel
Save