summaryrefslogtreecommitdiff
path: root/sys-cluster/wulfware
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 /sys-cluster/wulfware
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-cluster/wulfware')
-rw-r--r--sys-cluster/wulfware/Manifest6
-rw-r--r--sys-cluster/wulfware/files/wulfware-2.6.0-opts_and_strip.patch142
-rw-r--r--sys-cluster/wulfware/metadata.xml5
-rw-r--r--sys-cluster/wulfware/wulfware-2.6.0.ebuild52
4 files changed, 205 insertions, 0 deletions
diff --git a/sys-cluster/wulfware/Manifest b/sys-cluster/wulfware/Manifest
new file mode 100644
index 000000000000..fc29e951c6be
--- /dev/null
+++ b/sys-cluster/wulfware/Manifest
@@ -0,0 +1,6 @@
+AUX wulfware-2.6.0-opts_and_strip.patch 5085 SHA256 59b1ddb5492c7e4f0475b36dd37a9138dd43bd5ae231685ee04db82c4dad7600 SHA512 2c2f897374a5a81feef97a0db425961b4e58cbc62cfebe026dd3661bacd1737ce5e023385f0e6725160087c9a549c37c23be02cdfa0c680b473b94cd6ed212a0 WHIRLPOOL 2619ba1ce5e3e9300c7a5e7b9a5fd8f54d97b81d44e591e34dfed97b1fbb2b29e299532e8c30392484af0adbeeea44e0d5b8dbec7907cedaffcb8b9aba95e4f4
+DIST wulfware-2.6.0.tgz 469000 SHA256 b89fe5bd46a687811ac682a59b63d0fac9e9b4218eaa1d6ffbae56590b71cc9c SHA512 626314124c836ee937f860a4093272d5b6e12b5d3aca631647bde6ef03880e2dd7916ab2805f34c4863e915ea3295e5c5d69ced9c5ec05b224cdf849738c78cd WHIRLPOOL dfa8eede62d7cc7b2f57dfb52d46d92a808dcc4913c28f35e3d05b8b3b0534f56534061b30ba944c1d8e00a92ebb0ee5f418e05de2b276abf2559bfee2d731ad
+EBUILD wulfware-2.6.0.ebuild 1309 SHA256 e47b7315fb09d1a5ab8daaaa549bf2801882132885098abf603b4b55866d5b24 SHA512 3db95ca5197c7c96aef901e3658a36e2bf85c8784803e118c12328454863c34322c4bea833d24fa0ac07edc88d76c954072713957b1d574c59b1551cec125d34 WHIRLPOOL 4fba5b0bef9582c24865f72c5eccf3c21217a1eba27a2ae626b372b115d578e43cfbfc8b24bdfdfe4f0a78f36f51964fe30f67eb39d6092c86a52dfbd10f053e
+MISC ChangeLog 2574 SHA256 0743acfcc814d8be8512e7155bf8c7305f9cb2da4a4a6493d417e4baf6a60b93 SHA512 dce5c6a5ad95b3a778343511ab34722d94da1bd92348185c954ee1af3713e655ce6677007e6c516b5d0c19db7b7adecfa192a4693e5e521ba13ae7d6ecfaf36d WHIRLPOOL a4234e8b555cfdc9717089f10dd645f78a0f80315819752b857611ca4b0c91cf7950d97c7e55f3d3e79b874e75f246472217d380fa5a126f093c522500ab477e
+MISC ChangeLog-2015 844 SHA256 aad088cbee9290b217b2980e5836f9310f790ca581ba8a74299b5a49e617301c SHA512 89dda96bdea1d5bb626864d99990bb8693383614d757daa91ea115e42c8f8dde43058c1c4e40bde7fa238dde21e65a041ede27756157e7777612fe8a03ad4fac WHIRLPOOL e77856838d19a096ded22b2ad63ca80f8fe00cd8af96246cd034544fa14b9b2e950df1009432e86d5d443b6130522960b86884512b7fa57c5c8ded79803d6958
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/sys-cluster/wulfware/files/wulfware-2.6.0-opts_and_strip.patch b/sys-cluster/wulfware/files/wulfware-2.6.0-opts_and_strip.patch
new file mode 100644
index 000000000000..bc26b7baa997
--- /dev/null
+++ b/sys-cluster/wulfware/files/wulfware-2.6.0-opts_and_strip.patch
@@ -0,0 +1,142 @@
+diff -ur wulfware-2.6.0.orig/libwulf/Makefile.am wulfware-2.6.0/libwulf/Makefile.am
+--- wulfware-2.6.0.orig/libwulf/Makefile.am 2007-07-12 00:58:25.000000000 +0300
++++ wulfware-2.6.0/libwulf/Makefile.am 2008-05-22 16:25:18.000000000 +0300
+@@ -48,14 +48,14 @@
+ # Define parameters and directives needed in compile/link steps.
+ #========================================================================
+ # C Compiler
+-CC = gcc
++CC ?= gcc
+
+ # Compile flags. -fpic creates "position independent code" for
+ # shared libraries!
+-CFLAGS = -O3 -I/usr/include/libxml2 -I ../include $(DEFINES)
++CFLAGS += -I/usr/include/libxml2 -I ../include $(DEFINES)
+
+ # Linker flags
+-LDFLAGS = -g -fpic --shared -Wl,-soname,$(PROGLIB_SONAME)
++LDFLAGS += -fpic --shared -Wl,-soname,$(PROGLIB_SONAME)
+
+ # Libraries
+ LIBS = -lpthread -lxml2 -lm
+@@ -110,7 +110,7 @@
+ install: $(PROGLIB_SO_VERSION) $(PROGMAN)
+ (install -d $(libdir); \
+ install -m 755 $(PROGLIB_SO_VERSION) $(libdir)/$(PROGLIB_SO_VERSION); \
+- ln -sf $(libdir)/$(PROGLIB_SO_VERSION) $(libdir)/$(PROGLIB_SO); \
++ ln -sf $(PROGLIB_SO_VERSION) $(libdir)/$(PROGLIB_SO); \
+ install -d $(includedir)/wulfware; \
+ install -m 644 ../include/wulfware/*.h $(includedir)/wulfware; \
+ install -d $(prefix)/share/man/man3; \
+diff -ur wulfware-2.6.0.orig/wulf2html/Makefile.am wulfware-2.6.0/wulf2html/Makefile.am
+--- wulfware-2.6.0.orig/wulf2html/Makefile.am 2007-07-12 00:58:25.000000000 +0300
++++ wulfware-2.6.0/wulf2html/Makefile.am 2008-05-22 12:52:36.000000000 +0300
+@@ -62,8 +62,7 @@
+ echo "Clean does nothing"
+
+ install : $(PROGRAM)
+- (strip $(PROGRAM);\
+- install -d $(prefix)/bin; \
++ (install -d $(prefix)/bin; \
+ install -m 755 $(PROGRAM) $(prefix)/bin; \
+ install -d $(sysconfdir); \
+ install -d $(sysconfdir)/init.d; \
+diff -ur wulfware-2.6.0.orig/wulflogger/Makefile.am wulfware-2.6.0/wulflogger/Makefile.am
+--- wulfware-2.6.0.orig/wulflogger/Makefile.am 2007-07-12 00:58:25.000000000 +0300
++++ wulfware-2.6.0/wulflogger/Makefile.am 2008-05-22 16:25:14.000000000 +0300
+@@ -54,13 +54,13 @@
+ # Define parameters and directives needed in compile/link steps.
+ #========================================================================
+ # C Compiler
+-CC = gcc
++CC ?= gcc
+
+ # Compile flags
+-CFLAGS = -O3 -I/usr/include/libxml2 -I ../include $(DEFINES)
++CFLAGS += -I/usr/include/libxml2 -I ../include $(DEFINES)
+
+ # Linker flags
+-LDFLAGS =
++LDFLAGS +=
+
+ # Libraries
+ LIBS = -L ../libwulf -lwulf -lpthread -lcurses -lxml2 -lm
+@@ -108,8 +108,7 @@
+ - rm -f core $(PROGRAM) *.o $(PROGRAM).1.gz
+
+ install : $(PROGRAM)
+- (strip $(PROGRAM);\
+- install -d $(prefix)/bin; \
++ (install -d $(prefix)/bin; \
+ install -m 755 $(PROGRAM) $(prefix)/bin; \
+ install -d $(prefix)/share/man/man1; \
+ gzip -c -9 $(PROGRAM).1 > $(PROGRAM).1.gz; \
+diff -ur wulfware-2.6.0.orig/wulfstat/Makefile.am wulfware-2.6.0/wulfstat/Makefile.am
+--- wulfware-2.6.0.orig/wulfstat/Makefile.am 2007-07-12 00:58:25.000000000 +0300
++++ wulfware-2.6.0/wulfstat/Makefile.am 2008-05-22 16:23:57.000000000 +0300
+@@ -54,13 +54,13 @@
+ # Define parameters and directives needed in compile/link steps.
+ #========================================================================
+ # C Compiler
+-CC = gcc
++CC ?= gcc
+
+ # Compile flags
+-CFLAGS = -O3 -I/usr/include/libxml2 -I ../include $(DEFINES)
++CFLAGS += -I/usr/include/libxml2 -I ../include $(DEFINES)
+
+ # Linker flags
+-LDFLAGS =
++LDFLAGS +=
+
+ # Libraries
+ LIBS = -L ../libwulf -lwulf -lpthread -lcurses -lxml2 -lm
+@@ -108,8 +108,7 @@
+ - rm -f core $(PROGRAM) *.o $(PROGRAM).1.gz
+
+ install : $(PROGRAM)
+- (strip $(PROGRAM);\
+- install -d $(prefix)/bin; \
++ (install -d $(prefix)/bin; \
+ install -m 755 $(PROGRAM) $(prefix)/bin; \
+ install -d $(prefix)/share/man/man1; \
+ gzip -c -9 $(PROGRAM).1 > $(PROGRAM).1.gz; \
+diff -ur wulfware-2.6.0.orig/xmlsysd/Makefile.am wulfware-2.6.0/xmlsysd/Makefile.am
+--- wulfware-2.6.0.orig/xmlsysd/Makefile.am 2007-07-12 00:58:25.000000000 +0300
++++ wulfware-2.6.0/xmlsysd/Makefile.am 2008-05-22 16:28:30.000000000 +0300
+@@ -60,13 +60,13 @@
+ # Define parameters and directives needed in compile/link steps.
+ #========================================================================
+ # C Compiler
+-CC = gcc
++CC ?= gcc
+
+ # Compile flags
+-CFLAGS = -O3 -I/usr/include/libxml2 $(DEFINES)
++CFLAGS += -I/usr/include/libxml2 $(DEFINES)
+
+ # Linker flags
+-LDFLAGS =
++LDFLAGS +=
+
+ # Libraries
+ LIBS = -lxml2 -lz -lm
+@@ -79,7 +79,7 @@
+ all: $(PROGRAM)
+
+ $(PROGRAM): $(OBJECTS) $(INCLUDES)
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(LIBS) $(OBJECTS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
+
+ #========================================================================
+ # The only safe place to do commits is in the toplevel directory
+@@ -109,8 +109,7 @@
+ # Application installation.
+ #========================================================================
+ install : $(PROGRAM)
+- (strip $(PROGRAM); \
+- install -d $(sbindir); \
++ (install -d $(sbindir); \
+ install -m 755 $(PROGRAM) $(sbindir); \
+ install -d $(sysconfdir); \
+ install -d $(sysconfdir)/xinetd.d; \
diff --git a/sys-cluster/wulfware/metadata.xml b/sys-cluster/wulfware/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/sys-cluster/wulfware/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/sys-cluster/wulfware/wulfware-2.6.0.ebuild b/sys-cluster/wulfware/wulfware-2.6.0.ebuild
new file mode 100644
index 000000000000..2bf28cbab2f2
--- /dev/null
+++ b/sys-cluster/wulfware/wulfware-2.6.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit autotools eutils multilib toolchain-funcs
+
+DESCRIPTION="Applications to monitor on a beowulf- or GRID-style clusters"
+HOMEPAGE="http://www.phy.duke.edu/~rgb/Beowulf/wulfware.php"
+SRC_URI="http://www.phy.duke.edu/~rgb/Beowulf/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/libxml2
+ sys-libs/ncurses
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ !sys-cluster/wulfstat
+ !sys-cluster/xmlsysd"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-opts_and_strip.patch
+ eautoreconf
+}
+
+src_compile() {
+ tc-export CC
+ econf --disable-dependency-tracking
+ emake -j1 || die "emake failed."
+}
+
+src_install() {
+ emake prefix="${D}/usr" libdir="${D}/usr/$(get_libdir)" \
+ includedir="${D}/usr/include" sysconfdir="${D}/etc" \
+ install || die "emake install failed."
+
+ dodoc AUTHORS ChangeLog NEWS NOTES README xmlsysd/DESIGN
+
+ # FIXME: Update to Gentoo style init script.
+ rm -rf "${D}"/etc/init.d/wulf2html
+}
+
+pkg_postinst() {
+ elog "Add following line to /etc/services if you haven't done so already:"
+ elog
+ elog "xmlsysd 7887/tcp # xmlsysd remote system stats"
+ elog
+ elog "Be sure to edit /etc/xinetd.d/xmylsysd to suit your own options."
+}