debian/0000755000000000000000000000000012156154430007167 5ustar debian/patches/0000755000000000000000000000000012156153325010620 5ustar debian/patches/15-optional-exec.patch0000644000000000000000000000355112156153325014637 0ustar Description: Don't execute commands with --exec by default Author: Axel Beckert Debian-Bug: 706644 Index: tpp/tpp.rb =================================================================== --- tpp.orig/tpp.rb 2013-06-12 22:13:55.000000000 +0200 +++ tpp/tpp.rb 2013-06-12 22:15:08.000000000 +0200 @@ -725,9 +725,13 @@ end def do_exec(cmdline) - rc = Kernel.system(cmdline) - if not rc then - # @todo: add error message + if $execok then + rc = Kernel.system(cmdline) + if not rc then + # @todo: add error message + end + else + @screen.addstr("--exec disabled by default for security reasons. Use option -x to enable it.") end end @@ -1683,6 +1687,7 @@ $stderr.puts "\t -t \tset filetype as output format" $stderr.puts "\t -o \twrite output to file " $stderr.puts "\t -s \twait seconds between slides (with -t autoplay)" + $stderr.puts "\t -x\t\tallow parsing of --exec in input files" $stderr.puts "\t --version\tprint the version" $stderr.puts "\t --help\t\tprint this help" $stderr.puts "\n\t currently available types: ncurses (default), autoplay, latex, txt" @@ -1699,6 +1704,7 @@ output = nil type = "ncurses" time = 1 +$execok = nil skip_next = false @@ -1720,6 +1726,8 @@ elsif ARGV[i] == "-s" then time = ARGV[i+1].to_i skip_next = true + elsif ARGV[i] == "-x" then + $execok = 1 elsif input == nil then input = ARGV[i] end Index: tpp/doc/tpp.1 =================================================================== --- tpp.orig/doc/tpp.1 2013-06-12 22:13:55.000000000 +0200 +++ tpp/doc/tpp.1 2013-06-12 22:13:55.000000000 +0200 @@ -20,6 +20,8 @@ .TP \-l output.tex input.tpp converts tpp slides into tex .TP +\-x allow usage of "\-\-exec" +.TP \-v/\-\-version display version number .SH KEYS debian/patches/00-make.patch0000644000000000000000000000101412156122576012773 0ustar Author: Nico Golde Description: Adjust documention file install diff -urNad tpp-1.3.1~/Makefile tpp-1.3.1/Makefile --- tpp-1.3.1~/Makefile 2005-06-12 13:37:20.000000000 +0200 +++ tpp-1.3.1/Makefile 2007-04-23 11:24:33.000000000 +0200 @@ -13,7 +13,7 @@ install : mkdir -p $(DOCPATH) - install -m644 DESIGN CHANGES COPYING README THANKS $(DOCPATH) + install -m644 DESIGN README THANKS $(DOCPATH) install -m644 doc/tpp.1 $(MANPATH) install tpp.rb $(INSPATH)$(BIN) mkdir -p $(DOCPATH)/contrib debian/patches/10-ruby19.patch0000644000000000000000000002007712156146226013222 0ustar Description: make key events work on ruby 1.9 Author: Chad Fowler Debian-Bug: 671530 Index: tpp/tpp.rb =================================================================== --- tpp.orig/tpp.rb 2013-06-12 18:13:40.000000000 +0200 +++ tpp/tpp.rb 2013-06-12 21:05:55.000000000 +0200 @@ -44,7 +44,7 @@ "blue" => 5, "cyan" => 6, "magenta" => 7, - "black" => 8, + "black" => 8, "default" =>-1} colors[color] end @@ -95,7 +95,7 @@ end # class FileParser -# Represents a page (aka `slide') in TPP. A page consists of a title and one or +# Represents a page (aka `slide') in TPP. A page consists of a title and one or # more lines. class Page @@ -145,8 +145,8 @@ -# Implements a generic visualizer from which all other visualizers need to be -# derived. If Ruby supported abstract methods, all the do_* methods would be +# Implements a generic visualizer from which all other visualizers need to be +# derived. If Ruby supported abstract methods, all the do_* methods would be # abstract. class TppVisualizer @@ -154,8 +154,8 @@ # nothing end - # Splits a line into several lines, where each of the result lines is at most - # _width_ characters long, caring about word boundaries, and returns an array + # Splits a line into several lines, where each of the result lines is at most + # _width_ characters long, caring about word boundaries, and returns an array # of strings. def split_lines(text,width) lines = [] @@ -190,13 +190,13 @@ $stderr.puts "Error: TppVisualizer#do_footer has been called directly." Kernel.exit(1) end - + def do_header(header_text) $stderr.puts "Error: TppVisualizer#do_header has been called directly." Kernel.exit(1) end - + def do_refresh $stderr.puts "Error: TppVisualizer#do_refresh has been called directly." Kernel.exit(1) @@ -316,7 +316,7 @@ $stderr.puts "Error: TppVisualizer#do_command_prompt has been called directly." Kernel.exit(1) end - + def do_beginslideright $stderr.puts "Error: TppVisualizer#do_beginslideright has been called directly." Kernel.exit(1) @@ -377,7 +377,7 @@ Kernel.exit(1) end - # Receives a _line_, parses it if necessary, and dispatches it + # Receives a _line_, parses it if necessary, and dispatches it # to the correct method which then does the correct processing. # It returns whether the controller shall wait for input. def visualize(line,eop) @@ -446,10 +446,10 @@ do_huge(figlet_text) when /^--footer / @footer_txt = line.sub(/^--footer /,"") - do_footer(@footer_txt) + do_footer(@footer_txt) when /^--header / @header_txt = line.sub(/^--header /,"") - do_header(@header_txt) + do_header(@header_txt) when /^--title / title = line.sub(/^--title /,"") do_title(title) @@ -547,7 +547,7 @@ @withborder = true draw_border end - + def do_command_prompt() message = "Press any key to continue :)" cursor_pos = 0 @@ -614,11 +614,11 @@ (@termwidth-2).times { @screen.addstr("-") }; @screen.addstr("'") 1.upto(@termheight-3) do |y| @screen.move(y,0) - @screen.addstr("|") + @screen.addstr("|") end 1.upto(@termheight-3) do |y| @screen.move(y,@termwidth-1) - @screen.addstr("|") + @screen.addstr("|") end end @@ -700,7 +700,7 @@ end def show_help_page - help_text = [ "tpp help", + help_text = [ "tpp help", "", "space bar ............................... display next entry within page", "space bar, cursor-down, cursor-right .... display next page", @@ -775,7 +775,7 @@ @screen.move(@termheight - 3, (@termwidth - footer_txt.length)/2) @screen.addstr(footer_txt) end - + def do_header(header_txt) @screen.move(@termheight - @termheight+1, (@termwidth - header_txt.length)/2) @screen.addstr(header_txt) @@ -918,7 +918,7 @@ time_to_sleep = 1.to_f / 20 Kernel.sleep(time_to_sleep) xcount -= 1 - end + end when "right" (@termwidth - @indent).times do |pos| @screen.move(@cur_line,@termwidth - pos - 1) @@ -991,7 +991,7 @@ @screen.move(line,col*15 + 2) if current_page == i then @screen.printw("%2d %s <=",i+1,pages[i].title[0..80]) - else + else @screen.printw("%2d %s",i+1,pages[i].title[0..80]) end line += 1 @@ -1092,7 +1092,7 @@ def do_footer(footer_text) end - + def do_header(header_text) end @@ -1166,7 +1166,7 @@ def do_revon end - + def do_command_prompt end def do_revoff @@ -1183,7 +1183,7 @@ def do_endslide end - + def do_beginslideright end @@ -1349,7 +1349,7 @@ end -# Implements an interactive controller which feeds the visualizer until it is +# Implements an interactive controller which feeds the visualizer until it is # told to stop, and then reads a key press and executes the appropiate action. class InteractiveController < TppController @@ -1396,17 +1396,17 @@ loop do ch = @vis.get_key case ch - when 'q'[0], 'Q'[0] # 'Q'uit + when ?q.ord, ?Q.ord # 'Q'uit return - when 'r'[0], 'R'[0] # 'R'edraw slide + when ?r.ord, ?R.ord # 'R'edraw slide changed_page = true # @todo: actually implement redraw - when 'e'[0], 'E'[0] + when ?e.ord, ?E.ord @cur_page = @pages.size - 1 break - when 's'[0], 'S'[0] + when ?s.ord, ?S.ord @cur_page = 0 break - when 'j'[0], 'J'[0] # 'J'ump to slide + when ?j.ord, ?J.ord # 'J'ump to slide screen = @vis.store_screen p = @vis.read_newpage(@pages,@cur_page) if p >= 0 and p < @pages.size @@ -1417,28 +1417,28 @@ @vis.restore_screen(screen) end break - when 'l'[0], 'L'[0] # re'l'oad current file + when ?l.ord, ?L.ord # re'l'oad current file @reload_file = true return - when 'c'[0], 'C'[0] # command prompt + when ?c.ord, ?C.ord # command prompt screen = @vis.store_screen @vis.do_command_prompt @vis.clear @vis.restore_screen(screen) - when '?'[0], 'h'[0] + when ??.ord, ?h.ord screen = @vis.store_screen @vis.show_help_page ch = @vis.get_key @vis.clear @vis.restore_screen(screen) - when :keyright, :keydown, ' '[0] + when :keyright, :keydown, ' '.ord if @cur_page + 1 < @pages.size and eop then @cur_page += 1 @pages[@cur_page].reset_eop @vis.new_page end break - when 'b'[0], 'B'[0], :keyleft, :keyup + when ?b.ord, ?B.ord, :keyleft, :keyup if @cur_page > 0 then @cur_page -= 1 @pages[@cur_page].reset_eop @@ -1455,7 +1455,7 @@ end -# Implements a visualizer which converts TPP source to a nicely formatted text +# Implements a visualizer which converts TPP source to a nicely formatted text # file which can e.g. be used as handout. class TextVisualizer < TppVisualizer @@ -1475,7 +1475,7 @@ def do_footer(footer_text) end - + def do_header(header_text) end @@ -1539,7 +1539,7 @@ def do_revon end - + def do_command_prompt end def do_revoff @@ -1556,7 +1556,7 @@ def do_endslide end - + def do_beginslideright end @@ -1650,8 +1650,8 @@ end -# Implements a non-interactive controller to control non-interactive -# visualizers (i.e. those that are used for converting TPP source code into +# Implements a non-interactive controller to control non-interactive +# visualizers (i.e. those that are used for converting TPP source code into # another format) class ConversionController < TppController debian/patches/series0000644000000000000000000000010212156151427012027 0ustar 00-make.patch 05-man.patch 10-ruby19.patch 15-optional-exec.patch debian/patches/05-man.patch0000644000000000000000000000361212156122611012632 0ustar Author: Nico Golde Description: Fix hyphens in manual page diff -urNad tpp-1.3.1~/doc/tpp.1 tpp-1.3.1/doc/tpp.1 --- tpp-1.3.1~/doc/tpp.1 2007-04-23 11:12:21.000000000 +0200 +++ tpp-1.3.1/doc/tpp.1 2007-12-11 08:41:23.000000000 +0100 @@ -1,6 +1,6 @@ .TH TPP "1" "April 2007" "tpp 1.3.1" "User Commands" .SH NAME -TPP - Text Presentation Program +TPP \- Text Presentation Program .SH SYNOPSIS .B tpp <\fIOPTIONS\fR> <\fIFILE\fR> @@ -16,21 +16,21 @@ LaTeX conversion and more. .SH OPTIONS .TP --h/--help display help +\-h/\-\-help display help .TP --l output.tex input.tpp converts tpp slides into tex +\-l output.tex input.tpp converts tpp slides into tex .TP --v/--version display version number +\-v/\-\-version display version number .SH KEYS .TP space display next entry within page .TP -space, cursor-down, cursor-right +space, cursor\-down, cursor\-right display next page .TP -b, cursor-up, cursor-left +b, cursor\-up, cursor\-left display previous page .TP q, Q @@ -50,16 +50,16 @@ .PP .SH WRITING PRESENTATIONS The tpp presentation formats consists of normal text lines and special -commands. Special commands are contained in lines that begin with "--" +commands. Special commands are contained in lines that begin with "\-\-" and the command name. -See /usr/share/doc/tpp/README for complete list of command names, and +See /usr/share/doc/tpp/README.gz for complete list of command names, and /usr/share/doc/tpp/examples for TPP presentation examples, including presentation slides that have been in real-life presentations. .SH VIM SYNTAX FILE In /usr/share/doc/tpp/contrib you'll find a syntax file for the vim editor. -See /usr/share/doc/tpp/README for installation instructions. +See /usr/share/doc/tpp/README.gz for installation instructions. .SH AUTHOR CONTACT Tpp was written by Nico Golde and Andreas Krennmair debian/compat0000644000000000000000000000000212156121612010361 0ustar 9 debian/watch0000644000000000000000000000020012156135251010210 0ustar version=3 http://www.ngolde.de/tpp.html .*tpp-([\d.]+).tar.gz http://githubredir.debian.net/github/akrennmair/tpp /r(.*).tar.gz debian/changelog0000644000000000000000000000745012156153661011054 0ustar tpp (1.3.1-3) unstable; urgency=low [ Jari Aalto ] * Switch from dpatch to source format "3.0 (quilt)". (Closes: #669595) + Remove dpatch traces from debian/rules and remove dpatch build-dependency * Bump debhelper compatibility to 9 + Update versioned debhelper build-dependency * Use dh_prep instead of dh_clean -k * Fix the following lintian warnings: + copyright-refers-to-symlink-license + debhelper-but-no-misc-depends + debian-rules-missing-recommended-target * Add watch file [ Axel Beckert ] * Adopt the package (Closes: #706041) * Cherry-pick afb57d9 (make key events work on ruby 1.9) from upstream (Closes: #671530) * Add patch to make parsing of --exec optional (Closes: #706644) * Update homepage to point to GitHub * Fix patch header * Update watch file to also check release tags at GitHub * Revamp debian/rules: + No more clean up stamp files manually (dh_clean does that now) + Remove redundant dh_installchangelogs parameter + Don't compress any .tpp example file + Replace dh_installexamples parameter with debian/examples + Switch to a dh7 style debian/rules file + Switch to gem2deb based packaging (Closes: #671540) Thanks to Per Andersson! * Suggest texlive-latex-extra instead of transitional package texpower * Bump Standards-Version to 3.9.4 (no further changes necessary) * Recode examples to UTF-8 at build time (Closes: #705965) + Add build-dependency on recode * Add Vcs-* headers * Apply wrap-and-sort -- Axel Beckert Wed, 12 Jun 2013 22:18:56 +0200 tpp (1.3.1-2) unstable; urgency=low * Make use of the new Homepage control field instead of the tag. * Bump Standards-Version, no changes needed. * Fixing debian-rules-ignores-make-clean-error, remove make clean call as it is not needed. * Clean up copyright file, include the complete GPL preamble. * Removed binary-indep rule in rules cause it is not needed. -- Nico Golde Tue, 11 Dec 2007 08:22:35 +0100 tpp (1.3.1-1) unstable; urgency=low * New upstream release (Closes: #320302). * Added compat file and removed DH_COMPAT from rules. * Removed shelloutput patch, included upstream. * Added new years to copyright. -- Nico Golde Mon, 23 Apr 2007 10:59:52 +0200 tpp (1.3-2) unstable; urgency=low * Added patch by Gregor Herrmann to make a better shelloutput (Closes: #407194). * Changed maintainer address. * Bumped compat level to 5. * Conforms to Standards version 3.7.2. * Added a space in front of Homepage in control. -- Nico Golde Wed, 28 Mar 2007 10:22:29 +0200 tpp (1.3-1) unstable; urgency=low * new upstream release. * removed menu file because tpp needs an argument and it makes no sense * Upload sponsored by Norbert Tretkowski -- Nico Golde Thu, 23 Jun 2005 14:56:42 +0200 tpp (1.2-2) unstable; urgency=low * fixed typo in Suggests field. -- Nico Golde Sun, 6 Mar 2005 10:52:23 +0100 tpp (1.2-1) unstable; urgency=low * new upstream release. * changed arch, deleted watch file. -- Nico Golde Thu, 3 Mar 2005 17:05:14 +0100 tpp (1.1.1-1) unstable; urgency=low * new upstream release * added possibility of changing huge fonts (Closes: #272647) -- Nico Golde Wed, 13 Oct 2004 13:20:16 +0200 tpp (1.0-1) unstable; urgency=low * New upstream release. * removed debian/tpp.1 upstream manual is now available. * removed Co-Maintainer. * removed examples/ac-am.tpp from compression. * added Homepage to control. -- Nico Golde Sun, 15 Aug 2004 15:41:01 +0200 tpp (0.2-1) unstable; urgency=low * Initial Release (Closes: #262259). -- Nico Golde Sat, 31 Jul 2004 01:54:52 +0200 debian/copyright0000644000000000000000000000213312156145774011134 0ustar This package was debianized by Nico Golde on Thu, 3 Mar 2005 17:05:14 +0100 It was downloaded from http://www.ngolde.de/tpp/ Upstream Authors: Nico Golde , Andreas Krennmair This software is copyrighted (c) 2004,2005,2007 by Nico Golde and Andreas Krennmair. This package 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; version 2 dated June, 1991. This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/examples0000644000000000000000000000001312156131172010720 0ustar examples/* debian/control0000644000000000000000000000204612156154073010577 0ustar Source: tpp Section: graphics Priority: optional Maintainer: Axel Beckert Build-Depends: debhelper (>= 9~), gem2deb (>= 0.2.13~), recode Standards-Version: 3.9.4 Homepage: https://github.com/akrennmair/tpp Vcs-Git: git://anonscm.debian.org/collab-maint/tpp.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/tpp.git XS-Ruby-Versions: all Package: tpp Architecture: all Depends: ruby | ruby-interpreter, ruby-ncurses, ${misc:Depends} XB-Ruby-Versions: ${ruby:Versions} Suggests: figlet, texlive-latex-extra Description: text presentation program Tpp stands for text presentation program and is an ncurses-based presentation tool. The presentation can be written with your favorite editor in a simple description format and then shown on any text terminal that is supported by ncurses - ranging from an old VT100 to the Linux framebuffer to an xterm. . It supports color, LaTeX output of presentation, sliding in text, a command prompt and additional cool features. debian/dirs0000644000000000000000000000005512156117060010051 0ustar usr/bin usr/share/doc/tpp usr/share/man/man1 debian/source/0000755000000000000000000000000012156121612010463 5ustar debian/source/format0000644000000000000000000000001412156121612011671 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000052012156146704010251 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_install: $(MAKE) install prefix=$(CURDIR)/debian/tpp/usr dh_auto_install --buildsystem=ruby override_dh_compress: dh_compress -X .tpp override_dh_installexamples: dh_installexamples recode iso8859-1..utf-8 debian/tpp/usr/share/doc/tpp/examples/*.tpp