summaryrefslogtreecommitdiff
path: root/net-analyzer/slurm
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 /net-analyzer/slurm
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/slurm')
-rw-r--r--net-analyzer/slurm/Manifest12
-rw-r--r--net-analyzer/slurm/files/slurm-0.3.3-gentoo.patch48
-rw-r--r--net-analyzer/slurm/files/slurm-0.3.3-overflow.patch17
-rw-r--r--net-analyzer/slurm/files/slurm-0.3.3-theme.patch16
-rw-r--r--net-analyzer/slurm/files/slurm-0.4.3-tinfo.patch11
-rw-r--r--net-analyzer/slurm/files/slurm-0.4.3-version.patch7
-rw-r--r--net-analyzer/slurm/metadata.xml11
-rw-r--r--net-analyzer/slurm/slurm-0.3.3-r2.ebuild37
-rw-r--r--net-analyzer/slurm/slurm-0.4.3.ebuild37
9 files changed, 196 insertions, 0 deletions
diff --git a/net-analyzer/slurm/Manifest b/net-analyzer/slurm/Manifest
new file mode 100644
index 000000000000..fcdd1267ace2
--- /dev/null
+++ b/net-analyzer/slurm/Manifest
@@ -0,0 +1,12 @@
+AUX slurm-0.3.3-gentoo.patch 1999 SHA256 a893f8b754c45e5cab7e2908536cfac5be27a97d456d6f53e01f4129c553045b SHA512 cafc05ccdd2adeaab03007698662a2403031bcb1d0e825210a41473a76296674d8522206fc2ffe7dd82b772fd3dbec02d4d906427f94b40fa2eefa4f08235059 WHIRLPOOL 2035120e2fd34a8283c788e5d11c7fd984cfd96ad18a541232f2f4f8dcc67dcc3053222a6ed1bc251fe7537c26724b5b25d56000157025510ce5d9c01cde2e11
+AUX slurm-0.3.3-overflow.patch 596 SHA256 7904579870c73f286934b6f35c5deb6fb4dcaa5ae2428359e23bd45f935e4adf SHA512 6211306f2e6787cc8c4f4e02e4af840003db6b90f32b6a7191e019300a00e460c8a16b13e2ad24c0f51bd5af7de9f7d85ede44b6f4de3d1c8544f9deacb29890 WHIRLPOOL fea7567f6806a69659b89e9a5914bfad096c47d2cac9fc37dc88ef90d1711451b4938891ab69531bcedfbb463e278fdef36944f3e7911a30ace3239edbc99c80
+AUX slurm-0.3.3-theme.patch 492 SHA256 ff309dae3479b3de62b3577a9eab2d76125f7d556eae475af5272325429db9f4 SHA512 c05919c8c7dfd8f79d6d87d22a79900aa4f284b30a2fd9b8099e575956d242443f2aff51e99ce9f48fe236f9b3d7596904d7bf4ec77a75c6442867a0a231a179 WHIRLPOOL ad4a543c8a78352debd418341b2ed8645be5d4279dc33c10cdf6ee2e01dade52bfc57ac25da3e5d4c0b5d6fa70d4b377278eb1825fc299c9e765bb072c844b85
+AUX slurm-0.4.3-tinfo.patch 267 SHA256 4cca0b094a2f2fc8c1c5028e7dd69bed9b484aaeb5ae700af6bbf871fe9bba5c SHA512 fc348f28590efebb86993d7187539e949d052d8959eb36765d6dc3a889fff22f7d6b72bc8337d6a93f22426bf590f2a2239ed4426b4a26949624bb1f9e48ac14 WHIRLPOOL 0d94f521b655de4198a7550315fc9f00d8418c295636e6c8d19cac5cd69623242a512330aa507e08054d05f9ab48655a6ff4862f15d3223fc5004386d50efbff
+AUX slurm-0.4.3-version.patch 170 SHA256 de415c2699fc60f5db01c69f72ba19e49f60323de37ee807673db2510ac50905 SHA512 40f2e3bc6c2136f7bc91a719a5e8ffcaef4112ff9cacc5a61ebecbf9d3272b1b3aac425b9e22cafb4fc0b630aec2338e1c2ada27d9d2828fbbc90af215cb936b WHIRLPOOL 208633a4196f19118825d3f6bcd6819a4e638b650bc31d78684cc236afe5e2648e814be269afc3006203b2eadc4e7bb566034ef6bb90af51794ced48e2dacbc6
+DIST slurm-0.3.3.tar.gz 122839 SHA256 b25889aa1910b1bb48e4eafdac0c810bc02e8b98ddb2ade0aed2ec64672d6834 SHA512 67ffef9d0fc6239e2a742b2020a2a1fa913a6f0d681ffb7fd00611265e60b39f83b18cbd782ce841b6b39ed0db2c40cd6410d7f5d9408bf0eb0361b95949a8a3 WHIRLPOOL a35d3cb726bf390f90c7f095c34b94b48cc0c3f59a8f8b88aa6ce31c033f74542e8ce7cefb1ecc15ea13ad5addecd9c0a321bf1e2834b582ff770fcfe9c4e1e2
+DIST slurm-0.4.3.tar.gz 36076 SHA256 f7092c378f85e473192d0aa3db4801077e0f9e148a7448cc2247cbdf639874aa SHA512 f55005e2e2acebf1b7be0f7106511f83123f4df30305d00495940220f99394ddd48193ee4985c91604f294487c181f6efebe9452137f7df5b9675d2c3388892f WHIRLPOOL be565768c3ac5af46388beba98e0b67c425bab15f934b38f1ef425e18eb18538944fba69fc98222f66cdc20620e9d5947aaf22e08d37c753dba960ce914b579f
+EBUILD slurm-0.3.3-r2.ebuild 771 SHA256 531a9ffb3799b63c9ed47f3337442fdf72d84066103b75af82b31633b7e71a5c SHA512 2e528680ff2ddd6b31c4b8c2ad49a4b3a21e7da0d8f504100f6588cbe480fcfdd5f2e3a58a60c26360313c526cf9dddb4c77746e1e5938766e7ea1277b36accc WHIRLPOOL c7aa91f70ad31799f4412de2275d11b88ca1959e6729225e30252e372f18d877cccd7f76abca9473940c88820d901a8a7cbe3c8d2e54176339b24d4496f6771d
+EBUILD slurm-0.4.3.ebuild 667 SHA256 9266b59357277f5795d28b01dea9a05436fe7cd1d197efeff0f716129a53be6d SHA512 1ad6cec33eb1f57a95cef30ab022a26c7b1dd2d927ffd8468f75a4e5ac37a3eb8ffa5a48b120ea803e8999dd8dc4b03342de18255ef7b64e2d459cdb1c509885 WHIRLPOOL 2df7fd8dce939eef8d5580fcda65561f50dd461041491d14741a34af2d9bf24e823b7d2074596f78f19c0d7f8c1f98f3bc59e63892119cd76d8a77ee3c166be8
+MISC ChangeLog 2589 SHA256 afc556109e538ae88eafeb976e03392403135f55c2d5cef91b380c2ab13811ae SHA512 dd9b06d63ab149bd901776cb38ad751f0f839e36bc9abdc22fbb83760f22640f0bd4741341c25404cb6a345fd428b92555379280990c44143cebdf81a086a23a WHIRLPOOL 7bfb599651a14693eb838fa33bf7718e65258f11aca97f015471f862a9147b1bfaeb96ac442edca13940564d39090955b8c2d31464cbfd24020172ded704d42f
+MISC ChangeLog-2015 4175 SHA256 d8fa46b8201ab890a3d9ed13207b358827cf82b28cc3624cd394183931a99fcd SHA512 034559f9ec974cc22ca218a403a99a227c2027f2c3a0a1b6afb6a28d882a48665f36bf2df900a94636edd66db1029d5cd4748f374cef817958fada21ba5a7eb0 WHIRLPOOL ce0752c57ccc3b41ed5555ac77dea1e0f8fb4b9d5be73049d63fd0156b77b4847fd5293f7d3b7b0bb900eddf0c566b49e7b7cffd82e290c4b9599f08f531c8fc
+MISC metadata.xml 360 SHA256 9d063519565f972e7b571d0006680641b0ec7fe4392ede8a95679a51f0f7c3f1 SHA512 bcef8916863832f9192e7df51f693b87836b74663da01a1b7f330569e10ffed23de36a6c5ffbde968ec4270bd2fcacec3f12f78b700cdbfc001c34862e497f12 WHIRLPOOL 0e6021208164d8eb93a14e3b8796d7ba652aa56d47b6870fb0f18d9828f21c2c2a2cd5eb6665fa25637a696761640ff49c4eb7d0ecde189c85a4ae5aba06cc98
diff --git a/net-analyzer/slurm/files/slurm-0.3.3-gentoo.patch b/net-analyzer/slurm/files/slurm-0.3.3-gentoo.patch
new file mode 100644
index 000000000000..bd97a10c1e81
--- /dev/null
+++ b/net-analyzer/slurm/files/slurm-0.3.3-gentoo.patch
@@ -0,0 +1,48 @@
+--- a/configure.in
++++ b/configure.in
+@@ -40,31 +40,6 @@
+ fi
+ AC_DEFINE(OSTYPE, ["${OSTYPE}"], [The operating system to build for])
+
+-for cursespath in /usr/include/ncurses.h /usr/local/include/ncurses.h /usr/local/include/ncurses/ncurses.h /opt/include/ncurses.h /opt/include/curses.h /usr/include/curses.h /usr/local/include/curses.h /dev/null
+-do
+- test -f "${cursespath}" && break
+-done
+-case ${cursespath} in
+- /usr/include/*)
+- CFLAGS="$CFLAGS -I/usr/include"
+- LDFLAGS=""
+- ;;
+- /usr/local/include/ncurses/*)
+- CFLAGS="${CFLAGS} -I/usr/local/include/ncurses"
+- LDFLAGS="-L/usr/local/lib"
+- SOLLDFLAGS="-R/usr/local/lib"
+- ;;
+- /usr/local/include/*)
+- CFLAGS="${CFLAGS} -I/usr/local/include"
+- LDFLAGS="-L/usr/local/lib"
+- SOLLDFLAGS="-R/usr/local/lib"
+- ;;
+- /opt/include/*)
+- CFLAGS="${CFLAGS} -I/opt/include"
+- LDFLAGS="-L/opt/lib"
+- SOLLDFLAGS="-R/opt/lib"
+- ;;
+-esac
+ # add Slowlaris -R and libraries to LDFLAGS
+ if test ${OSTYPE} = "solaris" ; then
+ LDFLAGS="${LDFLAGS} ${SOLLDFLAGS} -lnsl -lsocket -lkstat"
+@@ -74,7 +49,12 @@
+ ncurses_support="no"
+ curses_support="no"
+ color_support="no"
+-AC_CHECK_LIB(ncurses, use_default_colors, LDFLAGS="$LDFLAGS -lncurses"; CFLAGS="$CFLAGS -D_HAVE_NCURSES -D_HAVE_NCURSES_COLOR"; color_support="yes"; ncurses_support="yes", AC_CHECK_LIB(ncurses, use_default_colors, LDFLAGS="$LDFLAGS -lncurses"; CFLAGS="$CFLAGS -D_HAVE_NCURSES"; ncurses_support="yes"; echo "NO TRANSPARENCY SUPPORT in this ncurses lib", AC_CHECK_LIB(curses, initscr, LDFLAGS="$LDFLAGS -lcurses"; CFLAGS="$CFLAGS -D_HAVE_CURSES"; curses_support="yes"; echo "NO TRANSPARENCY SUPPORT in curses lib")))
++PKG_CHECK_MODULES(ncurses,ncurses,
++ LIBS="$LIBS $ncurses_LIBS"
++ AC_DEFINE(HAVE_NCURSES, 1, [Define if we have ncurses])
++ AC_DEFINE(HAVE_NCURSES_COLOR, 1, [We want color])
++ color_support="yes"; ncurses_support="yes"
++ ,AC_MSG_ERROR([ncurses not found]))
+
+ # disable color support on Solaris for now
+ if test ${OSTYPE} = "solaris" ; then
diff --git a/net-analyzer/slurm/files/slurm-0.3.3-overflow.patch b/net-analyzer/slurm/files/slurm-0.3.3-overflow.patch
new file mode 100644
index 000000000000..f9adc1d9bf71
--- /dev/null
+++ b/net-analyzer/slurm/files/slurm-0.3.3-overflow.patch
@@ -0,0 +1,17 @@
+--- a/src/linux.c
++++ b/src/linux.c
+@@ -68,11 +68,11 @@
+
+ /* do not parse the first two lines as they only contain static garbage */
+ fseek(proc_net_dev, 0, SEEK_SET);
+- fgets(buffer, BUFSIZ-1, proc_net_dev);
+- fgets(buffer, BUFSIZ-1, proc_net_dev);
++ fgets(buffer, BUFSIZE-1, proc_net_dev);
++ fgets(buffer, BUFSIZE-1, proc_net_dev);
+
+ interfacefound = 0;
+- while (fgets(buffer, BUFSIZ-1, proc_net_dev) != NULL)
++ while (fgets(buffer, BUFSIZE-1, proc_net_dev) != NULL)
+ {
+ /* find the device name and substitute ':' with '\0' */
+ ptr = buffer;
diff --git a/net-analyzer/slurm/files/slurm-0.3.3-theme.patch b/net-analyzer/slurm/files/slurm-0.3.3-theme.patch
new file mode 100644
index 000000000000..131554ee57f7
--- /dev/null
+++ b/net-analyzer/slurm/files/slurm-0.3.3-theme.patch
@@ -0,0 +1,16 @@
+--- a/theme.c
++++ b/theme.c
+@@ -70,13 +70,7 @@
+ if ((f = fopen(filename, "r")) == NULL)
+ {
+ bzero(&filename, BUFSIZ);
+-#ifdef __NetBSD__
+- snprintf(filename, BUFSIZ, "/usr/pkg/share/slurm/%s.theme", name);
+-#elif __Debian__
+ snprintf(filename, BUFSIZ, "/usr/share/slurm/%s.theme", name);
+-#else
+- snprintf(filename, BUFSIZ, "/usr/local/share/slurm/%s.theme", name);
+-#endif
+ if ((f = fopen(filename, "r")) == NULL)
+ error(ERR_FATAL, "cannot find theme '%s'", name);
+ }
diff --git a/net-analyzer/slurm/files/slurm-0.4.3-tinfo.patch b/net-analyzer/slurm/files/slurm-0.4.3-tinfo.patch
new file mode 100644
index 000000000000..c1a1233f177b
--- /dev/null
+++ b/net-analyzer/slurm/files/slurm-0.4.3-tinfo.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -25,7 +25,7 @@
+
+ add_executable(slurm ${SLURM_SOURCES})
+
+-target_link_libraries(slurm ncurses)
++target_link_libraries(slurm ${CURSES_LIBRARY} ${CURSES_EXTRA_LIBRARY})
+
+ # install
+ install(TARGETS slurm DESTINATION bin)
diff --git a/net-analyzer/slurm/files/slurm-0.4.3-version.patch b/net-analyzer/slurm/files/slurm-0.4.3-version.patch
new file mode 100644
index 000000000000..2266cad19356
--- /dev/null
+++ b/net-analyzer/slurm/files/slurm-0.4.3-version.patch
@@ -0,0 +1,7 @@
+--- a/config.h
++++ b/config.h
+@@ -1,2 +1,2 @@
+-#define PACKAGE_VERSION "0.4.3+git"
+-#define VERSION "0.4.3+git"
++#define PACKAGE_VERSION "0.4.3"
++#define VERSION "0.4.3"
diff --git a/net-analyzer/slurm/metadata.xml b/net-analyzer/slurm/metadata.xml
new file mode 100644
index 000000000000..7312d8a52540
--- /dev/null
+++ b/net-analyzer/slurm/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="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mattthias/slurm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-analyzer/slurm/slurm-0.3.3-r2.ebuild b/net-analyzer/slurm/slurm-0.3.3-r2.ebuild
new file mode 100644
index 000000000000..b8f2e06dde3e
--- /dev/null
+++ b/net-analyzer/slurm/slurm-0.3.3-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Realtime network interface monitor based on FreeBSD's pppstatus"
+HOMEPAGE="http://www.wormulon.net/projects/slurm"
+SRC_URI="http://www.wormulon.net/files/code/slurm/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+
+RDEPEND="sys-libs/ncurses"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gentoo.patch \
+ "${FILESDIR}"/${P}-overflow.patch \
+ "${FILESDIR}"/${P}-theme.patch
+ eautoreconf
+}
+
+src_install() {
+ dobin slurm
+
+ insinto /usr/share/${PN}
+ doins themes/*.theme
+
+ doman slurm.1
+ dodoc AUTHORS ChangeLog FAQ KEYS README THANKS THEMES.txt TODO
+}
diff --git a/net-analyzer/slurm/slurm-0.4.3.ebuild b/net-analyzer/slurm/slurm-0.4.3.ebuild
new file mode 100644
index 000000000000..91c9d7933c20
--- /dev/null
+++ b/net-analyzer/slurm/slurm-0.4.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils
+
+DESCRIPTION="Realtime network interface monitor based on FreeBSD's pppstatus"
+HOMEPAGE="https://github.com/mattthias/slurm"
+SRC_URI="${HOMEPAGE}/archive/upstream/${PN}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+ sys-libs/ncurses:*
+"
+DEPEND="
+ ${RDEPEND}
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.3.3-overflow.patch
+ "${FILESDIR}"/${P}-tinfo.patch
+ "${FILESDIR}"/${P}-version.patch
+)
+DOCS=(
+ AUTHORS
+ ChangeLog
+ FAQ
+ KEYS
+ README
+ THANKS
+ THEMES.txt
+ TODO
+)
+
+S=${WORKDIR}/${PN}-upstream