/[gentoo-x86]/sys-apps/ccs-tools/ccs-tools-1.8.0_p20110214.ebuild
Gentoo

Contents of /sys-apps/ccs-tools/ccs-tools-1.8.0_p20110214.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Sep 29 21:48:40 2011 UTC (2 years, 11 months ago) by naota
Branch: MAIN
Changes since 1.1: +4 -3 lines
Clean up sed; Respect LDFLAGS; Deal with --as-needed. Patch-By: thomasq Bug #364921

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

1 # Copyright 1999-2011 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.0_p20110214.ebuild,v 1.1 2011/03/02 00:36:22 matsuu 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}/ccstools"
26
27 src_prepare() {
28 epatch "${FILESDIR}/${P}-parallel.patch"
29 epatch "${FILESDIR}/${P}-as-needed.patch"
30 epatch "${FILESDIR}/${P}-ldflags.patch"
31 sed -i \
32 -e "s:gcc:$(tc-getCC):" \
33 -e "s/\(CFLAGS.*:=\).*/\1 ${CFLAGS}/" \
34 -e "s:/usr/lib:/usr/$(get_libdir):g" \
35 -e "s:= /:= ${EPREFIX}/:g" \
36 Include.make || die
37 }
38
39 src_test() {
40 cd "${S}/kernel_test"
41 emake || die
42 ./testall.sh || die
43 }
44
45 src_install() {
46 emake INSTALLDIR="${D}" install || die
47
48 # insinto /etc/ccs
49 # doins ccstools.conf || die
50
51 dodoc README.ccs
52 }
53
54 pkg_postinst() {
55 elog "Execute the following command to setup the initial policy configuration:"
56 elog
57 elog "emerge --config =${CATEGORY}/${PF}"
58 elog
59 elog "For more information, please visit the following."
60 elog
61 elog "For >=kernel-2.6.36:"
62 elog "http://tomoyo.sourceforge.jp/2.3/"
63 elog
64 elog "For >=kernel-2.6.30:"
65 elog "http://tomoyo.sourceforge.jp/2.2/"
66 elog
67 elog "For <kernel-2.6.30 + ccs-patch:"
68 elog "http://tomoyo.sourceforge.jp/1.8/"
69 }
70
71 pkg_config() {
72 /usr/$(get_libdir)/ccs/init_policy.sh
73 }

  ViewVC Help
Powered by ViewVC 1.1.20