Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit ae3c3285 authored by Robert Nelson's avatar Robert Nelson
Browse files

pkg: cloud9 wip


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent e2f3471d
No related merge requests found
...@@ -97,6 +97,8 @@ minimal_armel () { ...@@ -97,6 +97,8 @@ minimal_armel () {
chroot_ENABLE_DEB_SRC="${chroot_ENABLE_DEB_SRC}" chroot_ENABLE_DEB_SRC="${chroot_ENABLE_DEB_SRC}"
chroot_KERNEL_HTTP_DIR="${chroot_KERNEL_HTTP_DIR}" chroot_KERNEL_HTTP_DIR="${chroot_KERNEL_HTTP_DIR}"
chroot_cloud9_ide="${chroot_cloud9_ide}"
chroot_COPY_SETUP_SDCARD="${chroot_COPY_SETUP_SDCARD}" chroot_COPY_SETUP_SDCARD="${chroot_COPY_SETUP_SDCARD}"
chroot_hook="${chroot_hook}" chroot_hook="${chroot_hook}"
...@@ -308,6 +310,7 @@ chroot_COPY_SETUP_SDCARD="enable" ...@@ -308,6 +310,7 @@ chroot_COPY_SETUP_SDCARD="enable"
#FIXME: things to add to .config: #FIXME: things to add to .config:
include_firmware="enable" include_firmware="enable"
chroot_rcnee_startup_scripts="enable" chroot_rcnee_startup_scripts="enable"
#chroot_cloud9_ide="enable"
#no_pkgs="enable" #no_pkgs="enable"
dpkg_arch="armhf" dpkg_arch="armhf"
......
...@@ -616,6 +616,35 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ ...@@ -616,6 +616,35 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
fi fi
} }
install_cloud9 () {
pkg="git-core"
dpkg_check
if [ "x\${pkg_is_not_installed}" = "x" ] ; then
if [ "x${release}" = "xwheezy" ] ; then
apt-get -y -t wheezy-backports install nodejs
else
apt-get -y install nodejs
fi
if [ ! -f /usr/bin/node ] ; then
sudo ln -s /usr/bin/nodejs /usr/bin/node
fi
if [ ! -d /usr/lib/node ] ; then
sudo mkdir -p /usr/lib/node
fi
curl https://npmjs.org/install.sh | sh
mkdir -p /opt/cloud9/ || true
clone git clone https://github.com/ajaxorg/cloud9.git /opt/cloud9/ || true
chown -R ${user_name}:${user_name} /opt/cloud9/
else
dpkg_package_missing
fi
}
cleanup () { cleanup () {
mkdir -p /boot/uboot/ mkdir -p /boot/uboot/
...@@ -654,6 +683,10 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ ...@@ -654,6 +683,10 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
add_user add_user
startup_script startup_script
if [ "x${chroot_cloud9_ide}" = "xenable" ] ; then
install_cloud9
fi
if [ "x${chroot_ENABLE_DEB_SRC}" = "xenable" ] ; then if [ "x${chroot_ENABLE_DEB_SRC}" = "xenable" ] ; then
dl_pkg_src dl_pkg_src
fi fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment