From dcb9a9b1c3d6734ae27e2af7b6d641e2ba40f234 Mon Sep 17 00:00:00 2001 From: blshkv Date: Sat, 17 Nov 2018 14:29:52 +0800 Subject: [PATCH] appmon: new mobile tool --- dev-python/dataset/Manifest | 1 + dev-python/dataset/dataset-1.1.0.ebuild | 20 ++++++++ dev-python/htmlentities/Manifest | 1 + .../htmlentities/htmlentities-0.3.0.ebuild | 28 +++++++++++ dev-util/appmon/Manifest | 1 + dev-util/appmon/appmon-0.5.ebuild | 49 +++++++++++++++++++ .../base/package.accept_keywords/dev-python | 1 + .../base/package.accept_keywords/dev-util | 2 + 8 files changed, 103 insertions(+) create mode 100644 dev-python/dataset/Manifest create mode 100644 dev-python/dataset/dataset-1.1.0.ebuild create mode 100644 dev-python/htmlentities/Manifest create mode 100644 dev-python/htmlentities/htmlentities-0.3.0.ebuild create mode 100644 dev-util/appmon/Manifest create mode 100644 dev-util/appmon/appmon-0.5.ebuild diff --git a/dev-python/dataset/Manifest b/dev-python/dataset/Manifest new file mode 100644 index 000000000..6bbd93ff5 --- /dev/null +++ b/dev-python/dataset/Manifest @@ -0,0 +1 @@ +DIST dataset-1.1.0.tar.gz 15055 BLAKE2B 4e6df8a02ac1eafd5ac75b1af224438eb37b73d1ca59dab967ab2ba761ddad1143f9a43caefd8b6fa51fb56bde3a5e9c8fb26faa70dfb59ebe7dd9f7a4bb4d7c SHA512 56a8cb9f33699101cde3ed3e623a756c6fdc26a012f8baec5c62d9af6f4dd14f7f611dd76ac5e047b0bc6dbadaf0fe3bfa766526ea181d53f695457ed9a9e15d diff --git a/dev-python/dataset/dataset-1.1.0.ebuild b/dev-python/dataset/dataset-1.1.0.ebuild new file mode 100644 index 000000000..09ac06aef --- /dev/null +++ b/dev-python/dataset/dataset-1.1.0.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +inherit distutils-r1 + +DESCRIPTION="Easy-to-use data handling for SQL data stores" +HOMEPAGE="https://github.com/pudo/dataset" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] +" diff --git a/dev-python/htmlentities/Manifest b/dev-python/htmlentities/Manifest new file mode 100644 index 000000000..d056ffa67 --- /dev/null +++ b/dev-python/htmlentities/Manifest @@ -0,0 +1 @@ +DIST htmlentities-0.3.0.tar.gz 1751 BLAKE2B 5fabb995c0ebfb3015cbe801aec0062c903a112d281859927af4673c5300493d7124e2c811919343c3885a424c4a917faa3de236c05f046c9f0c3c9de286b54a SHA512 9f2f59c5ab0c07548ea76dc02cc3c1a34715c4bcfff58301589d39e730a3bf6ef8104a8fefc998e181966c59be074e7b34c430cfe862e943bcdca468b39c6bcc diff --git a/dev-python/htmlentities/htmlentities-0.3.0.ebuild b/dev-python/htmlentities/htmlentities-0.3.0.ebuild new file mode 100644 index 000000000..fd73bb645 --- /dev/null +++ b/dev-python/htmlentities/htmlentities-0.3.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +inherit distutils-r1 + +DESCRIPTION="Easy-to-use data handling for SQL data stores" +HOMEPAGE="https://github.com/pudo/dataset" +#SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/cobrateam/python-htmlentities/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="UNKNOWN" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] +" + +S="${WORKDIR}/python-${P}" + +src_prepare(){ + rm -r tests + eapply_user +} diff --git a/dev-util/appmon/Manifest b/dev-util/appmon/Manifest new file mode 100644 index 000000000..56e6c2387 --- /dev/null +++ b/dev-util/appmon/Manifest @@ -0,0 +1 @@ +DIST appmon-0.5.tar.gz 17208306 BLAKE2B 9b5de230553b8695ba4b511bd1365c22bd631e134129621092425f4685283332a4a214c4a8e3b796ff6b42ad799c70b2cf7af3fec67826c1d84eb4572c5237b0 SHA512 c482fd74c336c7fa7219d75ed72466c0935c4a05da2b55b3398b29fdef90c05cd24b263bf2895673d7ec2187840028138ce26543e944c41f9fd505937ac7f80d diff --git a/dev-util/appmon/appmon-0.5.ebuild b/dev-util/appmon/appmon-0.5.ebuild new file mode 100644 index 000000000..58cb53ce4 --- /dev/null +++ b/dev-util/appmon/appmon-0.5.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) +inherit python-single-r1 +#inherit python-r1 + +DESCRIPTION="" +HOMEPAGE="" +SRC_URI="https://github.com/dpnishant/appmon/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-util/frida-tools[${PYTHON_USEDEP}] + dev-python/argparse[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/termcolor[${PYTHON_USEDEP}] + dev-python/dataset[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/alembic[${PYTHON_USEDEP}] + dev-python/htmlentities[${PYTHON_USEDEP}] +" + +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] +" + +src_install(){ + dodir /usr/$(get_libdir)/${PN} + cp -R * "${ED}"/usr/$(get_libdir)/${PN} || die "Copy files failed" + python_fix_shebang "${ED}"/usr/$(get_libdir)/${PN}/*.py + + newbin - appmon <<-EOF +#!/bin/sh +cd /usr/lib/appmon +python2 ./appmon.py +EOF + + newbin - appmon_viewreport <<-EOF +#!/bin/sh +cd /usr/lib/appmon +python2 ./viewreport.py +EOF + +} diff --git a/profiles/pentoo/base/package.accept_keywords/dev-python b/profiles/pentoo/base/package.accept_keywords/dev-python index cf7ae5794..9c58fa598 100644 --- a/profiles/pentoo/base/package.accept_keywords/dev-python +++ b/profiles/pentoo/base/package.accept_keywords/dev-python @@ -290,3 +290,4 @@ dev-python/PyVirtualDisplay # required by dev-util/objection ~dev-python/delegator-0.1.1 +dev-python/htmlentities diff --git a/profiles/pentoo/base/package.accept_keywords/dev-util b/profiles/pentoo/base/package.accept_keywords/dev-util index 91af19681..45a26d22e 100644 --- a/profiles/pentoo/base/package.accept_keywords/dev-util +++ b/profiles/pentoo/base/package.accept_keywords/dev-util @@ -44,3 +44,5 @@ dev-util/intel-ocl-sdk dev-util/gn amd64 ~dev-util/objection-1.4.1 + +dev-util/appmon