diff options
25 files changed, 470 insertions, 0 deletions
diff --git a/dev-embedded/scratchbox-devkit-apt-https/ChangeLog b/dev-embedded/scratchbox-devkit-apt-https/ChangeLog new file mode 100644 index 000000000000..85f37c6cf229 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-apt-https/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/scratchbox-devkit-apt-https +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-apt-https/ChangeLog,v 1.1 2009/05/06 19:33:49 tester Exp $ + +*scratchbox-devkit-apt-https-1.0.5 (06 May 2009) + + 06 May 2009; Olivier Crête <tester@gentoo.org> +metadata.xml, + +scratchbox-devkit-apt-https-1.0.5.ebuild: + Initial version, from sunrise and bug #94225 + diff --git a/dev-embedded/scratchbox-devkit-apt-https/metadata.xml b/dev-embedded/scratchbox-devkit-apt-https/metadata.xml new file mode 100644 index 000000000000..4fda9497e023 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-apt-https/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<maintainer> + <email>tester@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-embedded/scratchbox-devkit-apt-https/scratchbox-devkit-apt-https-1.0.5.ebuild b/dev-embedded/scratchbox-devkit-apt-https/scratchbox-devkit-apt-https-1.0.5.ebuild new file mode 100644 index 000000000000..14b090eb9c1d --- /dev/null +++ b/dev-embedded/scratchbox-devkit-apt-https/scratchbox-devkit-apt-https-1.0.5.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-apt-https/scratchbox-devkit-apt-https-1.0.5.ebuild,v 1.1 2009/05/06 19:33:49 tester Exp $ + +SBOX_GROUP="sbox" +RESTRICT="strip binchecks" + +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/stable/tarball/${P}-i386.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="=dev-embedded/scratchbox-1.0*" +DEPEND="" + +TARGET_DIR="/opt/scratchbox" + +S=${WORKDIR}/scratchbox + +src_install() { + dodir ${TARGET_DIR} + cp -pRP * "${D}/${TARGET_DIR}" +} diff --git a/dev-embedded/scratchbox-devkit-cputransp/ChangeLog b/dev-embedded/scratchbox-devkit-cputransp/ChangeLog new file mode 100644 index 000000000000..647a08ccdd87 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-cputransp/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/scratchbox-devkit-cputransp +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-cputransp/ChangeLog,v 1.1 2009/05/06 19:34:04 tester Exp $ + +*scratchbox-devkit-cputransp-1.0.7 (06 May 2009) + + 06 May 2009; Olivier Crête <tester@gentoo.org> +metadata.xml, + +scratchbox-devkit-cputransp-1.0.7.ebuild: + Initial version, from sunrise and bug #94225 + diff --git a/dev-embedded/scratchbox-devkit-cputransp/metadata.xml b/dev-embedded/scratchbox-devkit-cputransp/metadata.xml new file mode 100644 index 000000000000..4fda9497e023 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-cputransp/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<maintainer> + <email>tester@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-embedded/scratchbox-devkit-cputransp/scratchbox-devkit-cputransp-1.0.7.ebuild b/dev-embedded/scratchbox-devkit-cputransp/scratchbox-devkit-cputransp-1.0.7.ebuild new file mode 100644 index 000000000000..7d634ee693d1 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-cputransp/scratchbox-devkit-cputransp-1.0.7.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-cputransp/scratchbox-devkit-cputransp-1.0.7.ebuild,v 1.1 2009/05/06 19:34:04 tester Exp $ + +SBOX_GROUP="sbox" +RESTRICT="strip binchecks" + +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/stable/tarball/${P}-i386.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="=dev-embedded/scratchbox-1.0*" +RDEPEND="" + +TARGET_DIR="/opt/scratchbox" + +S=${WORKDIR}/scratchbox + +src_install() { + dodir ${TARGET_DIR} + cp -pRP * "${D}/${TARGET_DIR}" +} diff --git a/dev-embedded/scratchbox-devkit-debian/ChangeLog b/dev-embedded/scratchbox-devkit-debian/ChangeLog new file mode 100644 index 000000000000..fa54b4b4e6b3 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-debian/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/scratchbox-devkit-debian +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-debian/ChangeLog,v 1.1 2009/05/06 19:34:21 tester Exp $ + +*scratchbox-devkit-debian-1.0.10 (06 May 2009) + + 06 May 2009; Olivier Crête <tester@gentoo.org> +metadata.xml, + +scratchbox-devkit-debian-1.0.10.ebuild: + Initial version, from sunrise and bug #94225 + diff --git a/dev-embedded/scratchbox-devkit-debian/metadata.xml b/dev-embedded/scratchbox-devkit-debian/metadata.xml new file mode 100644 index 000000000000..4fda9497e023 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-debian/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<maintainer> + <email>tester@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-embedded/scratchbox-devkit-debian/scratchbox-devkit-debian-1.0.10.ebuild b/dev-embedded/scratchbox-devkit-debian/scratchbox-devkit-debian-1.0.10.ebuild new file mode 100644 index 000000000000..58fcda7aa921 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-debian/scratchbox-devkit-debian-1.0.10.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-debian/scratchbox-devkit-debian-1.0.10.ebuild,v 1.1 2009/05/06 19:34:21 tester Exp $ + +SBOX_GROUP="sbox" +RESTRICT="strip binchecks" + +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/stable/tarball/${P}-i386.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="=dev-embedded/scratchbox-1.0*" +DEPEND="" + +TARGET_DIR="/opt/scratchbox" + +QA_TEXTRELS="opt/scratchbox" + +S=${WORKDIR}/scratchbox + +src_install() { + dodir ${TARGET_DIR} + cp -pRP * "${D}/${TARGET_DIR}" +} diff --git a/dev-embedded/scratchbox-devkit-doctools/ChangeLog b/dev-embedded/scratchbox-devkit-doctools/ChangeLog new file mode 100644 index 000000000000..87b834288c87 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-doctools/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/scratchbox-devkit-doctools +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-doctools/ChangeLog,v 1.1 2009/05/06 19:34:42 tester Exp $ + +*scratchbox-devkit-doctools-1.0.9 (06 May 2009) + + 06 May 2009; Olivier Crête <tester@gentoo.org> +metadata.xml, + +scratchbox-devkit-doctools-1.0.9.ebuild: + Initial version, from sunrise and bug #94225 + diff --git a/dev-embedded/scratchbox-devkit-doctools/metadata.xml b/dev-embedded/scratchbox-devkit-doctools/metadata.xml new file mode 100644 index 000000000000..4fda9497e023 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-doctools/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<maintainer> + <email>tester@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-embedded/scratchbox-devkit-doctools/scratchbox-devkit-doctools-1.0.9.ebuild b/dev-embedded/scratchbox-devkit-doctools/scratchbox-devkit-doctools-1.0.9.ebuild new file mode 100644 index 000000000000..87eeb5924034 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-doctools/scratchbox-devkit-doctools-1.0.9.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-doctools/scratchbox-devkit-doctools-1.0.9.ebuild,v 1.1 2009/05/06 19:34:42 tester Exp $ + +SBOX_GROUP="sbox" +RESTRICT="strip binchecks" + +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/stable/tarball/${P}-i386.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="=dev-embedded/scratchbox-1.0*" +DEPEND="" + +TARGET_DIR="/opt/scratchbox" + +S=${WORKDIR}/scratchbox + +src_install() { + dodir ${TARGET_DIR} + cp -pRP * "${D}/${TARGET_DIR}" +} diff --git a/dev-embedded/scratchbox-devkit-maemo3/ChangeLog b/dev-embedded/scratchbox-devkit-maemo3/ChangeLog new file mode 100644 index 000000000000..fb0f79c539ff --- /dev/null +++ b/dev-embedded/scratchbox-devkit-maemo3/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/scratchbox-devkit-maemo3 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-maemo3/ChangeLog,v 1.1 2009/05/06 19:35:03 tester Exp $ + +*scratchbox-devkit-maemo3-1.0.3 (06 May 2009) + + 06 May 2009; Olivier Crête <tester@gentoo.org> +metadata.xml, + +scratchbox-devkit-maemo3-1.0.3.ebuild: + Initial version, from sunrise and bug #94225 + diff --git a/dev-embedded/scratchbox-devkit-maemo3/metadata.xml b/dev-embedded/scratchbox-devkit-maemo3/metadata.xml new file mode 100644 index 000000000000..4fda9497e023 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-maemo3/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<maintainer> + <email>tester@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-embedded/scratchbox-devkit-maemo3/scratchbox-devkit-maemo3-1.0.3.ebuild b/dev-embedded/scratchbox-devkit-maemo3/scratchbox-devkit-maemo3-1.0.3.ebuild new file mode 100644 index 000000000000..0281003360ec --- /dev/null +++ b/dev-embedded/scratchbox-devkit-maemo3/scratchbox-devkit-maemo3-1.0.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-maemo3/scratchbox-devkit-maemo3-1.0.3.ebuild,v 1.1 2009/05/06 19:35:03 tester Exp $ + +SBOX_GROUP="sbox" +RESTRICT="strip binchecks" + +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/stable/tarball/${P}-i386.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="=dev-embedded/scratchbox-1.0*" +DEPEND="" + +QA_TEXTRELS="opt/scratchbox" +QA_EXECSTACK="opt/scratchbox" + + +TARGET_DIR="/opt/scratchbox" + +S=${WORKDIR}/scratchbox + +src_install() { + dodir ${TARGET_DIR} + cp -pRP * "${D}/${TARGET_DIR}" +} diff --git a/dev-embedded/scratchbox-devkit-perl/ChangeLog b/dev-embedded/scratchbox-devkit-perl/ChangeLog new file mode 100644 index 000000000000..69393c332288 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-perl/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/scratchbox-devkit-perl +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-perl/ChangeLog,v 1.1 2009/05/06 19:35:20 tester Exp $ + +*scratchbox-devkit-perl-1.0.4 (06 May 2009) + + 06 May 2009; Olivier Crête <tester@gentoo.org> +metadata.xml, + +scratchbox-devkit-perl-1.0.4.ebuild: + Initial version, from sunrise and bug #94225 + diff --git a/dev-embedded/scratchbox-devkit-perl/metadata.xml b/dev-embedded/scratchbox-devkit-perl/metadata.xml new file mode 100644 index 000000000000..4fda9497e023 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-perl/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<maintainer> + <email>tester@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-embedded/scratchbox-devkit-perl/scratchbox-devkit-perl-1.0.4.ebuild b/dev-embedded/scratchbox-devkit-perl/scratchbox-devkit-perl-1.0.4.ebuild new file mode 100644 index 000000000000..6a9dc71a2a38 --- /dev/null +++ b/dev-embedded/scratchbox-devkit-perl/scratchbox-devkit-perl-1.0.4.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-devkit-perl/scratchbox-devkit-perl-1.0.4.ebuild,v 1.1 2009/05/06 19:35:20 tester Exp $ + +SBOX_GROUP="sbox" +RESTRICT="strip binchecks" + +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/stable/tarball/${P}-i386.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="=dev-embedded/scratchbox-1.0*" +DEPEND="" + +TARGET_DIR="/opt/scratchbox" + +S=${WORKDIR}/scratchbox + +src_install() { + dodir ${TARGET_DIR} + cp -pRP * "${D}/${TARGET_DIR}" +} diff --git a/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/ChangeLog b/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/ChangeLog new file mode 100644 index 000000000000..e879caa4da5e --- /dev/null +++ b/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/ChangeLog,v 1.1 2009/05/06 19:35:39 tester Exp $ + +*scratchbox-toolchain-cs2005q3_2-glibc2_5-1.0.7 (06 May 2009) + + 06 May 2009; Olivier Crête <tester@gentoo.org> +metadata.xml, + +scratchbox-toolchain-cs2005q3_2-glibc2_5-1.0.7.ebuild: + Initial version, from sunrise and bug #94225 + diff --git a/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/metadata.xml b/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/metadata.xml new file mode 100644 index 000000000000..4fda9497e023 --- /dev/null +++ b/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<maintainer> + <email>tester@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/scratchbox-toolchain-cs2005q3_2-glibc2_5-1.0.7.ebuild b/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/scratchbox-toolchain-cs2005q3_2-glibc2_5-1.0.7.ebuild new file mode 100644 index 000000000000..933f7c88dd45 --- /dev/null +++ b/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/scratchbox-toolchain-cs2005q3_2-glibc2_5-1.0.7.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox-toolchain-cs2005q3_2-glibc2_5/scratchbox-toolchain-cs2005q3_2-glibc2_5-1.0.7.ebuild,v 1.1 2009/05/06 19:35:39 tester Exp $ + +SBOX_GROUP="sbox" +RESTRICT="strip binchecks" + +ARMV=${PV} +I386V=${PV}.2 + +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/stable/tarball/${PN/cs2005q3_2-glibc2_5/cs2005q3.2-glibc2.5}-arm-${PV}.2-i386.tar.gz + http://scratchbox.org/download/files/sbox-releases/stable/tarball/${PN/cs2005q3_2-glibc2_5/cs2005q3.2-glibc2.5}-i386-${PV}-i386.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" +RDEPEND="=dev-embedded/scratchbox-1.0*" + +TARGET_DIR="/opt/scratchbox" + +S=${WORKDIR}/scratchbox + +src_install() { + dodir ${TARGET_DIR} + cp -pRP * "${D}/${TARGET_DIR}" +} diff --git a/dev-embedded/scratchbox/ChangeLog b/dev-embedded/scratchbox/ChangeLog new file mode 100644 index 000000000000..e2dec4ec3df2 --- /dev/null +++ b/dev-embedded/scratchbox/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/scratchbox +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox/ChangeLog,v 1.1 2009/05/06 19:33:30 tester Exp $ + +*scratchbox-1.0.11 (06 May 2009) + + 06 May 2009; Olivier Crête <tester@gentoo.org> +files/scratchbox.rc, + +metadata.xml, +scratchbox-1.0.11.ebuild: + Initial version, from sunrise and bug #94225 + 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..4fda9497e023 --- /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> +<herd>dev-embedded</herd> +<maintainer> + <email>tester@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-embedded/scratchbox/scratchbox-1.0.11.ebuild b/dev-embedded/scratchbox/scratchbox-1.0.11.ebuild new file mode 100644 index 000000000000..cf859858cb4a --- /dev/null +++ b/dev-embedded/scratchbox/scratchbox-1.0.11.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/scratchbox/scratchbox-1.0.11.ebuild,v 1.1 2009/05/06 19:33:30 tester Exp $ + +inherit eutils + +SBOX_GROUP="sbox" +RESTRICT="strip binchecks" + +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/stable/tarball/scratchbox-core-${PV}-i386.tar.gz + http://scratchbox.org/download/files/sbox-releases/stable/tarball/scratchbox-libs-${PV}-i386.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +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() { + elog + elog "You need to run:" + elog "\"emerge --config =${CATEGORY}/${PF}\"" + elog "to set permissions right and setup scratchbox and 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 + + einfo "Do you want to configure scratchbox? [Yes/No]" + einfo "Note: This will set permissions and copy files from the system into the scratchbox" + read choice + echo + case "$choice" in + y*|Y*|"") + "${TARGET_DIR}/sbin/sbox_configure" "no" ${SBOX_GROUP} || die "sbox_configure failed" + ;; + *) + ;; + esac + + mkdir -p "${TARGET_DIR}/scratchbox/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." +} |