https://www.mediawiki.org/wiki/Special:Code/MediaWiki/101927
Revision: 101927
Author: johnduhart
Date: 2011-11-04 00:18:36 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
Importing npm debian package
Added Paths:
-----------
trunk/debs/npm/
trunk/debs/npm/debian/
trunk/debs/npm/debian/README.Debian
trunk/debs/npm/debian/README.source
trunk/debs/npm/debian/changelog
trunk/debs/npm/debian/compat
trunk/debs/npm/debian/control
trunk/debs/npm/debian/control.in
trunk/debs/npm/debian/copyright
trunk/debs/npm/debian/copyright_hints
trunk/debs/npm/debian/docs
trunk/debs/npm/debian/npm.bash-completion
trunk/debs/npm/debian/patches/
trunk/debs/npm/debian/patches/2001_npm_without_shebang.patch
trunk/debs/npm/debian/patches/2002_cli_without_shebang.patch
trunk/debs/npm/debian/patches/2003_fix_completion.patch
trunk/debs/npm/debian/patches/2004_use_fhs_man1.patch
trunk/debs/npm/debian/patches/2005_forbid_install_npm.patch
trunk/debs/npm/debian/rootrc
trunk/debs/npm/debian/rules
trunk/debs/npm/debian/script/
trunk/debs/npm/debian/script/npm
trunk/debs/npm/debian/source/
trunk/debs/npm/debian/source/format
trunk/debs/npm/debian/userrc
trunk/debs/npm/debian/watch
Added: trunk/debs/npm/debian/README.Debian
===================================================================
--- trunk/debs/npm/debian/README.Debian (rev 0)
+++ trunk/debs/npm/debian/README.Debian 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,52 @@
+npm for Debian
+==============
+
+npm is invoked through /usr/bin/npm,
+ensuring install paths follow debian policy.
+
+
+WARNING
+-------
+
+* To prevent confusion and breakage, root user can't do :
+ `npm install npm`
+ However non-root user can still do it.
+* Do not use /usr/share/npm/cli.js directly as root.
+ it will break your npm installation, or worse.
+
+
+using npm as root
+-----------------
+
+/etc/npm/rootrc configures the default install paths
+when calling npm as root :
+
+Modules go to /usr/local/lib/nodejs
+Executables go to /usr/local/bin
+Documentation go to /usr/local/share/man
+
+Installed modules must be on node path before calling it :
+export NODE_PATH=/usr/local/lib/nodejs
+
+
+using npm as non-root
+---------------------
+
+/etc/npm/userrc configures the default install paths
+when calling npm as a non-root user :
+
+Modules go to ~/.node_libraries
+Executables go to ~/bin
+Documentation is not installed
+
+~/.node_libraries is already on the NODE_PATH.
+
+
+do not confuse with /usr/lib/nodejs
+-----------------------------------
+
+/usr/lib/nodejs directory is reserved for modules that are provided by a
+debian package.
+
+
+ -- Jérémy Lal <[email protected]> Fri, 28 Jan 2011 00:33:28 +0200
Added: trunk/debs/npm/debian/README.source
===================================================================
--- trunk/debs/npm/debian/README.source (rev 0)
+++ trunk/debs/npm/debian/README.source 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,8 @@
+git-buildpackage
+================
+
+debian/control.in
+-----------------
+
+debian/control is generated from debian/control.in, to update it, run :
+DEB_MAINTAINER_MODE=1 fakeroot debian/rules clean
Added: trunk/debs/npm/debian/changelog
===================================================================
--- trunk/debs/npm/debian/changelog (rev 0)
+++ trunk/debs/npm/debian/changelog 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,60 @@
+npm (1.0.93-0wm1) lucid-wikimedia; urgency=low
+
+ * backported to lucid-wikimedia
+
+ -- John Du Hart <[email protected]> Wed, 02 Nov 2011 23:29:00 -0400
+
+npm (1.0.93-0ubuntu1ppa1) natty; urgency=high
+
+ [ Gias Kay Lee ]
+ * Import v1.0.93 from Github.
+ * Update rules file.
+
+ -- Gias Kay Lee <[email protected]> Mon, 19 Sep 2011 16:05:50
+0800
+
+npm (1.0.29-0ubuntu1ppa1) natty; urgency=low
+
+ [ Gias Kay Lee ]
+ * Import v1.0.29 from Github.
+ * Update nodejs dependency version (>= 0.4.12).
+
+ -- Gias Kay Lee <[email protected]> Mon, 19 Sep 2011 16:05:50
+0800
+
+npm (1.0.27-0ubuntu1ppa2) natty; urgency=low
+
+ [ Gias Kay Lee ]
+ * Fix Package Structure.
+
+ -- Gias Kay Lee <[email protected]> Fri, 16 Sep 2011 04:12:03
+0800
+
+npm (1.0.27-0ubuntu1ppa1) natty; urgency=low
+
+ [ Gias Kay Lee ]
+ * Import new upstream version from Github.
+
+ -- Gias Kay Lee <[email protected]> Thu, 15 Sep 2011 01:59:19
+0800
+
+npm (1.0.13-0ubuntu1) natty; urgency=low
+
+ * New upstream release
+
+ -- Capistrano deployment user <[email protected]> Fri, 17
Jun 2011 19:01:57 +0000
+
+npm (0.2.19-1) unstable; urgency=low
+
+ * New upstream release.
+
+ [ Jonas Smedegaard ]
+ * Bump policy compliance to standards-version 3.9.2.
+ * Bump copyright file format to draft 174 of DEP-5.
+ * Replace long description with intro from upstream documentation.
+
+ -- Jonas Smedegaard <[email protected]> Sat, 16 Apr 2011 11:32:28 +0200
+
+npm (0.2.16-1) unstable; urgency=low
+
+ [ Jérémy Lal ]
+ * Initial release.
+ Closes: #587525.
+
+ -- Jonas Smedegaard <[email protected]> Sat, 29 Jan 2011 15:03:31 +0100
Added: trunk/debs/npm/debian/compat
===================================================================
--- trunk/debs/npm/debian/compat (rev 0)
+++ trunk/debs/npm/debian/compat 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1 @@
+7
Added: trunk/debs/npm/debian/control
===================================================================
--- trunk/debs/npm/debian/control (rev 0)
+++ trunk/debs/npm/debian/control 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,23 @@
+Source: npm
+Section: web
+Priority: extra
+Maintainer: Gias Kay Lee <[email protected]>
+XSBC-Original-Maintainer: Debian Javascript Maintainers
<[email protected]>, Capistrano deployment user
<[email protected]>
+Uploaders: Jérémy Lal <[email protected]>, Jonas Smedegaard <[email protected]>
+Build-Depends: cdbs (>= 0.4.62), debhelper (>= 7.0.1), dh-buildinfo,
bash-completion, nodejs (>= 0.4.9)
+Standards-Version: 3.9.2
+Homepage: http://github.com/isaacs/npm
+Vcs-Git: git://git.debian.org/collab-maint/npm.git
+Vcs-Browser: http://git.debian.org/?p=collab-maint/npm.git;a=summary
+
+Package: npm
+Architecture: all
+Depends: nodejs (>= 0.4.9), nodejs-dev (>= 0.4.9), ${misc:Depends}
+Description: Package manager for Node.js
+ NPM is the package manager for the Node JavaScript platform. It puts
+ modules in place so that Node can find them, and manages dependency
+ conflicts intelligently.
+ .
+ It is extremely configurable to support a wide variety of use cases.
+ Most commonly, it is used to publish, discover, install, and develop
+ Node programs.
Added: trunk/debs/npm/debian/control.in
===================================================================
--- trunk/debs/npm/debian/control.in (rev 0)
+++ trunk/debs/npm/debian/control.in 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,26 @@
+Source: npm
+Section: web
+Priority: extra
+Maintainer: Debian Javascript Maintainers
<[email protected]>
+Uploaders: Jérémy Lal <[email protected]>,
+ Jonas Smedegaard <[email protected]>
+Build-Depends: @cdbs@,
+ bash-completion
+Standards-Version: 3.9.2
+Homepage: http://github.com/isaacs/npm
+Vcs-Git: git://git.debian.org/collab-maint/npm.git
+Vcs-Browser: http://git.debian.org/?p=collab-maint/npm.git;a=summary
+
+Package: npm
+Architecture: all
+Depends: nodejs (>= 0.2.6),
+ nodejs-dev (>= 0.2.6),
+ ${misc:Depends}
+Description: package manager for nodejs
+ npm is the package manager for the Node JavaScript platform. It puts
+ modules in place so that node can find them, and manages dependency
+ conflicts intelligently.
+ .
+ It is extremely configurable to support a wide variety of use cases.
+ Most commonly, it is used to publish, discover, install, and develop
+ node programs.
Added: trunk/debs/npm/debian/copyright
===================================================================
--- trunk/debs/npm/debian/copyright (rev 0)
+++ trunk/debs/npm/debian/copyright 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,224 @@
+Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=174
+Upstream-Name: npm
+Upstream-Contact: Isaac Zimmitti Schlueter <[email protected]>
+ https://github.com/isaacs/npm/issues
+Source: http://github.com/isaacs/npm
+
+Files: *
+Copyright: 2009-2010, Isaac Zimmitti Schlueter <[email protected]>
+License: Expat
+
+Files: lib/utils/uuid.js
+Copyright: 2008, Robert Kieffer
+License: OSL-3
+ This software is made available under the terms of the Open Software
+ License v3.0 (available here:
+ http://www.opensource.org/licenses/osl-3.0.php )
+
+Files: debian/*
+Copyright: 2010, Jérémy Lal <[email protected]>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+License: OSL-3
+ This Open Software License (the "License") applies to any original work
+ of authorship (the "Original Work") whose owner (the "Licensor") has
+ placed the following licensing notice adjacent to the copyright notice
+ for the Original Work:
+ .
+ Licensed under the Open Software License version 3.0
+ .
+ 1) Grant of Copyright License. Licensor grants You a worldwide,
+ royalty-free, non-exclusive, sublicensable license, for the duration of
+ the copyright, to do the following:
+ .
+ a) to reproduce the Original Work in copies, either alone or as part of
+ a collective work;
+ .
+ b) to translate, adapt, alter, transform, modify, or arrange the
+ Original Work, thereby creating derivative works ("Derivative Works")
+ based upon the Original Work;
+ .
+ c) to distribute or communicate copies of the Original Work and
+ Derivative Works to the public, with the proviso that copies of
+ Original Work or Derivative Works that You distribute or communicate
+ shall be licensed under this Open Software License;
+ .
+ d) to perform the Original Work publicly; and
+ .
+ e) to display the Original Work publicly.
+ .
+ 2) Grant of Patent License. Licensor grants You a worldwide, royalty-
+free, non-exclusive, sublicensable license, under patent claims owned or
+ controlled by the Licensor that are embodied in the Original Work as
+ furnished by the Licensor, for the duration of the patents, to make,
+ use, sell, offer for sale, have made, and import the Original Work and
+ Derivative Works.
+ .
+ 3) Grant of Source Code License. The term "Source Code" means the
+ preferred form of the Original Work for making modifications to it and
+ all available documentation describing how to modify the Original Work.
+ Licensor agrees to provide a machine-readable copy of the Source Code
+ of the Original Work along with each copy of the Original Work that
+ Licensor distributes. Licensor reserves the right to satisfy this
+ obligation by placing a machine-readable copy of the Source Code in an
+ information repository reasonably calculated to permit inexpensive and
+ convenient access by You for as long as Licensor continues to
+ distribute the Original Work.
+ .
+ 4) Exclusions From License Grant. Neither the names of Licensor, nor
+ the names of any contributors to the Original Work, nor any of their
+ trademarks or service marks, may be used to endorse or promote products
+ derived from this Original Work without express prior permission of the
+ Licensor. Except as expressly stated herein, nothing in this License
+ grants any license to Licensor's trademarks, copyrights, patents, trade
+ secrets or any other intellectual property. No patent license is
+ granted to make, use, sell, offer for sale, have made, or import
+ embodiments of any patent claims other than the licensed claims defined
+ in Section 2. No license is granted to the trademarks of Licensor even
+ if such marks are included in the Original Work. Nothing in this
+ License shall be interpreted to prohibit Licensor from licensing under
+ terms different from this License any Original Work that Licensor
+ otherwise would have a right to license.
+ .
+ 5) External Deployment. The term "External Deployment" means the use,
+ distribution, or communication of the Original Work or Derivative Works
+ in any way such that the Original Work or Derivative Works may be used
+ by anyone other than You, whether those works are distributed or
+ communicated to those persons or made available as an application
+ intended for use over a network. As an express condition for the grants
+ of license hereunder, You must treat any External Deployment by You of
+ the Original Work or a Derivative Work as a distribution under section
+ 1(c).
+ .
+ 6) Attribution Rights. You must retain, in the Source Code of any
+ Derivative Works that You create, all copyright, patent, or trademark
+ notices from the Source Code of the Original Work, as well as any
+ notices of licensing and any descriptive text identified therein as an
+ "Attribution Notice." You must cause the Source Code for any Derivative
+ Works that You create to carry a prominent Attribution Notice
+ reasonably calculated to inform recipients that You have modified the
+ Original Work.
+ .
+ 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants
+ that the copyright in and to the Original Work and the patent rights
+ granted herein by Licensor are owned by the Licensor or are sublicensed
+ to You under the terms of this License with the permission of the
+ contributor(s) of those copyrights and patent rights. Except as
+ expressly stated in the immediately preceding sentence, the Original
+ Work is provided under this License on an "AS IS" BASIS and WITHOUT
+ WARRANTY, either express or implied, including, without limitation, the
+ warranties of non-infringement, merchantability or fitness for a
+ particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL
+ WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential
+ part of this License. No license to the Original Work is granted by
+ this License except under this disclaimer.
+ .
+ 8) Limitation of Liability. Under no circumstances and under no legal
+ theory, whether in tort (including negligence), contract, or otherwise,
+ shall the Licensor be liable to anyone for any indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or the use of the Original Work including,
+ without limitation, damages for loss of goodwill, work stoppage,
+ computer failure or malfunction, or any and all other commercial
+ damages or losses. This limitation of liability shall not apply to the
+ extent applicable law prohibits such limitation.
+ .
+ 9) Acceptance and Termination. If, at any time, You expressly assented
+ to this License, that assent indicates your clear and irrevocable
+ acceptance of this License and all of its terms and conditions. If You
+ distribute or communicate copies of the Original Work or a Derivative
+ Work, You must make a reasonable effort under the circumstances to
+ obtain the express assent of recipients to the terms of this License.
+ This License conditions your rights to undertake the activities listed
+ in Section 1, including your right to create Derivative Works based
+ upon the Original Work, and doing so without honoring these terms and
+ conditions is prohibited by copyright law and international treaty.
+ Nothing in this License is intended to affect copyright exceptions and
+ limitations (including "fair use" or "fair dealing"). This License
+ shall terminate immediately and You may no longer exercise any of the
+ rights granted to You by this License upon your failure to honor the
+ conditions in Section 1(c).
+ .
+ 10) Termination for Patent Action. This License shall terminate
+ automatically and You may no longer exercise any of the rights granted
+ to You by this License as of the date You commence an action, including
+ a cross-claim or counterclaim, against Licensor or any licensee
+ alleging that the Original Work infringes a patent. This termination
+ provision shall not apply for an action alleging patent infringement by
+ combinations of the Original Work with other software or hardware.
+ .
+ 11) Jurisdiction, Venue and Governing Law. Any action or suit relating
+ to this License may be brought only in the courts of a jurisdiction
+ wherein the Licensor resides or in which Licensor conducts its primary
+ business, and under the laws of that jurisdiction excluding its
+ conflict-of-law provisions. The application of the United Nations
+ Convention on Contracts for the International Sale of Goods is
+ expressly excluded. Any use of the Original Work outside the scope of
+ this License or after its termination shall be subject to the
+ requirements and penalties of copyright or patent law in the
+ appropriate jurisdiction. This section shall survive the termination
+ of this License.
+ .
+ 12) Attorneys' Fees. In any action to enforce the terms of this
+ License or seeking damages relating thereto, the prevailing party shall
+ be entitled to recover its costs and expenses, including, without
+ limitation, reasonable attorneys' fees and costs incurred in connection
+ with such action, including any appeal of such action. This section
+ shall survive the termination of this License.
+ .
+ 13) Miscellaneous. If any provision of this License is held to be
+ unenforceable, such provision shall be reformed only to the extent
+ necessary to make it enforceable.
+ .
+ 14) Definition of "You" in This License. "You" throughout this License,
+ whether in upper or lower case, means an individual or a legal entity
+ exercising rights under, and complying with all of the terms of, this
+ License. For legal entities, "You" includes any entity that controls,
+ is controlled by, or is under common control with you. For purposes of
+ this definition, "control" means (i) the power, direct or indirect, to
+ cause the direction or management of such entity, whether by contract
+ or otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+ .
+ 15) Right to Use. You may use the Original Work in all ways not
+ otherwise restricted or conditioned by this License or by law, and
+ Licensor promises not to interfere with or be responsible for such uses
+ by You.
+ .
+ 16) Modification of This License. This License is Copyright © 2005
+ Lawrence Rosen. Permission is granted to copy, distribute, or
+ communicate this License without modification. Nothing in this License
+ permits You to modify this License as applied to the Original Work or
+ to Derivative Works. However, You may modify the text of this License
+ and copy, distribute or communicate your modified version (the
+ "Modified License") and apply it to other original works of authorship
+ subject to the following conditions: (i) You may not indicate in any
+ way that your Modified License is the "Open Software License" or "OSL"
+ and you may not use those names in the name of your Modified License;
+ (ii) You must replace the notice specified in the first paragraph above
+ with the notice "Licensed under <insert your license name here>" or
+ with a notice of your own that is not confusingly similar to the notice
+ in this License; and (iii) You may not claim that your original works
+ are open source software unless your Modified License has been approved
+ by Open Source Initiative (OSI) and You comply with its license review
+ and certification process.
Added: trunk/debs/npm/debian/copyright_hints
===================================================================
--- trunk/debs/npm/debian/copyright_hints (rev 0)
+++ trunk/debs/npm/debian/copyright_hints 2011-11-04 00:18:36 UTC (rev
101927)
@@ -0,0 +1,298 @@
+Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=166
+Upstream-Name: FIXME
+Upstream-Contact: FIXME
+Source: FIXME
+Disclaimer: Autogenerated by CDBS
+
+Files: Makefile
+ README.md
+ bin/npm.js
+ bin/read-package-json.js
+ bin/semver.js
+ cli.js
+ debian/README.Debian
+ debian/README.source
+ debian/compat
+ debian/control
+ debian/control.in
+ debian/dirs
+ debian/docs
+ debian/install
+ debian/manpages
+ debian/npm.bash-completion
+ debian/patches/2001_npm_without_shebang.patch
+ debian/patches/2002_cli_without_shebang.patch
+ debian/patches/2003_fix_completion.patch
+ debian/patches/2004_use_fhs_man1.patch
+ debian/patches/2005_forbid_install_npm.patch
+ debian/patches/series
+ debian/rootrc
+ debian/rules
+ debian/script/npm
+ debian/source/format
+ debian/userrc
+ debian/watch
+ doc/activate.md
+ doc/adduser.md
+ doc/build.md
+ doc/bundle.md
+ doc/cache.md
+ doc/changelog.md
+ doc/coding-style.md
+ doc/completion.md
+ doc/config.md
+ doc/deactivate.md
+ doc/deprecate.md
+ doc/developers.md
+ doc/docs.md
+ doc/edit.md
+ doc/explore.md
+ doc/faq.md
+ doc/find.md
+ doc/folders.md
+ doc/future-ideas/deploy.md
+ doc/future-ideas/new-module-system.md
+ doc/future-ideas/remote.md
+ doc/future-ideas/site.md
+ doc/get.md
+ doc/init.md
+ doc/install.md
+ doc/json.md
+ doc/link.md
+ doc/list.md
+ doc/ln.md
+ doc/ls.md
+ doc/npm.md
+ doc/outdated.md
+ doc/owner.md
+ doc/publish.md
+ doc/rebuild.md
+ doc/registry.md
+ doc/restart.md
+ doc/rm.md
+ doc/run-script.md
+ doc/scripts.md
+ doc/search.md
+ doc/set.md
+ doc/start.md
+ doc/stop.md
+ doc/tag.md
+ doc/test.md
+ doc/uninstall.md
+ doc/unpublish.md
+ doc/update.md
+ doc/version.md
+ doc/view.md
+ html/favicon.ico
+ html/index.html
+ html/npm.png
+ lib/activate.js
+ lib/adduser.js
+ lib/autoremove.js
+ lib/build.js
+ lib/cache.js
+ lib/completion.js
+ lib/config.js
+ lib/deactivate.js
+ lib/deprecate.js
+ lib/docs.js
+ lib/edit.js
+ lib/explore.js
+ lib/faq.js
+ lib/get.js
+ lib/init.js
+ lib/install.js
+ lib/link.js
+ lib/outdated.js
+ lib/owner.js
+ lib/publish.js
+ lib/rebuild.js
+ lib/repl.js
+ lib/restart.js
+ lib/set.js
+ lib/start.js
+ lib/stop.js
+ lib/tag.js
+ lib/test.js
+ lib/uninstall.js
+ lib/unpublish.js
+ lib/update-dependents.js
+ lib/update.js
+ lib/utils/abbrev.js
+ lib/utils/async-map.js
+ lib/utils/base64.js
+ lib/utils/chain.js
+ lib/utils/completion/contains-single-match.js
+ lib/utils/completion/get-completions.js
+ lib/utils/completion/installed-packages.js
+ lib/utils/completion/remote-packages.js
+ lib/utils/completion/users.js
+ lib/utils/default-config.js
+ lib/utils/default.npmignore
+ lib/utils/error-handler.js
+ lib/utils/exec.js
+ lib/utils/fetch.js
+ lib/utils/find.js
+ lib/utils/get.js
+ lib/utils/graceful-fs.js
+ lib/utils/ini-parser.js
+ lib/utils/ini.js
+ lib/utils/lifecycle.js
+ lib/utils/link.js
+ lib/utils/load-package-defaults.js
+ lib/utils/log.js
+ lib/utils/mkdir-p.js
+ lib/utils/output.js
+ lib/utils/parse-args.js
+ lib/utils/promise-chain.js
+ lib/utils/proto-list.js
+ lib/utils/read-installed.js
+ lib/utils/read-json.js
+ lib/utils/registry.js
+ lib/utils/registry/adduser.js
+ lib/utils/registry/get.js
+ lib/utils/registry/publish.js
+ lib/utils/registry/request.js
+ lib/utils/registry/tag.js
+ lib/utils/registry/unpublish.js
+ lib/utils/relativize.js
+ lib/utils/rm-rf.js
+ lib/utils/set.js
+ lib/utils/sha.js
+ lib/utils/sys.js
+ lib/utils/which.js
+ lib/utils/write-shim.js
+ lib/version.js
+ lib/view.js
+ lib/xmas.js
+ man1/activate.1
+ man1/adduser.1
+ man1/build.1
+ man1/bundle.1
+ man1/cache.1
+ man1/changelog.1
+ man1/coding-style.1
+ man1/completion.1
+ man1/config.1
+ man1/deactivate.1
+ man1/deprecate.1
+ man1/developers.1
+ man1/docs.1
+ man1/edit.1
+ man1/explore.1
+ man1/faq.1
+ man1/find.1
+ man1/folders.1
+ man1/future-ideas/deploy.1
+ man1/future-ideas/new-module-system.1
+ man1/future-ideas/remote.1
+ man1/future-ideas/site.1
+ man1/get.1
+ man1/init.1
+ man1/install.1
+ man1/json.1
+ man1/link.1
+ man1/list.1
+ man1/ln.1
+ man1/ls.1
+ man1/npm.1
+ man1/outdated.1
+ man1/owner.1
+ man1/publish.1
+ man1/rebuild.1
+ man1/registry.1
+ man1/restart.1
+ man1/rm.1
+ man1/run-script.1
+ man1/scripts.1
+ man1/search.1
+ man1/set.1
+ man1/start.1
+ man1/stop.1
+ man1/tag.1
+ man1/test.1
+ man1/uninstall.1
+ man1/unpublish.1
+ man1/update.1
+ man1/version.1
+ man1/view.1
+ npm-completion.sh
+ package.json
+ scripts/install-message.sh
+ scripts/install.sh
+ test/common.js
+ test/disabled/bundlerecurs/package.json
+ test/disabled/failer/package.json
+ test/disabled/fast/package.json
+ test/disabled/slow/package.json
+ test/packages/bindir/bin/prog.js
+ test/packages/bindir/package.json
+ test/packages/bindir/test.js
+ test/packages/blerg/package.json
+ test/packages/blerg/test.js
+ test/packages/bundletest/package.json
+ test/packages/depends-on-connect/package.json
+ test/packages/depends-on-jsdom/package.json
+ test/packages/depends-on-jsdom/test.js
+ test/packages/depends-on-spark/package.json
+ test/packages/env-reader/package.json
+ test/packages/env-reader/test.sh
+ test/packages/files-array-npmignore/.npmignore
+ test/packages/files-array-npmignore/foo/bar
+ test/packages/files-array-npmignore/package.json
+ test/packages/files-array-npmignore/test.sh
+ test/packages/files-array-simple/bar
+ test/packages/files-array-simple/foo
+ test/packages/files-array-simple/package.json
+ test/packages/files-array-simple/test.sh
+ test/packages/npmignore/.npmignore
+ test/packages/npmignore/foo/bar
+ test/packages/npmignore/package.json
+ test/packages/npmignore/test.sh
+ test/packages/package-config/package.json
+ test/packages/package-config/test.js
+ test/packages/private/package.json
+ test/packages/test-package/package.json
+ test/packages/url-dep/package.json
+ test/run.sh
+ test/update-test.sh
+Copyright: *No copyright*
+License: UNKNOWN
+ FIXME
+
+Files: lib/bundle.js
+ lib/help.js
+ lib/run-script.js
+ lib/utils/prompt.js
+Copyright:
+License: UNKNOWN
+ FIXME
+
+Files: LICENSE
+Copyright: 2009-2010, Isaac Zimmitti Schlueter.
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+License: MIT/X11 (BSD like)
+ FIXME
+
+Files: npm.js
+Copyright: !== -1) return c
+License: UNKNOWN
+ FIXME
+
+Files: lib/ls.js
+Copyright: !== -1) return false
+License: UNKNOWN
+ FIXME
+
+Files: lib/utils/uuid.js
+Copyright: 2008, Robert Kieffer
+License: UNKNOWN
+ FIXME
+
+Files: lib/utils/semver.js
+Copyright: { return c.join(" ") }).join("||")
+ { return c.length })
+ { return c.match(expressions.validComparator) })
+License: UNKNOWN
+ FIXME
+
Added: trunk/debs/npm/debian/docs
===================================================================
--- trunk/debs/npm/debian/docs (rev 0)
+++ trunk/debs/npm/debian/docs 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1 @@
+README.md
Added: trunk/debs/npm/debian/npm.bash-completion
===================================================================
--- trunk/debs/npm/debian/npm.bash-completion (rev 0)
+++ trunk/debs/npm/debian/npm.bash-completion 2011-11-04 00:18:36 UTC (rev
101927)
@@ -0,0 +1,2 @@
+# To Be Fixed
+# npm-completion.sh npm
Added: trunk/debs/npm/debian/patches/2001_npm_without_shebang.patch
===================================================================
--- trunk/debs/npm/debian/patches/2001_npm_without_shebang.patch
(rev 0)
+++ trunk/debs/npm/debian/patches/2001_npm_without_shebang.patch
2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,11 @@
+Description: Remove shebang from non-executable file
+Forwarded: not-needed
+Author: Jérémy Lal <[email protected]>
+Last-Update: 2011-01-23
+--- a/bin/npm.js
++++ b/bin/npm.js
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env node
+ ;(function () { // wrapper in case we're in module_context mode
+ var log = require("../lib/utils/log")
+ log.waitForConfig()
Added: trunk/debs/npm/debian/patches/2002_cli_without_shebang.patch
===================================================================
--- trunk/debs/npm/debian/patches/2002_cli_without_shebang.patch
(rev 0)
+++ trunk/debs/npm/debian/patches/2002_cli_without_shebang.patch
2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,9 @@
+Description: Remove shebang from non-executable file
+Forwarded: not-needed
+Author: Jérémy Lal <[email protected]>
+Last-Update: 2011-01-23
+--- a/cli.js
++++ b/cli.js
+@@ -1,2 +1 @@
+-#!/usr/bin/env node
+ require("./bin/npm.js")
Added: trunk/debs/npm/debian/patches/2003_fix_completion.patch
===================================================================
--- trunk/debs/npm/debian/patches/2003_fix_completion.patch
(rev 0)
+++ trunk/debs/npm/debian/patches/2003_fix_completion.patch 2011-11-04
00:18:36 UTC (rev 101927)
@@ -0,0 +1,22 @@
+Description: Fix bash_completion invocation
+Forwarded: not-needed
+Author: Jérémy Lal <[email protected]>
+Last-Update: 2011-01-23
+--- a/npm-completion.sh
++++ b/npm-completion.sh
+@@ -17,7 +17,8 @@
+ COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}
+ COMP_WORDBREAKS=${COMP_WORDBREAKS/@/}
+ export COMP_WORDBREAKS
+-__npm_completion () {
++have npm &&
++_npm() {
+ COMPREPLY=()
+ local cur prev opts logfile
+ if [ "${loglevel:-silent}" == "silent" ]; then
+@@ -39,4 +40,4 @@
+ return $?
+ }
+
+-complete -o default -F __npm_completion npm
++complete -o default -F _npm npm
Added: trunk/debs/npm/debian/patches/2004_use_fhs_man1.patch
===================================================================
--- trunk/debs/npm/debian/patches/2004_use_fhs_man1.patch
(rev 0)
+++ trunk/debs/npm/debian/patches/2004_use_fhs_man1.patch 2011-11-04
00:18:36 UTC (rev 101927)
@@ -0,0 +1,30 @@
+Description: Use manpages from /usr/share/man/man1
+Forwarded: not-needed
+Author: Jérémy Lal <[email protected]>
+Last-Update: 2011-01-23
+Index: npm-1.0.13/lib/help.js
+===================================================================
+--- npm-1.0.13.orig/lib/help.js 2011-06-17 19:34:16.514994010 +0000
++++ npm-1.0.13/lib/help.js 2011-06-17 19:34:23.244993994 +0000
+@@ -26,7 +26,7 @@
+ npm.config.set("loglevel", "silent")
+ return output.write(npm.commands[section].usage, cb)
+ }
+- var section_path = path.join(__dirname, "../man1/"+section+".1")
++ var section_path = path.join(__dirname, "../man1/"+section+".1.gz")
+ return fs.stat
+ ( section_path
+ , function (e, o) {
+@@ -91,9 +91,9 @@
+ function getSections(cb) {
+ fs.readdir(path.join(__dirname, "../man1/"), function (er, files) {
+ if (er) return cb(er)
+- var sectionList = files.concat("help.1")
+- .filter(function (s) { return s.match(/\.1$/) })
+- .map(function (s) { return s.replace(/\.1$/, '')})
++ var sectionList = files.concat("help.1.gz")
++ .filter(function (s) { return s.match(/\.1\.gz$/) })
++ .map(function (s) { return s.replace(/\.1\.gz$/, '')})
+ cb(null, sectionList)
+ })
+ }
Added: trunk/debs/npm/debian/patches/2005_forbid_install_npm.patch
===================================================================
--- trunk/debs/npm/debian/patches/2005_forbid_install_npm.patch
(rev 0)
+++ trunk/debs/npm/debian/patches/2005_forbid_install_npm.patch 2011-11-04
00:18:36 UTC (rev 101927)
@@ -0,0 +1,36 @@
+Description: forbid `npm install npm`
+ It does not break anything per se, but /usr/local/bin/npm then
+ takes precedence, so global config path is /usr/etc/npmrc (found
+ by npm default config, relative to /usr/bin/node).
+ Upstream does not want to patch this.
+Forwarded: not-needed
+Bug-Upstream: https://github.com/isaacs/npm/issues/issue/533
+Author: Jérémy Lal <[email protected]>
+Last-Update: 2011-01-27
+Index: npm-1.0.13/lib/install.js
+===================================================================
+--- npm-1.0.13.orig/lib/install.js 2011-06-16 00:52:22.000000000 +0000
++++ npm-1.0.13/lib/install.js 2011-06-17 19:31:41.285002452 +0000
+@@ -489,6 +489,7 @@
+ ( [checkEngine, target]
+ , [checkCycle, target, previously]
+ , [checkGit, targetFolder]
++ , [checkNPM, target]
+ , [write, target, targetFolder, previously]
+ , function (er, d) {
+ log.verbose(target._id, "installOne cb")
+@@ -500,6 +501,14 @@
+ )
+ }
+
++function checkNPM (target, cb) {
++ if (target.name == "npm") {
++ var er = new Error("'install npm' breaks debian npm package, use
aptitude")
++ return cb(er)
++ }
++ return cb()
++}
++
+ function checkEngine (target, cb) {
+ var npmv = npm.version
+ , nodev = npm.config.get("node-version")
Added: trunk/debs/npm/debian/rootrc
===================================================================
--- trunk/debs/npm/debian/rootrc (rev 0)
+++ trunk/debs/npm/debian/rootrc 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,5 @@
+; npm configuration for root usage
+binroot = /usr/local/bin
+root = /usr/local/lib/nodejs
+manroot = /usr/local/share/man
+loglevel = WARN
Added: trunk/debs/npm/debian/rules
===================================================================
--- trunk/debs/npm/debian/rules (rev 0)
+++ trunk/debs/npm/debian/rules 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+-include /usr/share/cdbs/1/rules/upstream-tarball.mk
+include /usr/share/cdbs/1/rules/utils.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+# suppress optional build-dependencies
+CDBS_BUILD_DEPENDS_rules_upstream-tarball =
+CDBS_BUILD_DEPENDS_rules_utils_copyright-check =
+
+DEB_UPSTREAM_URL = http://githubredir.debian.net/github/isaacs/npm
+DEB_UPSTREAM_TARBALL_BASENAME = v$(DEB_UPSTREAM_TARBALL_VERSION)
+DEB_UPSTREAM_WGET_OPTS += --no-check-certificate
+
+# Suppress copyright-checking some binaries to not upset dpkg-source
+DEB_COPYRIGHT_CHECK_IGNORE_REGEX =
^(html/npm-.*\.png|debian/(changelog|copyright(|_hints|_newhints)))$
+
+update::
+ git submodule update --init --recursive
+
+build/npm::
+ mkdir -p debian/npm/usr
+ node cli.js install -g -f --prefix debian/npm/usr
+
+install/npm::
+ dh_bash-completion
Property changes on: trunk/debs/npm/debian/rules
___________________________________________________________________
Added: svn:executable
+
Added: trunk/debs/npm/debian/script/npm
===================================================================
--- trunk/debs/npm/debian/script/npm (rev 0)
+++ trunk/debs/npm/debian/script/npm 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ "0" = "$(id -u)" ]; then
+ # root install, global paths
+ export npm_config_globalconfig=/etc/npm/rootrc
+else
+ # user install
+ export npm_config_globalconfig=/etc/npm/userrc
+fi
+
+# run it
+exec node /usr/share/npm/cli.js "$@"
Added: trunk/debs/npm/debian/source/format
===================================================================
--- trunk/debs/npm/debian/source/format (rev 0)
+++ trunk/debs/npm/debian/source/format 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: trunk/debs/npm/debian/userrc
===================================================================
--- trunk/debs/npm/debian/userrc (rev 0)
+++ trunk/debs/npm/debian/userrc 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,5 @@
+; npm configuration for non-root usage
+binroot = ~/bin
+root = ~/.node_libraries
+manroot = false
+loglevel = WARN
Added: trunk/debs/npm/debian/watch
===================================================================
--- trunk/debs/npm/debian/watch (rev 0)
+++ trunk/debs/npm/debian/watch 2011-11-04 00:18:36 UTC (rev 101927)
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.*v(.*)$/npm-$1\.tar\.gz/ \
+http://github.com/isaacs/npm/downloads .*/tarball/v(.*) debian uupdate
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs