diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2008-05-14 15:05:26 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2008-05-14 15:05:26 +0000 |
commit | 0ae8da4f386048393b5ae14457e21cf21819a8a2 (patch) | |
tree | 3a4382b0a61013074880beb1504829ff29b76c92 /sys-process | |
parent | Add ~sparc/~x86 wrt #221989 (diff) | |
download | historical-0ae8da4f386048393b5ae14457e21cf21819a8a2.tar.gz historical-0ae8da4f386048393b5ae14457e21cf21819a8a2.tar.bz2 historical-0ae8da4f386048393b5ae14457e21cf21819a8a2.zip |
fix automagical depend on selinux. bug #188272. patch provided by Peter Alfredsen <peter.alfredsen@gmail.com>
Package-Manager: portage-2.1.5_rc10
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/lsof/ChangeLog | 8 | ||||
-rw-r--r-- | sys-process/lsof/Manifest | 3 | ||||
-rw-r--r-- | sys-process/lsof/lsof-4.78-r2.ebuild | 69 |
3 files changed, 78 insertions, 2 deletions
diff --git a/sys-process/lsof/ChangeLog b/sys-process/lsof/ChangeLog index 2051e72887e9..7dc048b26f51 100644 --- a/sys-process/lsof/ChangeLog +++ b/sys-process/lsof/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-process/lsof # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.42 2008/03/28 07:43:08 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.43 2008/05/14 15:05:26 cardoe Exp $ + +*lsof-4.78-r2 (14 May 2008) + + 14 May 2008; Doug Goldstein <cardoe@gentoo.org> +lsof-4.78-r2.ebuild: + fix automagical depend on selinux. bug #188272. patch provided by Peter + Alfredsen <peter.alfredsen@gmail.com> 28 Mar 2008; Jeroen Roovers <jer@gentoo.org> lsof-4.78-r1.ebuild: Stable for HPPA too. diff --git a/sys-process/lsof/Manifest b/sys-process/lsof/Manifest index 78524f5c840e..886b44dade86 100644 --- a/sys-process/lsof/Manifest +++ b/sys-process/lsof/Manifest @@ -5,6 +5,7 @@ DIST lsof_4.77.tar.bz2 708416 RMD160 e71ecec2e3281197846658b5ac774ae80b59de3d SH DIST lsof_4.78.tar.bz2 756729 RMD160 50d71e500f1109cda717b73ce209c0e100a6dbe9 SHA1 0379fc9f38a931ce19e8386e662314d96fc2a099 SHA256 898db51a4016efca7d408163578443238373773357949e1b4978e26807a1fb2b EBUILD lsof-4.77.ebuild 1485 RMD160 65349747db9a565e6129a8df728a33248b808d29 SHA1 f342bfd27c19bf89c6fec7289e869792e972e609 SHA256 f7ce54485fc0184983ae26a250166ce68be7aba23a03ff8a41c7779e31a9b71f EBUILD lsof-4.78-r1.ebuild 1606 RMD160 474c1220ecf1c5d7c9d337582be06bc72728fecd SHA1 e5b6bb471362aed992cd6d00bc35e5baeb2c31b3 SHA256 2760dc4cff97af3bafe638cfbabdc9f4515c22ff43831b473bfcb8dc19d6aa27 +EBUILD lsof-4.78-r2.ebuild 1850 RMD160 6bef1eac134c8b21c00a0579472bbaf0cad005e5 SHA1 57ed8937e335b4cf068f0a3c77efd526af85ba35 SHA256 2385cf706e50034e11ca7d6ec522d4ba24d50f742b899a8477053bfbb726cfac EBUILD lsof-4.78.ebuild 1593 RMD160 adcb7e267de39768ef56bdfce9d918f1ff7a0bc3 SHA1 532ca97693c09c35682502a5cbef0eb7135458d1 SHA256 76d16479b424afb592c911464f1076cc17925569ab1039a8ab007af5bd4199a3 -MISC ChangeLog 8637 RMD160 f32ea4b03d6650caad44bb7c8bb9333e156e9a83 SHA1 468bd491250ad9adbcede18d6e8fec7546e91934 SHA256 5bc454850f6859ca8c0b19332814e30f79a608f8007e8face194a3161639d004 +MISC ChangeLog 8856 RMD160 b6d7fb99d5ae82036c83acbaa345a2a7a5ba63de SHA1 cdcd748be61b34673b2b26ec96e5882fac673441 SHA256 fe16b31d22c80dff199da9f9b0f6fb487da43a79aadb20e552be1577cfc79ffb MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 diff --git a/sys-process/lsof/lsof-4.78-r2.ebuild b/sys-process/lsof/lsof-4.78-r2.ebuild new file mode 100644 index 000000000000..ea3fb3cf3010 --- /dev/null +++ b/sys-process/lsof/lsof-4.78-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.78-r2.ebuild,v 1.1 2008/05/14 15:05:26 cardoe 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 selinux" + +DEPEND="selinux? ( sys-libs/libselinux )" + +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 + #Fix automagic dependency on libselinux. Bug 188272. + if ! use selinux; then + sed -i \ + -e 's/ -DHASSELINUX//' \ + -e 's/ -lselinux//' \ + Configure || die "Sed failed. 404. WTF..." + fi +} + +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 DEBUG="" 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* +} |