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
commit2aff57a201a53504711167b2713750628c942e89 (patch)
treed51dfc04e958460b332eabca8479ef43058cf4d2 /sys-apps/ccs-tools
parentHandle large avatars wrt #265813, thanks to Alexandre Nuno Milheiro. (diff)
downloadhistorical-2aff57a201a53504711167b2713750628c942e89.tar.gz
historical-2aff57a201a53504711167b2713750628c942e89.tar.bz2
historical-2aff57a201a53504711167b2713750628c942e89.zip
Added initial policy to pkg_config, bug #277456. Changed HOMEPAGE.
Package-Manager: portage-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/Manifest3
-rw-r--r--sys-apps/ccs-tools/ccs-tools-1.6.8_p20090623-r1.ebuild80
3 files changed, 89 insertions, 2 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/Manifest b/sys-apps/ccs-tools/Manifest
index 40036937bc3b..cf18a90d1b19 100644
--- a/sys-apps/ccs-tools/Manifest
+++ b/sys-apps/ccs-tools/Manifest
@@ -1,5 +1,6 @@
AUX ccs-tools-1.6.8_p20090623-gentoo.patch 13446 RMD160 0c484fa4ebff532f8b18b3d590fe2a7ac7b18acb SHA1 ad9833b9e866073dc3596e78f4955fd512260113 SHA256 6813731520b05e84f95449db29cdaeab90324b565504677c257886f7434c21a1
DIST ccs-tools-1.6.8-20090623.tar.gz 144995 RMD160 41eb0bfd26c42d1eb81319d26596cfbbcab1b96e SHA1 93db999a014a4daa36ace2d5e3f4a0733cb43980 SHA256 d2e8eec17b02e7682c814ec98dd1158a00e7b5440f25f19b4d7d5b8fb0b2e78f
+EBUILD ccs-tools-1.6.8_p20090623-r1.ebuild 1868 RMD160 36f4d0cee044f00e367b4cd9ab9f193cd099e7ac SHA1 014837fa8c1d479d63647b2ff899e6b71ad96f71 SHA256 43c470e44e6a544844bcf881006c7188269cd9d02ceb8f96d7082dd7d5561a06
EBUILD ccs-tools-1.6.8_p20090623.ebuild 1424 RMD160 bdb32f70e3642b8c5271b7e2b8e70fb197ea111e SHA1 3360e837628a9b504d56a57455f64851a02c8854 SHA256 0a57b838fa1cc08a3fd650a7853999759b45c31efc9722ba3881317cce96e600
-MISC ChangeLog 592 RMD160 160894fc6bc8f4dfb030597e8281a7c6f5027fcf SHA1 3af43054edd14a7f2f8d3634ce4fc50e3bc3193b SHA256 6f17e5a438cf8373c7024e199664e7af9a8e77faccdd66801f377fa51307d9d7
+MISC ChangeLog 796 RMD160 f0a97815756cefba294b635a376ad1e4125779a2 SHA1 fae58739f40c08c9dad2f8dda94bcb8cd1dfce8d SHA256 140e500df7f5be95c36d111eb65aba8e11031b3fb3968f0ccc50ce21ff39d30c
MISC metadata.xml 221 RMD160 ca5e46f2e947fcae430e49859acaa4b25ab9d4b4 SHA1 b7f58eb04a9aceeb67104c0b81719e6e97da97f4 SHA256 138123f5d6199cbcc391346419b7b81d3ae9153c17670b18c540ff75a2287371
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
+}