Compare commits

...

23 Commits

Author SHA1 Message Date
  Victor Laborie 9090ecb0b5 New upstream release (1.0.6) 1 year ago
  Victor Laborie 12bfea97b0 Merge branch 'master' into debian 1 year ago
  Victor Laborie 8e498d9a8f New upstream release (1.0.5) 1 year ago
  Victor Laborie 3b18e0ea8d Merge branch 'master' into debian 1 year ago
  Victor Laborie 426fde73c8 Merge branch 'master' into debian 1 year ago
  Victor Laborie 6813cfc384 New upstream release (1.0.4) 1 year ago
  Victor Laborie c64eeec615 Merge branch 'master' into debian 1 year ago
  Victor Laborie 9065a41fc8 Fix gbp.conf for automatic build 1 year ago
  Victor Laborie fc11f12f6e Reduce extended description line length 1 year ago
  Victor Laborie 998d3e5aa0 Add missing dependency php-ldap 1 year ago
  Victor Laborie 6a8ca83cf4 New upstream release (1.0.3) 1 year ago
  Victor Laborie 394cfef7b5 Merge branch 'master' into debian 1 year ago
  Victor Laborie 8896b1d1e3 New upstream release (1.0.2) 1 year ago
  Victor Laborie d1f9ddce59 Merge branch 'master' into debian 1 year ago
  Victor Laborie 350ac97910 Autoconfig and fixperms 1 year ago
  Victor Laborie 69889dcac3 Create evoadmin-mail user in postinst script 1 year ago
  Victor Laborie 33dcb93018 Merge branch 'master' into debian 1 year ago
  Victor Laborie 2e111d069f Add crontab for run get-size-no-quota.sh every 30m 1 year ago
  Victor Laborie f7bd3fcb23 New upstream release (1.0.1) 1 year ago
  Victor Laborie 5795bc4f6b Merge branch 'master' into debian 1 year ago
  Victor Laborie 0128247ef0 Create /etc/evoadmin-mail and /var/lib/evoadmin-mail directories 1 year ago
  Victor Laborie 54c63cd124 Add php-cli to dependencies 2 years ago
  Victor Laborie 083451a5c7 Initial Debian release 2 years ago
11 changed files with 190 additions and 0 deletions
Split View
  1. +85
    -0
      debian/changelog
  2. +1
    -0
      debian/compat
  3. +13
    -0
      debian/control
  4. +11
    -0
      debian/copyright
  5. +3
    -0
      debian/dirs
  6. +3
    -0
      debian/evoadmin-mail.cron.d
  7. +5
    -0
      debian/gbp.conf
  8. +3
    -0
      debian/install
  9. +58
    -0
      debian/postinst
  10. +7
    -0
      debian/rules
  11. +1
    -0
      debian/source/format

+ 85
- 0
debian/changelog View File

@@ -0,0 +1,85 @@
evoadmin-mail (1.0.6-1) unstable; urgency=medium

* Fix bug when updating aliases

-- Victor Laborie <vlaborie@evolix.fr> Thu, 10 Oct 2019 15:16:39 +0200

evoadmin-mail (1.0.5-1) unstable; urgency=medium

* Quota path is now configurable

-- Victor Laborie <vlaborie@evolix.fr> Thu, 28 Mar 2019 15:36:16 +0100

evoadmin-mail (1.0.4-1) unstable; urgency=medium

* Do not use base.html for login page
* Fix Twig loading on PHP 5.6
* Fix dependencies on Debian Jessie

-- Victor Laborie <vlaborie@evolix.fr> Thu, 28 Mar 2019 14:16:14 +0100

evoadmin-mail (1.0.3-3) unstable; urgency=low

* Reduce extended description line length

-- Victor Laborie <vlaborie@evolix.fr> Fri, 11 Jan 2019 15:34:49 +0100

evoadmin-mail (1.0.3-2) unstable; urgency=high

* Add missing dependency php-ldap

-- Victor Laborie <vlaborie@evolix.fr> Fri, 11 Jan 2019 10:00:32 +0100

evoadmin-mail (1.0.3-1) unstable; urgency=medium

* Mailaccept need mail address (add domain)

-- Victor Laborie <vlaborie@evolix.fr> Thu, 10 Jan 2019 14:40:38 +0100

evoadmin-mail (1.0.2-1) unstable; urgency=medium

* Add missing support of alias/redirection edit in account update

-- Victor Laborie <vlaborie@evolix.fr> Wed, 09 Jan 2019 17:14:35 +0100

evoadmin-mail (1.0.1-4) unstable; urgency=low

* Autoconfig and fixperms

-- Victor Laborie <vlaborie@evolix.fr> Fri, 07 Dec 2018 14:54:23 +0100

evoadmin-mail (1.0.1-3) unstable; urgency=medium

* Create evoadmin-mail user in postinst script

-- Victor Laborie <vlaborie@evolix.fr> Thu, 06 Dec 2018 16:55:39 +0100

evoadmin-mail (1.0.1-2) unstable; urgency=low

* Add crontab for run get-size-no-quota.sh every 30m

-- Victor Laborie <vlaborie@evolix.fr> Thu, 06 Dec 2018 11:30:50 +0100

evoadmin-mail (1.0.1-1) unstable; urgency=low

* get-size-no-quota.sh is configurable by ENV var

-- Victor Laborie <vlaborie@evolix.fr> Thu, 06 Dec 2018 11:21:00 +0100

evoadmin-mail (1.0.0-3) unstable; urgency=low

* Create /etc/evoadmin-mail and /var/lib/evoadmin-mail directories

