/[gentoo-x86]/sys-apps/keyutils/keyutils-1.5.5.ebuild
Gentoo

Contents of /sys-apps/keyutils/keyutils-1.5.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Jan 18 04:49:23 2014 UTC (6 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -2 lines
Add arm64 love.

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/keyutils/keyutils-1.5.5.ebuild,v 1.10 2014/01/04 23:30:45 robbat2 Exp $
4
5 EAPI="3"
6
7 inherit multilib eutils toolchain-funcs linux-info
8
9 DESCRIPTION="Linux Key Management Utilities"
10 HOMEPAGE="http://people.redhat.com/dhowells/keyutils/"
11 SRC_URI="http://people.redhat.com/dhowells/${PN}/${P}.tar.bz2"
12
13 LICENSE="GPL-2 LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
16 IUSE="test"
17
18 DEPEND="!prefix? ( >=sys-kernel/linux-headers-2.6.11 )"
19
20 pkg_setup() {
21 CONFIG_CHECK="~KEYS"
22 use test && CONFIG_CHECK="${CONFIG_CHECK} ~KEYS_DEBUG_PROC_KEYS"
23 ERROR_KEYS="You must have CONFIG_KEYS to use this package!"
24 ERROR_KEYS_DEBUG_PROC_KEYS="You must have CONFIG_KEYS_DEBUG_PROC_KEYS to run the package testsuite!"
25 linux-info_pkg_setup
26 }
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch
30 sed -i \
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.
40 sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die
41 # All the test files are bash, but try to execute via `sh`.
42 sed -i -r \
43 -e 's:([[:space:]])sh([[:space:]]):\1bash\2:' \
44 tests/{Makefile*,*.sh} || die
45 find tests/ -name '*.sh' -exec sed -i '1s:/sh$:/bash:' {} +
46 # Some tests call the kernel which calls userspace, but that will
47 # run the install keyutils rather than the locally compiled one,
48 # so disable round trip tests.
49 rm -rf tests/keyctl/requesting/{bad-args,piped,valid}
50 }
51
52 src_configure() {
53 tc-export CC
54 tc-export AR
55 }
56
57 src_test() {
58 # Execute the locally compiled code rather than the
59 # older versions already installed in the system.
60 LD_LIBRARY_PATH=${S} \
61 PATH="${S}:${PATH}" \
62 emake test || die
63 }
64
65 src_install() {
66 emake DESTDIR="${ED}" install || die
67 dodoc README
68 gen_usr_ldscript -a keyutils
69 }

  ViewVC Help
Powered by ViewVC 1.1.20