diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-15 05:03:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-11-15 05:03:29 +0000 |
commit | e4a79f97b2d987154a95a534130bf2d7715a3ef2 (patch) | |
tree | dc18e2fda93239b79e047bb59ade56c08d72cc17 /sys-process | |
parent | Added small fixes for bugs 375999 and 381763. (diff) | |
download | historical-e4a79f97b2d987154a95a534130bf2d7715a3ef2.tar.gz historical-e4a79f97b2d987154a95a534130bf2d7715a3ef2.tar.bz2 historical-e4a79f97b2d987154a95a534130bf2d7715a3ef2.zip |
Put example scripts behind USE=examples.
Package-Manager: portage-2.2.0_alpha74/cvs/Linux x86_64
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/lsof/ChangeLog | 7 | ||||
-rw-r--r-- | sys-process/lsof/Manifest | 9 | ||||
-rw-r--r-- | sys-process/lsof/lsof-4.85-r2.ebuild | 78 |
3 files changed, 89 insertions, 5 deletions
diff --git a/sys-process/lsof/ChangeLog b/sys-process/lsof/ChangeLog index ceddff4c636b..08b1ab838c88 100644 --- a/sys-process/lsof/ChangeLog +++ b/sys-process/lsof/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-process/lsof # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.81 2011/10/30 23:28:18 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.82 2011/11/15 05:03:29 vapier Exp $ + +*lsof-4.85-r2 (15 Nov 2011) + + 15 Nov 2011; Mike Frysinger <vapier@gentoo.org> +lsof-4.85-r2.ebuild: + Put example scripts behind USE=examples. *lsof-4.85-r1 (30 Oct 2011) diff --git a/sys-process/lsof/Manifest b/sys-process/lsof/Manifest index 1184810235a4..18a21e497862 100644 --- a/sys-process/lsof/Manifest +++ b/sys-process/lsof/Manifest @@ -12,13 +12,14 @@ EBUILD lsof-4.83.ebuild 1448 RMD160 147c474f1ae07368acd3896ec6f292abe7000e2e SHA EBUILD lsof-4.84-r1.ebuild 2301 RMD160 d319902f9f28d8a001dd6f59b0408210d7c279d9 SHA1 f3a579c5dbf91874378f643cf049380c0da0d0ad SHA256 d23f45467e684650db4c414f0b9262243be1bd838e5faf365acb64e3b6583231 EBUILD lsof-4.84.ebuild 1455 RMD160 e5e3839ad68d999b73adb619d1bfd8b91bfc74f3 SHA1 77db0f08cd793614322f2ca1e03580d7e158f428 SHA256 1a14c9fddadb2c80100da2b85d6cb2d641bfeab61d67b342382d0cf6773198f9 EBUILD lsof-4.85-r1.ebuild 2249 RMD160 9b2e103a3126a45db9818a9537192b8bc7cd506f SHA1 a0c5af67437d87bb6b4c6a95b23cf56e2f5cdbea SHA256 ebe1c48ce0fc4aa28d19ce528493401df7622df6cc5c23be1b725c064c49199d +EBUILD lsof-4.85-r2.ebuild 2288 RMD160 78288e2aeb50fa20a52f8c671900c616a4f19082 SHA1 d0c7a49b4c4af593343b3fe47c7c7c7cdf7c3cbc SHA256 5c834124bf666331e140b1d3d4ef7ae2c4746f2975001176c1ee731fac4b0950 EBUILD lsof-4.85.ebuild 2199 RMD160 19f1938c62927d045ae1a06365dbbb37161f6285 SHA1 0a6a4189422edad9dc0d298be805166fc02643f9 SHA256 3d921d7130c2b329b9c6b066b7725df7e5fc563ff79a075ed04244a824d79ec3 -MISC ChangeLog 13744 RMD160 d08bb14f4123b6de46279da27bd1780b18c87b95 SHA1 c8cb7b57c4e00d7dbf9245b159eae160b984c3d1 SHA256 9bd97f84d492ae87aae4bbba6a884c49dc8fcdb31cf697a6a7098180c92fcb6e +MISC ChangeLog 13889 RMD160 6b48c8b64b136df311f47720efb03950029495eb SHA1 3e107294bdf1d56ef955df16f588dcd1ca48c57f SHA256 f8a457ad1c70f132dd6c3507d5d1a4502bc46c22296502617f4f886e896ee06c MISC metadata.xml 238 RMD160 c0918b440085b691a6da31dba31384758ae4d214 SHA1 2cae35a26364573c7399f53668fb73dd6923b09f SHA256 27f27d7c7ba9fb670a6867a79ff8af354e48735f9bd672d387d96b4bd49d415b -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iF4EAREIAAYFAk6t3YsACgkQaC/OocHi7JZHaAD/awSB1v5sMFqtdKePPITb28vI -rXAKiCoQI7uescY2AXwA/A0It2FpraQLdLn91JlKKBVlvnVS1u2X2ggRrvyfHOgQ -=yIKK +iF4EAREIAAYFAk7B8qkACgkQaC/OocHi7JahqQD6Awr94oQWYmaWYwfIp0inyuKw +DVXtXkg+G5FecwUxAmwA/0Ip7gSDh6hBizDT1Y5BFnQyDDEs0FV61gS4y041VFsX +=9sQZ -----END PGP SIGNATURE----- diff --git a/sys-process/lsof/lsof-4.85-r2.ebuild b/sys-process/lsof/lsof-4.85-r2.ebuild new file mode 100644 index 000000000000..7f26b895c979 --- /dev/null +++ b/sys-process/lsof/lsof-4.85-r2.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.85-r2.ebuild,v 1.1 2011/11/15 05:03:29 vapier Exp $ + +EAPI="2" + +inherit eutils flag-o-matic 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="examples ipv6 rpc selinux static" + +RDEPEND="rpc? ( net-libs/libtirpc ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P}/${MY_P}_src + +src_unpack() { + unpack ${A} + cd ${MY_P} + unpack ./${MY_P}_src.tar +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-arg.c.patch #388555 + # convert `test -r header.h` into a compile test + sed -i -r \ + -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \ + -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \ + Configure || die +} + +target() { usex kernel_FreeBSD freebsd linux ; } +src_configure() { + use static && append-ldflags -static + + append-cppflags $(usex rpc "$($(tc-getPKG_CONFIG) libtirpc --cflags)" -DHASNOTRPC) + append-cppflags $(usex ipv6 -{D,U}HASIPv6) + + export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \ + $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)" + + # Set LSOF_INCLUDE to a dummy location so the script doesn't poke + # around in it and mix /usr/include paths with cross-compile/etc. + touch .neverInv + LINUX_HASSELINUX=$(usex selinux y n) \ + LSOF_INCLUDE=${T} \ + LSOF_CC=$(tc-getCC) \ + LSOF_AR="$(tc-getAR) rc" \ + LSOF_RANLIB=$(tc-getRANLIB) \ + LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ + ./Configure -n $(target) || die +} + +src_compile() { + emake DEBUG="" all || die +} + +src_install() { + dobin lsof || die + + if use examples ; then + insinto /usr/share/lsof/scripts + doins scripts/* || die + fi + + doman lsof.8 || die + dodoc 00* +} |