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

Collapse All | Expand All

(-)libcap-2.22-r1.ebuild (-10 / +27 lines)
Lines 1-10 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2013 Gentoo Foundation
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-libs/libcap/libcap-2.22-r1.ebuild,v 1.2 2013/02/17 07:58:20 zmedico Exp $
3
# $Header: $
4
4
5
EAPI="4"
5
EAPI="4"
6
6
7
inherit eutils multilib toolchain-funcs pam
7
inherit eutils multilib multilib-minimal toolchain-funcs pam
8
8
9
DESCRIPTION="POSIX 1003.1e capabilities"
9
DESCRIPTION="POSIX 1003.1e capabilities"
10
HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html"
10
HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html"
Lines 16-22 SLOT="0" Link Here
16
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
16
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
17
IUSE="pam"
17
IUSE="pam"
18
18
19
RDEPEND="sys-apps/attr
19
RDEPEND="sys-apps/attr[${MULTILIB_USEDEP}]
20
	pam? ( virtual/pam )"
20
	pam? ( virtual/pam )"
21
DEPEND="${RDEPEND}
21
DEPEND="${RDEPEND}
22
	sys-kernel/linux-headers"
22
	sys-kernel/linux-headers"
Lines 26-52 src_prepare() { Link Here
26
	epatch "${FILESDIR}"/${PN}-2.22-no-perl.patch
26
	epatch "${FILESDIR}"/${PN}-2.22-no-perl.patch
27
	epatch "${FILESDIR}"/${PN}-2.20-ignore-RAISE_SETFCAP-install-failures.patch
27
	epatch "${FILESDIR}"/${PN}-2.20-ignore-RAISE_SETFCAP-install-failures.patch
28
	epatch "${FILESDIR}"/${PN}-2.21-include.patch
28
	epatch "${FILESDIR}"/${PN}-2.21-include.patch
29
30
	multilib_copy_sources
31
}
32
33
multilib_src_configure() {
34
	if multilib_build_binaries && use pam; then
35
		pam=yes
36
	else
37
		pam=no
38
	fi
39
29
	sed -i \
40
	sed -i \
30
		-e "/^PAM_CAP/s:=.*:=$(usex pam):" \
41
		-e "/^PAM_CAP/s:=.*:=${pam}:" \
31
		-e '/^DYNAMIC/s:=.*:=yes:' \
42
		-e '/^DYNAMIC/s:=.*:=yes:' \
32
		-e "/^lib=/s:=.*:=/usr/$(get_libdir):" \
43
		-e "/^lib=/s:=.*:=/usr/$(get_libdir):" \
33
		Make.Rules
44
		Make.Rules
34
}
45
}
35
46
36
src_configure() {
47
multilib_src_compile() {
37
	tc-export_build_env BUILD_CC
48
	tc-export_build_env BUILD_CC
38
	tc-export CC AR RANLIB
49
	tc-export AR RANLIB
50
51
	default
39
}
52
}
40
53
41
src_install() {
54
multilib_src_install() {
42
	# no configure, needs explicit install line #444724#c3
55
	# no configure, needs explicit install line #444724#c3
43
	emake install DESTDIR="${ED}"
56
	emake install DESTDIR="${ED}"
44
57
45
	gen_usr_ldscript -a cap
58
	multilib_build_binaries && gen_usr_ldscript -a cap
46
59
47
	rm -rf "${ED}"/usr/$(get_libdir)/security
60
	rm -rf "${ED}"/usr/$(get_libdir)/security
48
	dopammod pam_cap/pam_cap.so
61
	if multilib_build_binaries && use pam; then
49
	dopamsecurity '' pam_cap/capability.conf
62
		dopammod pam_cap/pam_cap.so
63
		dopamsecurity '' pam_cap/capability.conf
64
	fi
65
}
50
66
67
multilib_src_install_all() {
51
	dodoc CHANGELOG README doc/capability.notes
68
	dodoc CHANGELOG README doc/capability.notes
52
}
69
}

Return to bug 488286