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 /dev-embedded/scratchbox |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-embedded/scratchbox')
-rw-r--r-- | dev-embedded/scratchbox/Manifest | 10 | ||||
-rw-r--r-- | dev-embedded/scratchbox/files/scratchbox.rc | 23 | ||||
-rw-r--r-- | dev-embedded/scratchbox/metadata.xml | 8 | ||||
-rw-r--r-- | dev-embedded/scratchbox/scratchbox-1.0.19.ebuild | 102 | ||||
-rw-r--r-- | dev-embedded/scratchbox/scratchbox-1.0.20.ebuild | 102 |
5 files changed, 245 insertions, 0 deletions
diff --git a/dev-embedded/scratchbox/Manifest b/dev-embedded/scratchbox/Manifest new file mode 100644 index 000000000000..d1e2d3a76cb4 --- /dev/null +++ b/dev-embedded/scratchbox/Manifest @@ -0,0 +1,10 @@ +AUX scratchbox.rc 410 SHA256 770375a7c8aeb9ea41d229447e7d1ab79dc2f582f93007c88de0cc105f984e1f SHA512 51d776fe7b1ba27232b1c26e22eb807d77baad6ae9b8fd3d5a328c087f1b8c60e3891b748eb8b2f812b22d99b1e6a446b4c0cd8a8eb5ce1167eef0ab6faaaf2c WHIRLPOOL f89d565a02bb36c5bdd0fc734140978cbdc36c689c7498a6d7ff8f886dc8782e6330cea7ba252c24d68ae14d73f435a29f946663c4b6b0e53b6817ab3c20f4a0 +DIST scratchbox-core-1.0.19-i386.tar.gz 51524069 SHA256 0d4e32b2d28364eca0c32d0030df88df703027a990fcc58d3daca63f1f1866c4 SHA512 870fa53d569fae238e4c9680ce7b61ee3f35a264ba03bb2e57e5501312826883a75c55c989f554afab24c7fa3362139f7ad9ad109019afaaa6968d88e4d4b3c0 WHIRLPOOL e3e3b2c092d3d875572645d7839064c3df0fc0b9bc26a1f654911321ce797a456b562e966eeaf70258404013c7bf7b003ad4662a5dd64e27df596612ea4faa78 +DIST scratchbox-core-1.0.20-i386.tar.gz 51829189 SHA256 7e7daf897d545e68d05070a8c85fb3bbc5e1672ddacefb9bcd392109c4cbc6cf SHA512 a5c99d426458d38458978082db58efd74755e54294ef41dbbd811daf758573e568a84360641d61bd8d30f368e50a088b976369a1c2af543f00026f388366587d WHIRLPOOL f689f742711b15779cd20db0c4bb5c0108277b3e628cd04b22cf70af2f80242b3d106362e392f8adb1f9732032385bf7310545138b5cddf9a161bcf795532374 +DIST scratchbox-libs-1.0.19-i386.tar.gz 14368380 SHA256 a51ddf929832d7d0a4af8e417857a6f346891bfb0895c39d3bfa8d26c664c350 SHA512 d246c4c2c502c93ad0a73b91b3db177bfb4f6952aa85068bc0561a25567cce0e355539446af51d4aaf27c8cc168050a1ca27e5c937ce9d2e14b9db3fad0977bb WHIRLPOOL a233bfe910febb84dcc7745f05fd4edb71638e5c139060462c1b4f8d6dfaf87b26cb97421769418d31430e54efaf3818973aa309cfded167a69a2fee3cd58b03 +DIST scratchbox-libs-1.0.20-i386.tar.gz 14369499 SHA256 0d05174b35a50539bd3537a7e47ec927f4e169a39caafc4986e3da41dff4d527 SHA512 2be9d23e80827d80bbaaf3da940d50b8f09e24ee9e7e12accd33c8b95aca927e66a6d3bc69e47a7c49efa3f9c7cdfa37aed45303eeee46958f1ae85aed02fc2b WHIRLPOOL 69de409ba555032850f51ed0a5c82087339c9a3ef1b0d450f7e8c6b29c029199e331831cc88500457f089569ec267bee2fd72bccfd7ac40e9c55636bd709500e +EBUILD scratchbox-1.0.19.ebuild 2665 SHA256 e27fbc2588060f3ec9330fe9070ae2d9ffc8a866db65ddd82fdb6d04cd739d81 SHA512 4d30de8059afd912f91c8835e071dbf477af47ceb565b51f8177f740669919ba60649271d7dc2207b5cfaf42cd3dd5b1f7abaf8b7e766c3c60836a7e9cbe86fc WHIRLPOOL 97fc1a171a2bea54654b2f291b4a45f37a9bf931fd109429786b2224ec3b2e60cb57d284c050bcf41acc5de16ebd80d96ae0487db92cb5f977c59d9d5e93da72 +EBUILD scratchbox-1.0.20.ebuild 2665 SHA256 e27fbc2588060f3ec9330fe9070ae2d9ffc8a866db65ddd82fdb6d04cd739d81 SHA512 4d30de8059afd912f91c8835e071dbf477af47ceb565b51f8177f740669919ba60649271d7dc2207b5cfaf42cd3dd5b1f7abaf8b7e766c3c60836a7e9cbe86fc WHIRLPOOL 97fc1a171a2bea54654b2f291b4a45f37a9bf931fd109429786b2224ec3b2e60cb57d284c050bcf41acc5de16ebd80d96ae0487db92cb5f977c59d9d5e93da72 +MISC ChangeLog 2654 SHA256 ae5f8e6c6a081e6e580aef7bc8470f3a1f9cb9f7b0e3f4d9da4edb32b9233211 SHA512 cabd32226ea3a3c1a3769c929990d7a84be58ce5f92426c5917fb3aa6ac189bf2c73ed5f2bdf6b38a591dd06c0abfd5db0b7bd63919e86317855ead7364f6802 WHIRLPOOL 45a6c3f12cb8fea0ed1e730e4dd5865cda30102985a46156846a5f7b424389194a5b3ec6d440f96a46d4ea4142b7fa75f018a399f22f18345fea31cbb563bb1d +MISC ChangeLog-2015 3379 SHA256 229ed9c2dbf185542131664b6bbca43c6c57f47ce2b93442ade40f3be49d5377 SHA512 c0287f4b1de64440ce987c0d3a8eeb67298095864c891ba15851ea965f1863513aac5c07285bd433e5356f203043bc9ddc99311c86f2975d392cc85c30c9b2a2 WHIRLPOOL 99a3fcd769d4c51dbf1d34e6ef7aa263b3b0b37534cfcfdc535aa43c44ad2b3b076afbe6c19d57a0f61a79c7f214918183bb95e656bbd7ab7483bd6846f28ff8 +MISC metadata.xml 247 SHA256 751aa1f012df292bed9716a5c6a7e64114b695d2ba0c0572fc7e87fc3bbcebc5 SHA512 15df289e0f962f564551f61ada3cfef0311f6af639887def780bf5ad3be105515c8d24c950ff340ed35d89b9cd994af3540322b684c5dec3b43ec6bb0041aa4e WHIRLPOOL b6c074cf39f6ec1e2d085151836db47f9a4d71bcc9cc3296889bfa10172c7f07837ca79c8613f9c483b1332683e78eebe88e0a433a7caf801fc7ccac2552cd53 diff --git a/dev-embedded/scratchbox/files/scratchbox.rc b/dev-embedded/scratchbox/files/scratchbox.rc new file mode 100644 index 000000000000..4e69793ccb64 --- /dev/null +++ b/dev-embedded/scratchbox/files/scratchbox.rc @@ -0,0 +1,23 @@ +#!/sbin/openrc-run + +depend() { + need localmount + use logger net +} + +start() { + test -x /opt/scratchbox/sbin/sbox_ctl || \ + eend 1 "scratchbox init script not found. Aborting" || return 1 + + /opt/scratchbox/sbin/sbox_ctl start + return $? +} + +stop() { + test -x /opt/scratchbox/sbin/sbox_ctl || \ + eend 1 "scratchbox init script not found. Aborting" || return 1 + + /opt/scratchbox/sbin/sbox_ctl stop + return $? +} + diff --git a/dev-embedded/scratchbox/metadata.xml b/dev-embedded/scratchbox/metadata.xml new file mode 100644 index 000000000000..71b1461e1146 --- /dev/null +++ b/dev-embedded/scratchbox/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 type="project"> + <email>embedded@gentoo.org</email> + <name>Embedded Gentoo</name> +</maintainer> +</pkgmetadata> diff --git a/dev-embedded/scratchbox/scratchbox-1.0.19.ebuild b/dev-embedded/scratchbox/scratchbox-1.0.19.ebuild new file mode 100644 index 000000000000..6dd08a55de8f --- /dev/null +++ b/dev-embedded/scratchbox/scratchbox-1.0.19.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils user + +SBOX_GROUP="sbox" + +DESCRIPTION="A cross-compilation toolkit for embedded Linux application development" +HOMEPAGE="http://www.scratchbox.org/" +SRC_URI="http://scratchbox.org/download/files/sbox-releases/hathor/tarball/scratchbox-core-${PV}-i386.tar.gz + http://scratchbox.org/download/files/sbox-releases/hathor/tarball/scratchbox-libs-${PV}-i386.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# Stripping BREAKS scratchbox, it runs in a chroot and is pre-stripped when needed (bug #296294) +RESTRICT="strip" + +DEPEND="" +RDEPEND="" + +TARGET_DIR="/opt/scratchbox" + +S=${WORKDIR}/${PN} + +src_install() { + dodir ${TARGET_DIR} + # doins doesn't work with symlinks, getting "file not found" with doins + cp -pRP ./* "${D}/${TARGET_DIR}" + ln -s opt/scratchbox "${D}/scratchbox" + + # scratchbox service loader + newinitd "${FILESDIR}/scratchbox.rc" scratchbox || die "newinitd failed" + + # group already created + echo ${SBOX_GROUP} > "${D}/${TARGET_DIR}/.run_me_first_done" +} + +pkg_preinst() { + einfo "Creating group sbox" + enewgroup "${SBOX_GROUP}" +} + +pkg_postinst() { + "${TARGET_DIR}/sbin/sbox_configure" "no" ${SBOX_GROUP} + + elog + elog "You can run:" + elog "\"emerge --config =${CATEGORY}/${PF}\"" + elog "to setup scratchbox users" + elog + elog "For further documentation about how to setup" + elog "scratchbox for your development needs have a look at" + elog "http://scratchbox.org/documentation/user/scratchbox-1.0/" + elog + elog "Also note that when you reboot you should run:" + elog "/etc/init.d/scratchbox start" + elog "before trying to run scratchbox." + elog "You can also add it to the default runlevel:" + elog "rc-update add scratchbox default" + elog + elog "Type /opt/scratchbox/login to start scratchbox." + elog +} + +pkg_postrm() { + elog + elog "To remove all traces of scratchbox you will need to remove the file" + elog "/etc/init.d/scratchbox. Don't forget to delete the sbox group." + elog +} + +pkg_config() { + if [ `id -u` != "0" ]; then + ewarn "Must be root to run this" + die "not root" + fi + + mkdir -p "${TARGET_DIR}/users" + + while true; do + einfo "Existing users:" + einfo $(ls "${TARGET_DIR}/users") + echo + + einfo "Create new user (leaf empty to skip): " + read newuser + case "$newuser" in + "") + break; + ;; + *) + einfo "Note: users have to be in the '${SBOX_GROUP}' to be able to login into the scratchbox" + "${TARGET_DIR}/sbin/sbox_adduser" ${newuser} || die "sbox_adduser failed" + ;; + esac + done + + einfo "Configuration finished. Make sure you run '/etc/init.d/scratchbox start' before logging in." +} diff --git a/dev-embedded/scratchbox/scratchbox-1.0.20.ebuild b/dev-embedded/scratchbox/scratchbox-1.0.20.ebuild new file mode 100644 index 000000000000..6dd08a55de8f --- /dev/null +++ b/dev-embedded/scratchbox/scratchbox-1.0.20.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils user + +SBOX_GROUP="sbox" + +DESCRIPTION="A cross-compilation toolkit for embedded Linux application development" +HOMEPAGE="http://www.scratchbox.org/" +SRC_URI="http://scratchbox.org/download/files/sbox-releases/hathor/tarball/scratchbox-core-${PV}-i386.tar.gz + http://scratchbox.org/download/files/sbox-releases/hathor/tarball/scratchbox-libs-${PV}-i386.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# Stripping BREAKS scratchbox, it runs in a chroot and is pre-stripped when needed (bug #296294) +RESTRICT="strip" + +DEPEND="" +RDEPEND="" + +TARGET_DIR="/opt/scratchbox" + +S=${WORKDIR}/${PN} + +src_install() { + dodir ${TARGET_DIR} + # doins doesn't work with symlinks, getting "file not found" with doins + cp -pRP ./* "${D}/${TARGET_DIR}" + ln -s opt/scratchbox "${D}/scratchbox" + + # scratchbox service loader + newinitd "${FILESDIR}/scratchbox.rc" scratchbox || die "newinitd failed" + + # group already created + echo ${SBOX_GROUP} > "${D}/${TARGET_DIR}/.run_me_first_done" +} + +pkg_preinst() { + einfo "Creating group sbox" + enewgroup "${SBOX_GROUP}" +} + +pkg_postinst() { + "${TARGET_DIR}/sbin/sbox_configure" "no" ${SBOX_GROUP} + + elog + elog "You can run:" + elog "\"emerge --config =${CATEGORY}/${PF}\"" + elog "to setup scratchbox users" + elog + elog "For further documentation about how to setup" + elog "scratchbox for your development needs have a look at" + elog "http://scratchbox.org/documentation/user/scratchbox-1.0/" + elog + elog "Also note that when you reboot you should run:" + elog "/etc/init.d/scratchbox start" + elog "before trying to run scratchbox." + elog "You can also add it to the default runlevel:" + elog "rc-update add scratchbox default" + elog + elog "Type /opt/scratchbox/login to start scratchbox." + elog +} + +pkg_postrm() { + elog + elog "To remove all traces of scratchbox you will need to remove the file" + elog "/etc/init.d/scratchbox. Don't forget to delete the sbox group." + elog +} + +pkg_config() { + if [ `id -u` != "0" ]; then + ewarn "Must be root to run this" + die "not root" + fi + + mkdir -p "${TARGET_DIR}/users" + + while true; do + einfo "Existing users:" + einfo $(ls "${TARGET_DIR}/users") + echo + + einfo "Create new user (leaf empty to skip): " + read newuser + case "$newuser" in + "") + break; + ;; + *) + einfo "Note: users have to be in the '${SBOX_GROUP}' to be able to login into the scratchbox" + "${TARGET_DIR}/sbin/sbox_adduser" ${newuser} || die "sbox_adduser failed" + ;; + esac + done + + einfo "Configuration finished. Make sure you run '/etc/init.d/scratchbox start' before logging in." +} |