From 4bf01c97a56d6e7a1817fea2b47c79e0c5da8d71 Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Thu, 22 May 2008 14:40:52 +0000 Subject: Initial commit by treecleaners wrt #193635, replacing separate ebuilds for sys-cluster/xmlsysd and sys-cluster/wulfstat. Attached patch is to respect users CFLAGS and LDFLAGS, building with -Wl,--as-needed and to stop pre-stripping. (Portage version: 2.1.5.2) --- sys-cluster/wulfware/ChangeLog | 13 ++ sys-cluster/wulfware/Manifest | 5 + .../files/wulfware-2.6.0-opts_and_strip.patch | 142 +++++++++++++++++++++ sys-cluster/wulfware/metadata.xml | 9 ++ sys-cluster/wulfware/wulfware-2.6.0.ebuild | 57 +++++++++ 5 files changed, 226 insertions(+) create mode 100644 sys-cluster/wulfware/ChangeLog create mode 100644 sys-cluster/wulfware/Manifest create mode 100644 sys-cluster/wulfware/files/wulfware-2.6.0-opts_and_strip.patch create mode 100644 sys-cluster/wulfware/metadata.xml create mode 100644 sys-cluster/wulfware/wulfware-2.6.0.ebuild (limited to 'sys-cluster') diff --git a/sys-cluster/wulfware/ChangeLog b/sys-cluster/wulfware/ChangeLog new file mode 100644 index 000000000000..e3346e8f9086 --- /dev/null +++ b/sys-cluster/wulfware/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for sys-cluster/wulfware +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/wulfware/ChangeLog,v 1.1 2008/05/22 14:40:51 drac Exp $ + +*wulfware-2.6.0 (22 May 2008) + + 22 May 2008; Samuli Suominen + +files/wulfware-2.6.0-opts_and_strip.patch, +wulfware-2.6.0.ebuild: + Initial commit by treecleaners wrt #193635, replacing separate ebuilds for + sys-cluster/xmlsysd and sys-cluster/wulfstat. Attached patch is to respect + users CFLAGS and LDFLAGS, building with -Wl,--as-needed and to stop + pre-stripping. + diff --git a/sys-cluster/wulfware/Manifest b/sys-cluster/wulfware/Manifest new file mode 100644 index 000000000000..f76b74b409a8 --- /dev/null +++ b/sys-cluster/wulfware/Manifest @@ -0,0 +1,5 @@ +AUX wulfware-2.6.0-opts_and_strip.patch 5085 RMD160 03e38bb95603748b8d1987611e481d1ac40f3684 SHA1 65b78c4072b018077145aed0bcec70f85ec9c802 SHA256 59b1ddb5492c7e4f0475b36dd37a9138dd43bd5ae231685ee04db82c4dad7600 +DIST wulfware-2.6.0.tgz 469000 RMD160 014ac41d22643ece0f75481b120121701679c52f SHA1 7d4f130b0877f5680feac11cc4b5aa3e183b1fb5 SHA256 b89fe5bd46a687811ac682a59b63d0fac9e9b4218eaa1d6ffbae56590b71cc9c +EBUILD wulfware-2.6.0.ebuild 1457 RMD160 a10a2af0e858743c1a60029bbe449feda0efb91a SHA1 df79500f729889630f73f74f39dc86c3171cdd32 SHA256 c903328abc67f70b4407d71720db325cbe62d7d29519240ad7d5353fb53cba3f +MISC ChangeLog 513 RMD160 171c8de5c19a256df30682fb3b7ece5303959360 SHA1 df0291ab2b5251bc82530cf2b599918e84d27754 SHA256 06ce8248e9b187f55b63685ffcf339e886f49cf3b0ad57fff4c9d68a0f639055 +MISC metadata.xml 290 RMD160 b9b86283c09349c8827faef7d3ef5f724a248e77 SHA1 ae1c8e62d75c94ff50b8a5391afb6008460963aa SHA256 380e26e9262298b9cb31e863a9ab641f6fbdc8c50bda2cf2e47fd399f9cb5e85 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..fae7d74a9aee --- /dev/null +++ b/sys-cluster/wulfware/metadata.xml @@ -0,0 +1,9 @@ + + + + no-herd + + maintainer-needed@gentoo.org + Default assignee for orphaned packages + + 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..e67530cd1eb3 --- /dev/null +++ b/sys-cluster/wulfware/wulfware-2.6.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/wulfware/wulfware-2.6.0.ebuild,v 1.1 2008/05/22 14:40:51 drac Exp $ + +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() { + econf --disable-dependency-tracking + emake -j1 CC=$(tc-getCC) || 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 + + # FIXME: Update to Gentoo style init script. + rm -rf "${D}"/etc/init.d/wulf2html +} + +pkg_postinst() { + elog "If you havent done so already please execute the following command" + elog "\"emerge --config =${CATEGORY}/${PF}\"" + elog "to add xmlsysd to /etc/services." + elog + elog "Be sure to edit /etc/xinetd.d/xmylsysd to suit your own options." +} + +pkg_config() { + echo "xmlsysd 7887/tcp # xmlsysd remote system stats" >> /etc/services + einfo "Added xmlsysd to /etc/services" +} -- cgit v1.2.3-65-gdbad