summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2009-07-21 23:48:01 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2009-07-21 23:48:01 +0000
commit807bcc9b05230fe73f922751005ef16b02e2522d (patch)
treeefce63805b5b1dcab3bd417a43838c45b84687b9 /sys-apps/ccs-tools
parentHandle large avatars wrt #265813, thanks to Alexandre Nuno Milheiro. (diff)
downloadgentoo-2-807bcc9b05230fe73f922751005ef16b02e2522d.tar.gz
gentoo-2-807bcc9b05230fe73f922751005ef16b02e2522d.tar.bz2
gentoo-2-807bcc9b05230fe73f922751005ef16b02e2522d.zip
Added initial policy to pkg_config, bug #277456. Changed HOMEPAGE.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/ccs-tools')
-rw-r--r--sys-apps/ccs-tools/ChangeLog8
-rw-r--r--sys-apps/ccs-tools/ccs-tools-1.6.8_p20090623-r1.ebuild80
2 files changed, 87 insertions, 1 deletions
diff --git a/sys-apps/ccs-tools/ChangeLog b/sys-apps/ccs-tools/ChangeLog
index c72b8e86a0f9..6ce6e013f3ef 100644
--- a/sys-apps/ccs-tools/ChangeLog
+++ b/sys-apps/ccs-tools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/ccs-tools
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/ccs-tools/ChangeLog,v 1.2 2009/07/12 04:24:32 matsuu Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/ccs-tools/ChangeLog,v 1.3 2009/07/21 23:48:01 matsuu Exp $
+
+*ccs-tools-1.6.8_p20090623-r1 (21 Jul 2009)
+
+ 21 Jul 2009; MATSUU Takuto <matsuu@gentoo.org>
+ +ccs-tools-1.6.8_p20090623-r1.ebuild:
+ Added initial policy to pkg_config, bug #277456. Changed HOMEPAGE.
12 Jul 2009; MATSUU Takuto <matsuu@gentoo.org>
ccs-tools-1.6.8_p20090623.ebuild:
diff --git a/sys-apps/ccs-tools/ccs-tools-1.6.8_p20090623-r1.ebuild b/sys-apps/ccs-tools/ccs-tools-1.6.8_p20090623-r1.ebuild
new file mode 100644
index 000000000000..58d1c693fbf3
--- /dev/null
+++ b/sys-apps/ccs-tools/ccs-tools-1.6.8_p20090623-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/ccs-tools/ccs-tools-1.6.8_p20090623-r1.ebuild,v 1.1 2009/07/21 23:48:01 matsuu Exp $
+
+inherit eutils multilib toolchain-funcs
+
+MY_P="${P/_p/-}"
+DESCRIPTION="TOMOYO Linux tools"
+HOMEPAGE="http://tomoyo.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/tomoyo/30298/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT="test"
+
+DEPEND="sys-libs/ncurses
+ sys-libs/readline"
+RDEPEND="${DEPEND}
+ sys-apps/which"
+
+S="${WORKDIR}/ccstools"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+
+ sed -i \
+ -e "/^CC=/s:gcc:$(tc-getCC):" \
+ -e "/^CFLAGS=/s:-O2:${CFLAGS}:" \
+ -e "s:/usr/lib/:/usr/$(get_libdir)/:g" \
+ Makefile || die
+
+ sed -i \
+ -e "s:/usr/lib/ccs:/usr/$(get_libdir)/ccs:g" \
+ init_policy.sh tomoyo_init_policy.sh || die
+
+ echo "CONFIG_PROTECT=\"/usr/$(get_libdir)/ccs/conf\"" > "${T}/50${PN}"
+}
+
+src_test() {
+ cd "${S}/kernel_test"
+ emake || die
+ ./testall.sh || die
+}
+
+src_install() {
+ emake INSTALLDIR="${D}" install || die
+
+ rm "${D}"/usr/$(get_libdir)/ccs/{COPYING.ccs,README.ccs,ccstools.conf} || die
+ insinto /usr/$(get_libdir)/ccs/conf
+ doins ccstools.conf || die
+ dosym conf/ccstools.conf /usr/$(get_libdir)/ccs/ccstools.conf || die
+
+ doenvd "${T}/50${PN}" || die
+
+ dodoc README.ccs
+}
+
+pkg_postinst() {
+ elog "Execute the following command to setup the initial policy configuration:"
+ elog
+ elog "emerge --config =${CATEGORY}/${PF}"
+ elog
+ elog "For more information, please visit the following."
+ elog
+ elog "For >=kernel-2.6.30:"
+ elog "http://tomoyo.sourceforge.jp/en/2.2.x/"
+ elog
+ elog "For <kernel-2.6.30 + ccs-patch:"
+ elog "http://tomoyo.sourceforge.jp/en/1.6.x/"
+}
+
+pkg_config() {
+ /usr/$(get_libdir)/ccs/tomoyo_init_policy.sh
+}