summaryrefslogtreecommitdiff
path: root/dev-embedded/scratchbox
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-embedded/scratchbox
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-embedded/scratchbox')
-rw-r--r--dev-embedded/scratchbox/Manifest8
-rw-r--r--dev-embedded/scratchbox/files/scratchbox.rc23
-rw-r--r--dev-embedded/scratchbox/metadata.xml8
-rw-r--r--dev-embedded/scratchbox/scratchbox-1.0.19.ebuild104
-rw-r--r--dev-embedded/scratchbox/scratchbox-1.0.20.ebuild104
5 files changed, 247 insertions, 0 deletions
diff --git a/dev-embedded/scratchbox/Manifest b/dev-embedded/scratchbox/Manifest
new file mode 100644
index 000000000000..4fe5956fa2ac
--- /dev/null
+++ b/dev-embedded/scratchbox/Manifest
@@ -0,0 +1,8 @@
+AUX scratchbox.rc 410 BLAKE2B 2a927eda81204c933906dd5916fbc7928b9254f8a6f86fe78f8df7c23d37eb252a00548e35ccbfdf130c5675a316450ba158248128c43d072220f4c6b75f2e66 SHA512 51d776fe7b1ba27232b1c26e22eb807d77baad6ae9b8fd3d5a328c087f1b8c60e3891b748eb8b2f812b22d99b1e6a446b4c0cd8a8eb5ce1167eef0ab6faaaf2c
+DIST scratchbox-core-1.0.19-i386.tar.gz 51524069 BLAKE2B 0e50c204a104b2f860481170c6236664f8654c45ac256bdfa919fa88d2c49e44e45f3b5835cee6726f4b0192f3a951ea258f8bd90b20bb93a2b7e366f58d88a1 SHA512 870fa53d569fae238e4c9680ce7b61ee3f35a264ba03bb2e57e5501312826883a75c55c989f554afab24c7fa3362139f7ad9ad109019afaaa6968d88e4d4b3c0
+DIST scratchbox-core-1.0.20-i386.tar.gz 51829189 BLAKE2B d077c32c2af1f90d4d49205a89ce3eb6d8bb8bb7de55c690c36fefbffd9354296bd47740b4a289212dbe35a9fabe7a1f0f8f8293170a260d2593a319d59d9442 SHA512 a5c99d426458d38458978082db58efd74755e54294ef41dbbd811daf758573e568a84360641d61bd8d30f368e50a088b976369a1c2af543f00026f388366587d
+DIST scratchbox-libs-1.0.19-i386.tar.gz 14368380 BLAKE2B cd81dfc13b1f8ad57b8ebcc078a7d8233d593fa1ca35ce6692a01cec10c726131be49ce7bd7bea0fc09d0c4f9f774a5078a4de9e850108ce72dedcecdb3fc146 SHA512 d246c4c2c502c93ad0a73b91b3db177bfb4f6952aa85068bc0561a25567cce0e355539446af51d4aaf27c8cc168050a1ca27e5c937ce9d2e14b9db3fad0977bb
+DIST scratchbox-libs-1.0.20-i386.tar.gz 14369499 BLAKE2B 48bb560dc4f0b06c1e51eed2f48a8037213fa3eaae310110821cc03094cda83f7998fde89ee138ccb743218c87ff1bccfa072eecbd4781cf247a9fb14b93e341 SHA512 2be9d23e80827d80bbaaf3da940d50b8f09e24ee9e7e12accd33c8b95aca927e66a6d3bc69e47a7c49efa3f9c7cdfa37aed45303eeee46958f1ae85aed02fc2b
+EBUILD scratchbox-1.0.19.ebuild 2673 BLAKE2B fb13a2faebe769e1f656d5bcd4aa457bf54ae162f5a70e5dde6a39c0d4804330ecaae00691a17ff50e4d42aeecbb306ea7a9ac4ead969ef9f9901cfd558c841c SHA512 e719e44ebf18268136f9ac449e5a7b57a8adeb9b4260e7cb485d579fa21f8e843663efe542b4cb909425ffda81d041c1594df710c620bd50b67f72a2c945b79d
+EBUILD scratchbox-1.0.20.ebuild 2673 BLAKE2B fb13a2faebe769e1f656d5bcd4aa457bf54ae162f5a70e5dde6a39c0d4804330ecaae00691a17ff50e4d42aeecbb306ea7a9ac4ead969ef9f9901cfd558c841c SHA512 e719e44ebf18268136f9ac449e5a7b57a8adeb9b4260e7cb485d579fa21f8e843663efe542b4cb909425ffda81d041c1594df710c620bd50b67f72a2c945b79d
+MISC metadata.xml 247 BLAKE2B e46b8f2d053251af5cb591bb2ee5e35089c4e8174ee2e7a3c504db23f844b65083d4a3e5198da3977ad3e98b67cab2e0de686a3c62009b487c1e64785a8ff65d SHA512 15df289e0f962f564551f61ada3cfef0311f6af639887def780bf5ad3be105515c8d24c950ff340ed35d89b9cd994af3540322b684c5dec3b43ec6bb0041aa4e
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..d763fc05189d
--- /dev/null
+++ b/dev-embedded/scratchbox/scratchbox-1.0.19.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=0
+
+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..d763fc05189d
--- /dev/null
+++ b/dev-embedded/scratchbox/scratchbox-1.0.20.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=0
+
+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."
+}