debian/0000755000000000000000000000000012027306052007163 5ustar debian/patches/0000755000000000000000000000000012027300232010604 5ustar debian/patches/2001_rename_node_to_nodejs.patch0000644000000000000000000000352312027300232016612 0ustar Description: Use /usr/bin/nodejs (not /usr/bin/env node) Author: Jonas Smedegaard Forwarded: no Last-Update: 2012-09-22 --- a/cli.js +++ b/cli.js @@ -143,7 +143,7 @@ } cli.app = arr.shift(); //Strip off argv[0] if it's a node binary - if (!keep_arg0 && ('node' === cli.native.path.basename(cli.app) + if (!keep_arg0 && ('nodejs' === cli.native.path.basename(cli.app) || process.execPath === cli.app)) { cli.app = arr.shift(); } --- a/examples/cat.js +++ b/examples/cat.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var cli = require('cli'); --- a/examples/command.js +++ b/examples/command.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var cli = require('cli'); --- a/examples/echo.js +++ b/examples/echo.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs /* All of the following commands are equivalent and write `foo\tbar foo` to out.txt $ ./echo.js -n -e --output=out.txt "foo\tbar" "foo" --- a/examples/glob.js +++ b/examples/glob.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var cli = require('cli').enable('glob'); --- a/examples/long_desc.js +++ b/examples/long_desc.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var cli = require('../'); --- a/examples/progress.js +++ b/examples/progress.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var cli = require('cli'); --- a/examples/sort.js +++ b/examples/sort.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var cli = require('cli'); --- a/examples/spinner.js +++ b/examples/spinner.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var cli = require('cli'); --- a/examples/static.js +++ b/examples/static.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var cli = require('cli').enable('status', 'daemon'); debian/patches/series0000644000000000000000000000004112027277636012041 0ustar 2001_rename_node_to_nodejs.patch debian/TODO0000644000000000000000000000021612027303112007644 0ustar * Recommend (not suggest) node-daemon when packaged for Debian, and patch code to suggest install the package if missing (not use npm). debian/control0000644000000000000000000000203312027305756010576 0ustar Source: node-cli Section: web Priority: optional Maintainer: Debian Javascript Maintainers Uploaders: Jonas Smedegaard Build-Depends: cdbs, devscripts, debhelper, dh-buildinfo Standards-Version: 3.9.3 Homepage: https://github.com/chriso/cli Vcs-Git: git://git.debian.org/git/collab-maint/node-cli Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/node-cli.git Package: node-cli Architecture: all Depends: ${misc:Depends}, ${cdbs:Depends} Recommends: ${cdbs:Recommends} Suggests: ${cdbs:Suggests} Description: tool for rapidly building command-line Node apps Node is an event-based server-side JavaScript engine. . cli is a toolkit for rapidly building command line apps - it includes: . - Full featured opts/args parser - Plugin support for adding common options and switches - Helper methods for working with input/output and spawning child processes - Output colored/styled messages, progress bars or spinners - Command auto-completion and glob support debian/source/0000755000000000000000000000000011666647537010513 5ustar debian/source/format0000644000000000000000000000001411530323745011677 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000213112027306052011032 0ustar node-cli (0.4.4~20120516-1) unstable; urgency=low * New upstream (git snapshot of believed to be) release. * Directly use github.com (not broken githubredir.debian.net) in watch file at get-orig-source target. * Really use anonscm.debian.org for Vcs-Browser field. * Relax to (build-)depend unversioned on cdbs: Needed version satisfied in stable, and oldstable no longer supported. -- Jonas Smedegaard Sat, 22 Sep 2012 12:00:07 +0200 node-cli (0.4.2~20120411-1) unstable; urgency=low * New upstream (git snapshot of believe to be) release. * Use anonscm.debian.org for Vcs-Browser field. -- Jonas Smedegaard Fri, 13 Apr 2012 13:05:09 -0400 node-cli (0.4.1-1) unstable; urgency=low * New upstream release. * Fix tighten watch file regex. * Bump copyright file format to 1.0. * Bump standards-version to 3.9.3. -- Jonas Smedegaard Thu, 01 Mar 2012 20:21:50 +0100 node-cli (0.3.7~20110919-1) unstable; urgency=low * Initial release. Closes: Bug#653114. -- Jonas Smedegaard Sat, 24 Dec 2011 11:26:49 +0700 debian/compat0000644000000000000000000000000211627556167010404 0ustar 7 debian/watch0000644000000000000000000000010612027166050010213 0ustar version=3 https://github.com/chriso/cli/tags .*/tarball/v?(\d[\d\.]+) debian/copyright_hints0000644000000000000000000000153012027303231012316 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: debian/TODO debian/compat debian/control debian/control.in debian/gbp.conf debian/patches/2001_rename_node_to_nodejs.patch debian/patches/series debian/source/format debian/watch examples/cat.js examples/command.js examples/echo.js examples/glob.js examples/long_desc.js examples/progress.js examples/sort.js examples/spinner.js examples/static.coffee examples/static.js index.js package.json Copyright: *No copyright* License: UNKNOWN FIXME Files: README.md cli.js Copyright: 2010, Chris O'Hara HOLDERS BE License: MIT/X11 (BSD like) FIXME Files: debian/rules Copyright: 2011, Jonas Smedegaard License: GPL-2+ FIXME debian/copyright0000644000000000000000000000426411723746060011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: cli Upstream-Contact: Chris O'Hara https://github.com/chriso/cli/issues Source: https://github.com/chriso/cli/downloads git://github.com/chriso/cli Files: * Copyright: 2011, Chris O'Hara License: Expat Files: debian/* Copyright: 2011, Jonas Smedegaard License: GPL-2+ 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: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Comment: On Debian systems the 'GNU General Public License' version 2 is located in '/usr/share/common-licenses/GPL-2'. . You should have received a copy of the 'GNU General Public License' along with this program. If not, see . debian/gbp.conf0000644000000000000000000000014611530323745010611 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True sign-tags = True debian/rules0000755000000000000000000000313612027301051010240 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2011, Jonas Smedegaard # Description: Main Debian packaging script for cli # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . 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 libname = cli libpkgname = node-$(libname) CDBS_DEPENDS_$(libpkgname) = nodejs DEB_UPSTREAM_URL = https://github.com/chriso/$(libname)/tarball # FIXME: when tagged upstream change to v$(DEB_UPSTREAM_TARBALL_VERSION) DEB_UPSTREAM_TARBALL_BASENAME = master DEB_UPSTREAM_TARBALL_DELIMITER = DEB_UPSTREAM_TARBALL_EXTENSION = DEB_UPSTREAM_RECEIVED_EXTENSION = tar.gz DEB_UPSTREAM_WGET_OPTS += --no-check-certificate DEB_UPSTREAM_TARBALL_MD5 = 618b0d2636e1c34486a153ea8620dbdc DEB_INSTALL_DOCS_ALL += README.md DEB_INSTALL_EXAMPLES_ALL += examples/* DEB_DH_INSTALL_ARGS_$(libpkgname) = *.js /usr/lib/nodejs/$(libname) CDBS_DEPENDS_node-cli = nodejs (>= 0.6.19~dfsg1-3~) CDBS_SUGGESTS_node-cli = node-daemon debian/control.in0000644000000000000000000000176512027305744011213 0ustar Source: node-cli Section: web Priority: optional Maintainer: Debian Javascript Maintainers Uploaders: Jonas Smedegaard Build-Depends: @cdbs@ Standards-Version: 3.9.3 Homepage: https://github.com/chriso/cli Vcs-Git: git://git.debian.org/git/collab-maint/node-cli Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/node-cli.git Package: node-cli Architecture: all Depends: ${misc:Depends}, ${cdbs:Depends} Recommends: ${cdbs:Recommends} Suggests: ${cdbs:Suggests} Description: tool for rapidly building command-line Node apps Node is an event-based server-side JavaScript engine. . cli is a toolkit for rapidly building command line apps - it includes: . - Full featured opts/args parser - Plugin support for adding common options and switches - Helper methods for working with input/output and spawning child processes - Output colored/styled messages, progress bars or spinners - Command auto-completion and glob support