diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-embedded/scratchbox | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-embedded/scratchbox')
-rw-r--r-- | dev-embedded/scratchbox/Manifest | 4 | ||||
-rw-r--r-- | dev-embedded/scratchbox/files/scratchbox.rc | 23 | ||||
-rw-r--r-- | dev-embedded/scratchbox/metadata.xml | 5 | ||||
-rw-r--r-- | dev-embedded/scratchbox/scratchbox-1.0.19.ebuild | 103 | ||||
-rw-r--r-- | dev-embedded/scratchbox/scratchbox-1.0.20.ebuild | 103 |
5 files changed, 238 insertions, 0 deletions
diff --git a/dev-embedded/scratchbox/Manifest b/dev-embedded/scratchbox/Manifest new file mode 100644 index 000000000000..c0441b7f46d0 --- /dev/null +++ b/dev-embedded/scratchbox/Manifest @@ -0,0 +1,4 @@ +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 diff --git a/dev-embedded/scratchbox/files/scratchbox.rc b/dev-embedded/scratchbox/files/scratchbox.rc new file mode 100644 index 000000000000..36501b324606 --- /dev/null +++ b/dev-embedded/scratchbox/files/scratchbox.rc @@ -0,0 +1,23 @@ +#!/sbin/runscript + +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..92114080841c --- /dev/null +++ b/dev-embedded/scratchbox/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +</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..62d9a5e1f867 --- /dev/null +++ b/dev-embedded/scratchbox/scratchbox-1.0.19.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils user + +SBOX_GROUP="sbox" + +DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier" +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..62d9a5e1f867 --- /dev/null +++ b/dev-embedded/scratchbox/scratchbox-1.0.20.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils user + +SBOX_GROUP="sbox" + +DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier" +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." +} |