diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-11-01 13:55:37 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-11-01 13:55:42 +0000 |
commit | b20d58f4e643d155ed97a164ecc89b56444c9a8f (patch) | |
tree | 492f0e733123ebd09cb83c1273e0c2984281ea4c /testing | |
parent | 7467d292063c766cc80129520e9ca22c9c096705 (diff) | |
download | aports-b20d58f4e643d155ed97a164ecc89b56444c9a8f.tar.bz2 aports-b20d58f4e643d155ed97a164ecc89b56444c9a8f.tar.xz |
main/monit: move to main and add monitrc
Diffstat (limited to 'testing')
-rw-r--r-- | testing/monit/APKBUILD | 54 | ||||
-rw-r--r-- | testing/monit/monit.initd | 39 |
2 files changed, 0 insertions, 93 deletions
diff --git a/testing/monit/APKBUILD b/testing/monit/APKBUILD deleted file mode 100644 index 62e78baa75..0000000000 --- a/testing/monit/APKBUILD +++ /dev/null @@ -1,54 +0,0 @@ -# Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: -pkgname=monit -pkgver=5.6 -pkgrel=0 -pkgdesc="Managing and monitoring on a UNIX system" -url="http://mmonit.com/monit/" -arch="all" -license="AGPL" -depends="" -depends_dev="openssl-dev" -makedepends="$depends_dev" -install="" -subpackages="$pkgname-doc" -source="http://mmonit.com/monit/dist/monit-$pkgver.tar.gz - $pkgname.initd" - -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ - --without-pam \ - || return 1 - make || return 1 -} - -package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 - install -Dm 755 "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 - rm -f "$pkgdir"/usr/lib/*.la -} - -md5sums="19dfc1ce8512e832134d06eedd96ba50 monit-5.6.tar.gz -c3162a769081f3759e3fae2a672a8a61 monit.initd" -sha256sums="38e09bd8b39abc59e6b9a9bb7a78f7eac2b02a92f4de1f3a6dc24e84dfedae0d monit-5.6.tar.gz -78c013bb1258895a262c670a730e1319ea0f1140bbc3ca2f8dfc85ec02f923a1 monit.initd" -sha512sums="36933b6560860eac39421a56726c8748e2ce0f16ee51149828e6ffcb77edf3ce73394c2b58e208f6614712e7c6e0e114bc92e911794503b89793b225199193b8 monit-5.6.tar.gz -20fb54b251fd97e8014a35940a8cab1ca0de4c1ec3bcc05d2a9091585187759c1ce77cd5f872dde01fa91118d61e9ed3ec0650d09d7e767e78b42c68c1d35b64 monit.initd" diff --git a/testing/monit/monit.initd b/testing/monit/monit.initd deleted file mode 100644 index 4163c988b8..0000000000 --- a/testing/monit/monit.initd +++ /dev/null @@ -1,39 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/files/monit.initd-5.0-r1,v 1.2 2011/12/31 16:28:50 idl0r Exp $ - -extra_commands="configtest" -extra_started_commands="reload" - -depend() { - use net -} - -configtest() { - /usr/bin/monit -t 1>/dev/null 2>&1 - ret=$? - if [ $ret -ne 0 ]; then - eerror "${SVCNAME} has detected an error in your setup:" - /usr/bin/monit -t - fi - return $ret -} - -start() { - ebegin "Starting monit" - start-stop-daemon --start --quiet --exec /usr/bin/monit >/dev/null 2>&1 - eend $? -} - -stop() { - ebegin "Stopping monit" - start-stop-daemon --stop --quiet --exec /usr/bin/monit - eend $? -} - -reload() { - ebegin "Reloading monit" - /usr/bin/monit -c /etc/monitrc reload >/dev/null 2>&1 - eend $? -} |