diff options
Diffstat (limited to 'sys-apps/psmisc/psmisc-21.4.ebuild')
-rw-r--r-- | sys-apps/psmisc/psmisc-21.4.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sys-apps/psmisc/psmisc-21.4.ebuild b/sys-apps/psmisc/psmisc-21.4.ebuild new file mode 100644 index 000000000000..26d7acffc676 --- /dev/null +++ b/sys-apps/psmisc/psmisc-21.4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/psmisc/psmisc-21.4.ebuild,v 1.1 2004/03/24 16:30:00 mholzer Exp $ + +inherit eutils gnuconfig + +SELINUX_PATCH="psmisc-21.2-selinux.diff.bz2" + +DESCRIPTION="A set of tools that use the proc filesystem" +HOMEPAGE="http://psmisc.sourceforge.net/" +SRC_URI="mirror://sourceforge/psmisc/${P}.tar.gz" +RESTRICT="nomirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha ~hppa ~mips ~ia64 ~ppc64 ~s390" +IUSE="nls selinux" + +DEPEND=">=sys-libs/ncurses-5.2-r2 + selinux? ( sys-libs/libselinux )" + +src_unpack() { + unpack ${A} + cd ${S} + +# if use selinux; then + # Necessary selinux patch +# epatch ${FILESDIR}/${SELINUX_PATCH} +# fi +} + +src_compile() { + # Detect mips systems properly + use mips && gnuconfig_update + + local myconf="--with-gnu-ld" + use nls || myconf="${myconf} --disable-nls" + use selinux && myconf="${myconf} --enable-flask" + + econf ${myconf} || die + emake || die +} + +src_install() { + einstall || die + dosym killall /usr/bin/pidof + + # Some packages expect these to use /usr, others to use / + dodir /bin + mv ${D}/usr/bin/* ${D}/bin/ + cd ${D}/bin + for f in * ; do + dosym /bin/${f} /usr/bin/${f} + done + + # We use pidof from baselayout. + rm -f ${D}/bin/pidof + dosym ../sbin/pidof /bin/pidof + + dodoc ABOUT-NLS AUTHORS ChangeLog NEWS README +} |