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

Contents of /sys-apps/keyutils/keyutils-1.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Dec 8 20:11:16 2010 UTC (4 years ago) by armin76
Branch: MAIN
Changes since 1.7: +2 -2 lines
alpha/arm/ia64/s390/sh/sparc stable

(Portage version: 2.1.9.24/cvs/Linux ia64)

1 # Copyright 1999-2010 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.2-r2.ebuild,v 1.7 2010/08/12 01:25:16 josejx Exp $
4
5 inherit multilib eutils toolchain-funcs
6
7 DESCRIPTION="Linux Key Management Utilities"
8 HOMEPAGE="http://www.kernel.org/"
9 SRC_URI="http://people.redhat.com/~dhowells/${PN}/${P}.tar.bz2"
10
11 LICENSE="GPL-2 LGPL-2.1"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
14 IUSE=""
15
16 DEPEND=">=sys-kernel/linux-headers-2.6.11"
17
18 src_unpack() {
19 unpack ${A}
20 epatch "${FILESDIR}"/${PN}-1.2-makefile-fixup.patch
21 cd "${S}"
22 sed -i \
23 -e '/CFLAGS/s|:= -g -O2|+=|' \
24 Makefile || die
25 }
26
27 src_compile() {
28 emake \
29 CC=$(tc-getCC) \
30 CFLAGS="${CFLAGS}" \
31 LDFLAGS="${LDFLAGS}" \
32 || die "emake failed"
33 }
34
35 src_install() {
36 emake \
37 DESTDIR="${D}" \
38 LIBDIR="/$(get_libdir)" \
39 USRLIBDIR="/usr/$(get_libdir)" \
40 install || die
41 dodoc README
42
43 gen_usr_ldscript libkeyutils.so
44 }

  ViewVC Help
Powered by ViewVC 1.1.20