diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-07-13 03:04:16 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-07-13 03:04:16 +0000 |
commit | 7670c465e4b1efdcafe78566f68e74ce1eaf04c2 (patch) | |
tree | 91019acb106877c993b512d6302ee432fd699263 | |
parent | Marked ppc stable for bug #174939. (diff) | |
download | gentoo-2-7670c465e4b1efdcafe78566f68e74ce1eaf04c2.tar.gz gentoo-2-7670c465e4b1efdcafe78566f68e74ce1eaf04c2.tar.bz2 gentoo-2-7670c465e4b1efdcafe78566f68e74ce1eaf04c2.zip |
Move lsof to /usr/bin #185145 by Hanno Boeck.
(Portage version: 2.1.3_rc8)
-rw-r--r-- | sys-process/lsof/ChangeLog | 7 | ||||
-rw-r--r-- | sys-process/lsof/files/digest-lsof-4.78-r1 | 3 | ||||
-rw-r--r-- | sys-process/lsof/lsof-4.78-r1.ebuild | 62 |
3 files changed, 71 insertions, 1 deletions
diff --git a/sys-process/lsof/ChangeLog b/sys-process/lsof/ChangeLog index 15bd58e6d5f4..f33aebe69f50 100644 --- a/sys-process/lsof/ChangeLog +++ b/sys-process/lsof/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-process/lsof # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.31 2007/05/18 14:18:44 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.32 2007/07/13 03:04:16 vapier Exp $ + +*lsof-4.78-r1 (13 Jul 2007) + + 13 Jul 2007; Mike Frysinger <vapier@gentoo.org> +lsof-4.78-r1.ebuild: + Move lsof to /usr/bin #185145 by Hanno Boeck. 18 May 2007; Roy Marples <uberlord@gentoo.org> +files/lsof-4.78-answer-config.patch, +files/lsof-4.78-freebsd.patch, diff --git a/sys-process/lsof/files/digest-lsof-4.78-r1 b/sys-process/lsof/files/digest-lsof-4.78-r1 new file mode 100644 index 000000000000..633f28b04b0e --- /dev/null +++ b/sys-process/lsof/files/digest-lsof-4.78-r1 @@ -0,0 +1,3 @@ +MD5 00360ce2b62de3015fa7e0f8f92179a8 lsof_4.78.tar.bz2 756729 +RMD160 50d71e500f1109cda717b73ce209c0e100a6dbe9 lsof_4.78.tar.bz2 756729 +SHA256 898db51a4016efca7d408163578443238373773357949e1b4978e26807a1fb2b lsof_4.78.tar.bz2 756729 diff --git a/sys-process/lsof/lsof-4.78-r1.ebuild b/sys-process/lsof/lsof-4.78-r1.ebuild new file mode 100644 index 000000000000..2a79a9bcd58f --- /dev/null +++ b/sys-process/lsof/lsof-4.78-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.78-r1.ebuild,v 1.1 2007/07/13 03:04:16 vapier Exp $ + +inherit eutils flag-o-matic fixheadtails toolchain-funcs + +MY_P=${P/-/_} +DESCRIPTION="Lists open files for running Unix processes" +HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/" +SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2 + ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2 + ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/${MY_P}.tar.bz2" + +LICENSE="lsof" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="static" + +DEPEND="" + +S=${WORKDIR}/${MY_P}/${MY_P}_src + +src_unpack() { + unpack ${A} + cd ${MY_P} + unpack ./${MY_P}_src.tar + + # now patch the scripts to automate everything + cd "${S}" + ht_fix_file Configure Customize + touch .neverInv + epatch "${FILESDIR}/${P}"-answer-config.patch + epatch "${FILESDIR}/${P}"-freebsd.patch +} + +src_compile() { + use static && append-ldflags -static + + local target="linux" + use kernel_FreeBSD && target=freebsd + ./Configure ${target} || die "configure failed" + + # Make sure we use proper toolchain + sed -i \ + -e "/^CC=/s:cc:$(tc-getCC):" \ + -e "/^AR=/s:ar:$(tc-getAR):" \ + -e "/^RANLIB=/s:ranlib:$(tc-getRANLIB):" \ + Makefile lib/Makefile + + emake all || die "emake failed" +} + +src_install() { + dobin lsof || die "dosbin" + dolib lib/liblsof.a || die "dolib" + + insinto /usr/share/lsof/scripts + doins scripts/* + + doman lsof.8 + dodoc 00* +} |