Package: nodejs / 4.8.2~dfsg-1

2001_FHS_and_rename_to_nodejs.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Description: FHS path for nodejs, rename man page to nodejs.
 Use /usr/lib/nodejs for packaged modules.
 
Forwarded: not-needed
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2013-03-16
--- a/lib/module.js
+++ b/lib/module.js
@@ -453,7 +453,7 @@
     homeDir = process.env.HOME;
   }
 
-  var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
+  var paths = ['/usr/lib/nodejs'];
 
   if (homeDir) {
     paths.unshift(path.resolve(homeDir, '.node_libraries'));
--- a/doc/node.1
+++ b/doc/node.1
@@ -26,12 +26,12 @@
 
 .SH NAME
 
-node \- Server-side JavaScript runtime
+nodejs \- Server-side JavaScript runtime
 
 
 .SH SYNOPSIS
 
-.B node
+.B nodejs
 .RI [ options ]
 .RI [ v8\ options ]
 .RI [ script.js \ |
@@ -39,14 +39,14 @@
 .RI \&" script \&"]
 .RI [ arguments ]
 .br
-.B node debug
+.B nodejs debug
 .RI [ script.js " | "
 .B \-e
 .RI \&" script \&"\ |
 .IR <host>:<port> ]
 .I ...
 .br
-.B node
+.B nodejs
 .RB [ \-\-v8-options ]
 
 Execute without arguments to start the REPL.