diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/ccs-tools |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/ccs-tools')
-rw-r--r-- | sys-apps/ccs-tools/Manifest | 6 | ||||
-rw-r--r-- | sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild | 61 | ||||
-rw-r--r-- | sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch | 22 | ||||
-rw-r--r-- | sys-apps/ccs-tools/metadata.xml | 8 |
4 files changed, 97 insertions, 0 deletions
diff --git a/sys-apps/ccs-tools/Manifest b/sys-apps/ccs-tools/Manifest new file mode 100644 index 000000000000..1f90d71e388e --- /dev/null +++ b/sys-apps/ccs-tools/Manifest @@ -0,0 +1,6 @@ +AUX ccs-tools-1.8.3_p20130214-warnings.patch 814 SHA256 d909698fe20d568efbb28828f261a4316c05725180ace3b1d1841a13a134eda4 SHA512 947caa5ce7f2c80e7e0b40042b09568c4fed731b530cf70c1fa24fa0f1a382dd41443f3db82a6aa6444c0ebcd25fd7de657c0f1990d69579e4645f3efa561e10 WHIRLPOOL 11a771b7857e37df98c289c11e79daed573bcbf56068d855d5511bfd7c16a8bbb60d98670862c1500d9246aa3fc4ca4a95e2b724a919b9dfd73c13142e0f60ee +DIST ccs-tools-1.8.3-20130214.tar.gz 227657 SHA256 56bb03f1977346f4c7dc3a0c5da8df4a0451a79558c26564478cb87fbf3e3ade SHA512 256adf873dd99b811f5cf55e6b74e1ccdc2e54a2399724b694f22825c4d5e3167e7768bddc4952363ef835ec2b8405d5704572a9b9e214f3102bf594374325ba WHIRLPOOL d7f200842a10ca2c83a46a933beb7c70436ea36c8aad3569c33392a11360b88dbf7589ac720994fec9d5c49c46f1e1c9f97ec320d2057680a6bb0edf13c066eb +EBUILD ccs-tools-1.8.3_p20130214.ebuild 1419 SHA256 3769083d5e15697e911cdc66236a6bc59e62a8f2d3aa40f281fcb8ccc7150e11 SHA512 89fb1d587f3280fc687eb16694c41547ac48f3e79bfd71294992b3e0b2db151198352ee0648c7a361e1ddf45f6c01c7394da0eca108584e41f9ed9db16c6ccfc WHIRLPOOL 7137944bef02ef75dc87c8df9428bc68449f6ecdd4e60ac7e1db9c55d8b74433cf1fcdc9ebea874057efeeb09f29d5addc98c834c688e27d01cc987e98cb29e4 +MISC ChangeLog 2599 SHA256 1f1dcf75c3c526a4e5ac859786a42534651f84aa1c49407fd4731d0e12968980 SHA512 9de585cfd753bb82e15bd67ce5718886411a7d66215c87e3e06d148a79fc328c1bb2aa4282318f8c74bd6c40a0b996891545c78391762b108df3951af2677ec3 WHIRLPOOL a4e9649f425fe2c03d0b550d207c565f5365264399bf2432cadda91eeb79bb4b0076c18e685b6702865bd15fd7a56b99e1f238228234892f9bbd04a2840d7549 +MISC ChangeLog-2015 3709 SHA256 75fe5f1e92fbaf83916d275bdc67cd2804a6cacacff59c9e7de836679243fc01 SHA512 80c1aac878dd27b67267e4d9a242a4d0e2046a0340b44e9b02ac08e07d40f1c57a703bb7a62226e0ee8b28bbc60e8b08d022f65ee5ec0d389cab164f25be7d75 WHIRLPOOL efbb72443f3a6f47fcf8dbe7f5650eef7ccf2ea859f4d9b550efd8d76c1bcbf16f20226936cc8b4190a31f23c7071ae46a10e81d5e6a867bbce87864c618ed8a +MISC metadata.xml 246 SHA256 a5d1060f2ee64096ddf62d35b034d10eb229d3fd77bc06cec84ade0ab9cd3db2 SHA512 eb0505da84a5318fcae56426b5bd7228ff9115fec909f6482ec9c4030135a465e01fc0ed55426e53d54058cf2fcfa039f52201559340048fa1e7d4a0cf3984f9 WHIRLPOOL 3551c689f2b657e20c58cd3b048f70c3e0165b26a2da603352bf98d0e1283e86257be0dbc088c4090e8ba74015c0ac070eedb743a93e25b27a4e8e3c85c8643c diff --git a/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild b/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild new file mode 100644 index 000000000000..d39fc9d54c65 --- /dev/null +++ b/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=3 +inherit eutils multilib toolchain-funcs + +MY_P="${P/_p/-}" +DESCRIPTION="TOMOYO Linux tools" +HOMEPAGE="http://tomoyo.sourceforge.jp/" +SRC_URI="mirror://sourceforge.jp/tomoyo/49693/${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}/ccs-tools" + +src_prepare() { + epatch "${FILESDIR}"/${P}-warnings.patch + sed -i \ + -e "s:gcc:$(tc-getCC):" \ + -e "s/\(CFLAGS.*:=\).*/\1 ${CFLAGS}/" \ + -e "s:/usr/lib:/usr/$(get_libdir):g" \ + -e "s:= /:= ${EPREFIX}/:g" \ + Include.make || die +} + +src_test() { + cd "${S}/kernel_test" + emake || die + ./testall.sh || die +} + +src_install() { + emake INSTALLDIR="${D}" install || 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 http://tomoyo.sourceforge.jp/1.8/" + elog + elog "This tools are for ccs-patch'ed kernels. There are also sys-apps/tomoyo-tools" + elog "which works with TOMOYO 2.x.x versions (already merged into Linux kernel)." + elog "If you'd like to try them, please emerge sys-apps/tomoyo-tools instead." +} + +pkg_config() { + /usr/$(get_libdir)/ccs/init_policy +} diff --git a/sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch b/sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch new file mode 100644 index 000000000000..8201093bbecb --- /dev/null +++ b/sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch @@ -0,0 +1,22 @@ +diff --git a/usr_sbin/editpolicy_offline.c b/usr_sbin/editpolicy_offline.c +index dbbd11e..e699cf4 100644 +--- a/usr_sbin/editpolicy_offline.c ++++ b/usr_sbin/editpolicy_offline.c +@@ -2882,7 +2882,7 @@ static bool ccs_parse_ipaddr_union(struct ccs_acl_param *param, + struct ccs_ipaddr_union *ptr) + { + struct ccs_ip_address_entry e; +- memset(ptr, 0, sizeof(ptr)); ++ memset(ptr, 0, sizeof(*ptr)); + if (ccs_parse_ip(ccs_read_token(param), &e) == 0) { + memmove(&ptr->ip[0], e.min, sizeof(ptr->ip[0])); + memmove(&ptr->ip[1], e.max, sizeof(ptr->ip[1])); +@@ -4745,7 +4745,7 @@ static void ccs_write_control(char *buffer, const size_t buffer_len) + * + * Returns nothing. + */ +-static void ccs_editpolicy_offline_init(coid) ++static void ccs_editpolicy_offline_init(void) + { + static _Bool first = true; + int i; diff --git a/sys-apps/ccs-tools/metadata.xml b/sys-apps/ccs-tools/metadata.xml new file mode 100644 index 000000000000..112e5a8833a8 --- /dev/null +++ b/sys-apps/ccs-tools/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge-jp">tomoyo</remote-id> + </upstream> +</pkgmetadata> |