summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2009-06-20 22:15:12 +0000
committerNaohiro Aota <naota@gentoo.org>2009-06-20 22:15:12 +0000
commit31d406b944728a7caee44d33578b05424f1b7297 (patch)
tree21c6edf3e9e2d3e3daef7ff71221cf4849f09856 /sys-kernel
parentdev-cpp/libvmime: compile with gcc-4.4, improved dependencies, new USE flags (diff)
downloadsunrise-31d406b944728a7caee44d33578b05424f1b7297.tar.gz
sunrise-31d406b944728a7caee44d33578b05424f1b7297.tar.bz2
sunrise-31d406b944728a7caee44d33578b05424f1b7297.zip
sys-kernel/ccs-sources: add old versions thanks to Tommy[D]
svn path=/sunrise/; revision=8681
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/ccs-sources/ChangeLog6
-rw-r--r--sys-kernel/ccs-sources/Manifest26
-rw-r--r--sys-kernel/ccs-sources/ccs-sources-2.6.16.ebuild41
-rw-r--r--sys-kernel/ccs-sources/ccs-sources-2.6.25.ebuild41
-rw-r--r--sys-kernel/ccs-sources/ccs-sources-2.6.26.ebuild41
-rw-r--r--sys-kernel/ccs-sources/ccs-sources-2.6.27-r1.ebuild41
-rw-r--r--sys-kernel/ccs-sources/ccs-sources-2.6.28-r6.ebuild41
-rw-r--r--sys-kernel/ccs-sources/ccs-sources-2.6.29-r5.ebuild41
8 files changed, 277 insertions, 1 deletions
diff --git a/sys-kernel/ccs-sources/ChangeLog b/sys-kernel/ccs-sources/ChangeLog
index 041e699cf..2021f1827 100644
--- a/sys-kernel/ccs-sources/ChangeLog
+++ b/sys-kernel/ccs-sources/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 20 Jun 2009; Naohiro Aota <naota@elisp.net> +ccs-sources-2.6.16.ebuild,
+ +ccs-sources-2.6.25.ebuild, +ccs-sources-2.6.26.ebuild,
+ +ccs-sources-2.6.27-r1.ebuild, +ccs-sources-2.6.28-r6.ebuild,
+ +ccs-sources-2.6.29-r5.ebuild:
+ add old versions thanks to Tommy[D]
+
20 Jun 2009; Naohiro Aota <naota@elisp.net> +ccs-sources-2.6.30-r1.ebuild,
+metadata.xml:
New ebuild for bug 273199 thanks to Tommy[D], _AxS_, ssuomine, mrpouet, and
diff --git a/sys-kernel/ccs-sources/Manifest b/sys-kernel/ccs-sources/Manifest
index 36fd51d92..5e07930b5 100644
--- a/sys-kernel/ccs-sources/Manifest
+++ b/sys-kernel/ccs-sources/Manifest
@@ -1,7 +1,31 @@
DIST ccs-patch-1.6.8-20090528.tar.gz 829922 RMD160 7d6f67263330c9c3ad4c869d351d4a40c3fe9f5b SHA1 9561cd218401578884ec56ba08bf96fcf1205d2b SHA256 c29dda2699eff64fc09278fd39a3cf7c06df896cc1c698860899b1db7306e3e5
+DIST genpatches-2.6.16-15.base.tar.bz2 98632 RMD160 46e8cfcae8fea262d7599c2e4d3e7fbc8af239b2 SHA1 e0f253ad01a4da388675af4b90223289d9bcd578 SHA256 fb78f2a4d32d1770a34d9ee254686a6a12102fa99c1bb73e9c282ab5f82dddaa
+DIST genpatches-2.6.16-15.extras.tar.bz2 137758 RMD160 4800c6612a3d9f1c2d7f4af923ae5c254416fbcb SHA1 29ed0dd9dc7965b4755048792eee33aea38d5311 SHA256 6ce07f500b9b76a988d2384cb7fd73dda70543f9a6429f5ffea1ea737c534fad
+DIST genpatches-2.6.25-11.base.tar.bz2 137951 RMD160 c8df40098760d8796e653140cbb1df1ec7f42ab7 SHA1 bd94c26d6246279ed53042523de99ebaf13dd6e8 SHA256 a651296c2aa446665211c4e4de304e47f765dc2f21a4b20251ebeeb1cb1b2c83
+DIST genpatches-2.6.25-11.extras.tar.bz2 41737 RMD160 c6cf651ccb5ef6ab7a82f1a07c88461309ffc0be SHA1 bcb0846d4450204afb0f2185d1396ccf4f497032 SHA256 2033b6b4cb75a9293349ef81d7f4702935c974541bdfa013a4258894b4152fad
+DIST genpatches-2.6.26-5.base.tar.bz2 136439 RMD160 3e175f38bde2440eae69a0e0c96fff49ede69a19 SHA1 8e957e13c43ba54e68c338a9326f686d6267a53c SHA256 a55a8601f18ad9ff4c42ef44ee331ded58160f5bd3b67a84bf99ab0c4afdc791
+DIST genpatches-2.6.26-5.extras.tar.bz2 41362 RMD160 f8bd552616a6d0cab2eda990846500a2a51d82df SHA1 7184d30f84581741e606f79ae91498ca4e19ab22 SHA256 3def5223d1c59af93afe0d8180b8bfb550bb1ba01ed33bb6b7f1ab12f93b89b0
+DIST genpatches-2.6.27-12.base.tar.bz2 419514 RMD160 e48d04a444d283a121bcf7a8aed97afe259e8852 SHA1 6ea04ffa02fb371bd15e723bd2da228c7b6a2482 SHA256 d4af82596e1e1903319d3ca813315412c5cbaa36cf3c7599c9d2f991a07ad18a
+DIST genpatches-2.6.27-12.extras.tar.bz2 41427 RMD160 69f49747c7572da5de482f187f33b3c30d4a76a0 SHA1 e7782206255103cb6981d411016d026384748b9a SHA256 b80a41d8c954fe1ad32f2273f0fdeec9b682a73a07e3d2a49b1bfd8b48594414
+DIST genpatches-2.6.28-9.base.tar.bz2 227921 RMD160 0ccf3b9f6a4ceded79054da834a22b6e6b7866e2 SHA1 bd2ad165fdedb5a94d59f08e901767b0efc3b375 SHA256 a07ebc343d262ae77416fadb9c3975d64ef9365c033d49de8d390fcab4e531c2
+DIST genpatches-2.6.28-9.extras.tar.bz2 42227 RMD160 0c22176d28ae5d1d9a2278ab53b3ac6af74fb8ec SHA1 a39873ccbe87933c11108b454b24afde09ad20b2 SHA256 8d6f44fab5977f89721df72d1320560fb2345eac306fd38f31fe2194a6a67634
+DIST genpatches-2.6.29-7.base.tar.bz2 100772 RMD160 4f91130b79aebc13691440aa7cbc1115d2002976 SHA1 0c4db5e602991fc183935438102eb09b93250d91 SHA256 05e7e7bffc2a5e10872fdbd23e3eca1b85aeedf618a9ebb2ab90b7d013e4e523
+DIST genpatches-2.6.29-7.extras.tar.bz2 24650 RMD160 83ff041d4116b2364ab0dc1942c16c8395f9e08c SHA1 e3b480ff3c4b34907df9c21759c9e594774a700e SHA256 056665a12ef74884943c5e933cf68468f4101da4f9786c8db0222fe374b8273f
DIST genpatches-2.6.30-2.base.tar.bz2 945 RMD160 53c99ef4b6f514a20f6ef29f914d046c2443ae5b SHA1 e06a4f55abb4baed2d67ad0ebcbcbfd75ca4da25 SHA256 9a0e65eb6433a38a4b2e71fa2f4db631a5504486d6dc0f43ba986ea164ca02c2
DIST genpatches-2.6.30-2.extras.tar.bz2 24671 RMD160 e8cadff5be621233e664a3e35b5210818cc4d083 SHA1 886172bdaa420b1ecf54d8e57f3c36bb2e07eb2a SHA256 7b71b08797f6e3e05b662b98f8f7a80da7cb708070ff50eed9d01fe7c2e42a3f
+DIST linux-2.6.16.tar.bz2 40845005 RMD160 af5c2f55733fadd2fdf8b00da55e7b31d516d4e8 SHA1 bef21cd5063a648f33a99a26f4742dd05eb4dca2 SHA256 1200dcc7e60fcdaf68618dba991917a47e41e67099e8b22143976ec972e2cad7
+DIST linux-2.6.25.tar.bz2 48601689 RMD160 cf3ed52f888fe9df7a93abe4fdc2f598e1ba0ce4 SHA1 aa6187a1c212dd2d8bd906b023fcefdcf711f35e SHA256 108b2a3f2b05c0e57d1d0977619525e46f8d4b425aef4b38b47dcf94292f2dd2
+DIST linux-2.6.26.tar.bz2 49441874 RMD160 57c37e81afa48e7c05e1a933d390a12ac2921255 SHA1 3f44384bf84f27add3b6c43ec68f974d7f7e9c67 SHA256 666488e2511393fdb901eaf1e67275bcc38ab37c930e8a9adb290a95c1721a2a
+DIST linux-2.6.27.tar.bz2 50355835 RMD160 5be4595ad824a4af67c1ec0c692838ad0c31f0c0 SHA1 8425ec3be2652f9d511911ff4fcf99039d4574be SHA256 0e99bf9e83f4d1ae0c656741a84dfddfa9c4d2469cf35475f5939d02dc3e4393
+DIST linux-2.6.28.tar.bz2 52665364 RMD160 47e8925220e29e239f9478228fc53543c1f7b300 SHA1 4f40f8bf3fd110b0cc6e1fea5f539c98f9959e94 SHA256 ae0d97c55efe7fce01273c97f8152af0deff5541e3bbf5b9ad98689112b54380
+DIST linux-2.6.29.tar.bz2 56579370 RMD160 e0e8c0635665ed34618b04fe1140015a4b6ff806 SHA1 0640a2f4bea3fc272541f322b74ea365ad7f2349 SHA256 58a5ea16d499fe06f90fcbf1d687d1235d2cb9bc28bf979867bd3faadf38fc3f
DIST linux-2.6.30.tar.bz2 59435895 RMD160 72219f992c6266dfe78c6d803d0506c9db1e45b8 SHA1 5fb7f2ccdc59c57887d586971a157bee7af324d1 SHA256 d7b9f19b92fd5c693c16cd62f441d051b699f28ec6a175d1b464e58bacd8c78f
+EBUILD ccs-sources-2.6.16.ebuild 1053 RMD160 450955cbadfe55c8be8ff8a4046f64b38b189a83 SHA1 14e48939a4ad002cbd79ab4b172b0bdf5a4d9a13 SHA256 8767cc2ada737e31ec8c0a7e90bc5661a3cc03ea0b0a7c44220b448253a59e38
+EBUILD ccs-sources-2.6.25.ebuild 1053 RMD160 d19c27942c68c8bfbab50df13699986da600905b SHA1 8626c9ac58d9497c79c00434856d06635438bd6b SHA256 c9d3bfa213445d073c319b7b84ba949da58c2892d5b86efb47e1b867e4082df0
+EBUILD ccs-sources-2.6.26.ebuild 1052 RMD160 e9333a831b8c942015a6eed2790b5780ced66b35 SHA1 4dbd57c9ad3a0641e513c720ed90b4891ea62588 SHA256 a70da2c40fa27bca6df6ae17952ccb10d68591afd867f055e0ed63e13923cda0
+EBUILD ccs-sources-2.6.27-r1.ebuild 1053 RMD160 570765bc5c2727ba1d44c9dc5d4b20fe414db6ea SHA1 90f2cdc7f0353e64c8f42bce34b5c995a2e63d58 SHA256 0de261831b101841e0b3ff64765670886cb581cf4b468003fb4c729c1a755103
+EBUILD ccs-sources-2.6.28-r6.ebuild 1052 RMD160 f1ee5e717831986882ac8c4691a944e58dde46f1 SHA1 04269b4314d5ad0ea736d6f4c9b7b96176cb99c4 SHA256 a75b3cd1d0babc8d7eb4b9b82b34cdb2a85f15c48dfe4c650df611da35470304
+EBUILD ccs-sources-2.6.29-r5.ebuild 1052 RMD160 e3520181d26b358cc72746c4d76b1fe3a35d1e31 SHA1 710ddb469bffceb10d618984fcc410a8005d6a64 SHA256 fab0ee9c1b907bac64bd16d5c6a9a29b7d32fbeea89145dcbf8e144173b467a3
EBUILD ccs-sources-2.6.30-r1.ebuild 1052 RMD160 1ebc3f1fc9f1e609cf08048e3a8116829dbfa0b7 SHA1 0ae5d98ab05fe0646f26cf8f509c01711a65e834 SHA256 63d0bf6d332c00410a605738c335c05ceae5805e8e39a47cb8ff8a71040a267a
-MISC ChangeLog 304 RMD160 c71079f96b03112eba983ae2c7ed46904e4e0848 SHA1 4bdf5f9eb897a7da07706a42adc8ff2f8681f033 SHA256 b120c5388fb861bb09bc4d98adb182fe0990cb9cb9609b8bcdcf4ebf899715bb
+MISC ChangeLog 572 RMD160 848902b20afa08aee1344538dc2b026f0aa27804 SHA1 1037ce8960e999f3574000f307ab3ee0ca595866 SHA256 f86facbe4a8bbb63702ad745a83643f330049cbb89faa549b6b781c9a8bc0c2a
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/sys-kernel/ccs-sources/ccs-sources-2.6.16.ebuild b/sys-kernel/ccs-sources/ccs-sources-2.6.16.ebuild
new file mode 100644
index 000000000..411b7a7e3
--- /dev/null
+++ b/sys-kernel/ccs-sources/ccs-sources-2.6.16.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras"
+K_GENPATCHES_VER="15"
+
+inherit eutils kernel-2
+detect_version
+detect_arch
+
+CCS_TGP="ccs-patch-1.6.8-20090528"
+CCS_TGP_SRC="mirror://sourceforge.jp/tomoyo/30297/${CCS_TGP}.tar.gz"
+
+DESCRIPTION="TOMOYO Linux sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
+HOMEPAGE="http://tomoyo.sourceforge.jp/index.html.en"
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CCS_TGP_SRC}"
+KEYWORDS="~amd64 ~x86"
+DEPEND=""
+RDEPEND="sys-apps/ccs-tools"
+
+K_EXTRAEINFO="Before booting with TOMOYO enabled kernel, you need to
+run this command to initialize TOMOYO policies:
+# /usr/lib/ccs/init_policy.sh"
+
+src_unpack() {
+ kernel-2_src_unpack
+
+ cd "${WORKDIR}"
+ unpack "${CCS_TGP}.tar.gz"
+ cp -dpR fs include "${S}" || die
+
+ if [ -f "${FILESDIR}/${PF}.patch" ]; then
+ cd "${WORKDIR}/patches/"
+ epatch "${FILESDIR}/${PF}.patch"
+ fi
+
+ cd "${S}"
+ epatch "${WORKDIR}/patches/ccs-patch-${PV}.diff"
+}
diff --git a/sys-kernel/ccs-sources/ccs-sources-2.6.25.ebuild b/sys-kernel/ccs-sources/ccs-sources-2.6.25.ebuild
new file mode 100644
index 000000000..486d32e25
--- /dev/null
+++ b/sys-kernel/ccs-sources/ccs-sources-2.6.25.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras"
+K_GENPATCHES_VER="11"
+
+inherit eutils kernel-2
+detect_version
+detect_arch
+
+CCS_TGP="ccs-patch-1.6.8-20090528"
+CCS_TGP_SRC="mirror://sourceforge.jp/tomoyo/30297/${CCS_TGP}.tar.gz"
+
+DESCRIPTION="TOMOYO Linux sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
+HOMEPAGE="http://tomoyo.sourceforge.jp/index.html.en"
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CCS_TGP_SRC}"
+KEYWORDS="~amd64 ~x86"
+DEPEND=""
+RDEPEND="sys-apps/ccs-tools"
+
+K_EXTRAEINFO="Before booting with TOMOYO enabled kernel, you need to
+run this command to initialize TOMOYO policies:
+# /usr/lib/ccs/init_policy.sh"
+
+src_unpack() {
+ kernel-2_src_unpack
+
+ cd "${WORKDIR}"
+ unpack "${CCS_TGP}.tar.gz"
+ cp -dpR fs include "${S}" || die
+
+ if [ -f "${FILESDIR}/${PF}.patch" ]; then
+ cd "${WORKDIR}/patches/"
+ epatch "${FILESDIR}/${PF}.patch"
+ fi
+
+ cd "${S}"
+ epatch "${WORKDIR}/patches/ccs-patch-${PV}.diff"
+}
diff --git a/sys-kernel/ccs-sources/ccs-sources-2.6.26.ebuild b/sys-kernel/ccs-sources/ccs-sources-2.6.26.ebuild
new file mode 100644
index 000000000..88edfc415
--- /dev/null
+++ b/sys-kernel/ccs-sources/ccs-sources-2.6.26.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras"
+K_GENPATCHES_VER="5"
+
+inherit eutils kernel-2
+detect_version
+detect_arch
+
+CCS_TGP="ccs-patch-1.6.8-20090528"
+CCS_TGP_SRC="mirror://sourceforge.jp/tomoyo/30297/${CCS_TGP}.tar.gz"
+
+DESCRIPTION="TOMOYO Linux sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
+HOMEPAGE="http://tomoyo.sourceforge.jp/index.html.en"
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CCS_TGP_SRC}"
+KEYWORDS="~amd64 ~x86"
+DEPEND=""
+RDEPEND="sys-apps/ccs-tools"
+
+K_EXTRAEINFO="Before booting with TOMOYO enabled kernel, you need to
+run this command to initialize TOMOYO policies:
+# /usr/lib/ccs/init_policy.sh"
+
+src_unpack() {
+ kernel-2_src_unpack
+
+ cd "${WORKDIR}"
+ unpack "${CCS_TGP}.tar.gz"
+ cp -dpR fs include "${S}" || die
+
+ if [ -f "${FILESDIR}/${PF}.patch" ]; then
+ cd "${WORKDIR}/patches/"
+ epatch "${FILESDIR}/${PF}.patch"
+ fi
+
+ cd "${S}"
+ epatch "${WORKDIR}/patches/ccs-patch-${PV}.diff"
+}
diff --git a/sys-kernel/ccs-sources/ccs-sources-2.6.27-r1.ebuild b/sys-kernel/ccs-sources/ccs-sources-2.6.27-r1.ebuild
new file mode 100644
index 000000000..1793a1a4f
--- /dev/null
+++ b/sys-kernel/ccs-sources/ccs-sources-2.6.27-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras"
+K_GENPATCHES_VER="12"
+
+inherit eutils kernel-2
+detect_version
+detect_arch
+
+CCS_TGP="ccs-patch-1.6.8-20090528"
+CCS_TGP_SRC="mirror://sourceforge.jp/tomoyo/30297/${CCS_TGP}.tar.gz"
+
+DESCRIPTION="TOMOYO Linux sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
+HOMEPAGE="http://tomoyo.sourceforge.jp/index.html.en"
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CCS_TGP_SRC}"
+KEYWORDS="~amd64 ~x86"
+DEPEND=""
+RDEPEND="sys-apps/ccs-tools"
+
+K_EXTRAEINFO="Before booting with TOMOYO enabled kernel, you need to
+run this command to initialize TOMOYO policies:
+# /usr/lib/ccs/init_policy.sh"
+
+src_unpack() {
+ kernel-2_src_unpack
+
+ cd "${WORKDIR}"
+ unpack "${CCS_TGP}.tar.gz"
+ cp -dpR fs include "${S}" || die
+
+ if [ -f "${FILESDIR}/${PF}.patch" ]; then
+ cd "${WORKDIR}/patches/"
+ epatch "${FILESDIR}/${PF}.patch"
+ fi
+
+ cd "${S}"
+ epatch "${WORKDIR}/patches/ccs-patch-${PV}.diff"
+}
diff --git a/sys-kernel/ccs-sources/ccs-sources-2.6.28-r6.ebuild b/sys-kernel/ccs-sources/ccs-sources-2.6.28-r6.ebuild
new file mode 100644
index 000000000..81adb8594
--- /dev/null
+++ b/sys-kernel/ccs-sources/ccs-sources-2.6.28-r6.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras"
+K_GENPATCHES_VER="9"
+
+inherit eutils kernel-2
+detect_version
+detect_arch
+
+CCS_TGP="ccs-patch-1.6.8-20090528"
+CCS_TGP_SRC="mirror://sourceforge.jp/tomoyo/30297/${CCS_TGP}.tar.gz"
+
+DESCRIPTION="TOMOYO Linux sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
+HOMEPAGE="http://tomoyo.sourceforge.jp/index.html.en"
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CCS_TGP_SRC}"
+KEYWORDS="~amd64 ~x86"
+DEPEND=""
+RDEPEND="sys-apps/ccs-tools"
+
+K_EXTRAEINFO="Before booting with TOMOYO enabled kernel, you need to
+run this command to initialize TOMOYO policies:
+# /usr/lib/ccs/init_policy.sh"
+
+src_unpack() {
+ kernel-2_src_unpack
+
+ cd "${WORKDIR}"
+ unpack "${CCS_TGP}.tar.gz"
+ cp -dpR fs include "${S}" || die
+
+ if [ -f "${FILESDIR}/${PF}.patch" ]; then
+ cd "${WORKDIR}/patches/"
+ epatch "${FILESDIR}/${PF}.patch"
+ fi
+
+ cd "${S}"
+ epatch "${WORKDIR}/patches/ccs-patch-${PV}.diff"
+}
diff --git a/sys-kernel/ccs-sources/ccs-sources-2.6.29-r5.ebuild b/sys-kernel/ccs-sources/ccs-sources-2.6.29-r5.ebuild
new file mode 100644
index 000000000..4107be923
--- /dev/null
+++ b/sys-kernel/ccs-sources/ccs-sources-2.6.29-r5.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras"
+K_GENPATCHES_VER="7"
+
+inherit eutils kernel-2
+detect_version
+detect_arch
+
+CCS_TGP="ccs-patch-1.6.8-20090528"
+CCS_TGP_SRC="mirror://sourceforge.jp/tomoyo/30297/${CCS_TGP}.tar.gz"
+
+DESCRIPTION="TOMOYO Linux sources for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
+HOMEPAGE="http://tomoyo.sourceforge.jp/index.html.en"
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CCS_TGP_SRC}"
+KEYWORDS="~amd64 ~x86"
+DEPEND=""
+RDEPEND="sys-apps/ccs-tools"
+
+K_EXTRAEINFO="Before booting with TOMOYO enabled kernel, you need to
+run this command to initialize TOMOYO policies:
+# /usr/lib/ccs/init_policy.sh"
+
+src_unpack() {
+ kernel-2_src_unpack
+
+ cd "${WORKDIR}"
+ unpack "${CCS_TGP}.tar.gz"
+ cp -dpR fs include "${S}" || die
+
+ if [ -f "${FILESDIR}/${PF}.patch" ]; then
+ cd "${WORKDIR}/patches/"
+ epatch "${FILESDIR}/${PF}.patch"
+ fi
+
+ cd "${S}"
+ epatch "${WORKDIR}/patches/ccs-patch-${PV}.diff"
+}