Commit 2fe0cfe0 authored by Jérémy Lal's avatar Jérémy Lal

Release 0.2.0-1

parent c0931fda
nodejs for Debian
---------------
Warning: the API is expected to change until nodejs reaches version 0.2
node-waf is in nodejs-dev package, to build a module using waf, do :
/usr/bin/nodejs-waf configure build
To install such a module, be root and do :
/usr/bin/nodejs-waf install
Modules path : /usr/lib/nodejs/
Module 'foo' is searched in that order :
/usr/lib/nodejs/foo.js
/usr/lib/nodejs/foo.node
/usr/lib/nodejs/foo/index.js
/usr/lib/nodejs/foo/index.addon
-- Jérémy Lal <kapouer@melix.org> Fri, 07 May 2010 18:13:57 +0200
nodejs for Debian
---------------
Node has been renamed : it is too generic a name.
- DONE : libudns to libc-ares transition : libudns is to be dropped one day
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493599
http://groups.google.com/group/nodejs/browse_thread/thread/b49eeba96bfd4b4
- DONE : However, libc-ares 1.7.1 currently does not support parse_mx_reply, it's been
added upstream, so the corresponding debian/patches/cares-disable-mx.patch must
be removed when 1.7.2 is released and available as a debian package.
- support nodejs shebang, notice lintian maintainers ?
- add a "js" alternative ?
nodejs (0.2.0-1) unstable; urgency=low
* New upstream release
-- Jérémy Lal <kapouer@melix.org> Fri, 20 Aug 2010 11:49:04 +0200
nodejs (0.1.104-1) unstable; urgency=low
* New upstream release. (Closes: #593088)
-- Jérémy Lal <kapouer@melix.org> Mon, 16 Aug 2010 07:07:09 +0200
nodejs (0.1.102-1) unstable; urgency=low
* New upstream release
-- Jérémy Lal <kapouer@melix.org> Tue, 27 Jul 2010 08:29:40 +0200
nodejs (0.1.101-2) unstable; urgency=low
* Build-Depends on bash-completion for dh_bash-completion
-- Jérémy Lal <kapouer@melix.org> Wed, 21 Jul 2010 08:58:52 +0200
nodejs (0.1.101-1) unstable; urgency=low
* New upstream release
* Standards-Version 3.9.0
* Move BSD license in debian/copyright
* nodejs-waf now accepts NODE_PATH environment variable, which defines
where to install compiled modules. Defaults to ~/.node_libraries.
* nodejs-waf bash-completion snippet
* API Manual registered with doc-base.
* Depends on libv8-2.2.24
-- Jérémy Lal <kapouer@melix.org> Wed, 14 Jul 2010 13:52:07 +0200
nodejs (0.1.99-1) unstable; urgency=low
* New upstream release
* DNS module : MX support since c-ares 1.7.3
* nodejs-repl is replaced by invoking nodejs without file argument,
rlwrap is no more needed.
* Full upstream author name in debian/copyright.
-- Jérémy Lal <kapouer@melix.org> Tue, 29 Jun 2010 08:25:13 +0200
nodejs (0.1.97-1) unstable; urgency=low
* New upstream release
-- Jérémy Lal <kapouer@melix.org> Sun, 30 May 2010 23:14:24 +0200
nodejs (0.1.95-1) unstable; urgency=low
* New upstream release
-- Jérémy Lal <kapouer@melix.org> Fri, 14 May 2010 02:05:25 +0200
nodejs (0.1.94-2) unstable; urgency=low
* Drop dependencies on libgnutls-dev, libgpg-error-dev.
* Modules path moved to /usr/lib/nodejs (without /modules), to
follow more closely upstream practice.
* node-repl is now in /usr/share/nodejs because it is
simply a js script file ; nodejs-repl still in /usr/bin
-- Jérémy Lal <kapouer@melix.org> Tue, 11 May 2010 19:52:12 +0200
nodejs (0.1.94-1) unstable; urgency=low
* New upstream release
* API has changed and will be more stable with 0.2 release
* Fix dependency on libv8. (Closes: #579044)
* Switched from gnutls to libssl.
-- Jérémy Lal <kapouer@melix.org> Thu, 06 May 2010 23:19:12 +0200
nodejs (0.1.92-1) unstable; urgency=low
* New upstream release
* Switch from udns to c-ares.
-- Jérémy Lal <kapouer@melix.org> Sat, 24 Apr 2010 09:12:06 +0200
nodejs (0.1.33-3) unstable; urgency=low
* Fix wrong use of binary-indep target in debian/rules.
(Closes: #575383)
-- Jérémy Lal <kapouer@melix.org> Mon, 05 Apr 2010 15:26:40 +0200
nodejs (0.1.33-2) unstable; urgency=low
* Previous package was broken in some way. (Closes: #575383)
-- Jérémy Lal <kapouer@melix.org> Thu, 25 Mar 2010 12:24:06 +0100
nodejs (0.1.33-1) unstable; urgency=low
* New upstream release. (Closes: #572023)
* Debian package has the same license as upstream (MIT).
* Include waf in source package and nodejs-dev package. (Closes: #571710)
* Switch to dpkg-source 3.0 (quilt) format.
* Place modules directory in usr/lib/nodejs/modules,
and add it to nodejs module path. Documentation in README.Debian.
* Architecture: any since the supported archs depends only on libv8.
-- Jérémy Lal <kapouer@melix.org> Mon, 22 Mar 2010 01:53:48 +0100
nodejs (0.1.27+dfsg-1) unstable; urgency=low
* Initial release (Closes: #553514)
-- Jérémy Lal <kapouer@melix.org> Sun, 07 Feb 2010 01:16:07 +0100
Source: nodejs
Section: web
Priority: extra
Maintainer: Jérémy Lal <kapouer@melix.org>
Uploaders: Dave Beckett <dajobe@debian.org>
Build-Depends: debhelper (>= 7), python, libev-dev (>= 3.9), libv8-dev (>= 2.2.24), scons (>= 1.2.0), libc-ares-dev (>= 1.7.3), binutils, libssl-dev (>= 0.9.8), pkg-config, bash-completion
Standards-Version: 3.9.1
Homepage: http://nodejs.org/
Vcs-Browser: http://git.debian.org/?p=collab-maint/nodejs.git
Vcs-Git: git://git.debian.org/git/collab-maint/nodejs.git
Package: nodejs-dev
Section: devel
Architecture: any
Depends: nodejs (= ${binary:Version}), ${misc:Depends}, python, libev-dev (>= 3.9), libv8-dev (>= 2.2.24), libc-ares-dev (>= 1.7.3), libssl-dev (>= 0.9.8)
Description: Development files for Node.js
Node.js provides an event-based server-side javascript engine.
.
It is similar in design to and influenced by systems like
Ruby's Event Machine or Python's Twisted.
.
Node.js takes the event model a bit further - it presents the event
loop as a language construct instead of as a library.
.
This package is needed to build plugins.
Package: nodejs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Node.js event-based server-side javascript engine
Node.js is similar in design to and influenced by systems like
Ruby's Event Machine or Python's Twisted.
.
It takes the event model a bit further - it presents the event
loop as a language construct instead of as a library.
.
Node.js is bundled with several useful libraries to handle server tasks :
System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
Package: nodejs-dbg
Section: debug
Architecture: any
Depends: ${misc:Depends}, nodejs (= ${binary:Version})
Suggests: libv8-dbg (>= 2.2.24)
Description: Node.js event-based server-side javascript engine (debug)
Node.js is similar in design to and influenced by systems like
Ruby's Event Machine or Python's Twisted.
.
It takes the event model a bit further - it presents the event
loop as a language construct instead of as a library.
.
Node.js is bundled with several useful libraries to handle server tasks :
System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
.
This package contains the debugging symbols.
This diff is collapsed.
/usr/lib/debug/usr/bin/
debian/nodejs-waf.bash-completion nodejs-waf
usr/include/nodejs
usr/share/nodejs
usr/bin
debian/nodejs-waf.1
.TH nodejs-waf 1 "11 July 2010"
.
.SH NAME
.
nodejs-waf - WAF helper for building nodejs modules
.
.SH SYNOPSIS
.B nodejs-waf [\fICOMMAND\fR]
.
.SH DESCRIPTION
.PP
Helper for the waf build system that is included in nodejs-dev package.
.P
Typical usage is :
\fInodejs-waf\fP \fBconfigure\fR \fBbuild\fR
.
.SH ENVIRONMENT VARIABLE
.P
\fBNODE_PATH\fR sets the path where the module is installed.
This environment variable may be set when calling \fBconfigure\fR command.
If $HOME is set, it defaults to $HOME/.node_libraries, else to /usr/lib/nodejs.
.
.SH COMMANDS
.TP
\fBdistclean\fR
Removes all files created by \fInodejs-waf\fP.
This may be useful when using a new nodejs release.
.TP
\fBclean\fR
.TP
\fBconfigure\fR
.TP
\fBbuild\fR
.TP
\fBinstall\fR
Install to NODE_PATH.
.TP
\fBuninstall\fR
Uninstall module from NODE_PATH.
.
.SH "SEE ALSO"
.
.BR nodejs(1)
have nodejs-waf &&
_nodejs_waf()
{
cur=${COMP_WORDS[COMP_CWORD]}
if [ $COMP_CWORD -ge 1 ]; then
COMPREPLY=( $( compgen -W "distclean clean configure build install uninstall" $cur ) )
fi
}
complete -F _nodejs_waf nodejs-waf
usr/lib/nodejs
usr/share/nodejs
Document: nodejs-api
Title: Nodejs API Manual
Author: Ryan Dahl
Abstract: This manual describes the API and command-line usage of Nodejs.
Section: Programming
Format: HTML
Index: /usr/share/doc/nodejs/api.html
Files: /usr/share/doc/nodejs/api.html
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= <kapouer@melix.org>
Date: Fri, 1 Jan 2010 22:22:12 +0100
Subject: [PATCH] rename node.1 to nodejs.1
---
wscript | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
--- a/wscript
+++ b/wscript
@@ -559,8 +559,8 @@
# Only install the man page if it exists.
# Do 'make doc install' to build and install it.
- if os.path.exists('doc/node.1'):
- bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1')
+ if os.path.exists('doc/nodejs.1'):
+ bld.install_files('${PREFIX}/share/man/man1/', 'doc/nodejs.1')
bld.install_files('${PREFIX}/bin/', 'bin/*', chmod=0755)
bld.install_files('${PREFIX}/share/nodejs/wafadmin', 'tools/wafadmin/*.py')
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= <kapouer@melix.org>
Date: Fri, 1 Jan 2010 20:11:03 +0100
Subject: [PATCH] paths for package nodejs
---
src/node.js | 3 ++-
wscript | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
--- a/wscript
+++ b/wscript
@@ -563,8 +563,8 @@
bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1')
bld.install_files('${PREFIX}/bin/', 'bin/*', chmod=0755)
- bld.install_files('${PREFIX}/lib/node/wafadmin', 'tools/wafadmin/*.py')
- bld.install_files('${PREFIX}/lib/node/wafadmin/Tools', 'tools/wafadmin/Tools/*.py')
+ bld.install_files('${PREFIX}/share/nodejs/wafadmin', 'tools/wafadmin/*.py')
+ bld.install_files('${PREFIX}/share/nodejs/wafadmin/Tools', 'tools/wafadmin/Tools/*.py')
def shutdown():
Options.options.debug
Description: libv8_g does not exists in libv8 debian package.
Debug build of node links against debug build of libv8,
which is not available in debian package.
Author: Jérémy Lal <kapouer@melix.org>
--- a/wscript
+++ b/wscript
@@ -213,7 +213,7 @@
conf.fatal("Cannot find v8")
if o.debug:
- if not conf.check_cxx(lib=o.shared_v8_libname + '_g', header_name='v8.h',
+ if not conf.check_cxx(lib=o.shared_v8_libname, header_name='v8.h',
uselib_store='V8_G',
includes=v8_includes,
libpath=v8_libpath):
EV_MULTIPLICITY=0 is dropped because libev provided in debian package
is compiled with a different, and legitimate, value.
See messages at [0] and commit [1]
[0]
http://groups.google.com/group/nodejs/search?group=nodejs&q=ev_multiplicity
[1]
http://github.com/ry/node/commit/ffb4b47367cab304ec947ec4ebb0a6c0dc8028b7
--- a/tools/wafadmin/Tools/node_addon.py
+++ b/tools/wafadmin/Tools/node_addon.py
@@ -28,9 +28,8 @@
lib = join(prefix, 'lib')
conf.env['LIBPATH_NODE'] = lib
- conf.env['CPPPATH_NODE'] = join(prefix, 'include', 'node')
+ conf.env['CPPPATH_NODE'] = join(prefix, 'include', 'nodejs')
conf.env['CPPFLAGS_NODE'] = '-D_GNU_SOURCE'
- conf.env['CPPFLAGS_NODE'] = '-DEV_MULTIPLICITY=0'
# with symbols
conf.env.append_value('CCFLAGS', ['-g'])
@@ -43,7 +42,7 @@
found = os.path.exists(conf.env['NODE_PATH'])
conf.check_message('node path', '', found, conf.env['NODE_PATH'])
- found = os.path.exists(join(prefix, 'bin', 'node'))
+ found = os.path.exists(join(prefix, 'bin', 'nodejs'))
conf.check_message('node prefix', '', found, prefix)
## On Cygwin we need to link to the generated symbol definitions
@@ -57,7 +56,7 @@
nodePath = None
if not os.environ.has_key('NODE_PATH'):
if not os.environ.has_key('HOME'):
- nodePath = join(get_prefix(), 'lib', 'node')
+ nodePath = join(get_prefix(), 'lib', 'nodejs')
else:
nodePath = join(os.environ['HOME'], '.node_libraries')
else:
@@ -70,4 +69,4 @@
prefix = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..'))
else:
prefix = os.environ['PREFIX_NODE']
- return prefix
\ No newline at end of file
+ return prefix
--- a/bin/node-waf
+++ b/bin/node-waf
@@ -1,11 +1,12 @@
#!/usr/bin/env python
import os, sys
-
join = os.path.join
-bindir = os.path.dirname(os.path.realpath(__file__))
-prefix = join(bindir, "..")
-wafdir = join(prefix, "lib", "node")
+if os.environ.has_key('PREFIX_NODE'):
+ prefix = os.environ['PREFIX_NODE']
+else:
+ prefix = "/usr"
+wafdir = join(prefix, "share", "nodejs")
w = join(wafdir, 'wafadmin')
t = join(w, 'Tools')
--- a/src/node_config.h.in
+++ b/src/node_config.h.in
@@ -1,7 +1,7 @@
#ifndef NODE_CONFIG_H
#define NODE_CONFIG_H
-#define NODE_CFLAGS "@CCFLAGS@ @CPPFLAGS@ -I@PREFIX@/include/node"
+#define NODE_CFLAGS "@CCFLAGS@ @CPPFLAGS@ -I@PREFIX@/include/nodejs"
#define NODE_PREFIX "@PREFIX@"
#endif /* NODE_CONFIG_H */
--- a/src/node.js
+++ b/src/node.js
@@ -135,7 +135,7 @@
var pathModule = createInternalModule('path', pathFn);
var path = pathModule.exports;
- var modulePaths = [path.join(process.execPath, "..", "..", "lib", "node")];
+ var modulePaths = [path.join(process.execPath, "..", "..", "lib", "nodejs")];
if (process.env["HOME"]) {
modulePaths.unshift(path.join(process.env["HOME"], ".node_libraries"));
install-wafadmin-to-datadir.patch
node_addon-paths-and-ev_multiplicity.patch
install-man-nodejs.patch
nodejs-waf-and-node_path.patch
no-v8-debug-lib.patch
#!/usr/bin/make -f
# -*- makefile -*-
config.status:
dh_testdir
PREFIX="/usr" ./configure --debug --shared-v8 --shared-cares --shared-libev
touch $@
build: build-stamp
build-stamp: config.status
dh_testdir
$(MAKE)
clean:
rm -f node
rm -f node_g
rm -f doc/nodejs.1
rm -f .lock-wscript
dh_testdir
dh_testroot
rm -f build-stamp
$(MAKE) clean || true
# first make fails, and creates *.pyc files
find . -name "*.pyc" -delete
rm -rf build
rm -f config.status
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
# Rename man page to NODEJS
# rename binaries to nodejs, nodejs-waf, where possible
sed \
-e 's/"NODE"/"NODEJS"/g' \
-e "s/\\\fBnode\\\/\\\fBnodejs\\\/g" \
-e "s/\\\fBnode /\\\fBnodejs /g" \
-e 's/> node/> nodejs/g' \
-e "s/ node / nodejs /g" \
-e 's/ node$$/ nodejs/g' \
-e "s/\\\'node\\\'/\\\'nodejs\\\'/g" \
doc/node.1 > doc/nodejs.1
# Add here commands to install the package
DESTDIR=$(CURDIR)/debian/nodejs $(MAKE) install
# don't install node-repl
rm -f $(CURDIR)/debian/nodejs/usr/bin/node-repl
# rename and install binaries in nodejs, nodejs-dbg
mv $(CURDIR)/debian/nodejs/usr/bin/node $(CURDIR)/debian/nodejs/usr/bin/nodejs
mv $(CURDIR)/debian/nodejs/usr/bin/node_g $(CURDIR)/debian/nodejs-dbg/usr/lib/debug/usr/bin/nodejs
# headers for nodejs-dev
mv $(CURDIR)/debian/nodejs/usr/include/node/* $(CURDIR)/debian/nodejs-dev/usr/include/nodejs/
rm -rf $(CURDIR)/debian/nodejs/usr/include
# waf for nodejs-dev
mv $(CURDIR)/debian/nodejs/usr/bin/node-waf $(CURDIR)/debian/nodejs-dev/usr/bin/nodejs-waf
mv $(CURDIR)/debian/nodejs/usr/share/nodejs/wafadmin $(CURDIR)/debian/nodejs-dev/usr/share/nodejs/
# Build architecture-dependent files here.
binary-arch: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installman
dh_bash-completion
dh_link
dh_strip --dbg-package=nodejs-dbg
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
version=3
http://nodejs.org/dist/node-v(.*).tar.gz debian uupdate
Markdown is supported
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