summaryrefslogtreecommitdiff
path: root/net/py-hatop
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2014-01-17 03:40:35 +0000
committerrodent <rodent@pkgsrc.org>2014-01-17 03:40:35 +0000
commitd993893fb27bdc07410664f6a52652b689114ed5 (patch)
tree6dfcbe0ed148b73f2ae18dba8e324a7269ac735f /net/py-hatop
parent8c023aeb38e3342b820ffbf3d7cb416afd293278 (diff)
downloadpkgsrc-d993893fb27bdc07410664f6a52652b689114ed5.tar.gz
Import py27-hatop-0.7.7 as net/py-hatop.
HATop is an interactive ncurses client and real-time monitoring, statistics displaying tool for the HAProxy TCP/HTTP load balancer. HATop's appearance is similar to top(1). It supports various modes for detailed statistics of all configured proxies and services in near realtime. In addition, it features an interactive CLI for the haproxy unix socket. This allows administrators to control the given haproxy instance (change server weight, put servers into maintenance mode, ...) directly out of hatop (using keybinds or the CLI) and monitor the results immediately. HATop is written in pure Python and has no external dependencies.
Diffstat (limited to 'net/py-hatop')
-rw-r--r--net/py-hatop/DESCR11
-rw-r--r--net/py-hatop/Makefile35
-rw-r--r--net/py-hatop/PLIST3
-rw-r--r--net/py-hatop/distinfo5
4 files changed, 54 insertions, 0 deletions
diff --git a/net/py-hatop/DESCR b/net/py-hatop/DESCR
new file mode 100644
index 00000000000..d57b08867e0
--- /dev/null
+++ b/net/py-hatop/DESCR
@@ -0,0 +1,11 @@
+HATop is an interactive ncurses client and real-time monitoring, statistics
+displaying tool for the HAProxy TCP/HTTP load balancer.
+
+HATop's appearance is similar to top(1). It supports various modes for detailed
+statistics of all configured proxies and services in near realtime. In addition,
+it features an interactive CLI for the haproxy unix socket. This allows
+administrators to control the given haproxy instance (change server weight, put
+servers into maintenance mode, ...) directly out of hatop (using keybinds or
+the CLI) and monitor the results immediately.
+
+HATop is written in pure Python and has no external dependencies.
diff --git a/net/py-hatop/Makefile b/net/py-hatop/Makefile
new file mode 100644
index 00000000000..fb95d2ccb7c
--- /dev/null
+++ b/net/py-hatop/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2014/01/17 03:40:35 rodent Exp $
+
+DISTNAME= hatop-0.7.7
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= net
+MASTER_SITES= http://hatop.googlecode.com/files/
+
+MAINTAINER= rodent@NetBSD.org
+HOMEPAGE= http://feurix.org/projects/hatop/
+COMMENT= Interactive client and monitoring tool for HAProxy
+LICENSE= gnu-gpl-v3
+
+USE_LANGUAGES= # none
+NO_BUILD= yes
+
+PYTHON_VERSIONS_ACCEPTED= 27 26
+REPLACE_PYTHON= bin/hatop
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
+PY_PATCHPLIST= yes
+PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
+
+do-configure:
+ # XXX: Blank, but we can't define NO_CONFIGURE and use REPLACE_PYTHON...
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/hatop \
+ ${DESTDIR}${PREFIX}/bin/hatop${PYVERSSUFFIX}
+ ${INSTALL_MAN} ${WRKSRC}/man/hatop.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/hatop${PYVERSSUFFIX}.1
+
+DEPENDS+= haproxy>=1.4:../../net/haproxy
+DEPENDS+= ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/py-hatop/PLIST b/net/py-hatop/PLIST
new file mode 100644
index 00000000000..67c4d500ed8
--- /dev/null
+++ b/net/py-hatop/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2014/01/17 03:40:35 rodent Exp $
+bin/hatop${PYVERSSUFFIX}
+man/man1/hatop${PYVERSSUFFIX}.1
diff --git a/net/py-hatop/distinfo b/net/py-hatop/distinfo
new file mode 100644
index 00000000000..698584eb32f
--- /dev/null
+++ b/net/py-hatop/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/01/17 03:40:35 rodent Exp $
+
+SHA1 (hatop-0.7.7.tar.gz) = 1d4f46cc8613746e9310debf0a8632f366619710
+RMD160 (hatop-0.7.7.tar.gz) = 38ea2cca4f82c6481cfe4b3025884e9848b5acad
+Size (hatop-0.7.7.tar.gz) = 134143 bytes