From 54d597fb3a029d055b67becea57602c362f047fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Audrius=20Ka=C5=BEukauskas?= Date: Sun, 19 Feb 2012 02:05:52 -0600 Subject: network/node: Updated for version 0.6.10. Signed-off-by: Robby Workman --- network/node/node.SlackBuild | 14 +++++++++++++- network/node/node.info | 6 +++--- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'network/node') diff --git a/network/node/node.SlackBuild b/network/node/node.SlackBuild index ec78a79aee..505c722cf1 100644 --- a/network/node/node.SlackBuild +++ b/network/node/node.SlackBuild @@ -4,7 +4,7 @@ # Written by Audrius Kažukauskas PRGNAM=node -VERSION=${VERSION:-0.6.6} +VERSION=${VERSION:-0.6.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -80,6 +80,18 @@ install -D -m 644 $CWD/npm.sh $PKG/etc/bash_completion.d/npm # Remove unneeded files. find $PKG/usr \( -name '.git*' -o -name '.travis.yml' \) -exec rm -f {} \; +# Set NODE_PATH to look for globally installed modules. +mkdir -p $PKG/etc/profile.d +cat > $PKG/etc/profile.d/node.csh << EOF +#!/bin/csh +setenv NODE_PATH /usr/lib${LIBDIRSUFFIX}/node_modules +EOF +cat > $PKG/etc/profile.d/node.sh << EOF +#!/bin/sh +export NODE_PATH=/usr/lib${LIBDIRSUFFIX}/node_modules +EOF +chmod 0755 $PKG/etc/profile.d/* + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/network/node/node.info b/network/node/node.info index f5fd07d321..a10dbf8eba 100644 --- a/network/node/node.info +++ b/network/node/node.info @@ -1,8 +1,8 @@ PRGNAM="node" -VERSION="0.6.6" +VERSION="0.6.10" HOMEPAGE="http://nodejs.org/" -DOWNLOAD="http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz" -MD5SUM="43836ebd6e8e9059c4584e3b5ab50009" +DOWNLOAD="http://nodejs.org/dist/v0.6.10/node-v0.6.10.tar.gz" +MD5SUM="8a74fd5d48c2c7c64abc60b2b8f3fbc7" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Audrius Kažukauskas" -- cgit v1.2.3