summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-07-05 06:01:45 +0000
committerMike Frysinger <vapier@gentoo.org>2011-07-05 06:01:45 +0000
commit8c8ca4d180cc975730ff6c257c2dac220cf8eb68 (patch)
tree46a265b70fda06c033e0ccb561e6f7405b8d2a83 /sys-apps/s390-tools
parentPush out accumulated fixes. (diff)
downloadhistorical-8c8ca4d180cc975730ff6c257c2dac220cf8eb68.tar.gz
historical-8c8ca4d180cc975730ff6c257c2dac220cf8eb68.tar.bz2
historical-8c8ca4d180cc975730ff6c257c2dac220cf8eb68.zip
Version bump.
Package-Manager: portage-2.2.0_alpha43/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/s390-tools')
-rw-r--r--sys-apps/s390-tools/ChangeLog8
-rw-r--r--sys-apps/s390-tools/Manifest19
-rw-r--r--sys-apps/s390-tools/files/s390-tools-1.13.0-build.patch153
-rw-r--r--sys-apps/s390-tools/s390-tools-1.13.0.ebuild56
4 files changed, 232 insertions, 4 deletions
diff --git a/sys-apps/s390-tools/ChangeLog b/sys-apps/s390-tools/ChangeLog
index 5bab5a29ba31..235eda280af4 100644
--- a/sys-apps/s390-tools/ChangeLog
+++ b/sys-apps/s390-tools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/s390-tools
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/s390-tools/ChangeLog,v 1.25 2011/07/05 06:00:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/s390-tools/ChangeLog,v 1.26 2011/07/05 06:01:43 vapier Exp $
+
+*s390-tools-1.13.0 (05 Jul 2011)
+
+ 05 Jul 2011; Mike Frysinger <vapier@gentoo.org> +s390-tools-1.13.0.ebuild,
+ +files/s390-tools-1.13.0-build.patch:
+ Version bump.
05 Jul 2011; Mike Frysinger <vapier@gentoo.org> s390-tools-1.9.0.ebuild,
s390-tools-1.10.0.ebuild:
diff --git a/sys-apps/s390-tools/Manifest b/sys-apps/s390-tools/Manifest
index 99258937291c..983a79e65079 100644
--- a/sys-apps/s390-tools/Manifest
+++ b/sys-apps/s390-tools/Manifest
@@ -1,9 +1,22 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX s390-tools-1.13.0-build.patch 4770 RMD160 1d950de92fd50aade8f66ac42459f640a8af388d SHA1 f43230d29468b30db548c8583da2d98cf8b8abeb SHA256 e7278dd938d7bfb02a4d9ee7af1487eef73e1237769e9c5c8d4e1cb57837cfc0
AUX s390-tools-1.9.0-build.patch 4850 RMD160 d57e71ad7f999f10218b33cd6d4754ed4f832a2d SHA1 5f0f3e021e271936fc7398a493846ea433a83f68 SHA256 474f46b40f0a9d292a077b90161ba34f4546e5af603c674a5aabc92faa6ed736
DIST e2fsprogs-1.41.3.tar.gz 4365234 RMD160 7045401ac70a7aa865a8040da4aca2683204abd6 SHA1 d85f05b7bcef1adf8306a789f3ac0325c3c67e8d SHA256 ce77edae680d090cb8275eca9be282bdbc5fbef028d7bf6f772fb4f04b578d7a
DIST linux-2.6.27.tar.bz2 50355835 RMD160 5be4595ad824a4af67c1ec0c692838ad0c31f0c0 SHA1 8425ec3be2652f9d511911ff4fcf99039d4574be SHA256 0e99bf9e83f4d1ae0c656741a84dfddfa9c4d2469cf35475f5939d02dc3e4393
DIST s390-tools-1.10.0.tar.bz2 538300 RMD160 d6880dd13750c74310dd45f72ce7d855d1f70097 SHA1 e45a7899ceced731599dd355c777dd16c3a9a0b3 SHA256 129f8b643e1fd853f3bf4f9eb5bf46643e83ad7fb19482ce17583e8ce843f705
+DIST s390-tools-1.13.0.tar.bz2 590468 RMD160 9f58287e054eb894f6b8a7043604fcb2407384e0 SHA1 790d222dd93c7d641f02402a4f32096cd86bedb6 SHA256 91d0aec25b3d85fda569a25206b12d67434357f13e162d9eeadddaa7173eaf7c
DIST s390-tools-1.9.0.tar.bz2 535384 RMD160 2304b19cc481b9fb08ce149801307cb336010eb0 SHA1 d80d094d39d3d62d9e6905e2f549a3a939e2d198 SHA256 4ece6cc0c255c26f3cf29b7d95fc2000438b809501a0a3ef9fb137114c270cdb
-EBUILD s390-tools-1.10.0.ebuild 1633 RMD160 b6e4dc2b93392c1b21d0d1f9cf06b1e4ef1a19c6 SHA1 1e371f85115cfbd278f2475df33b2265db71aabf SHA256 4a813d117106c4e3988948bd35c2e9fa5059208b4d64417c85854e417656b51b
-EBUILD s390-tools-1.9.0.ebuild 1632 RMD160 785eb555dc854170708bf33aaaafc00468b3dda1 SHA1 cb71bd22b633124ac7d75964bb046f36535c43ca SHA256 45c5e5f98813f46f329db31108d3f03a85b5cd07e0de8bd603c98d15a1df90f6
-MISC ChangeLog 3653 RMD160 ab8eb3e0c8a430fa3177a9bb391a32036da473ec SHA1 7cb41803647aaeed5d8d1092a7795c815c95d1c7 SHA256 0e9c64d9ab0b4a1b1b6324ea7291faf45a1a145d7d1ffb10b65bbb498b87bffd
+EBUILD s390-tools-1.10.0.ebuild 1635 RMD160 e1ddde819f5daaab387844fae748e9aec278db10 SHA1 b79601d4c9d56d7c123fe9df8cd4b0091f02d374 SHA256 8261d50145e22b709e6b62c0d72592fb39a01bbe0d30ddc506944011a9712779
+EBUILD s390-tools-1.13.0.ebuild 1615 RMD160 178c4346fc389b6db2785af3138883404cfda7d5 SHA1 9774754fa5bf479d8f5a6973cff7c44e4e492565 SHA256 f96b81760d6524365a48860a382c71c7c8d5b6e1e8c1b3802c41e33cd841ea64
+EBUILD s390-tools-1.9.0.ebuild 1634 RMD160 a76dfee5cc74bfe260f41ef5ba5dd405a1a5d038 SHA1 1bb9c6058b66eb73298c7333ce6ef2c179344e6e SHA256 36e511ee866221298a7e9c8b8edc1e9788cc6410abec8d657e02367c9a3fa1df
+MISC ChangeLog 3952 RMD160 bbceb1a79fc44f604a121d1cf570fd4d2a6ff810 SHA1 91a86695caae17ca033aaba080d86ad4e8fae862 SHA256 8d431deab27db4bb31aa8fc0701d23e565121db705ae3333e6bce202c6fb8eac
MISC metadata.xml 542 RMD160 34f9f6edda0a1c48c8222ab1909dcb5bf175c1ad SHA1 b5901898164650ea4a8fc3597424d46a48a20cf3 SHA256 8756df3f4e87725b0127e06b6be6905a5e36a4d20a5d6509f3776de0663649cb
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iF4EAREIAAYFAk4SqM8ACgkQaC/OocHi7JbMoQD9FQf2uh0efTMJJ0Y/uPAsBrtC
+nKaiTIo5CWEwvKievycBAITlRIK8cxkyvAIm4sPRQ9s4Ll3knv5vJyx+y7Wj6J8r
+=2Uao
+-----END PGP SIGNATURE-----
diff --git a/sys-apps/s390-tools/files/s390-tools-1.13.0-build.patch b/sys-apps/s390-tools/files/s390-tools-1.13.0-build.patch
new file mode 100644
index 000000000000..0676a5bb410a
--- /dev/null
+++ b/sys-apps/s390-tools/files/s390-tools-1.13.0-build.patch
@@ -0,0 +1,153 @@
+ - fix errors in subdir makes
+ - parallelize subdir runs
+ - cleanup flag handling
+
+--- a/Makefile
++++ b/Makefile
+@@ -9,19 +9,19 @@
+ vmconvert vmcp man mon_tools dasdinfo vmur cpuplugd ipl_tools \
+ ziomon iucvterm hyptop cmsfs-fuse
+
+-all: subdirs_make
++SUB_DIRS_ALL = $(patsubst %,subdirs_all_%,$(SUB_DIRS))
++SUB_DIRS_CLEAN = $(patsubst %,subdirs_clean_%,$(SUB_DIRS))
++SUB_DIRS_INSTALL = $(patsubst %,subdirs_install_%,$(SUB_DIRS))
+
+-subdirs_make:
+- set -e ; for dir in $(SUB_DIRS) ; do \
+- ( cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH); cd .. ); \
+- done
++all: $(SUB_DIRS_ALL)
+
+-clean:
+- set -e ; for dir in $(SUB_DIRS) ; do \
+- ( cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) clean; cd .. ); \
+- done
++_subdir = $(patsubst subdirs_%,%,$@)
++subdir = $(shell expr $(_subdir) : '[^_]*_\(.*\)')
++subtarget = $(shell expr $(_subdir) : '\([^_]*\)_.*')
++subdirs_%:
++ $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) -C $(subdir) $(subtarget)
++
++clean: $(SUB_DIRS_CLEAN)
+
+ install:
+- set -e ; for dir in $(SUB_DIRS) ; do \
+- ( cd $$dir ; $(MAKE) TOPDIR=$(TOPDIR) ARCH=$(ARCH) install; cd .. ); \
+- done
++ $(MAKE) $(SUB_DIRS_INSTALL)
+--- a/common.mak
++++ b/common.mak
+@@ -17,10 +17,10 @@
+ # Cross Compiling Support
+ CROSS_COMPILE =
+ AS = $(call echocmd," AS ",/$@)$(CROSS_COMPILE)as
+-LINK = $(call echocmd," LINK ",/$@)$(CROSS_COMPILE)gcc
++LINK = $(call echocmd," LINK ",/$@)$(CROSS_COMPILE)gcc $(CFLAGS) $(LDFLAGS)
+ LD = $(call echocmd," LD ",/$@)$(CROSS_COMPILE)ld
+ CC = $(call echocmd," CC ",/$@)$(CROSS_COMPILE)gcc
+-LINKXX = $(call echocmd," LINKXX ",/$@)$(CROSS_COMPILE)g++
++LINKXX = $(call echocmd," LINKXX ",/$@)$(CROSS_COMPILE)g++ $(CXXFLAGS) $(LDFLAGS)
+ CXX = $(call echocmd," CXX ",/$@)$(CROSS_COMPILE)g++
+ CPP = $(call echocmd," CPP ",/$@)$(CROSS_COMPILE)gcc -E
+ AR = $(call echocmd," AR ",/$@)$(CROSS_COMPILE)ar
+@@ -41,14 +41,13 @@
+ ZFCPDUMP_RD = zfcpdump.rd
+ export ZFCPDUMP_DIR ZFCPDUMP_IMAGE ZFCPDUMP_RD
+
+-CFLAGS = $(WARNFLAGS) -O3 -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) \
+- -DS390_TOOLS_LIBDIR=$(TOOLS_LIBDIR) \
+- -DS390_TOOLS_SYSCONFDIR=$(SYSCONFDIR) \
+- -g $(OPT_FLAGS)
+-CXXFLAGS = $(WARNFLAGS) -O3 -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) \
+- -DS390_TOOLS_LIBDIR=$(TOOLS_LIBDIR) \
+- -DS390_TOOLS_SYSCONFDIR=$(SYSCONFDIR) \
+- -g $(OPT_FLAGS)
++CFLAGS += $(WARNFLAGS) $(OPT_FLAGS)
++CXXFLAGS += $(WARNFLAGS) $(OPT_FLAGS)
++CPPFLAGS += \
++ -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) \
++ -DS390_TOOLS_LIBDIR=$(TOOLS_LIBDIR) \
++ -DS390_TOOLS_SYSCONFDIR=$(SYSCONFDIR)
++export CPPFLAGS
+
+ # make G=1
+ # Compile tools so that gcov can be used to collect code coverage data.
+@@ -76,7 +75,7 @@
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
+
+ %: %.o
+- $(LINK) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
++ $(LINK) $(CFLAGS) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
+
+ all:
+
+--- a/zfcpdump/ramdisk/Makefile
++++ b/zfcpdump/ramdisk/Makefile
+@@ -12,16 +12,14 @@
+
+ all: $(ZFCPDUMP_RD)
+
+-CFLAGS += -D_FILE_OFFSET_BITS=64
++CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I../../include
++LDFLAGS += -static
++LDLIBS += -lz
+
+ $(ZFCPDUMP_RD): zfcp_dumper
+ /bin/sh ./create_rd.sh $(ARCH)
+
+-zfcp_dumper: zfcp_dumper.o
+- $(CC) -o zfcp_dumper -static zfcp_dumper.o -lz
+-
+ zfcp_dumper.o: zfcp_dumper.c zfcp_dumper.h
+- $(CC) $(CFLAGS) -c -I../../include zfcp_dumper.c
+
+ install: $(ZFCPDUMP_RD)
+ /bin/sh ./create_rd.sh -i
+@@ -29,6 +27,3 @@
+ clean clobber:
+ /bin/sh ./create_rd.sh -r
+ rm -f *.o
+-
+-%.o: %.c
+- $(CC) $(CFLAGS) -c -o $@ $<
+--- a/zfcpdump_v2/Makefile
++++ b/zfcpdump_v2/Makefile
+@@ -6,12 +6,13 @@
+ LINUX_DIR := linux-$(LINUX_VERSION)
+ E2FSPROGS := e2fsprogs-1.41.3
+
+-CFLAGS += -D_FILE_OFFSET_BITS=64
++CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DGZIP_SUPPORT
++LDFLAGS += -static
++LDLIBS += -lz
+
+ all: zfcpdump.image
+
+ zfcpdump: zfcpdump.c zfcpdump.h
+- $(CC) $(CFLAGS) -D GZIP_SUPPORT -static -o $@ zfcpdump.c -lz
+
+ e2fsck:
+ tar xfzv $(E2FSPROGS).tar.gz
+--- a/zipl/boot/Makefile
++++ b/zipl/boot/Makefile
+@@ -3,9 +3,8 @@
+
+ S390_TOOLS_VERSION_EBCDIC := $(shell echo -n $(S390_TOOLS_RELEASE) | dd conv=ebcdic 2> /dev/null | hexdump -v -e '/1 "0x%02x,"' | sed 's/.$$//')
+
+-CFLAGS += -I../include -D__ASSEMBLY__ \
++CPPFLAGS += -I../include -D__ASSEMBLY__ \
+ -DS390_TOOLS_VERSION_EBCDIC=$(S390_TOOLS_VERSION_EBCDIC)
+-LDFLAGS = -O2
+ FILES := fba0.bin fba2.bin eckd0.bin eckd1a.bin eckd1b.bin eckd2.bin \
+ eckd2dump.bin tapedump.bin stage3.bin tape0.bin fba2dump.bin \
+ eckd2mvdump.bin
+@@ -16,7 +15,7 @@
+ %: %.S
+
+ %.o: %.S
+- $(CC) $(CFLAGS) -c -o $@ $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+
+ %.exec: %.o
+ @STAGE=$$( \
diff --git a/sys-apps/s390-tools/s390-tools-1.13.0.ebuild b/sys-apps/s390-tools/s390-tools-1.13.0.ebuild
new file mode 100644
index 000000000000..1cd1b1dde17e
--- /dev/null
+++ b/sys-apps/s390-tools/s390-tools-1.13.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/s390-tools/s390-tools-1.13.0.ebuild,v 1.1 2011/07/05 06:01:45 vapier Exp $
+
+EAPI="2"
+
+inherit eutils
+
+# look at zfcpdump_v2/README
+E2FSPROGS_P=e2fsprogs-1.41.3
+LINUX_P=linux-2.6.27
+
+DESCRIPTION="A set of user space utilities that should be used together with the zSeries (s390) Linux kernel and device drivers"
+HOMEPAGE="http://www.ibm.com/developerworks/linux/linux390/s390-tools.html"
+SRC_URI="http://download.boulder.ibm.com/ibmdl/pub/software/dw/linux390/ht_src/${P}.tar.bz2
+ zfcpdump? (
+ mirror://sourceforge/e2fsprogs/${E2FSPROGS_P}.tar.gz
+ mirror://kernel/linux/kernel/v2.6/${LINUX_P}.tar.bz2
+ )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~s390"
+IUSE="fuse snmp zfcpdump"
+
+RDEPEND="sys-fs/sysfsutils
+ fuse? ( sys-fs/fuse )
+ snmp? ( net-analyzer/net-snmp )"
+DEPEND="${RDEPEND}
+ dev-util/indent
+ app-admin/genromfs"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.13.0-build.patch
+
+ use snmp || sed -i -e 's:osasnmpd::' Makefile
+ use fuse || { sed -i -e 's:cmsfs-fuse::' Makefile; export WITHOUT_FUSE=1; }
+
+ if use zfcpdump ; then
+ local x
+ for x in ${E2FSPROGS_P}.tar.gz ${LINUX_P}.tar.bz2 ; do
+ ln -s "${DISTDIR}"/${x} zfcpdump_v2/${x} || die "ln ${x}"
+ done
+ sed -i -e '/^ZFCPDUMP_DIR/s:local/::' common.mak
+ sed -i -e '/^SUB_DIRS/s:=:=zfcpdump_v2 :' Makefile
+ fi
+
+ export MAKEOPTS+=" V=1"
+}
+
+src_install() {
+ emake install INSTROOT="${D}" USRBINDIR="${D}/sbin" || die
+ dodoc README
+ insinto /etc/udev/rules.d
+ doins etc/udev/rules.d/*.rules || die
+}