appmon: new mobile tool

This commit is contained in:
blshkv 2018-11-17 14:29:52 +08:00
parent cea48060e9
commit dcb9a9b1c3
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
8 changed files with 103 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST dataset-1.1.0.tar.gz 15055 BLAKE2B 4e6df8a02ac1eafd5ac75b1af224438eb37b73d1ca59dab967ab2ba761ddad1143f9a43caefd8b6fa51fb56bde3a5e9c8fb26faa70dfb59ebe7dd9f7a4bb4d7c SHA512 56a8cb9f33699101cde3ed3e623a756c6fdc26a012f8baec5c62d9af6f4dd14f7f611dd76ac5e047b0bc6dbadaf0fe3bfa766526ea181d53f695457ed9a9e15d

View file

@ -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}]
"

View file

@ -0,0 +1 @@
DIST htmlentities-0.3.0.tar.gz 1751 BLAKE2B 5fabb995c0ebfb3015cbe801aec0062c903a112d281859927af4673c5300493d7124e2c811919343c3885a424c4a917faa3de236c05f046c9f0c3c9de286b54a SHA512 9f2f59c5ab0c07548ea76dc02cc3c1a34715c4bcfff58301589d39e730a3bf6ef8104a8fefc998e181966c59be074e7b34c430cfe862e943bcdca468b39c6bcc

View file

@ -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
}

1
dev-util/appmon/Manifest Normal file
View file

@ -0,0 +1 @@
DIST appmon-0.5.tar.gz 17208306 BLAKE2B 9b5de230553b8695ba4b511bd1365c22bd631e134129621092425f4685283332a4a214c4a8e3b796ff6b42ad799c70b2cf7af3fec67826c1d84eb4572c5237b0 SHA512 c482fd74c336c7fa7219d75ed72466c0935c4a05da2b55b3398b29fdef90c05cd24b263bf2895673d7ec2187840028138ce26543e944c41f9fd505937ac7f80d

View file

@ -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
}

View file

@ -290,3 +290,4 @@ dev-python/PyVirtualDisplay
# required by dev-util/objection
~dev-python/delegator-0.1.1
dev-python/htmlentities

View file

@ -44,3 +44,5 @@ dev-util/intel-ocl-sdk
dev-util/gn amd64
~dev-util/objection-1.4.1
dev-util/appmon