s390-tools-1.23.1.ebuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit eutils udev
  5. # look at zfcpdump_v2/README
  6. E2FSPROGS_P=e2fsprogs-1.41.3
  7. LINUX_P=linux-2.6.27
  8. DESCRIPTION="User space utilities for the zSeries (s390) Linux kernel and device drivers"
  9. HOMEPAGE="http://www.ibm.com/developerworks/linux/linux390/s390-tools.html"
  10. SRC_URI="http://download.boulder.ibm.com/ibmdl/pub/software/dw/linux390/ht_src/${P}.tar.bz2
  11. zfcpdump? (
  12. mirror://sourceforge/e2fsprogs/${E2FSPROGS_P}.tar.gz
  13. mirror://kernel/linux/kernel/v2.6/${LINUX_P}.tar.bz2
  14. )"
  15. LICENSE="GPL-2"
  16. SLOT="0"
  17. KEYWORDS="-* s390"
  18. IUSE="fuse ncurses snmp zfcpdump"
  19. RDEPEND="sys-libs/zlib
  20. fuse? ( sys-fs/fuse )
  21. ncurses? ( sys-libs/ncurses:0= )
  22. snmp? ( net-analyzer/net-snmp )"
  23. DEPEND="${RDEPEND}
  24. dev-util/indent
  25. app-admin/genromfs"
  26. src_prepare() {
  27. epatch "${FILESDIR}"/${PN}-1.23.1-build.patch
  28. use snmp || sed -i -e 's:osasnmpd::' Makefile
  29. use fuse || { sed -i -e 's:cmsfs-fuse::' Makefile; export WITHOUT_FUSE=1; }
  30. use ncurses || sed -i -e 's:hyptop::' Makefile
  31. if use zfcpdump ; then
  32. local x
  33. for x in ${E2FSPROGS_P}.tar.gz ${LINUX_P}.tar.bz2 ; do
  34. ln -s "${DISTDIR}"/${x} zfcpdump_v2/${x} || die "ln ${x}"
  35. done
  36. sed -i -e '/^ZFCPDUMP_DIR/s:local/::' common.mak
  37. sed -i -e '/^SUB_DIRS/s:=:=zfcpdump_v2 :' Makefile
  38. fi
  39. export MAKEOPTS+=" V=1"
  40. }
  41. src_install() {
  42. emake install INSTROOT="${D}" USRBINDIR="${D}/sbin"
  43. dodoc README
  44. udev_dorules etc/udev/rules.d/*.rules
  45. }