summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/node/README2
-rw-r--r--network/node/node.SlackBuild77
-rw-r--r--network/node/node.info10
-rw-r--r--network/node/slack-desc19
4 files changed, 108 insertions, 0 deletions
diff --git a/network/node/README b/network/node/README
new file mode 100644
index 0000000000..4749a2b341
--- /dev/null
+++ b/network/node/README
@@ -0,0 +1,2 @@
+Node is a toolkit for writing extremely high performance non-blocking event
+driven network servers in JavaScript. Node is built on V8 JavaScript engine.
diff --git a/network/node/node.SlackBuild b/network/node/node.SlackBuild
new file mode 100644
index 0000000000..81dcdc6d19
--- /dev/null
+++ b/network/node/node.SlackBuild
@@ -0,0 +1,77 @@
+#!/bin/sh
+
+# Slackware build script for node
+# Written by Audrius Kažukauskas <audrius@neutrino.lt>
+
+PRGNAM=node
+VERSION=${VERSION:-0.1.99}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz
+cd $PRGNAM-v$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+sed -i "s|lib/node|lib$LIBDIRSUFFIX/node|" wscript
+sed -i "s|share/man|man|" wscript
+sed -i "s|\"lib\"|\"lib$LIBDIRSUFFIX\"|" bin/node-waf
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr
+
+make
+make install DESTDIR=$PKG
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/node/node.info b/network/node/node.info
new file mode 100644
index 0000000000..a82b043400
--- /dev/null
+++ b/network/node/node.info
@@ -0,0 +1,10 @@
+PRGNAM="node"
+VERSION="0.1.99"
+HOMEPAGE="http://nodejs.org/"
+DOWNLOAD="http://nodejs.org/dist/node-v0.1.99.tar.gz"
+MD5SUM="641059d904fd87c29f16a31be862cabb"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Audrius Kažukauskas"
+EMAIL="audrius@neutrino.lt"
+APPROVED="rworkman"
diff --git a/network/node/slack-desc b/network/node/slack-desc
new file mode 100644
index 0000000000..69eb2a2ec0
--- /dev/null
+++ b/network/node/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+node: Node (Evented I/O for V8 JavaScript)
+node:
+node: Node is a toolkit for writing extremely high performance non-blocking
+node: event driven network servers in JavaScript. Node is built on V8
+node: JavaScript engine.
+node:
+node: Homepage: http://nodejs.org/
+node:
+node:
+node:
+node: