app-admin/monit: Revbump to install bash-completion file. Removed old
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 31 May 2018 11:52:37 +0000 (13:52 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 31 May 2018 11:53:04 +0000 (13:53 +0200)
Also added ipv6 USE flag.

Package-Manager: Portage-2.3.40, Repoman-2.3.9

app-admin/monit/monit-5.25.2-r1.ebuild [moved from app-admin/monit/monit-5.25.2.ebuild with 83% similarity]

similarity index 83%
rename from app-admin/monit/monit-5.25.2.ebuild
rename to app-admin/monit/monit-5.25.2-r1.ebuild
index 43e22cd6648d60180e13cb7e4c51cdaebff3cb66..8897263d608b051d99ebe9afaec8316566443f23 100644 (file)
@@ -2,7 +2,7 @@
 # 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/"
@@ -11,7 +11,7 @@ SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz"
 LICENSE="AGPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
-IUSE="libressl pam ssl"
+IUSE="ipv6 libressl pam ssl"
 
 RDEPEND="
        ssl? (
@@ -30,7 +30,12 @@ src_prepare() {
 }
 
 src_configure() {
-       econf $(use_with ssl) $(use_with pam)
+       local myeconfargs=(
+               $(use_with ipv6)
+               $(use_with pam)
+               $(use_with ssl)
+       )
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {
@@ -43,6 +48,8 @@ src_install() {
        systemd_dounit "${FILESDIR}"/${PN}.service
 
        use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN}
+
+       dobashcomp system/bash/monit
 }
 
 pkg_postinst() {