mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 09:31:06 +02:00
sys-process/{lsof,psmisc}: import from portage
Just copying the ebuilds from portage/ so hopefully no functional changes. BUG=chromium-os:26016 TEST=`cbuildbot arm-generic-full` works TEST=build_packages+build_image for x86-alex boots Change-Id: If8324bee259f3a15c70447a5bd19ccca824adb3e Reviewed-on: https://gerrit.chromium.org/gerrit/15426 Reviewed-by: Matt Tennant <mtennant@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
fd772e1888
commit
bd046ab507
1
sdk_container/src/third_party/portage-stable/sys-process/lsof/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-process/lsof/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST lsof_4.82.tar.bz2 793919 RMD160 de7e8441ec80ce13ba7dbf8b023a6403bd670841 SHA1 200aaf7494bddab4c47eea2466c65e57ef2f3786 SHA256 cbfa9fb6ce21b77f1be8a9c0b7fa245965120d968876212697b92617c2b0bd0f
|
60
sdk_container/src/third_party/portage-stable/sys-process/lsof/lsof-4.82.ebuild
vendored
Normal file
60
sdk_container/src/third_party/portage-stable/sys-process/lsof/lsof-4.82.ebuild
vendored
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 1999-2010 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.82.ebuild,v 1.9 2010/02/01 17:58:35 hwoarang Exp $
|
||||||
|
|
||||||
|
inherit 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="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
|
||||||
|
cd "${S}"
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e '/LSOF_CFGF="-/s:=":="$LSOF_CFGF :' \
|
||||||
|
-e '/^LSOF_CFGF=/s:$:" ${CFLAGS} ${CPPFLAGS}":' \
|
||||||
|
-e "/^LSOF_CFGL=/s:\$:' \$(LDFLAGS)':" \
|
||||||
|
-e "/^LSOF_RANLIB/s:ranlib:$(tc-getRANLIB):" \
|
||||||
|
Configure
|
||||||
|
}
|
||||||
|
|
||||||
|
yesno() { use $1 && echo y || echo n ; }
|
||||||
|
target() { use kernel_FreeBSD && echo freebsd || echo linux ; }
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
use static && append-ldflags -static
|
||||||
|
|
||||||
|
touch .neverInv
|
||||||
|
LINUX_HASSELINUX=$(yesno selinux) \
|
||||||
|
LSOF_CC=$(tc-getCC) \
|
||||||
|
LSOF_AR="$(tc-getAR) rc" \
|
||||||
|
./Configure -n $(target) || die
|
||||||
|
|
||||||
|
emake DEBUG="" all || die "emake failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin lsof || die "dosbin"
|
||||||
|
|
||||||
|
insinto /usr/share/lsof/scripts
|
||||||
|
doins scripts/*
|
||||||
|
|
||||||
|
doman lsof.8
|
||||||
|
dodoc 00*
|
||||||
|
}
|
1
sdk_container/src/third_party/portage-stable/sys-process/psmisc/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-process/psmisc/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST psmisc-22.10.tar.gz 314712 RMD160 cf0fa6985db0ac4c6b31b0a1af7cf47da2e5b6ba SHA1 20bfa81ec36603c6a141bd7e6137cf9d3b52c3d9 SHA256 e8c2a520549ec86deeccd55fd30cbb46fca20e57d7dfde240ee49df1c6dca053
|
32
sdk_container/src/third_party/portage-stable/sys-process/psmisc/files/psmisc-22.5-no-nls.patch
vendored
Normal file
32
sdk_container/src/third_party/portage-stable/sys-process/psmisc/files/psmisc-22.5-no-nls.patch
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
http://bugs.gentoo.org/193920
|
||||||
|
|
||||||
|
--- psmisc-22.5/Makefile.am
|
||||||
|
+++ psmisc-22.5/Makefile.am
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
|
||||||
|
-SUBDIRS = doc src po icons
|
||||||
|
+SUBDIRS = doc src icons
|
||||||
|
|
||||||
|
#EXTRA_DIST = config.rpath ABOUT-NLS mkinstalldirs
|
||||||
|
|
||||||
|
--- psmisc-22.5/configure.ac
|
||||||
|
+++ psmisc-22.5/configure.ac
|
||||||
|
@@ -65,10 +65,6 @@
|
||||||
|
test $ac_cv_member_struct_user_regs_struct_ecx = yes &&
|
||||||
|
test $ac_cv_member_struct_user_regs_struct_edx = yes )
|
||||||
|
|
||||||
|
-dnl Check for language stuff
|
||||||
|
-AM_GNU_GETTEXT([external])
|
||||||
|
-AM_GNU_GETTEXT_VERSION([0.16.1])
|
||||||
|
-
|
||||||
|
dnl Checks for library functions.
|
||||||
|
AC_FUNC_CLOSEDIR_VOID
|
||||||
|
AC_FUNC_GETMNTENT
|
||||||
|
@@ -87,6 +83,5 @@
|
||||||
|
AC_CONFIG_FILES([Makefile
|
||||||
|
doc/Makefile
|
||||||
|
src/Makefile
|
||||||
|
- icons/Makefile
|
||||||
|
- po/Makefile.in])
|
||||||
|
+ icons/Makefile])
|
||||||
|
AC_OUTPUT
|
51
sdk_container/src/third_party/portage-stable/sys-process/psmisc/psmisc-22.10.ebuild
vendored
Normal file
51
sdk_container/src/third_party/portage-stable/sys-process/psmisc/psmisc-22.10.ebuild
vendored
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 1999-2010 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/sys-process/psmisc/psmisc-22.10.ebuild,v 1.6 2010/02/13 13:02:41 armin76 Exp $
|
||||||
|
|
||||||
|
inherit autotools eutils
|
||||||
|
|
||||||
|
DESCRIPTION="A set of tools that use the proc filesystem"
|
||||||
|
HOMEPAGE="http://psmisc.sourceforge.net/"
|
||||||
|
SRC_URI="mirror://sourceforge/psmisc/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
||||||
|
IUSE="ipv6 nls selinux X"
|
||||||
|
|
||||||
|
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||||
|
selinux? ( sys-libs/libselinux )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-devel/libtool
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ${A}
|
||||||
|
cd "${S}"
|
||||||
|
use nls || epatch "${FILESDIR}"/${PN}-22.5-no-nls.patch #193920
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# the nls looks weird, but it's because we actually delete the nls stuff
|
||||||
|
# above when USE=-nls. this should get cleaned up so we dont have to patch
|
||||||
|
# it out, but until then, let's not confuse users ... #220787
|
||||||
|
econf \
|
||||||
|
--disable-dependency-tracking \
|
||||||
|
$(use_enable selinux) \
|
||||||
|
$(use_enable ipv6) \
|
||||||
|
$(use nls && use_enable nls)
|
||||||
|
|
||||||
|
emake || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" install || die
|
||||||
|
dodoc AUTHORS ChangeLog NEWS README
|
||||||
|
use X || rm "${D}"/usr/bin/pstree.x11
|
||||||
|
# fuser is needed by init.d scripts
|
||||||
|
dodir /bin
|
||||||
|
mv "${D}"/usr/bin/fuser "${D}"/bin/ || die
|
||||||
|
# easier to do this than forcing regen of autotools
|
||||||
|
[[ -e ${D}/usr/bin/peekfd ]] || rm -f "${D}"/usr/share/man/man1/peekfd.1
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user