summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2006-07-01 22:36:52 +0000
committerTiziano Müller <dev-zero@gentoo.org>2006-07-01 22:36:52 +0000
commit8c5cfc1e578793663dbd00f1dbd850b4bb00ecc7 (patch)
treee3b41665da62ee6cb20a4b2f4843a49a350016ea
parentnet-mail/dbmail - redo configure logic, default to MySQL unless USE=postgres ... (diff)
downloadsunrise-8c5cfc1e578793663dbd00f1dbd850b4bb00ecc7.tar.gz
sunrise-8c5cfc1e578793663dbd00f1dbd850b4bb00ecc7.tar.bz2
sunrise-8c5cfc1e578793663dbd00f1dbd850b4bb00ecc7.zip
sys-devel/scratchbox - bug 94225, thanks to Christian Hartmann for the initial ebuild
svn path=/sunrise/; revision=410
-rw-r--r--sys-devel/scratchbox/ChangeLog7
-rw-r--r--sys-devel/scratchbox/Manifest17
-rw-r--r--sys-devel/scratchbox/files/digest-scratchbox-0.9.8.76
-rw-r--r--sys-devel/scratchbox/files/scratchbox.rc26
-rw-r--r--sys-devel/scratchbox/scratchbox-0.9.8.7.ebuild85
5 files changed, 141 insertions, 0 deletions
diff --git a/sys-devel/scratchbox/ChangeLog b/sys-devel/scratchbox/ChangeLog
new file mode 100644
index 000000000..dbe77f8de
--- /dev/null
+++ b/sys-devel/scratchbox/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for sys-devel/scratchbox
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 01 Jul 2006; Tiziano Müller <gentoo@dev-zero.ch> ChangeLog:
+ New ebuild for bug 94225, thanks to Christian Hartmann for the initial
+
diff --git a/sys-devel/scratchbox/Manifest b/sys-devel/scratchbox/Manifest
new file mode 100644
index 000000000..844040b7c
--- /dev/null
+++ b/sys-devel/scratchbox/Manifest
@@ -0,0 +1,17 @@
+AUX scratchbox.rc 529 RMD160 c0eac50c819e010fb87163b66b96fadb4ac41fc3 SHA1 24d1380fd68dc55d90c8f1e4af2901afcbe7eaae SHA256 9b0145bcb9a0256148afd7cef52f8e5eac0dfc721c7392b2f52dbf854d982ac7
+MD5 fdb0e39ad83b5b311b336f1dd1dd7a5f files/scratchbox.rc 529
+RMD160 c0eac50c819e010fb87163b66b96fadb4ac41fc3 files/scratchbox.rc 529
+SHA256 9b0145bcb9a0256148afd7cef52f8e5eac0dfc721c7392b2f52dbf854d982ac7 files/scratchbox.rc 529
+DIST scratchbox-core-0.9.8.7.tar.gz 77021913 RMD160 f50050e98e9534b3c7745f3e89f9db3d6490694c SHA1 1eff87d0dda76919ca5605e6f6ba99f0efb6762b SHA256 f4a13a17b1d4a07e200b1323c2f7dc7a8f180f84e29a7f7cea7244d0b3fba4e1
+DIST scratchbox-libs-0.9.8.7.tar.gz 13670961 RMD160 a3f13065aee341243b005488f833f46e76955d93 SHA1 8091812434f6f6f0c5f3b647df43858cb8909bdf SHA256 42444908ba79ef9428117ed586026b6d6aed9d2e325bc55d194a2591d54b35d6
+EBUILD scratchbox-0.9.8.7.ebuild 2439 RMD160 62916ea29523a072b99895a397d35cc96d4793e1 SHA1 33874c3d620459c6d833e75c5ffbd271aa1927c2 SHA256 6c857b4b2190e5333e5660fb44a26494450274eb08e8f630b8bbb4ec491b3af0
+MD5 710f08f2b47ffda6ac061b74a64a539c scratchbox-0.9.8.7.ebuild 2439
+RMD160 62916ea29523a072b99895a397d35cc96d4793e1 scratchbox-0.9.8.7.ebuild 2439
+SHA256 6c857b4b2190e5333e5660fb44a26494450274eb08e8f630b8bbb4ec491b3af0 scratchbox-0.9.8.7.ebuild 2439
+MISC ChangeLog 258 RMD160 6f09186276ffcf81bf9abbedd00c4cdb83e0f64e SHA1 be116426619c95a843215184d1f84c05497c3263 SHA256 d4bbe9ec3f0a0a2bb0959113694c77fe2cded3e00d8f61c4ec0b327364edd96c
+MD5 120b33c36a09e83bf3333a68576acc2f ChangeLog 258
+RMD160 6f09186276ffcf81bf9abbedd00c4cdb83e0f64e ChangeLog 258
+SHA256 d4bbe9ec3f0a0a2bb0959113694c77fe2cded3e00d8f61c4ec0b327364edd96c ChangeLog 258
+MD5 fa150dd7d88329f19bae6a2ff60c7b09 files/digest-scratchbox-0.9.8.7 554
+RMD160 4548b3d3c4ef5556f096d819b044a23c5b1abb94 files/digest-scratchbox-0.9.8.7 554
+SHA256 03052faec2892245c5284b0d6d1f85c9904470f5a2c81455291ddffbfd96f9d6 files/digest-scratchbox-0.9.8.7 554
diff --git a/sys-devel/scratchbox/files/digest-scratchbox-0.9.8.7 b/sys-devel/scratchbox/files/digest-scratchbox-0.9.8.7
new file mode 100644
index 000000000..701e8551f
--- /dev/null
+++ b/sys-devel/scratchbox/files/digest-scratchbox-0.9.8.7
@@ -0,0 +1,6 @@
+MD5 b3baa338f73074d86ab3815c297a94ea scratchbox-core-0.9.8.7.tar.gz 77021913
+RMD160 f50050e98e9534b3c7745f3e89f9db3d6490694c scratchbox-core-0.9.8.7.tar.gz 77021913
+SHA256 f4a13a17b1d4a07e200b1323c2f7dc7a8f180f84e29a7f7cea7244d0b3fba4e1 scratchbox-core-0.9.8.7.tar.gz 77021913
+MD5 a235d072b064606b822c208abd204805 scratchbox-libs-0.9.8.7.tar.gz 13670961
+RMD160 a3f13065aee341243b005488f833f46e76955d93 scratchbox-libs-0.9.8.7.tar.gz 13670961
+SHA256 42444908ba79ef9428117ed586026b6d6aed9d2e325bc55d194a2591d54b35d6 scratchbox-libs-0.9.8.7.tar.gz 13670961
diff --git a/sys-devel/scratchbox/files/scratchbox.rc b/sys-devel/scratchbox/files/scratchbox.rc
new file mode 100644
index 000000000..a186ebd9b
--- /dev/null
+++ b/sys-devel/scratchbox/files/scratchbox.rc
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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/sys-devel/scratchbox/scratchbox-0.9.8.7.ebuild b/sys-devel/scratchbox/scratchbox-0.9.8.7.ebuild
new file mode 100644
index 000000000..d3e781ffe
--- /dev/null
+++ b/sys-devel/scratchbox/scratchbox-0.9.8.7.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MAJOR_VERSION=${PV%\.[0-9]}
+
+SBOX_GROUP="sbox"
+RESTRICT="strip"
+
+DESCRIPTION="Scratchbox is 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/${MAJOR_VERSION}/tarball/scratchbox-core-${PV}.tar.gz
+ http://scratchbox.org/download/files/sbox-releases/${MAJOR_VERSION}/tarball/scratchbox-libs-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+TARGET_DIR="/opt/scratchbox"
+
+S=${WORKDIR}/scratchbox
+
+pkg_setup() {
+ einfo "Creating group sbox"
+ enewgroup "${SBOX_GROUP}"
+}
+
+src_install() {
+ cd "${S}"
+ dodir ${TARGET_DIR}
+ # doins doesn't work with symlinks, getting "file not found" with doins
+ cp -pRP ./* "${D}/${TARGET_DIR}"
+ dosym opt/scratchbox scratchbox
+
+ # scratchbox service loader
+ newinitd "${FILESDIR}/scratchbox.rc" scratchbox || die "newinitd failed"
+
+}
+
+pkg_postinst() {
+ einfo
+ einfo "You need to run /opt/scratchbox/run_me_first.sh to complete the install."
+ einfo
+ einfo "Do not forget to create a scratchbox user:"
+ einfo "/opt/scratchbox/sbin/sbox_adduser <user>"
+ einfo
+ einfo "For further documentation about how to setup"
+ einfo "scratchbox for your development needs have a look at"
+ einfo "http://scratchbox.org/documentation/user/scratchbox-${MAJOR_VERSION}/"
+ einfo
+ einfo "Also note that when you reboot you should run:"
+ einfo "/etc/init.d/scratchbox start"
+ einfo "before trying to run scratchbox."
+ einfo "You can also add it to the default runlevel:"
+ einfo "rc-update add scratchbox default"
+ einfo
+ einfo "Type /opt/scratchbox/login to start scratchbox."
+ einfo
+
+ ewarn
+ ewarn "Remember, in order to run scratchbox, you have to"
+ ewarn "be in the '${SBOX_GROUP}' group."
+ ewarn
+
+ ewarn
+ ewarn "For scratchbox to work, you have to set the following files to suid root (chmod u+s FILE):"
+ ewarn " - /opt/scratchbox/sbin/chroot-uid"
+ ewarn " - /opt/scratchbox/compilers/host-gcc/usr/libexec/pt_chown"
+ ewarn "Please note that this could be a security risk and should not be done when security is a concern"
+ ewarn
+}
+
+pkg_postrm() {
+ einfo
+ einfo "To remove all traces of scratchbox you will need to remove the file"
+ einfo "/etc/init.d/scratchbox. Don't forget to delete the sbox group."
+ einfo
+}
+