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/tomoyo-tools |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/tomoyo-tools')
-rw-r--r-- | sys-apps/tomoyo-tools/Manifest | 6 | ||||
-rw-r--r-- | sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20130214-warnings.patch | 22 | ||||
-rw-r--r-- | sys-apps/tomoyo-tools/metadata.xml | 10 | ||||
-rw-r--r-- | sys-apps/tomoyo-tools/tomoyo-tools-2.5.0_p20130214.ebuild | 67 |
4 files changed, 105 insertions, 0 deletions
diff --git a/sys-apps/tomoyo-tools/Manifest b/sys-apps/tomoyo-tools/Manifest new file mode 100644 index 000000000000..68112c8a2717 --- /dev/null +++ b/sys-apps/tomoyo-tools/Manifest @@ -0,0 +1,6 @@ +AUX tomoyo-tools-2.5.0_p20130214-warnings.patch 814 SHA256 d909698fe20d568efbb28828f261a4316c05725180ace3b1d1841a13a134eda4 SHA512 947caa5ce7f2c80e7e0b40042b09568c4fed731b530cf70c1fa24fa0f1a382dd41443f3db82a6aa6444c0ebcd25fd7de657c0f1990d69579e4645f3efa561e10 WHIRLPOOL 11a771b7857e37df98c289c11e79daed573bcbf56068d855d5511bfd7c16a8bbb60d98670862c1500d9246aa3fc4ca4a95e2b724a919b9dfd73c13142e0f60ee +DIST tomoyo-tools-2.5.0-20130214.tar.gz 210892 SHA256 78344506be3108804c76108e2eb193d4eb556983649c8f11f76ad69eda69b1ee SHA512 1ba6f6b3a3d4e644e6ee742beb64b09c6d527f130b1fe6d09a2e19760ced26f540ac8cc1e6f83fddacc3ef8844c3c23425191e4e0098c8b72b5ba3086adc9dc4 WHIRLPOOL edb912dbcfc784d2845cf8c9f81499e6089e67e98e1478b7dd096406cf2d1abfd314f15caf4248fc388fc667f14fa25f6d694652d156a45a6a9d337fc50fed80 +EBUILD tomoyo-tools-2.5.0_p20130214.ebuild 1429 SHA256 e66e4e0ecf5fcf7d3350ad39405fc9061754dfd6dbf47fa17bbc9b1b72b7eec8 SHA512 842044f79e9cc812ec202629046fff0c148fd7d4a1c205c9a2b6a39a18008e4f5d9169f9b513e076051b41d7dd0287d68212a557b8f657ad0355e3bd40bf2b2a WHIRLPOOL 0fcf16655af636443e47133ff8301c70af9c4784e3d411c8915a14074bf1312f19b16706417885e1fa1de643d5307e0d0f0d4491155d0886a448d98b2437dc3f +MISC ChangeLog 2662 SHA256 f3f2590cbd949f7e782b3dfc9cf499517d08f9e3c086019adaead7e9b741d420 SHA512 3721079b34872ce337c72c68610d965a9a51dca8d90637f85df832a961495f845ebe1b44b03c6f481f15f71bd4b708d0cb58a8458a0949de4267c801a98f21a4 WHIRLPOOL ec91a943da379e4fa812884adfa3189e24f30d7507c84adaa91884057083eb7dc784f508f422c5f316160ab16587bf8ac4970e54be10c991f5406aeb92a8d3a2 +MISC ChangeLog-2015 4428 SHA256 1a129cf6e5c6c952ad295030dcdf5d9caa580e3f064436c05a77b57c850aa6e9 SHA512 3203f95983c7902afd5b4e049e510e3c65dd60d68059b02119dbc13cfbd3b33018ab219d41fc9ee3c4f95fc9301653de1760565715647cf862b25db3bfbaeea0 WHIRLPOOL a1f69e17f2b394865c0930247a3fc936caf098ee896e574afe105696fc9b89fe3625d860a2eff33ee519428c4e98f8aaf53c9f391bad772d485300203a689387 +MISC metadata.xml 295 SHA256 abb58e82bf86a02b38ef03e58145d44478a371d6f984491e126d009826f1dba1 SHA512 bcad45a60a3abfcb3054f0c82a733ccf5e0562f796cdafe414d2fb6e95301371591b1032404d83365d4a39a60bb1f3b2dd81d6a85592f72cced041cf36393ff1 WHIRLPOOL 9082b5bbdfc50960e18718a2cba475da59e51651efc1f1b39f92666c44b657b318922fdb020e3b343e08cb0d0c9cdc98e0c0c1ade6255a3c3619108d664924f4 diff --git a/sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20130214-warnings.patch b/sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20130214-warnings.patch new file mode 100644 index 000000000000..8201093bbecb --- /dev/null +++ b/sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_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/tomoyo-tools/metadata.xml b/sys-apps/tomoyo-tools/metadata.xml new file mode 100644 index 000000000000..b844e843cf6b --- /dev/null +++ b/sys-apps/tomoyo-tools/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>naota@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge-jp">tomoyo</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-apps/tomoyo-tools/tomoyo-tools-2.5.0_p20130214.ebuild b/sys-apps/tomoyo-tools/tomoyo-tools-2.5.0_p20130214.ebuild new file mode 100644 index 000000000000..581fb1868f8b --- /dev/null +++ b/sys-apps/tomoyo-tools/tomoyo-tools-2.5.0_p20130214.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +MY_P="${P/_p/-}" +DESCRIPTION="TOMOYO Linux tools" +HOMEPAGE="http://tomoyo.sourceforge.jp/" +SRC_URI="mirror://sourceforge.jp/tomoyo/53357/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +COMMON_DEPEND="sys-libs/ncurses" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" +RDEPEND="${COMMON_DEPEND} + !sys-apps/ccs-tools" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-warnings.patch + + # Fix libdir + sed -i \ + -e "s:/usr/lib:/usr/$(get_libdir):g" \ + Include.make || die + + # tinfo + sed -i \ + -e 's|-lncurses|$(shell ${PKG_CONFIG} --libs ncurses)|g' \ + usr_sbin/Makefile || die + + echo "CONFIG_PROTECT=\"/usr/$(get_libdir)/tomoyo/conf\"" > "${T}/50${PN}" + + tc-export CC PKG_CONFIG +} + +src_install() { + dodir /usr/"$(get_libdir)" + + emake INSTALLDIR="${D}" install + + doenvd "${T}/50${PN}" + + # Fix out-of-place readme and license + rm "${D}"/usr/$(get_libdir)/tomoyo/{COPYING.tomoyo,README.tomoyo} || die + dodoc README.tomoyo || die +} + +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 "http://tomoyo.sourceforge.jp/" +} + +pkg_config() { + /usr/$(get_libdir)/tomoyo/init_policy +} |