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

(-)old/lsof-4.85-r2.ebuild (-3 / +29 lines)
Line 0 Link Here
1
Don't ask on stdin for changing the value of HASXOPT_ROOT.
2
3
--- Customize.orig	2009-07-28 11:59:23 +0200
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 ~amd64-linux ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~ppc-aix ~ppc-macos ~s390 ~sh ~sparc ~sparc-solaris ~x64-solaris ~x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~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 28-33 Link Here
28
	unpack ${A}
28
	unpack ${A}
29
	cd ${MY_P}
29
	cd ${MY_P}
30
	unpack ./${MY_P}_src.tar
30
	unpack ./${MY_P}_src.tar
31
	cd "${S}"
32
	epatch "${FILESDIR}"/${PN}-4.81-aix.patch #278831
31
}
33
}
32
34
33
src_prepare() {
35
src_prepare() {
Lines 39-45 Link Here
39
		Configure || die
41
		Configure || die
40
}
42
}
41
43
42
target() { usex kernel_FreeBSD freebsd linux ; }
44
target() {
45
	case ${CHOST} in
46
		*-darwin*)  echo darwin  ;;
47
		*-freebsd*) echo freebsd ;;
48
		*-solaris*) echo solaris ;;
49
		*-aix*)     echo aixgcc  ;;
50
		*)          echo linux   ;;
51
	esac
52
}
53
ar() {
54
	case ${CHOST} in
55
		*-aix*)     echo "ar -X32_64 -v -q" ;;
56
		*)          echo "$(tc-getAR) rc"   ;;
57
	esac
58
}
43
src_configure() {
59
src_configure() {
44
	use static && append-ldflags -static
60
	use static && append-ldflags -static
45
61
Lines 55-61 Link Here
55
	LINUX_HASSELINUX=$(usex selinux y n) \
71
	LINUX_HASSELINUX=$(usex selinux y n) \
56
	LSOF_INCLUDE=${T} \
72
	LSOF_INCLUDE=${T} \
57
	LSOF_CC=$(tc-getCC) \
73
	LSOF_CC=$(tc-getCC) \
58
	LSOF_AR="$(tc-getAR) rc" \
74
	LSOF_AR="$(ar)" \
59
	LSOF_RANLIB=$(tc-getRANLIB) \
75
	LSOF_RANLIB=$(tc-getRANLIB) \
60
	LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
76
	LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
61
	./Configure -n $(target) || die
77
	./Configure -n $(target) || die
Lines 76-78 Link Here
76
	doman lsof.8 || die
92
	doman lsof.8 || die
77
	dodoc 00*
93
	dodoc 00*
78
}
94
}
95
96
pkg_postinst() {
97
	if [[ ${CHOST} == *-solaris* ]] ; then
98
		einfo "Note: to use lsof on Solaris you need read permissions on"
99
		einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys"
100
	fi
101
}

Return to bug 405973