1 |
commit: 0a7f1ad06c32edbed2261693c7b56f244ed4061b |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 26 01:15:05 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 26 01:15:05 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a7f1ad0 |
7 |
|
8 |
app-admin/monit: add libressl support |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
app-admin/monit/monit-5.15-r1.ebuild | 51 ++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 51 insertions(+) |
14 |
|
15 |
diff --git a/app-admin/monit/monit-5.15-r1.ebuild b/app-admin/monit/monit-5.15-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..cd3f4d3 |
18 |
--- /dev/null |
19 |
+++ b/app-admin/monit/monit-5.15-r1.ebuild |
20 |
@@ -0,0 +1,51 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI="5" |
26 |
+inherit pam systemd |
27 |
+ |
28 |
+DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system" |
29 |
+HOMEPAGE="http://mmonit.com/monit/" |
30 |
+SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="GPL-3" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" |
35 |
+IUSE="libressl pam ssl" |
36 |
+ |
37 |
+RDEPEND=" |
38 |
+ ssl? ( |
39 |
+ !libressl? ( dev-libs/openssl:0= ) |
40 |
+ libressl? ( dev-libs/libressl ) |
41 |
+ )" |
42 |
+DEPEND="${RDEPEND} |
43 |
+ sys-devel/flex |
44 |
+ sys-devel/bison |
45 |
+ pam? ( virtual/pam )" |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in" |
49 |
+} |
50 |
+ |
51 |
+src_configure() { |
52 |
+ econf $(use_with ssl) $(use_with pam) |
53 |
+} |
54 |
+ |
55 |
+src_install() { |
56 |
+ default |
57 |
+ |
58 |
+ dodoc README* |
59 |
+ dohtml -r doc/* |
60 |
+ |
61 |
+ insinto /etc; insopts -m600; doins monitrc |
62 |
+ newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit |
63 |
+ systemd_dounit "${FILESDIR}"/${PN}.service |
64 |
+ |
65 |
+ use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN} |
66 |
+} |
67 |
+ |
68 |
+pkg_postinst() { |
69 |
+ elog "Sample configurations are available at:" |
70 |
+ elog "http://mmonit.com/monit/documentation/" |
71 |
+} |