1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit qmail webapp autotools
10 DESCRIPTION="A web interface for managing a qmail system with virtual domains"
11 HOMEPAGE="http://www.inter7.com/qmailadmin.html"
12 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
16 WEBAPP_MANUAL_SLOT="yes"
17 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sparc ~x86"
19 # the RESTRICT is because the vpopmail lib directory is locked down
20 # and non-root can't access them.
24 >=net-mail/vpopmail-5.4.33
26 maildrop? ( >=mail-filter/maildrop-2.0.1 )"
29 S="${WORKDIR}"/${MY_P}
32 eapply "${FILESDIR}"/${PN}-1.2.9-maildir.patch
38 # Pass spam stuff through $@ so we get the quoting right
39 if use maildrop ; then
40 set -- --enable-modify-spam \
41 --enable-spam-command='|preline maildrop /etc/maildroprc'
48 --enable-vpopmaildir=/var/vpopmail \
49 --enable-htmldir="${MY_HTDOCSDIR}" \
50 --enable-imagedir="${MY_HTDOCSDIR}"/images \
51 --enable-imageurl=/${PN}/images \
52 --enable-htmllibdir=/usr/share/${PN}/htmllib \
53 --enable-cgibindir="${MY_CGIBINDIR}" \
54 --enable-cgipath=/cgi-bin/${PN} \
55 --enable-qmaildir="${QMAIL_HOME}" \
56 --enable-autoresponder-path="${QMAIL_HOME}"/bin \
57 --enable-true-path=/bin \
58 --enable-ezmlmdir=/usr/bin \
59 --enable-domain-autofill \
60 --enable-modify-quota \
62 --enable-trivial-password \
64 --enable-maxusersperpage=50 \
65 --enable-maxaliasesperpage=50 \
66 --enable-vpopuser=vpopmail \
67 --enable-vpopgroup=vpopmail \
75 AUTHORS INSTALL README.hooks BUGS TODO ChangeLog TRANSLATORS
76 NEWS FAQ README contrib/*
82 # CGI needs to be able to read /etc/vpopmail.conf
83 # Which is 0640 root:vpopmail, as it contains passwords
84 cgi=/usr/share/webapps/${PN}/${PV}/hostroot/cgi-bin/qmailadmin
85 fowners root:vpopmail ${cgi}
90 einfo "If you would like support for ezmlm mailing lists inside qmailadmin,"
91 einfo "please emerge some variant of ezmlm-idx."
93 einfo "For complete webapp-config support:"
94 einfo "1. Add this for the Apache cgi-bin dir: Options +ExecCGI -MultiViews +FollowSymLinks"
95 einfo "2. Run: webapp-config -I -h localhost -d qmailadmin $PN $PV"
96 einfo "3. Symlink: ln -s {/usr/share/webapps/${PN}/${PV}/hostroot,/var/www/localhost}/cgi-bin/${PN}"