Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 405973 | Differences between
and this patch

Collapse All | Expand All

(-)lsof-4.85-r2.ebuild (-3 / +23 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.85-r2.ebuild,v 1.1 2011/11/15 05:03:29 vapier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.85-r2.ebuild,v 1.1 2011/11/15 05:03:29 vapier Exp $
4
4
5
EAPI="2"
5
EAPI="3"
6
6
7
inherit eutils flag-o-matic toolchain-funcs
7
inherit eutils flag-o-matic toolchain-funcs
8
8
Lines 15-21 Link Here
15
15
16
LICENSE="lsof"
16
LICENSE="lsof"
17
SLOT="0"
17
SLOT="0"
18
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
18
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
19
IUSE="examples ipv6 rpc selinux static"
19
IUSE="examples ipv6 rpc selinux static"
20
20
21
RDEPEND="rpc? ( net-libs/libtirpc )
21
RDEPEND="rpc? ( net-libs/libtirpc )
Lines 39-47 Link Here
39
		Configure || die
39
		Configure || die
40
}
40
}
41
41
42
target() { usex kernel_FreeBSD freebsd linux ; }
42
target() {
43
	case ${CHOST} in
44
		*-darwin*)  echo darwin  ;;
45
		*-freebsd*) echo freebsd ;;
46
		*-solaris*) echo solaris ;;
47
		*-aix*)     echo aixgcc  ;;
48
		*)          echo linux   ;;
49
	esac
50
}
51
43
src_configure() {
52
src_configure() {
44
	use static && append-ldflags -static
53
	use static && append-ldflags -static
54
	use ppc-aix && append-ldflags -Wl,-bnolibpath
45
55
46
	append-cppflags $(usex rpc "$($(tc-getPKG_CONFIG) libtirpc --cflags)" -DHASNOTRPC)
56
	append-cppflags $(usex rpc "$($(tc-getPKG_CONFIG) libtirpc --cflags)" -DHASNOTRPC)
47
	append-cppflags $(usex ipv6 -{D,U}HASIPv6)
57
	append-cppflags $(usex ipv6 -{D,U}HASIPv6)
Lines 76-78 Link Here
76
	doman lsof.8 || die
86
	doman lsof.8 || die
77
	dodoc 00*
87
	dodoc 00*
78
}
88
}
89
90
pkg_postinst() {
91
	if [[ ${CHOST} == *-solaris* ]] ; then
92
		einfo "Note: to use lsof on Solaris you need read permissions on"
93
		einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys"
94
	elif [[ ${CHOST} == *-aix* ]] ; then
95
		einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and"
96
		einfo "/dev/kmem, i.e. you need to be root, or to be in the group system"
97
	fi
98
}

Return to bug 405973