/[gentoo-x86]/sys-apps/ccs-tools/ccs-tools-1.8.3_p20120414.ebuild
Gentoo

Contents of /sys-apps/ccs-tools/ccs-tools-1.8.3_p20120414.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Apr 17 05:22:49 2012 UTC (2 years, 8 months ago) by naota
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/ccs-tools/ccs-tools-1.8.3_p20110929.ebuild,v 1.3 2011/10/01 00:39:25 naota Exp $
4
5 EAPI=3
6 inherit eutils multilib toolchain-funcs
7
8 MY_P="${P/_p/-}"
9 DESCRIPTION="TOMOYO Linux tools"
10 HOMEPAGE="http://tomoyo.sourceforge.jp/"
11 SRC_URI="mirror://sourceforge.jp/tomoyo/49693/${MY_P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 RESTRICT="test"
19
20 DEPEND="sys-libs/ncurses
21 sys-libs/readline"
22 RDEPEND="${DEPEND}
23 sys-apps/which"
24
25 S="${WORKDIR}/ccs-tools"
26
27 src_prepare() {
28 epatch "${FILESDIR}"/${P}-ldflags.patch
29 sed -i \
30 -e "s:gcc:$(tc-getCC):" \
31 -e "s/\(CFLAGS.*:=\).*/\1 ${CFLAGS}/" \
32 -e "s:/usr/lib:/usr/$(get_libdir):g" \
33 -e "s:= /:= ${EPREFIX}/:g" \
34 Include.make || die
35 }
36
37 src_test() {
38 cd "${S}/kernel_test"
39 emake || die
40 ./testall.sh || die
41 }
42
43 src_install() {
44 emake INSTALLDIR="${D}" install || die
45 dodoc README.ccs
46 }
47
48 pkg_postinst() {
49 elog "Execute the following command to setup the initial policy configuration:"
50 elog
51 elog "emerge --config =${CATEGORY}/${PF}"
52 elog
53 elog "For more information, please visit http://tomoyo.sourceforge.jp/1.8/"
54 elog
55 elog "This tools are for ccs-patch'ed kernels. There are also sys-apps/tomoyo-tools"
56 elog "which works with TOMOYO 2.x.x versions (already merged into Linux kernel)."
57 elog "If you'd like to try them, please emerge sys-apps/tomoyo-tools instead."
58 }
59
60 pkg_config() {
61 /usr/$(get_libdir)/ccs/init_policy
62 }

  ViewVC Help
Powered by ViewVC 1.1.20