Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (d4c5b47107aa3e8adb192426570546ea38bcfeb2)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (d4c5b47107aa3e8adb192426570546ea38bcfeb2)
  • Date: Mon, 28 Aug 2017 14:57:20 +0000

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 4 ++++
http/wrk/BUILD | 5 +++++
http/wrk/DEPENDS | 2 ++
http/wrk/DETAILS | 20 ++++++++++++++++++++
http/wrk/HISTORY | 2 ++
http/wrk/INSTALL | 6 ++++++
http/wrk/PRE_BUILD | 6 ++++++
net/nethogs/BUILD | 9 +++++++++
net/nethogs/CONFIGURE | 1 +
net/nethogs/DEPENDS | 3 +++
net/nethogs/DETAILS | 20 ++++++++++++++++++++
net/nethogs/HISTORY | 3 +++
net/nethogs/INSTALL | 10 ++++++++++
net/nethogs/PRE_BUILD | 4 ++++
net/nethogs/raboof.gpg |binary
15 files changed, 95 insertions(+)

New commits:
commit d4c5b47107aa3e8adb192426570546ea38bcfeb2
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

nethogs: new spell, Linux 'net top' tool

commit 600d7af0a42c76aa8aad4527562310da5e086bdd
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

wrk: new spell, modern HTTP benchmarking tool

diff --git a/ChangeLog b/ChangeLog
index f32343d..4f6fa42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-08-28 Vlad Glagolev <stealth AT sourcemage.org>
+ * http/wrk: new spell, modern HTTP benchmarking tool
+ * net/nethogs: new spell, Linux 'net top' tool
+
2017-08-28 Treeve Jelbert <treeve AT sourcemage.org>
* crypto/gnupg-2.2: added

