/[gentoo-x86]/sys-apps/ccs-tools/ccs-tools-1.7.1_p20100110.ebuild
Gentoo

Contents of /sys-apps/ccs-tools/ccs-tools-1.7.1_p20100110.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Feb 4 11:24:12 2010 UTC (4 years, 10 months ago) by matsuu
Branch: MAIN
Version bumped.
(Portage version: 2.1.7.16/cvs/Linux x86_64)

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/ccs-tools/Attic/ccs-tools-1.7.0_p20090903.ebuild,v 1.1 2009/11/07 16:27:31 matsuu Exp $
4
5 inherit eutils multilib toolchain-funcs
6
7 MY_P="${P/_p/-}"
8 DESCRIPTION="TOMOYO Linux tools"
9 HOMEPAGE="http://tomoyo.sourceforge.jp/"
10 SRC_URI="mirror://sourceforge.jp/tomoyo/43376/${MY_P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE=""
16
17 RESTRICT="test"
18
19 DEPEND="sys-libs/ncurses
20 sys-libs/readline"
21 RDEPEND="${DEPEND}
22 sys-apps/which"
23
24 S="${WORKDIR}/ccstools"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 sed -i \
31 -e "/^CC=/s:gcc:$(tc-getCC):" \
32 -e "/^CFLAGS=/s:-O2:${CFLAGS}:" \
33 -e "s:/usr/lib/:/usr/$(get_libdir)/:g" \
34 Makefile || 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
46 insinto /etc/ccs
47 doins ccstools.conf || die
48
49 dodoc README.ccs
50 }
51
52 pkg_postinst() {
53 elog "Execute the following command to setup the initial policy configuration:"
54 elog
55 elog "emerge --config =${CATEGORY}/${PF}"
56 elog
57 elog "For more information, please visit the following."
58 elog
59 elog "For >=kernel-2.6.30:"
60 elog "http://tomoyo.sourceforge.jp/en/2.2.x/"
61 elog
62 elog "For <kernel-2.6.30 + ccs-patch:"
63 elog "http://tomoyo.sourceforge.jp/en/1.7/"
64 }
65
66 pkg_config() {
67 /usr/$(get_libdir)/ccs/init_policy.sh
68 }

  ViewVC Help
Powered by ViewVC 1.1.20