-- Victor Laborie <vlaborie@evolix.fr> Thu, 06 Dec 2018 11:16:52 +0100

evoadmin-mail (1.0.0-2) unstable; urgency=low

* Add php-cli to dependencies

-- Victor Laborie <vlaborie@evolix.fr> Wed, 05 Dec 2018 14:47:05 +0100

evoadmin-mail (1.0.0-1) unstable; urgency=low

* Initial release.

-- Victor Laborie <vlaborie@evolix.fr> Wed, 05 Dec 2018 11:59:50 +0100

+ 1
- 0
debian/compat View File

@@ -0,0 +1 @@
9

+ 13
- 0
debian/control View File

@@ -0,0 +1,13 @@
Source: evoadmin-mail
Section: utils
Priority: optional
Maintainer: Victor Laborie <vlaborie@evolix.fr>
Build-Depends: debhelper (>= 9), dh-exec
Standards-Version: 4.0.0

Package: evoadmin-mail
Architecture: all
Depends: php | php5, php-cli | php5-cli , php-twig, php-ldap | php5-ldap, apg, ldapvi, ${misc:Depends}
Description: PHP app for manage LDAP mail accounts
evoadmin-mail is a Web Interface for manage an LDAP directory
designed for mail accounts.

+ 11
- 0
debian/copyright View File

@@ -0,0 +1,11 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: evoadmin-mail
Upstream-Contact: Evolix <equipe@evolix.fr>
Source: https://forge.evolix.org/projects/evoadmin-mail/repository

Files: *
Copyright: 2018 Victor Laborie <vlaborie@evolix.fr>
License: AGPL-3

License: AGPL-3
https://www.gnu.org/licenses/agpl.txt

+ 3
- 0
debian/dirs View File

@@ -0,0 +1,3 @@
#!/usr/bin/dh-exec
etc/evoadmin-mail
var/lib/evoadmin-mail

+ 3
- 0
debian/evoadmin-mail.cron.d View File

@@ -0,0 +1,3 @@
# /etc/cron.d/evoadmin-mail

*/30 * * * * root [ -x /usr/lib/evoadmin-mail/get-size-no-quota.sh ] && EVOADMINMAIL_DIR=/var/lib/evoadmin-mail /usr/lib/evoadmin-mail/get-size-no-quota.sh

+ 5
- 0
debian/gbp.conf View File

@@ -0,0 +1,5 @@
[buildpackage]
upstream-tree = debian
debian-branch = debian
export-dir = /tmp/evoadmin-mail
builder = dpkg-buildpackage -i -I -uc -us

+ 3
- 0
debian/install View File

@@ -0,0 +1,3 @@
#!/usr/bin/dh-exec
htdocs/* usr/share/evoadmin-mail
scripts/* usr/lib/evoadmin-mail

+ 58
- 0
debian/postinst View File

@@ -0,0 +1,58 @@
#!/bin/sh

set -eu

getent passwd evoadmin-mail >/dev/null || useradd --system --user-group --no-create-home --home-dir /var/lib/evoadmin-mail --shell /usr/sbin/nologin evoadmin-mail

if [ -f /root/.ldapvirc ]; then
hostname=$(hostname -f)
ldap_base=$(grep -Eo "^base: (.*)" /root/.ldapvirc | awk '{ print $2 }')
ldap_admin_dn=$(grep -Eo "^user: (.*)" /root/.ldapvirc | awk '{ print $2 }')
ldap_admin_password=$(grep -Eo "^password: (.*)" /root/.ldapvirc | awk '{ print $2 }')
if [ ! -f /etc/evoadmin-mail/config.ini ]; then
evoadmin_password=$(apg -n 1 -m 16 -M lcN)
cat > /root/evolinux_evoadminmail_admin.ldif <<EOF
dn: uid=evoadmin,${ldap_base}
uid: evoadmin
cn: Evoadmin ADM
uidNumber: 4242
gidNumber: 4242
homeDirectory: /dev/null
isAdmin: TRUE
mailacceptinggeneralid: evoadmin@${hostname}
objectClass: mailAccount
objectClass: organizationalRole
objectClass: posixAccount
userPassword: ${evoadmin_password}
EOF
ldapvi --noninteractive --add --in /root/evolinux_evoadminmail_admin.ldif
cat > /etc/evoadmin-mail/config.ini <<EOF
; The configuration for evoadmin-mail
;
; * Global settings
; * LDAP settings
;

[global]
name = "Evoadmin Mail";
mail = "evoadmin@${hostname}"
log_level = error

[ldap]
host = "127.0.0.1"
port = 389
base = "${ldap_base}"
admin_dn = "${ldap_admin_dn}"
admin_pass = "${ldap_admin_password}"
superadmin[] = "evoadmin"

[quota]
path = "/var/lib/evoadmin-mail/quota/"
EOF
fi
chmod 750 /etc/evoadmin-mail /var/lib/evoadmin-mail
chmod 640 /etc/evoadmin-mail/config.ini
chgrp evoadmin-mail /etc/evoadmin-mail /etc/evoadmin-mail/config.ini /var/lib/evoadmin-mail
fi

exit 0

+ 7
- 0
debian/rules View File

@@ -0,0 +1,7 @@
#!/usr/bin/make -f

%:
dh $@

override_dh_fixperms:
dh_fixperms --exclude /etc/evoadmin-mail /var/lib/evoadmin-mail

+ 1
- 0
debian/source/format View File

@@ -0,0 +1 @@
3.0 (quilt)

Loading…
Cancel
Save