diff --git a/http/wrk/BUILD b/http/wrk/BUILD
new file mode 100755
index 0000000..6504837
--- /dev/null
+++ b/http/wrk/BUILD
@@ -0,0 +1,5 @@
+make ${OPTS} &&
+
+if list_find "${LDFLAGS}" "-s"; then
+ strip -v wrk
+fi
diff --git a/http/wrk/DEPENDS b/http/wrk/DEPENDS
new file mode 100755
index 0000000..0f71a66
--- /dev/null
+++ b/http/wrk/DEPENDS
@@ -0,0 +1,2 @@
+depends SSL "WITH_OPENSSL=${INSTALL_ROOT}/usr" &&
+depends luajit "WITH_LUAJIT=${INSTALL_ROOT}/usr"
diff --git a/http/wrk/DETAILS b/http/wrk/DETAILS
new file mode 100755
index 0000000..2fdf877
--- /dev/null
+++ b/http/wrk/DETAILS
@@ -0,0 +1,20 @@
+ SPELL=wrk
+ VERSION=4.0.2
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+ SOURCE_URL[0]=https://github.com/wg/${SPELL}/archive/${VERSION}.tar.gz
+
SOURCE_HASH=sha512:4279cf7136e2919779be3f61f462136a7a5288eac481104b844193682a8fc554581fd3942624d0be9317a3e82c82497927a124b9b4dbdf455e30d3f0cad1fdea
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ DOCS="NOTICE SCRIPTING ${DOCS}"
+ WEB_SITE=https://github.com/wg/wrk
+ ENTERED=20170828
+ LICENSE[0]=APACHE
+ KEYWORDS="http"
+ SHORT="modern HTTP benchmarking tool"
+cat << EOF
+wrk is a modern HTTP benchmarking tool capable of generating significant load
+when run on a single multi-core CPU. It combines a multithreaded design with
+scalable event notification systems such as epoll and kqueue.
+
+An optional LuaJIT script can perform HTTP request generation, response
+processing, and custom reporting.
+EOF
diff --git a/http/wrk/HISTORY b/http/wrk/HISTORY
new file mode 100644
index 0000000..f9335b4
--- /dev/null
+++ b/http/wrk/HISTORY
@@ -0,0 +1,2 @@
+2017-08-28 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, DEPENDS, {PRE_,}BUILD, INSTALL: created spell, version
4.0.2
diff --git a/http/wrk/INSTALL b/http/wrk/INSTALL
new file mode 100755
index 0000000..6428815
--- /dev/null
+++ b/http/wrk/INSTALL
@@ -0,0 +1,6 @@
+local SCRIPT_DIR="${INSTALL_ROOT}/usr/share/wrk/scripts" &&
+
+install -vm 755 wrk "${INSTALL_ROOT}/usr/bin/wrk" &&
+
+install -vm 755 -d "${SCRIPT_DIR}" &&
+install -vm 644 scripts/*.lua "${SCRIPT_DIR}"
diff --git a/http/wrk/PRE_BUILD b/http/wrk/PRE_BUILD
new file mode 100755
index 0000000..b97616a
--- /dev/null
+++ b/http/wrk/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+sedit "/^CFLAGS/s:-O2:${CFLAGS}:" Makefile &&
+
+rm -rf deps
diff --git a/net/nethogs/BUILD b/net/nethogs/BUILD
new file mode 100755
index 0000000..93da863
--- /dev/null
+++ b/net/nethogs/BUILD
@@ -0,0 +1,9 @@
+if [[ ${NETHOGS_LIB} == y ]]; then
+ make VERSION=${VERSION} LIBVERSION=${VERSION} libnethogs nethogs &&
+
+ if list_find "${LDFLAGS}" "-s"; then
+ strip -v src/libnethogs.so.0.8.5
+ fi
+else
+ make VERSION=${VERSION} nethogs
+fi
diff --git a/net/nethogs/CONFIGURE b/net/nethogs/CONFIGURE
new file mode 100755
index 0000000..d07078c
--- /dev/null
+++ b/net/nethogs/CONFIGURE
@@ -0,0 +1 @@
+config_query NETHOGS_LIB "Build and install libnethogs?" n
diff --git a/net/nethogs/DEPENDS b/net/nethogs/DEPENDS
new file mode 100755
index 0000000..77871b4
--- /dev/null
+++ b/net/nethogs/DEPENDS
@@ -0,0 +1,3 @@
+depends -sub CXX gcc &&
+depends ncurses &&
+depends libpcap
diff --git a/net/nethogs/DETAILS b/net/nethogs/DETAILS
new file mode 100755
index 0000000..8b7e7f5
--- /dev/null
+++ b/net/nethogs/DETAILS
@@ -0,0 +1,20 @@
+ SPELL=nethogs
+ VERSION=0.8.5
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+ SOURCE2=${SOURCE}.asc
+
SOURCE_URL[0]=https://github.com/raboof/${SPELL}/archive/v${VERSION}.tar.gz
+
SOURCE2_URL[0]=https://github.com/raboof/${SPELL}/releases/download/v${VERSION}/${SOURCE2}
+ SOURCE_GPG=raboof.gpg:${SOURCE2}:UPSTREAM_KEY
+ SOURCE2_IGNORE=signature
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ DOCS="DESIGN ${DOCS}"
+ DOC_DIRS=""
+ WEB_SITE=https://github.com/raboof/nethogs
+ LICENSE[0]=GPL
+ ENTERED=20170828
+ KEYWORDS="net"
+ SHORT="Linux 'net top' tool"
+cat << EOF
+NetHogs is a small 'net top' tool. Instead of breaking the traffic down per
+protocol or per subnet, like most tools do, it groups bandwidth by process.
+EOF
diff --git a/net/nethogs/HISTORY b/net/nethogs/HISTORY
new file mode 100644
index 0000000..1e2813f
--- /dev/null
+++ b/net/nethogs/HISTORY
@@ -0,0 +1,3 @@
+2017-08-28 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, DEPENDS, {PRE_,}BUILD, CONFIGURE, INSTALL, raboof.gpg:
+ created spell, version 0.8.5
diff --git a/net/nethogs/INSTALL b/net/nethogs/INSTALL
new file mode 100755
index 0000000..9d213ea
--- /dev/null
+++ b/net/nethogs/INSTALL
@@ -0,0 +1,10 @@
+if [[ ${NETHOGS_LIB} == y ]]; then
+ local SO="libnethogs.so.0.8.5" &&
+
+ make PREFIX="${INSTALL_ROOT}/usr" LIBVERSION="${VERSION}" install
install_lib &&
+
+ ln -vsf "$TRACK_ROOT/usr/lib/${SO}" "$INSTALL_ROOT/usr/lib/libnethogs.so"
&&
+ ln -vsf "$TRACK_ROOT/usr/lib/${SO}" "$INSTALL_ROOT/usr/lib/libnethogs.so.0"
+else
+ make PREFIX="${INSTALL_ROOT}/usr" install
+fi
diff --git a/net/nethogs/PRE_BUILD b/net/nethogs/PRE_BUILD
new file mode 100755
index 0000000..f003084
--- /dev/null
+++ b/net/nethogs/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+sedit "/VERSION/d" Makefile
diff --git a/net/nethogs/raboof.gpg b/net/nethogs/raboof.gpg
new file mode 100644
index 0000000..61219ec
Binary files /dev/null and b/net/nethogs/raboof.gpg differ



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (d4c5b47107aa3e8adb192426570546ea38bcfeb2), Vlad Glagolev, 08/28/2017

Archive powered by MHonArc 2.6.24.

Top of Page