diff options
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/sharkbait-setup/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/sharkbait-setup/metadata.xml | 10 | ||||
-rw-r--r-- | sys-apps/sharkbait-setup/sharkbait-setup-0.3-r1.ebuild | 50 |
3 files changed, 63 insertions, 0 deletions
diff --git a/sys-apps/sharkbait-setup/Manifest b/sys-apps/sharkbait-setup/Manifest new file mode 100644 index 0000000..de12963 --- /dev/null +++ b/sys-apps/sharkbait-setup/Manifest @@ -0,0 +1,3 @@ +DIST sharkbait-setup-0.3.tar.gz 17189 BLAKE2B 1a91cceb55ac0a39b6dc65ad3f166fa93f4827187ec4f2d622d4a6973d062c0512655b1d63b1795f064dcf597772d8c73a46dbb69514575f65f683813fc9e720 SHA512 d62dac43d73bc8cbaf87c5e2a76120968291950efedcddb5f385daeef871906459e8aa9698f4d1fa8a766111efb0eba228cfcd3d6532878b2310fc2bfcd8d2bc +EBUILD sharkbait-setup-0.3-r1.ebuild 1242 BLAKE2B 0fdfec671437a94dd73b01fb32409ae52b14539844adcc96cdce4f6808cd797d409adca9fc0df1273ee4174e12d9723558f1f2d8c8b6c1d8430676f677553901 SHA512 c0bbf4f8a8112fb9b9ec0225dee33d2179ca2858eb8261a63419b1f2da2f64d6ad999ccf3e9c5ff4d442a08e764fcc0b389e9e1914f916dfe55d83e9170c1fb3 +MISC metadata.xml 348 BLAKE2B c5fd7c7d586c6a5dac33a6bdf1815fcb3666abef061f87790e9384eb11f68f7de71645b9760f04f44655eff0b78db4f2bc11e6c80ca824d3684828fc3b4ce07d SHA512 dbc8c3a3c0cb4861f0140c368d0d5487a8cb04b0fa35cae89163cdcb73b2ba67457bc0eece633c10ef943e3cc83f638c641248c688a7909cbebc66f3f10555c5 diff --git a/sys-apps/sharkbait-setup/metadata.xml b/sys-apps/sharkbait-setup/metadata.xml new file mode 100644 index 0000000..9e0edca --- /dev/null +++ b/sys-apps/sharkbait-setup/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>i@jsteward.moe</email> +</maintainer> +<longdescription lang="en"> + SharkBait-setup conducts the first setup for SharkBait (Portage-powered Android) systems. +</longdescription> +</pkgmetadata> diff --git a/sys-apps/sharkbait-setup/sharkbait-setup-0.3-r1.ebuild b/sys-apps/sharkbait-setup/sharkbait-setup-0.3-r1.ebuild new file mode 100644 index 0000000..b88c31f --- /dev/null +++ b/sys-apps/sharkbait-setup/sharkbait-setup-0.3-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="First setup for SharkBait systems" +HOMEPAGE="https://github.com/KireinaHoro/sharkbait-setup" +SRC_URI="https://github.com/KireinaHoro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~arm64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} +>=app-emulation/lxc-3.0.0 +" + +src_install() { + exec_list=( + deploy.sh + pre-start.sh + post-stop.sh + ) + target="${EPREFIX}"/usr/lib/sharkbait-setup + insinto "${target}" + exeinto "${target}" + for a in config devices; do + doins -r "${a}" + done + for a in "${exec_list[@]}"; do + doexe "${a}" + done + dosym "${target}"/deploy.sh "${EPREFIX}"/usr/bin/sharkbait-deploy +} + +pkg_postinst() { + device=$(sed -E -n 's/.*androidboot.hardware=(\S*).*/\1/p' /proc/cmdline) + if [ -d "${EPREFIX}/usr/lib/sharkbait-setup/devices/${device}" ] ; then + einfo "Run \`sharkbait-deploy ${device}\` to setup SharkBait for your device." + else + if [ -z "$device" ] ; then + ewarn "We failed to detect the device name." + else + ewarn "The device $device is not yet supported by sharkbait-setup." + fi + ewarn "Consult Porter's guide for how to add support for this device." + fi +} |