This commit is contained in:
parent
7e44b8dac6
commit
fd79aff597
6 changed files with 79 additions and 0 deletions
5
README.md
Normal file
5
README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# DavMail installation package to Solus Project
|
||||||
|
|
||||||
|
[DavMail](http://davmail.sourceforge.net/) is a POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway allowing users to use any mail/calendar client (e.g. Thunderbird with Lightning or Apple iCal) with an Exchange server, even from the internet or behind a firewall through Outlook Web Access. DavMail includes an LDAP gateway to Exchange global address book and user personal contacts to allow recipient address completion in mail compose window and full calendar support with attendees free/busy display.
|
||||||
|
|
||||||
|

|
13
files/davmail
Normal file
13
files/davmail
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
JAVA_OPTS="-Xmx512M -Dsun.net.inetaddr.ttl=60 --add-exports java.base/sun.net.www.protocol.https=ALL-UNNAMED"
|
||||||
|
|
||||||
|
if [ -z "$JAVA_HOME" ]; then
|
||||||
|
export JAVA_HOME=/usr/lib64/openjdk-21
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$JAVA" ]; then
|
||||||
|
export JAVA=$JAVA_HOME/bin/java
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec ${JAVA} $JAVA_OPTS -cp /usr/share/davmail/davmail.jar:/usr/share/davmail/lib/* davmail.DavGateway $@
|
21
files/davmail.service
Normal file
21
files/davmail.service
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Davmail Exchange gateway
|
||||||
|
Documentation=http://davmail.sourceforge.net/serversetup.html
|
||||||
|
Documentation=http://davmail.sourceforge.net/advanced.html
|
||||||
|
Documentation=http://davmail.sourceforge.net/sslsetup.html
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=davmail
|
||||||
|
PermissionsStartOnly=true
|
||||||
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||||
|
ExecStart=/usr/bin/davmail -server /etc/davmail.properties
|
||||||
|
StateDirectory=davmail
|
||||||
|
SuccessExitStatus=143
|
||||||
|
PrivateTmp=yes
|
||||||
|
ProtectSystem=full
|
||||||
|
ProtectHome=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
1
files/davmail.sysusers
Normal file
1
files/davmail.sysusers
Normal file
|
@ -0,0 +1 @@
|
||||||
|
u davmail - "DavMail Exchange and Office 365 Gateway" - -
|
1
files/davmail.tmpfiles
Normal file
1
files/davmail.tmpfiles
Normal file
|
@ -0,0 +1 @@
|
||||||
|
f /var/log/davmail.log 0640 davmail davmail -
|
38
package.yml
Normal file
38
package.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
name : davmail
|
||||||
|
version : 6.3.0
|
||||||
|
release : 8
|
||||||
|
source :
|
||||||
|
- https://github.com/mguessan/davmail/archive/refs/tags/6.3.0.tar.gz : 01059e4792fcd4eb9a46e2a27be9b82f037a4c5c93763536ae4958d3e34c6914
|
||||||
|
homepage : http://davmail.sourceforge.net
|
||||||
|
license : GPL-2.0-or-later
|
||||||
|
component : network.mail
|
||||||
|
summary : DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway
|
||||||
|
description: |
|
||||||
|
DavMail is a POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway allowing users to use any mail/calendar client (e.g. Thunderbird with Lightning or Apple iCal) with an Exchange server, even from the internet or behind a firewall through Outlook Web Access. DavMail now includes an LDAP gateway to Exchange global address book and user personal contacts to allow recipient address completion in mail compose window and full calendar support with attendees free/busy display.
|
||||||
|
networking : true
|
||||||
|
builddeps :
|
||||||
|
- apache-ant
|
||||||
|
- openjdk-21
|
||||||
|
rundeps :
|
||||||
|
- openjfx-21
|
||||||
|
build : |
|
||||||
|
JAVA_HOME=/usr/lib64/openjdk-21 ant prepare-dist
|
||||||
|
install : |
|
||||||
|
install -dm00644 $installdir/usr/share/davmail/lib
|
||||||
|
install -m00644 dist/lib/* $installdir/usr/share/davmail/lib/
|
||||||
|
|
||||||
|
# Exclude (to update this list check build.xml)
|
||||||
|
rm -fv $installdir/usr/share/davmail/lib/{junit,winrun4j}*.jar
|
||||||
|
|
||||||
|
install -Dm00644 dist/davmail.jar $installdir/usr/share/davmail/
|
||||||
|
install -Dm00644 dist/davmail.png $installdir/usr/share/icons/hicolor/128x128/apps/davmail.png
|
||||||
|
install -Dm00644 src/desktop//davmail.desktop $installdir/usr/share/applications/davmail.desktop
|
||||||
|
install -Dm00644 src/appstream//org.davmail.DavMail.appdata.xml $installdir/usr/share/metainfo/org.davmail.DavMail.appdata.xml
|
||||||
|
|
||||||
|
# Systemd
|
||||||
|
install -Dm00644 $pkgfiles/davmail.service $installdir/usr/lib/systemd/system/davmail.service
|
||||||
|
install -Dm00644 $pkgfiles/davmail.tmpfiles $installdir/usr/lib/tmpfiles.d/davmail.conf
|
||||||
|
install -Dm00644 $pkgfiles/davmail.sysusers $installdir/usr/lib/sysusers.d/davmail.conf
|
||||||
|
|
||||||
|
# Install custom executable file with proper path of execute
|
||||||
|
install -Dm00755 $pkgfiles/davmail $installdir/usr/bin/davmail
|
Loading…
Add table
Add a link
Reference in a new issue