From: | "Matsuu Takuto (matsuu)" <matsuu@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-apps/tomoyo-tools: metadata.xml ChangeLog tomoyo-tools-2.2.0_p20090727.ebuild |
Date: | Tue, 28 Jul 2009 23:48:38 |
Message-Id: | E1MVwPM-0001yY-K4@stork.gentoo.org |
1 | matsuu 09/07/28 23:48:36 |
2 | |
3 | Added: metadata.xml ChangeLog |
4 | tomoyo-tools-2.2.0_p20090727.ebuild |
5 | Log: |
6 | Initial import, bug #278513. |
7 | (Portage version: 2.1.6.13/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-apps/tomoyo-tools/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/tomoyo-tools/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/tomoyo-tools/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>no-herd</herd> |
21 | <maintainer> |
22 | <email>matsuu@g.o</email> |
23 | </maintainer> |
24 | </pkgmetadata> |
25 | |
26 | |
27 | |
28 | |
29 | 1.1 sys-apps/tomoyo-tools/ChangeLog |
30 | |
31 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/tomoyo-tools/ChangeLog?rev=1.1&view=markup |
32 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/tomoyo-tools/ChangeLog?rev=1.1&content-type=text/plain |
33 | |
34 | Index: ChangeLog |
35 | =================================================================== |
36 | # ChangeLog for sys-apps/tomoyo-tools |
37 | # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
38 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/tomoyo-tools/ChangeLog,v 1.1 2009/07/28 23:48:36 matsuu Exp $ |
39 | |
40 | *tomoyo-tools-2.2.0_p20090727 (28 Jul 2009) |
41 | |
42 | 28 Jul 2009; MATSUU Takuto <matsuu@g.o> |
43 | +tomoyo-tools-2.2.0_p20090727.ebuild, |
44 | +files/tomoyo-tools-2.2.0_p20090727-gentoo.patch, +metadata.xml: |
45 | Initial import, bug #278513. |
46 | |
47 | |
48 | |
49 | |
50 | 1.1 sys-apps/tomoyo-tools/tomoyo-tools-2.2.0_p20090727.ebuild |
51 | |
52 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/tomoyo-tools/tomoyo-tools-2.2.0_p20090727.ebuild?rev=1.1&view=markup |
53 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/tomoyo-tools/tomoyo-tools-2.2.0_p20090727.ebuild?rev=1.1&content-type=text/plain |
54 | |
55 | Index: tomoyo-tools-2.2.0_p20090727.ebuild |
56 | =================================================================== |
57 | # Copyright 1999-2009 Gentoo Foundation |
58 | # Distributed under the terms of the GNU General Public License v2 |
59 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/tomoyo-tools/tomoyo-tools-2.2.0_p20090727.ebuild,v 1.1 2009/07/28 23:48:36 matsuu Exp $ |
60 | |
61 | inherit eutils multilib toolchain-funcs |
62 | |
63 | MY_P="${P/_p/-}" |
64 | DESCRIPTION="TOMOYO Linux tools" |
65 | HOMEPAGE="http://tomoyo.sourceforge.jp/" |
66 | SRC_URI="mirror://sourceforge.jp/tomoyo/41908/${MY_P}.tar.gz" |
67 | |
68 | LICENSE="GPL-2" |
69 | SLOT="0" |
70 | KEYWORDS="~amd64 ~x86" |
71 | IUSE="" |
72 | |
73 | DEPEND="sys-libs/ncurses" |
74 | RDEPEND="${DEPEND} |
75 | !sys-apps/ccs-tools" |
76 | |
77 | S="${WORKDIR}/${PN}" |
78 | |
79 | src_unpack() { |
80 | unpack ${A} |
81 | cd "${S}" |
82 | |
83 | epatch "${FILESDIR}/${P}-gentoo.patch" |
84 | |
85 | sed -i \ |
86 | -e "/^CC=/s:gcc:$(tc-getCC):" \ |
87 | -e "/^CFLAGS=/s:-O2:${CFLAGS}:" \ |
88 | -e "s:/usr/lib/:/usr/$(get_libdir)/:g" \ |
89 | Makefile || die |
90 | |
91 | echo "CONFIG_PROTECT=\"/usr/$(get_libdir)/tomoyo/conf\"" > "${T}/50${PN}" |
92 | } |
93 | |
94 | src_install() { |
95 | emake INSTALLDIR="${D}" install || die |
96 | |
97 | rm "${D}"/usr/$(get_libdir)/tomoyo/{COPYING.tomoyo,README.tomoyo,tomoyotools.conf} || die |
98 | insinto /usr/$(get_libdir)/tomoyo/conf |
99 | doins tomoyotools.conf || die |
100 | dosym conf/tomoyotools.conf /usr/$(get_libdir)/tomoyo/tomoyotools.conf || die |
101 | |
102 | doenvd "${T}/50${PN}" || die |
103 | |
104 | dodoc README.tomoyo |
105 | } |
106 | |
107 | pkg_postinst() { |
108 | elog "Execute the following command to setup the initial policy configuration:" |
109 | elog |
110 | elog "emerge --config =${CATEGORY}/${PF}" |
111 | elog |
112 | elog "For more information, please visit the following." |
113 | elog |
114 | elog "http://tomoyo.sourceforge.jp/" |
115 | } |
116 | |
117 | pkg_config() { |
118 | /usr/$(get_libdir)/tomoyo/tomoyo_init_policy |
119 | } |