# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit pam systemd
+inherit bash-completion-r1 pam systemd
DESCRIPTION="Monitoring and managing daemons or similar programs running on a Unix system"
HOMEPAGE="http://mmonit.com/monit/"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
-IUSE="libressl pam ssl"
+IUSE="ipv6 libressl pam ssl"
RDEPEND="
ssl? (
}
src_configure() {
- econf $(use_with ssl) $(use_with pam)
+ local myeconfargs=(
+ $(use_with ipv6)
+ $(use_with pam)
+ $(use_with ssl)
+ )
+ econf "${myeconfargs[@]}"
}
src_install() {
systemd_dounit "${FILESDIR}"/${PN}.service
use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN}
+
+ dobashcomp system/bash/monit
}
pkg_postinst() {