debian/0000755000000000000000000000000011733005112007157 5ustar debian/compat0000644000000000000000000000000211733003761010365 0ustar 9 debian/control0000644000000000000000000000161411733003763010576 0ustar Source: dbar Section: text Priority: optional Maintainer: Jari Aalto Build-Depends: debhelper (>= 9) Standards-Version: 3.9.3.1 Vcs-Browser: http://git.debian.org/?p=collab-maint/dbar.git Vcs-Git: git://git.debian.org/git/collab-maint/dbar.git Homepage: http://sites.google.com/site/gotmor Package: dbar Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: general purpose ASCII graphic percentage meter/progressbar dbar lets you define static 0% and 100% marks or you can define these marks dynamically at runtime. Static and dynamic marks can be mixed, in this case the value specified at runtime will have a higher priority. . You can specify ranges of numbers, negative, positive or ranges with a negative min value and positive max value. . Features: . - Simple interface, perfect to use within your scripts - Trivial to intergrate with dzen debian/install0000644000000000000000000000001511715555225010563 0ustar dbar usr/bin debian/changelog0000644000000000000000000000176111733005041011037 0ustar dbar (0.0.20100524-3) unstable; urgency=low * debian/control - (Build-Depends): Rm dpkg-dev; not needed with debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. * debian/rules - Enable all hardening flags. - Use DEB_*_MAINT_* variables (Closes: #665210): Patch thanks to Simon Ruderich . -- Jari Aalto Fri, 23 Mar 2012 01:29:05 -0400 dbar (0.0.20100524-2) unstable; urgency=low * debian/compat - Update to 9 * debian/control - (Build-Depends): update to debhelper 9, dpkg-dev 1.16.1. * debian/copyright - Update to DEP5. * debian/rules - Use hardened CFLAGS. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Sat, 11 Feb 2012 16:18:44 -0500 dbar (0.0.20100524-1) unstable; urgency=low * Initial release (Closes: #582857). -- Jari Aalto Mon, 24 May 2010 11:48:00 +0300 debian/watch0000644000000000000000000000013711715555225010230 0ustar version=3 # 2010-05-24 there is no archive to check yet # http://sites.google.com/site/gotmor/ debian/rules0000755000000000000000000000055111733003761010250 0ustar #!/usr/bin/make -f PACKAGE = dbar export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed man: $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman override_dh_auto_build: man gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) *.c -o $(PACKAGE) %: dh $@ # End of file debian/copyright0000644000000000000000000000214711733004152011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: dbar Upstream-Contact: Robert Manea Source: http://sites.google.com/site/gotmor Files: * Copyright: 2007 Robert Manea License: GPL-2+ Files: debian/* Copyright: 2010-2012 Jari Aalto License: GPL-2+ License: GPL-2+ 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; either version 2 of the License, or (at your option) any later version. . 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 program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". debian/source/0000755000000000000000000000000011715555225010476 5ustar debian/source/format0000644000000000000000000000001411715555225011704 0ustar 3.0 (quilt) debian/dbar.1.pod0000644000000000000000000000677711715555225010772 0ustar # Copyright # # Copyright (C) 2009-2010 Jari Aalto # # License # # 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 of the License, 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 . # # Description # # To learn what TOP LEVEL section to use in manual pages, # see POSIX/Susv standard and "tility Description Defaults" at # http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap01.html#tag_01_11 # # This is manual page in Perl POD format. Read more at # http://perldoc.perl.org/perlpod.html or run command: # # perldoc perlpod | less # # To check the syntax: # # podchecker *.pod # # Create manual page with command: # # pod2man PAGE.N.pod > PAGE.N =pod =head1 NAME dbar - ASCII progresbar =head1 SYNOPSIS echo | dbar [options] =head1 DESCRIPTION dbar lets you define static 0% and 100% marks or you can define these marks dynamically at runtime. Static and dynamic marks can be mixed, in this case the value specified at runtime will have a higher priority. You can specify ranges of numbers, negative, positive or ranges with a negative min value and positive max value. All numbers are treated as double precision floating point, i.e. the input is NOT limited to integers. =head1 OPTIONS =over 4 =item B<-l> Label to be prepended to the bar (default: "" ). =item B<-nonl> no new line, don't put '\n' at the end of the bar (default: do print "\n") =item B<-max> Value to be considered 100% (default: 100). =item B<-min> Value to be considered 0% (default: 0). =item B<-s> Symbol represeting the percentage value in the meter (default: "="). =item B<-w> Number of charcaters to be considered 100% in the meter (default: 25) =back =head1 EXAMPLES Static 100% mark or single value input: echo 25 | dbar -max 100 -l text Output: text 25% [====== ] If your 100% mark changes dynamically or 2-values input: echo "50 150" | dbar | | | |__ max value | |__ value to display Output: 33% [======== ] If your value range is not between [0, maxval] or 3-values input: echo "50 -25 150" | dbar | | | | | |__ max value 100% mark | | | |_____ min value 0% mark | |________ value to display Output: 43% [=========== ] Multiple runs: for i in 2 20 50 75 80; do echo $i; sleep 1; done | dbar | dzen2 Output: Find out yourself. =head1 ENVIRONMENT None. =head1 FILES None. =head1 SEE ALSO dzen2(1) =head1 AUTHORS Program was written by Robert Manea . This manual page was written by Jari Aalto for the Debian GNU system (but may be used by others). Released under license GNU GPL version 2 or (at your option) any later version. For more information about license, visit . =cut debian/pod2man.mk0000644000000000000000000000334611715555225011075 0ustar # pod2man.mk -- Makefile portion to convert *.pod files to manual pages # # Copyright information # # Copyright (C) 2008-2010 Jari Aalto # # License # # 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 of the License, 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 . # # Description # # Convert *.pod files to manual pages. Write this to 'install' # target: # # install: build $(MANPAGE) ifneq (,) This makefile requires GNU Make. endif # This variable *must* be set when called PACKAGE ?= package # Optional variables to set MANSECT ?= 1 PODCENTER ?= User Commands PODDATE = $$(date "+%Y-%m-%d") # Directories MANSRC = MANDEST = $(MANSRC) MANPOD = $(MANSRC)$(PACKAGE).$(MANSECT).pod MANPAGE = $(MANDEST)$(PACKAGE).$(MANSECT) POD2MAN = pod2man POD2MAN_FLAGS = --utf8 makeman: $(MANPAGE) $(MANPAGE): $(MANPOD) # make target - create manual page from a *.pod page podchecker $(MANPOD) LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \ --center="$(PODCENTER)" \ --date="$(PODDATE)" \ --name="$(PACKAGE)" \ --section="$(MANSECT)" \ $(MANPOD) \ | sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \ > $(MANPAGE) && \ rm -f pod*.tmp # End of of Makefile part debian/clean0000644000000000000000000000002411715555225010177 0ustar dbar *.o debian/*.1 debian/manpages0000644000000000000000000000001311715555225010706 0ustar debian/*.1