# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # hatop # hatop/distinfo # hatop/files # hatop/files/patch-hatop.py # hatop/Makefile # hatop/pkg-descr # echo c - hatop mkdir -p hatop > /dev/null 2>&1 echo x - hatop/distinfo sed 's/^X//' >hatop/distinfo << 'END-of-hatop/distinfo' XMD5 (hatop-0.7.3.tar.gz) = 7f379934a8b6cb4ebbdcc8b05f3a598c XSHA256 (hatop-0.7.3.tar.gz) = 56ab28fcc460f900c5f268fbf43189bf364644f4e327cbefd963c93dcd5ec97f XSIZE (hatop-0.7.3.tar.gz) = 131613 END-of-hatop/distinfo echo c - hatop/files mkdir -p hatop/files > /dev/null 2>&1 echo x - hatop/files/patch-hatop.py sed 's/^X//' >hatop/files/patch-hatop.py << 'END-of-hatop/files/patch-hatop.py' X--- hatop.py.orig 2010-08-16 15:00:38.219112881 -0500 X+++ hatop.py 2010-08-16 15:00:29.802290549 -0500 X@@ -315,7 +315,7 @@ X (int, 'sid'), # service id (unique inside a proxy) X (int, 'throttle'), # warm up status X (int, 'lbtot'), # total number of times a server was selected X-(int, 'tracked'), # id of proxy/server if tracking is enabled X+(str, 'tracked'), # id of proxy/server if tracking is enabled X (int, 'type'), # (0=frontend, 1=backend, 2=server, 3=socket) X (int, 'rate'), # number of sessions per second X # over the last elapsed second END-of-hatop/files/patch-hatop.py echo x - hatop/Makefile sed 's/^X//' >hatop/Makefile << 'END-of-hatop/Makefile' X# New ports collection makefile for: hatop X# Date created: 2010-08-16 X# Whom: Jim Riggs X# X# $FreeBSD$ X# X XPORTNAME= hatop XPORTVERSION= 0.7.3 XCATEGORIES= sysutils net XMASTER_SITES= https://labs.feurix.org/admin/hatop/snapshot/ \ X ${MASTER_SITE_GOOGLE_CODE} X XMAINTAINER= ports@christianserving.org XCOMMENT= An interactive real-time monitoring tool for the HAProxy unix socket X XRUN_DEPENDS= ${LOCALBASE}/sbin/haproxy:${PORTSDIR}/net/haproxy X XUSE_PYTHON= yes XNO_BUILD= yes X XLICENSE= GPLv3 X XPLIST_FILES= bin/hatop XPORTDOCS= HACKING LICENSE README README.keybinds X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/hatop.py ${PREFIX}/bin/hatop X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${DOCSDIR}) X.endif X X.include END-of-hatop/Makefile echo x - hatop/pkg-descr sed 's/^X//' >hatop/pkg-descr << 'END-of-hatop/pkg-descr' XHATop is an interactive ncurses client and real-time monitoring Xstatistics displaying tool for the HAProxy unix socket. X XHATop's appearance is similar to top. It supports various modes for Xdetailed statistics of all configured proxies and services in near Xrealtime. In addition, it features an interactive CLI for the haproxy Xunix socket. This allows administrators to control the given haproxy Xinstance (change server weight, put servers into maintenance mode, Xetc.) directly out of hatop (using keybinds or the CLI) and monitor the Xresults immediately. X XWWW: http://feurix.org/projects/hatop/ END-of-hatop/pkg-descr exit