summaryrefslogtreecommitdiff
path: root/sys-cluster/poolmon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-cluster/poolmon
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-cluster/poolmon')
-rw-r--r--sys-cluster/poolmon/Manifest8
-rw-r--r--sys-cluster/poolmon/files/poolmon.conf3
-rw-r--r--sys-cluster/poolmon/files/poolmon.init17
-rw-r--r--sys-cluster/poolmon/files/poolmon.logrotate6
-rw-r--r--sys-cluster/poolmon/metadata.xml11
-rw-r--r--sys-cluster/poolmon/poolmon-0.5.ebuild28
6 files changed, 73 insertions, 0 deletions
diff --git a/sys-cluster/poolmon/Manifest b/sys-cluster/poolmon/Manifest
new file mode 100644
index 000000000000..e95d0bd753a1
--- /dev/null
+++ b/sys-cluster/poolmon/Manifest
@@ -0,0 +1,8 @@
+AUX poolmon.conf 67 SHA256 cce26febefa84d2e184786f04760cddbce373c6ebdfcba614c9c4008f705ef7c SHA512 74641c17776aa8cc3d3155d92a731da05eb9ca18c053de216ccc7b98ad684ca3aff9f8a7972955670f2b8e4210c6ac469a3a124686824efa91f6c6c537ee35b2 WHIRLPOOL 8740ef5321326cf46d5f0823ecf21ca8387aba35c1775657a38f20d2433df16c9f804ea97a447243985dcf073e9a08ddba6daf210d570b3bc19272e3692c4376
+AUX poolmon.init 416 SHA256 9183a6508d132a875dd683291f9dd29b6a578d03ead06aad677759e19337fba2 SHA512 f82e806ae9b57dc91a42e53ff1a7ce40423a48c8220616be3bf3ec0e9b2035baed2304b9e82fab0a8cc2ccd3f8e8fb325b319f587595d4c31f66db84b47f9e59 WHIRLPOOL d9e6865f98c34b20572d71aa2056856ad32a30b33188d035e97422355503f963d289647c55a9820e75d7b51c9280e47788c16aaef8489bbdd953e1e9da9b5306
+AUX poolmon.logrotate 132 SHA256 d689c9a79043d6cb5d6797fe143f1ecb59e46bd4ce48a620bc1f357b6e26dd24 SHA512 b18cca84d2d12aca84a5b53369631a34cc93d58fd74877c38f7577e68657510d741e3897e42b8ceab8c8c109916d1992dbf7bc4bb886803c9f3de7e640738590 WHIRLPOOL 28764293af9e247c6cc1667599c0901090db67e12e255d2cfc5f3351d353a21ab1bae6895de2e29fddd231218d2aadc5a0185c430b92eb74a361733b87a8e6e0
+DIST poolmon-0.5.tar.gz 6902 SHA256 7418c1486e9cf34740ca82f72f32be97eeaeb4b4ddeda74ce1972ca4735ed6dc SHA512 17faa13e6b9b42f0913673598002aa5ad65e7d35b6ed4f5d6a1bb36d7fce630a7e9f1afc6979d7a098a2b66e5943901213b5617ba6190b5b7e1e9a6a55f6cbf5 WHIRLPOOL d72866b0675724eb2787818799152a94c75ee76351db96f36f4a1bd9c4ec1c90e2e314eb2acc980c90149ca82133c2369996a14dd4386718259e7700139414ba
+EBUILD poolmon-0.5.ebuild 650 SHA256 b9177977f4d6fa39e5ec1e60ae79e255300bc69476b7d296813e0ec8612bf760 SHA512 674d185811dc2ed7709fae06e8e241072d0dc349c6a027858e47fea1c783408094398e10ad324b082d07bc42f95aab838dde7c5de6bbe38a21a56663ae07d195 WHIRLPOOL 9e834220f5e0ba6d3956b9211bc75dafdd0da2afc2817fb4eabf5c85d091fcf6d91366c8d47054b04ed847f5aa23e71a97fddcd3b4f8ce7fdedaad4d424803ad
+MISC ChangeLog 2374 SHA256 61b6a2dbc34c8937801a1a009bb6dbe60efa6610efa58fbaf415e20dabac3530 SHA512 bdb3317b98a2db353d0b3da22284ecca4123b3d1add434b2ad5b1fdc4796deb618dc0e84d67721b521f5709be84402abd8458c54d1e1f25b0ac997fe484421db WHIRLPOOL 8223012e3aef940f0d66eac82493f87d77a026656677c590046b4892b56656951f2142e73835b2533fd6896e9603c06d977a57927d75baba142e3e61ce8ec351
+MISC ChangeLog-2015 671 SHA256 132e52288fee128123afef0e8518ff41212524b9e5a716a0f714cee028e637a6 SHA512 b2080c1aedacff8614da9ceccfceaced32ba93315dc8c5432888039102dc2766f77e67c57ac37c948702cde91b3a26fe866bb1eabf5e860b64a2430e2343eda4 WHIRLPOOL 7fc758d654e749695120a15c14316ef1e5acdbee437bcac09abe8b8525c11037fba4c938754553988339376c647d324f30a8da389c509210824cca41eacdccf6
+MISC metadata.xml 341 SHA256 07d1da75d90b59be36c56557e44323cff28786773a3f4590f556fe2fe86029a1 SHA512 38660612f1c77312b67e4fbc505cbb32fe7f9052b7aeca505f8ee5ed8dba2d4e1755a9bd7f326c65de24719558d0bf13bd8921f1ab12f5b7c6b744283ad9e215 WHIRLPOOL 6f4e069c25424fef8af4461180478143aa59a918a10d2f0e10ca38dda29c75b4dcb783af32cea1e14a8e25cb123534f19813a2eeef9fcd17f42e107443971261
diff --git a/sys-cluster/poolmon/files/poolmon.conf b/sys-cluster/poolmon/files/poolmon.conf
new file mode 100644
index 000000000000..930a58c9c012
--- /dev/null
+++ b/sys-cluster/poolmon/files/poolmon.conf
@@ -0,0 +1,3 @@
+# /etc/conf.d/poolmon
+# set poolmon commandline options
+OPTIONS=""
diff --git a/sys-cluster/poolmon/files/poolmon.init b/sys-cluster/poolmon/files/poolmon.init
new file mode 100644
index 000000000000..d62c922c050e
--- /dev/null
+++ b/sys-cluster/poolmon/files/poolmon.init
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+start() {
+ local pidfile=/run/poolmon.pid
+ ebegin "Starting poolmon"
+ start-stop-daemon --pidfile "${pidfile}" --exec /usr/bin/poolmon -- ${OPTIONS}
+ eend $?
+}
+
+stop() {
+ local pidfile=/run/poolmon.pid
+ ebegin "Stopping poolmon"
+ start-stop-daemon --stop --pidfile "${pidfile}"
+ eend $?
+}
diff --git a/sys-cluster/poolmon/files/poolmon.logrotate b/sys-cluster/poolmon/files/poolmon.logrotate
new file mode 100644
index 000000000000..5925635a70c1
--- /dev/null
+++ b/sys-cluster/poolmon/files/poolmon.logrotate
@@ -0,0 +1,6 @@
+/var/log/poolmon.log {
+ missingok
+ postrotate
+ /bin/kill -HUP `cat /run/poolmon.pid 2> /dev/null` 2>/dev/null || true
+ endscript
+}
diff --git a/sys-cluster/poolmon/metadata.xml b/sys-cluster/poolmon/metadata.xml
new file mode 100644
index 000000000000..a9e709493af1
--- /dev/null
+++ b/sys-cluster/poolmon/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">brandond/poolmon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-cluster/poolmon/poolmon-0.5.ebuild b/sys-cluster/poolmon/poolmon-0.5.ebuild
new file mode 100644
index 000000000000..f22108a82c96
--- /dev/null
+++ b/sys-cluster/poolmon/poolmon-0.5.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A director mailserver pool monitoring script for Dovecot"
+HOMEPAGE="https://github.com/brandond/poolmon"
+SRC_URI="https://github.com/brandond/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ dev-perl/IO-Socket-SSL
+ net-mail/dovecot
+ "
+
+src_install() {
+ dobin poolmon
+ dodoc README
+ newinitd "${FILESDIR}"/poolmon.init poolmon
+ newconfd "${FILESDIR}"/poolmon.conf poolmon
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}"/poolmon.logrotate poolmon
+}