debian/0000755000000000000000000000000012302376204007165 5ustar debian/manpages0000644000000000000000000000002011526564300010676 0ustar debian/paster.1 debian/copyright0000644000000000000000000000366011526564300011130 0ustar This package was debianized by Piotr Ożarowski on Thu, 4 May 2006 21:00:00 +0200. It was downloaded from http://pypi.python.org/pypi/PasteScript Copyright Holder: Ian Bicking License: MIT License 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. ----------------------------------------------------------- paste/script/util/subprocess24.py file: (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php subprocess - Subprocesses with accessible I/O streams Copyright (c) 2003-2005 by Peter Astrand Licensed to PSF under a Contributor Agreement. See http://www.python.org/2.4/license for licensing details. ----------------------------------------------------------- The Debian packaging is © 2006-2009, Piotr Ożarowski and is licensed under the MIT License as well. debian/changelog0000644000000000000000000002706312302376204011047 0ustar pastescript (1.7.5-3build1) trusty; urgency=medium * Rebuild to drop files installed into /usr/share/pyshared. -- Matthias Klose Sun, 23 Feb 2014 13:49:56 +0000 pastescript (1.7.5-3) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Piotr Ożarowski ] * Rebuild to drop python2.6 symlinks (closes: #707896) -- Piotr Ożarowski Thu, 16 May 2013 21:07:47 +0200 pastescript (1.7.5-2) unstable; urgency=high [ Luk Claes ] * Fix CVE-2012-0878 by dropping supplementary groups (closes: #661061). [ Piotr Ożarowski ] * Add versioned dependency on python-pastedeploy (the first one that uses dh_python2) * Remove egg-info data in clean target to allow building twice in a row (closes: #671318) * Standards-Version bumped to 3.9.3 (no changes needed) -- Piotr Ożarowski Sun, 27 May 2012 21:57:31 +0200 pastescript (1.7.5-1.1) unstable; urgency=low * Non-maintainer upload. * Added a versioned dependency on python-paste (>= 1.7.5.1-2~). -- Thomas Goirand Sun, 29 Apr 2012 08:29:48 +0000 pastescript (1.7.5-1) unstable; urgency=low * New upstream release * Add python-cherrypy to Suggests (for egg:PasteScript#cherrypy) -- Piotr Ożarowski Mon, 07 Nov 2011 23:00:33 +0100 pastescript (1.7.4.2-1) unstable; urgency=low * New upstream release - installs "tests" module into global namespace, removed in Debian package - no longer provides paste.script.wsgiserver (python-cherrypy removed from Suggests) - 01_disable_ez_setup.patch removed, no longer needed * Add debian/paster.py script as upstream doesn't ship scripts dir anymore * Let dh_sphinxdoc handle documentation files, python-sphinx build dependency bumped to 1.0.7+dfsg-1 -- Piotr Ożarowski Sat, 20 Aug 2011 20:49:59 +0200 pastescript (1.7.3-7) unstable; urgency=low * Convert to dh_python2 * Source format changed to 3.0 (quilt) * Standards-Version bumped to 3.9.2 (no changes needed) -- Piotr Ożarowski Sat, 28 May 2011 17:41:00 +0200 pastescript (1.7.3-6) unstable; urgency=low * Revert the change from -4, setuptools is back in Depends (closes: 572609) * Move python-flup and python-cheetah from Recommends to Suggests * Standards-Version bumped to 3.8.4 (no changes needed) -- Piotr Ożarowski Sat, 24 Apr 2010 17:05:37 +0200 pastescript (1.7.3-5) unstable; urgency=low * Add 03_try_to_find_templates_in_system_dir patch so that paster will try to find templates in /usr/local/share/paster_templates/ and /usr/share/paster_templates/ first. -- Piotr Ożarowski Mon, 30 Nov 2009 22:38:54 +0100 pastescript (1.7.3-4) unstable; urgency=low * python-setuptools replaced with python-pkg-resources dependency (closes: #546434) * debian/rules cleanups: - $py_setup_install_args aka --install-layout=deb replaced with --install-lib - python.mk (optional) include removed * Standards-Version bumped to 3.8.3 (no changes needed) -- Piotr Ożarowski Fri, 25 Sep 2009 21:51:18 +0200 pastescript (1.7.3-3) unstable; urgency=low * Prepare for Python 2.6: + use py_libdir in debian/rules (LP: #359482) * python and python-all-dev build dependencies replaced with python-all * Standards-Version bumped to 3.8.1 (no changes needed) -- Piotr Ożarowski Sun, 12 Apr 2009 01:23:26 +0200 pastescript (1.7.3-2) unstable; urgency=low * Change Debian packaging license to MIT (to match upstream) * Upload to unstable -- Piotr Ożarowski Sun, 15 Feb 2009 21:29:30 +0100 pastescript (1.7.3-1) experimental; urgency=low * New upstream release (upload to experimental due to Lenny freeze, to ease testing rev. dependencies) * ignore exceptions in bash completion script -- Piotr Ożarowski Tue, 11 Nov 2008 10:47:58 +0100 pastescript (1.7.2-1) experimental; urgency=low [ Sandro Tosi ] * Switch Vcs-Browser field to viewsvn [ Piotr Ożarowski ] * New upstream release (upload to experimental due to Lenny freeze, to ease testing rev. dependencies) -- Piotr Ożarowski Thu, 06 Nov 2008 18:48:42 +0100 pastescript (1.7-1) experimental; urgency=low * New upstream release (upload to experimental due to Lenny freeze, to ease testing rev. dependencies) * Update patches/02_rename_templates_dir patch and debian/rules to handle new directory name * Add lintian override for license.txt_tmpl (template detected as extra license file) * Build docs using Sphinx: + python-sphinx replaced python-docutils build dependency + new suggested package: libjs-jquery * Add bash completion for paster -- Piotr Ożarowski Thu, 30 Oct 2008 19:41:02 +0100 pastescript (1.6.3-1) unstable; urgency=low * New upstream release * python-paste and python-pastedeploy added to build dependencies * Don't feed rst2html with new subdirectories of docs directory * Standards-Version bumped to 3.8.0: + debian/README.source file added -- Piotr Ożarowski Sat, 14 Jun 2008 11:43:52 +0200 pastescript (1.6.2-4) unstable; urgency=low * Revert my last changes in paster script: + paster has to be a Python script or --reload will not work (closes: #482968) + don't depend on all supported Python versions, override lintian errors for now (until I'll find a better solution) -- Piotr Ożarowski Tue, 27 May 2008 23:25:11 +0200 pastescript (1.6.2-3) unstable; urgency=low * Replace python-setuptools with python-pkg-resources in Depends (closes: #468714) * Remove paste-common dependency, python-support will provide all needed namespace * Move templates to /usr/share/paster_templates + patches/02_rename_templates_dir path updated * New debian/paster shell script will invoke paster after detecting desired Python version from file name + original paster scipt no longer installed + package depends only on default Python version again (unnecessary dependency introduced in previous upload) -- Piotr Ożarowski Sat, 24 May 2008 20:05:12 +0200 pastescript (1.6.2-2) unstable; urgency=low * Provide /usr/bin/pasterX.Y scripts for all supported Python versions -- Piotr Ożarowski Fri, 29 Feb 2008 23:01:40 +0100 pastescript (1.6.2-1) unstable; urgency=low * New upstream release * 03_skip_empty_templates patch removed (no longer needed) * Strip the "-1" from setuptools' required version * Fix "Python" word capitalization in short description -- Piotr Ożarowski Wed, 27 Feb 2008 20:02:11 +0100 pastescript (1.6.1.1-1) unstable; urgency=low * New upstream release * Add 03_skip_empty_templates patch (fixes TurboGears' quickstart) * Add versioned dependency on python-paste and python-pastedeploy (paste-common is not enough, closes: 463958) -- Piotr Ożarowski Mon, 04 Feb 2008 20:21:37 +0100 pastescript (1.6.1-1) unstable; urgency=low * New upstream release * 02_rename_templates_dir patch added, templates dir renamed to templates_dir in debian/rules (workaround for python-support's #459468) Closes: #459446 -- Piotr Ożarowski Sun, 06 Jan 2008 20:02:19 +0100 pastescript (1.6-1) unstable; urgency=low * New upstream release * Switch to python-support. All paste packages will now depend on paste-common (>= 1.6-1) to make sure all use pysupport * Compress binary package with bzip2 * Homepage field added * Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now) * Bump Standards-Version to 3.7.3 (no changes needed) -- Piotr Ożarowski Sat, 05 Jan 2008 21:27:05 +0100 pastescript (1.3.6-2) unstable; urgency=low * find (see clean rule) works correctly in every build now (closes: #442699) * 01_setuptools_version patch replaced with 01_disable_ez_setup -- Piotr Ożarowski Mon, 17 Sep 2007 23:19:12 +0200 pastescript (1.3.6-1) unstable; urgency=low * New upstream release -- Piotr Ożarowski Tue, 04 Sep 2007 23:59:00 +0200 pastescript (1.3.5-1) unstable; urgency=low * New upstream release -- Piotr Ożarowski Tue, 26 Jun 2007 21:03:09 +0200 pastescript (1.3.4-1) unstable; urgency=low * New upstream release -- Piotr Ożarowski Mon, 30 Apr 2007 15:09:38 +0200 pastescript (1.3.3-1) unstable; urgency=low * New upstream release -- Piotr Ożarowski Thu, 12 Apr 2007 20:14:59 +0200 pastescript (1.3.2-2) unstable; urgency=low * Upload to unstable -- Piotr Ożarowski Sun, 08 Apr 2007 16:53:31 +0200 pastescript (1.3.2-1) experimental; urgency=low * New upstream release (upload to experimental due to Etch freeze) -- Piotr Ożarowski Tue, 03 Apr 2007 20:28:32 +0200 pastescript (1.3.1-1) experimental; urgency=low * New upstream release (upload to experimental due to Etch freeze) * debian/copyright file updated * Changed my address to piotr@debian.org -- Piotr Ożarowski Sun, 01 Apr 2007 01:22:57 +0200 pastescript (1.3-1) experimental; urgency=low * New upstream release (upload to experimental due to Etch freeze) * Use default Python version in paster's hashbang * python-cheetah moved from Depends: to Recommends: (see upstream changelog) * Added "python-cherrypy3 | python-cherrypy" to Suggests: -- Piotr Ozarowski Wed, 7 Mar 2007 18:23:45 +0100 pastescript (1.1-1) experimental; urgency=low * New upstream release (upload to experimental due to Etch freeze) * Added XS-Vcs-Svn and XS-Vcs-Browser fields to debian/control -- Piotr Ozarowski Thu, 23 Nov 2006 14:44:46 +0100 pastescript (1.0-1) unstable; urgency=low * New upstream release * debian/rules cleaned: + dh_python removed, dh_pycentral will generate all data now + unneeded dh_installexamples, dh_strip and dh_shlibdeps calls removed * debian/control: + bumped debhelper and python-central required versions due to dh_python call removal + Fixed recommended python-flup version (closes: #389199) + Homepage updated * Removed hack for changing paster's shebang (python2.4 is now default) * Added patch to setup.py file which will force using currently installed setuptools version while building package + dpatch added to build dependencies -- Piotr Ozarowski Mon, 23 Oct 2006 16:54:07 +0200 pastescript (0.9.8-1) unstable; urgency=low * New upstream release * Bumped python-central required version to 0.5 in order to satisfy lintian. * Added python-flup to Recommends * Test files are not installed as examples anymore -- Piotr Ozarowski Tue, 5 Sep 2006 17:31:46 +0200 pastescript (0.9.7-1) unstable; urgency=low * New upstream release * Add debian/pycompat file * Add patch to downgrade required setuptools version -- Piotr Ozarowski Sun, 13 Aug 2006 19:02:26 +0200 pastescript (0.9.6-1) unstable; urgency=low * New upstream release * Documentation changes: - Files are now generated from sources - Add link in python-paste's docs - Add python-docutils in build dependencies - doc/news.txt file is installed as changelog -- Piotr Ozarowski Fri, 28 Jul 2006 00:52:22 +0200 pastescript (0.9-1) unstable; urgency=low * Initial release (closes: #366244) -- Piotr Ozarowski Thu, 15 Jun 2006 16:57:07 +0200 debian/paster.py0000755000000000000000000000010211624013546011034 0ustar #!/usr/bin/python from paste.script import command command.run() debian/compat0000644000000000000000000000000211526564300010366 0ustar 5 debian/paster.10000644000000000000000000000260611526564300010554 0ustar .TH PASTER 1 "may 6, 2006" .SH NAME paster \- pluggable command-line frontend, including commands to setup package file layouts .SH SYNOPSIS .B paster .RI paster\ [OPTION]\ COMMAND\ [command_options] .br .SH DESCRIPTION This manual page documents briefly the .B paster command. .PP \fBpaster\fP is a program that can create file layouts for packages and serve up web applications, with configuration based on paste.deploy. It can for instance create a setuptools-ready file layout. .SH OPTIONS These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-h, \-\-help Show summary of options. .TP .B \-\-version Show version of program. .TP .B \-\-plugin=PLUGINS Add a plugin to the list of commands (plugins are Egg specs; will also require() the Egg) .br .SH COMMANDS .TP .B create Create the file layout for a Python distribution .TP .B grep Search project for symbol .TP .B help Display help .TP .B make-config Install a package and create a fresh config file/directory .TP .B points Show information about entry points .TP .B serve Serve the described application .TP .B setup-app Setup an application, given a config file .SH AUTHOR paster was written by Ian Bicking . .PP This manual page was written by Piotr Ozarowski , for the Debian project (but may be used by others). debian/patches/0000755000000000000000000000000011760501742010620 5ustar debian/patches/03_try_to_find_templates_in_system_dir.patch0000644000000000000000000000334111567542215021477 0ustar --- pastescript-1.7.3.orig/paste/script/templates.py +++ pastescript-1.7.3/paste/script/templates.py @@ -5,6 +5,7 @@ import os import inspect import copydir import command +import re from paste.util.template import paste_script_template_renderer @@ -45,13 +46,29 @@ class Template(object): mod = sys.modules[self.__class__.__module__] return os.path.dirname(mod.__file__) + def _distro_dir(self, args): + """Returns full path to template directory if it's found in + /usr/local/share/paster_templates/ or /usr/share/paster_templates/""" + + tpldir_pattern = re.compile('[^/]*templates/') + + for d in ('/usr/local/share/paster_templates/', '/usr/share/paster_templates/'): + directory = os.path.join(d, *args) + if os.path.isdir(directory): + return directory + # remove .*templates directory if it's in the args and try again + args_joined = os.path.join(*args) + directory = os.path.abspath(os.path.join(d, tpldir_pattern.sub('./', args_joined))) + if os.path.isdir(directory): + return directory + def template_dir(self): assert self._template_dir is not None, ( "Template %r didn't set _template_dir" % self) if isinstance( self._template_dir, tuple): - return self._template_dir + return self._distro_dir(self._template_dir) or self._template_dir else: - return os.path.join(self.module_dir(), self._template_dir) + return self._distro_dir((self._template_dir,)) or os.path.join(self.module_dir(), self._template_dir) def run(self, command, output_dir, vars): self.pre(command, output_dir, vars) debian/patches/02_rename_templates_dir.patch0000644000000000000000000000103311567542227016332 0ustar # 02_rename_templates_dir.dpatch by Piotr Ożarowski # # paster's templates are outside site-packages in Debian --- pastescript-1.7.3.orig/paste/script/templates.py +++ pastescript-1.7.3/paste/script/templates.py @@ -202,7 +202,7 @@ class var(object): class BasicPackage(Template): - _template_dir = 'paster-templates/basic_package' + _template_dir = '/usr/share/paster_templates/basic_package' summary = "A basic setuptools-enabled package" vars = [ var('version', 'Version (like 0.1)'), debian/patches/04_drop_supplementary_groups.patch0000644000000000000000000000163411760501742017503 0ustar # HG changeset patch # User Clay Gerrard # Date 1328679050 21600 # Branch setgroups # Node ID a19e462769b4a5c675e25bb4dedbc0937deec8da # Parent edb9ca5fdc1d47953896d131907eff810202089b fix group permissions for paste.script.serve diff -r edb9ca5fdc1d47953896d131907eff810202089b -r a19e462769b4a5c675e25bb4dedbc0937deec8da paste/script/serve.py --- a/paste/script/serve.py Mon Nov 07 10:11:44 2011 -0600 +++ b/paste/script/serve.py Tue Feb 07 23:30:50 2012 -0600 @@ -497,6 +497,11 @@ if self.verbose > 0: print 'Changing user to %s:%s (%s:%s)' % ( user, group or '(unknown)', uid, gid) + if hasattr(os, 'initgroups'): + os.initgroups(user, gid) + else: + os.setgroups([e.gr_gid for e in grp.getgrall() + if user in e.gr_mem] + [gid]) if gid: os.setgid(gid) if uid: debian/patches/series0000644000000000000000000000015611760501742012037 0ustar 03_try_to_find_templates_in_system_dir.patch 02_rename_templates_dir.patch 04_drop_supplementary_groups.patch debian/README.Debian0000644000000000000000000000214511526564300011233 0ustar paster for Debian ----------------- paste.script.templates module (i.e. `paster create --template=foo`) is modified in Debian to look for templates in ``/usr/local/share/paster_templates/`` and ``/usr/share/paster_templates/`` before it will try standard locations. This allows package maintainers to move templates outside site-packages directory (think about FHS) and local administrators to modify these templates. To package maintainers ---------------------- There's no need to patch upstream code in order to remove .*templates directory from _template_dir - modified paster will try to guess the right directory. examples: ^^^^^^^^^ | in: ``_template_dir = ('pylons', 'templates/default_project')`` | out: ``/usr/share/paster_templates/pylons/default_project`` | in: ``_template_dir = ('formalchemy', 'paster_templates/pylons_fa')`` | out: ``/usr/share/paster_templates/formalchemy/pylons_fa`` | in: ``_template_dir = 'paster_templates/paste_deploy'`` | out: ``/usr/share/paster_templates/paste_deploy`` | in: ``_template_dir = 'foo/templates/bar'`` | out: ``/usr/share/paster_templates/foo/bar`` debian/control0000644000000000000000000000240212145227235010572 0ustar Source: pastescript Section: python Priority: optional Maintainer: Piotr Ożarowski Uploaders: Debian Python Modules Team Build-Depends: debhelper (>= 5) Build-Depends-Indep: python-all (>= 2.6.6-3~), python-setuptools (>= 0.6b3-1~), python-sphinx (>= 1.0.7+dfsg-1~), python-paste, python-pastedeploy Standards-Version: 3.9.3 Homepage: http://pythonpaste.org/script/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pastescript/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pastescript/trunk/ X-Python-Version: >= 2.4 Package: python-pastescript Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-paste (>= 1.7.5.1-2~), python-pastedeploy (>= 1.5.0-1~), python-setuptools | python-distribute Suggests: python-flup (>= 0.5-1), python-cherrypy, python-cheetah (>= 1.0-1.1), ${sphinxdoc:Depends} Description: serving web applications, creating file layouts for Python packages Paster is pluggable command-line frontend, including commands to setup package file layouts . Built-in features: * Creating file layouts for packages. For instance a setuptools-ready file layout. * Serving up web applications, with configuration based on paste.deploy debian/paster.bash_completion0000644000000000000000000000173711526564300013566 0ustar # paster(1) completion # Copyright 2008 Piotr Ożarowski # This script can be distributed under the same license as the # pastescript or bash packages. have paster && _paster() { local cur prev paster_options commands COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} paster_options='-h --help -v --version --plugin' commands="$(python -c 'from paste.script.command import get_commands; print " ".join(get_commands().keys())' 2>/dev/null)" case ${COMP_WORDS[1]} in -h|--help|-v|--version) COMPREPLY=() ;; help) COMPREPLY=( $( compgen -W "$commands" | grep "^$cur" ) ) ;; serve) COMPREPLY=( $( compgen -G "${cur}*.ini" -W "$(paster help serve 2>/dev/null | grep -o '\-\{1,2\}[a-zA-Z][-a-zA-Z]*')" | grep "^$cur" ) ) ;; *) COMPREPLY=( $( compgen -W "$paster_options $commands" | grep "^$cur" ) ) ;; esac return 0 } [ "$have" ] && complete -F _paster paster debian/dirs0000644000000000000000000000020111526564300010045 0ustar /usr/bin /usr/share/paster_templates /usr/share/doc/python-pastescript/docs /usr/share/lintian/overrides /etc/bash_completion.d/ debian/rules0000755000000000000000000000456111760502235010255 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 PYVERS=$(shell pyversions -vr) PKGDIR=$(CURDIR)/debian/python-pastescript include /usr/share/python/python.mk clean: dh_testdir dh_testroot rm -rf dist build find . -name '*\.py[co]' -delete dh_clean build-docs $(PYVERS:%=install-python%) install-stamp PasteScript.egg-info/* build: build-docs build-indep: build-docs build-arch: build-docs: dh_testdir dh_installdirs PYTHONPATH=. sphinx-build -N -q -E -b html docs/ $(PKGDIR)/usr/share/doc/python-pastescript/docs/ touch $@ install: build install-stamp install-stamp: $(PYVERS:%=install-python%) dh_installdirs cp -r $(CURDIR)/paste/script/paster-templates/* $(PKGDIR)/usr/share/paster_templates/ install -m 644 debian/paster.bash_completion $(PKGDIR)/etc/bash_completion.d/paster dh_link usr/share/doc/python-pastescript/docs /usr/share/doc/python-paste/docs/script # it's a template only, not an extra license file echo "python-pastescript: extra-license-file usr/share/paster_templates/basic_package/docs/license.txt_tmpl" \ >> $(PKGDIR)/usr/share/lintian/overrides/python-pastescript echo "python-pastescript: extra-license-file usr/share/doc/python-pastescript/docs/_sources/license.txt" \ >> $(PKGDIR)/usr/share/lintian/overrides/python-pastescript touch $@ install-python%: python$* setup.py install --root $(PKGDIR) \ --single-version-externally-managed $(py_setup_install_args) # pth file is not needed since all paste* packages are installed in the same directory rm -f $(PKGDIR)$(call py_libdir,$*)/PasteScript-*.pth rm -f $(PKGDIR)$(call py_libdir,$*)/PasteScript-*/namespace_packages.txt rm -rf $(PKGDIR)$(call py_libdir,$*)/paste/script/paster-templates # create /usr/bin/pasterX.Y symlink install -m 755 $(CURDIR)/debian/paster.py $(PKGDIR)/usr/bin/paster$* sed -i -e '1s,usr/bin/.*,usr/bin/python$*,' $(PKGDIR)/usr/bin/paster$* dh_link /usr/share/man/man1/paster.1.gz /usr/share/man/man1/paster$*.1.gz binary-indep: build install dh_testdir -i dh_testroot -i dh_installchangelogs -i docs/news.txt dh_installdocs -i dh_sphinxdoc -i dh_installman -i install -m 755 $(CURDIR)/debian/paster.py $(PKGDIR)/usr/bin/paster dh_python2 -i dh_compress -i -X.py -X.js dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i -- -Z bzip2 binary-arch: binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/source/0000755000000000000000000000000011526564277010505 5ustar debian/source/format0000644000000000000000000000001411567542253011706 0ustar 3.0 (quilt) debian/paster0000755000000000000000000000050311526564300010412 0ustar #! /bin/sh # determine desired Python version from filename VERSION="${0##*paster}" if [ ! -f /usr/bin/python$VERSION ] then echo "Please install python$VERSION package" >&2 exit 1 else exec python$VERSION -c "import sys; sys.argv[0] = '/usr/bin/paster$VERSION'; from paste.script import command; command.run()" $@ fi debian/watch0000644000000000000000000000015011526564300010215 0ustar version=3 http://pypi.python.org/packages/source/P/PasteScript/PasteScript-(.*)\.tar\.gz debian uupdate debian/python-pastescript.pyremove0000644000000000000000000000000611624014112014622 0ustar tests