blob: 642188753def1e91ebb2e60d64264dc54f21e6d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/psmisc/psmisc-21.2-r3.ebuild,v 1.3 2003/10/18 18:44:52 vapier Exp $
DESCRIPTION="A set of tools that use the proc filesystem"
HOMEPAGE="http://psmisc.sourceforge.net/"
SRC_URI="mirror://sourceforge/psmisc/${P}.tar.gz
selinux? mirror://gentoo/${P}-selinux.patch.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64 ppc sparc alpha hppa arm mips"
IUSE="nls selinux"
DEPEND=">=sys-libs/ncurses-5.2-r2
selinux? ( >=sys-apps/selinux-small-2003011510-r2 )"
src_unpack() {
unpack ${A}
cd ${S}
# Necessary selinux patch
use selinux && epatch ${DISTDIR}/${P}-selinux.patch.bz2
# Fix gcc-3.3 compile issues.
# <azarah@gentoo.org> (18 May 2003)
epatch ${FILESDIR}/${P}-gcc33.patch
}
src_compile() {
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
}
|