Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/keyutils: ChangeLog keyutils-1.5.9.ebuild
Date: Sat, 01 Mar 2014 04:44:56
Message-Id: 20140301044451.7C7A72004C@flycatcher.gentoo.org
1 radhermit 14/03/01 04:44:51
2
3 Modified: ChangeLog
4 Added: keyutils-1.5.9.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.40 sys-apps/keyutils/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/keyutils/ChangeLog?rev=1.40&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/keyutils/ChangeLog?rev=1.40&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/keyutils/ChangeLog?r1=1.39&r2=1.40
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/keyutils/ChangeLog,v
20 retrieving revision 1.39
21 retrieving revision 1.40
22 diff -u -r1.39 -r1.40
23 --- ChangeLog 18 Jan 2014 04:49:23 -0000 1.39
24 +++ ChangeLog 1 Mar 2014 04:44:51 -0000 1.40
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/keyutils
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/keyutils/ChangeLog,v 1.39 2014/01/18 04:49:23 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/keyutils/ChangeLog,v 1.40 2014/03/01 04:44:51 radhermit Exp $
30 +
31 +*keyutils-1.5.9 (01 Mar 2014)
32 +
33 + 01 Mar 2014; Tim Harder <radhermit@g.o> +keyutils-1.5.9.ebuild:
34 + Version bump.
35
36 18 Jan 2014; Mike Frysinger <vapier@g.o> keyutils-1.5.5.ebuild,
37 keyutils-1.5.8.ebuild:
38
39
40
41 1.1 sys-apps/keyutils/keyutils-1.5.9.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/keyutils/keyutils-1.5.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/keyutils/keyutils-1.5.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: keyutils-1.5.9.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/keyutils/keyutils-1.5.9.ebuild,v 1.1 2014/03/01 04:44:51 radhermit Exp $
51
52 EAPI="5"
53
54 inherit multilib eutils toolchain-funcs linux-info
55
56 DESCRIPTION="Linux Key Management Utilities"
57 HOMEPAGE="http://people.redhat.com/dhowells/keyutils/"
58 SRC_URI="http://people.redhat.com/dhowells/${PN}/${P}.tar.bz2"
59
60 LICENSE="GPL-2 LGPL-2.1"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
63 IUSE="test"
64
65 DEPEND="!prefix? ( >=sys-kernel/linux-headers-2.6.11 )"
66
67 pkg_setup() {
68 CONFIG_CHECK="~KEYS"
69 use test && CONFIG_CHECK="${CONFIG_CHECK} ~KEYS_DEBUG_PROC_KEYS"
70 ERROR_KEYS="You must have CONFIG_KEYS to use this package!"
71 ERROR_KEYS_DEBUG_PROC_KEYS="You must have CONFIG_KEYS_DEBUG_PROC_KEYS to run the package testsuite!"
72 linux-info_pkg_setup
73 }
74
75 src_prepare() {
76 epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch
77 sed -i \
78 -e '1iRPATH=' \
79 -e '/^C.*FLAGS/s|:=|+=|' \
80 -e 's:-Werror::' \
81 -e '/^BUILDFOR/s:=.*:=:' \
82 -e "/^LIBDIR/s:=.*:=/usr/$(get_libdir):" \
83 -e '/^USRLIBDIR/s:=.*:=$(LIBDIR):' \
84 Makefile || die
85
86 # The lsb check is useless, so avoid spurious command not found messages.
87 sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die
88 # All the test files are bash, but try to execute via `sh`.
89 sed -i -r \
90 -e 's:([[:space:]])sh([[:space:]]):\1bash\2:' \
91 tests/{Makefile*,*.sh} || die
92 find tests/ -name '*.sh' -exec sed -i '1s:/sh$:/bash:' {} +
93 # Some tests call the kernel which calls userspace, but that will
94 # run the install keyutils rather than the locally compiled one,
95 # so disable round trip tests.
96 rm -rf tests/keyctl/requesting/{bad-args,piped,valid}
97 }
98
99 src_configure() {
100 tc-export CC
101 tc-export AR
102 }
103
104 src_test() {
105 # Execute the locally compiled code rather than the
106 # older versions already installed in the system.
107 LD_LIBRARY_PATH=${S} \
108 PATH="${S}:${PATH}" \
109 emake test
110 }
111
112 src_install() {
113 emake DESTDIR="${ED}" install
114 dodoc README
115 gen_usr_ldscript -a keyutils
116 }