Compare commits

...

23 Commits

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

85
debian/changelog

@ -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
debian/compat

@ -0,0 +1 @@
9

13
debian/control

@ -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
debian/copyright

@ -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
debian/dirs

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

3
debian/evoadmin-mail.cron.d

@ -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
debian/gbp.conf

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

3
debian/install

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

58
debian/postinst

@ -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
debian/rules

@ -0,0 +1,7 @@
#!/usr/bin/make -f
%:
dh $@
override_dh_fixperms:
dh_fixperms --exclude /etc/evoadmin-mail /var/lib/evoadmin-mail

1
debian/source/format

@ -0,0 +1 @@
3.0 (quilt)
Loading…
Cancel
Save