summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-30 19:37:55 +0100
committerSam James <sam@gentoo.org>2021-06-30 19:37:56 +0100
commiteee70ae2374fe11ef9f7f3792b77091131c0a24f (patch)
treef43ed4dc37df1f8203f23576ba2ef97b5ca14094 /app-admin/monit/monit-5.27.2-r1.ebuild
parentnet-mail/checkpassword: add missing virtual/libcrypt dependency (diff)
downloadgentoo-eee70ae2374fe11ef9f7f3792b77091131c0a24f.tar.gz
gentoo-eee70ae2374fe11ef9f7f3792b77091131c0a24f.tar.bz2
gentoo-eee70ae2374fe11ef9f7f3792b77091131c0a24f.zip
app-admin/monit: add missing libcrypt, zlib dependency, fix pam dependency
Closes: https://bugs.gentoo.org/799116 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/monit/monit-5.27.2-r1.ebuild')
-rw-r--r--app-admin/monit/monit-5.27.2-r1.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/app-admin/monit/monit-5.27.2-r1.ebuild b/app-admin/monit/monit-5.27.2-r1.ebuild
new file mode 100644
index 000000000000..7ed9b024d941
--- /dev/null
+++ b/app-admin/monit/monit-5.27.2-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit bash-completion-r1 pam systemd
+
+DESCRIPTION="Monitoring and managing daemons or similar programs running on a Unix system"
+HOMEPAGE="http://mmonit.com/monit/"
+SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86 ~amd64-linux"
+IUSE="ipv6 pam ssl"
+
+RDEPEND="sys-libs/zlib:=
+ virtual/libcrypt:=
+ pam? ( sys-libs/pam )
+ ssl? ( dev-libs/openssl:0= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+"
+
+src_prepare() {
+ default
+ sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with ipv6)
+ $(use_with pam)
+ $(use_with ssl)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ insinto /etc; insopts -m600; doins monitrc
+ newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN}
+
+ dobashcomp system/bash/monit
+}
+
+pkg_postinst() {
+ elog "Sample configurations are available at:"
+ elog "http://mmonit.com/monit/documentation/"
+}