Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI="5" |
5 |
EAPI="5" |
6 |
|
6 |
|
7 |
inherit multilib eutils toolchain-funcs linux-info |
7 |
inherit multilib eutils toolchain-funcs linux-info multilib-minimal |
8 |
|
8 |
|
9 |
DESCRIPTION="Linux Key Management Utilities" |
9 |
DESCRIPTION="Linux Key Management Utilities" |
10 |
HOMEPAGE="http://people.redhat.com/dhowells/keyutils/" |
10 |
HOMEPAGE="http://people.redhat.com/dhowells/keyutils/" |
Lines 27-41
Link Here
|
27 |
|
27 |
|
28 |
src_prepare() { |
28 |
src_prepare() { |
29 |
epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch |
29 |
epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch |
30 |
sed -i \ |
30 |
|
31 |
-e '1iRPATH=' \ |
|
|
32 |
-e '/^C.*FLAGS/s|:=|+=|' \ |
33 |
-e 's:-Werror::' \ |
34 |
-e '/^BUILDFOR/s:=.*:=:' \ |
35 |
-e "/^LIBDIR/s:=.*:=/usr/$(get_libdir):" \ |
36 |
-e '/^USRLIBDIR/s:=.*:=$(LIBDIR):' \ |
37 |
Makefile || die |
38 |
|
39 |
# The lsb check is useless, so avoid spurious command not found messages. |
31 |
# The lsb check is useless, so avoid spurious command not found messages. |
40 |
sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die |
32 |
sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die |
41 |
# All the test files are bash, but try to execute via `sh`. |
33 |
# All the test files are bash, but try to execute via `sh`. |
Lines 47-60
Link Here
|
47 |
# run the install keyutils rather than the locally compiled one, |
39 |
# run the install keyutils rather than the locally compiled one, |
48 |
# so disable round trip tests. |
40 |
# so disable round trip tests. |
49 |
rm -rf tests/keyctl/requesting/{bad-args,piped,valid} |
41 |
rm -rf tests/keyctl/requesting/{bad-args,piped,valid} |
|
|
42 |
|
43 |
multilib_copy_sources |
50 |
} |
44 |
} |
51 |
|
45 |
|
52 |
src_configure() { |
46 |
multilib_src_configure() { |
|
|
47 |
sed -i \ |
48 |
-e '1iRPATH=' \ |
49 |
-e '/^C.*FLAGS/s|:=|+=|' \ |
50 |
-e 's:-Werror::' \ |
51 |
-e '/^BUILDFOR/s:=.*:=:' \ |
52 |
-e "/^LIBDIR/s:=.*:=/usr/$(get_libdir):" \ |
53 |
-e '/^USRLIBDIR/s:=.*:=$(LIBDIR):' \ |
54 |
Makefile || die |
55 |
|
53 |
tc-export CC |
56 |
tc-export CC |
54 |
tc-export AR |
57 |
tc-export AR |
55 |
} |
58 |
} |
56 |
|
59 |
|
57 |
src_test() { |
60 |
multilib_src_test() { |
58 |
# Execute the locally compiled code rather than the |
61 |
# Execute the locally compiled code rather than the |
59 |
# older versions already installed in the system. |
62 |
# older versions already installed in the system. |
60 |
LD_LIBRARY_PATH=${S} \ |
63 |
LD_LIBRARY_PATH=${S} \ |
Lines 62-69
Link Here
|
62 |
emake test |
65 |
emake test |
63 |
} |
66 |
} |
64 |
|
67 |
|
65 |
src_install() { |
68 |
multilib_src_install_all() { |
66 |
emake DESTDIR="${ED}" install |
|
|
67 |
dodoc README |
69 |
dodoc README |
68 |
gen_usr_ldscript -a keyutils |
70 |
gen_usr_ldscript -a keyutils |
69 |
} |
71 |
} |