debian/0000755000000000000000000000000011365166136007176 5ustar debian/compat0000644000000000000000000000000211365165264010375 0ustar 5 debian/dirs0000644000000000000000000000001311365165264010055 0ustar /usr/games debian/copyright0000644000000000000000000000161411365165264011134 0ustar This package was debianized by Stevie Strickland sstrickl@resnet.gatech.edu on Sun, 24 Jan 1999 18:35:50 -0500. It was downloaded from ftp://ftp.computersprache.net/pub/rolldice-1.1.tar.gz Copyright, Stevie Strickland License: Copyright 1999 by Stevie Strickland 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. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/rules0000755000000000000000000000231611365165264010261 0ustar #!/usr/bin/make -f # MAde with the aid of dh_make, by Craig Small # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # Some lines taken from debmake, by Cristoph Lameter. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build: build-stamp build-stamp: dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp install-stamp [ ! -f Makefile ] || $(MAKE) clean dh_clean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) install DESTDIR=`pwd`/debian/rolldice touch install-stamp # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdocs README CREDITS dh_installchangelogs Changelog dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary debian/source/0000755000000000000000000000000011365165264010477 5ustar debian/source/format0000644000000000000000000000001411365165264011705 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001044311365165264011053 0ustar rolldice (1.10-5) unstable; urgency=low * debian/control - Bump debian standards version to 3.8.4 (No changes) - Add ${misc:Depends} to Depends: * debian/compat - Bump debhelper compat version to 5 * Switch to dpkg-source 3.0 (quilt) format * debian/copyright - Fix the symlink to GPL-2 -- Luis Uribe Sat, 24 Apr 2010 16:38:32 -0500 rolldice (1.10-4) unstable; urgency=low * debian/rules - Correct debian-rules-ignores-make-clean-error lintian warning. - Remove commented dh_* - Remove dh_installmanpages. - Manage patches with quilt * debian/control - Bump debian standards version to 3.7.3 (No changes) - Add quilt to Build-Depends: * debian/copyright - Rewrite the copyright notice. * debian/patches - Add 01_remove_strip.diff. Remove the stripping of the package from upstream (Closes: #437919) * debian/watch - Add file. -- Luis Uribe Mon, 26 May 2008 22:43:35 -0500 rolldice (1.10-3) unstable; urgency=low * New maintainer. Closes: #377870 * Appling patch for biased result by Mark Wooding Closes: #221441 -- Luis Uribe Thu, 07 Sep 2006 21:33:37 -0500 rolldice (1.10-2) unstable; urgency=low * QA Upload (NMU Ack, Closes: #348801) * Set maintainer to QA Group (Orphaned: #377870) * Update debian/copyright (Closes: #302981) * Higher compat level, B-D on at least debhelper 4 * Make package lintian clean. * Conforms to latest Standards Version 3.7.2 -- Michael Ablassmeier Mon, 31 Jul 2006 07:18:48 +0200 rolldice (1.10-1.1) unstable; urgency=low * Non-Maintainer Upload. * Rebuild against non-ancient debhelper to get rid of /usr/doc symlink. (Closes: #345281) -- Steinar H. Gunderson Thu, 19 Jan 2006 01:38:32 +0100 rolldice (1.10-1) unstable; urgency=low * Fixes problem with urandom always being opened, no matter what the user wanted. closes: Bug#121077 -- Stevie Strickland Sun, 25 Nov 2001 13:38:26 -0500 rolldice (1.9-1) unstable; urgency=low * Fixes problems with the result of parse_string being NULL due to problems parsing the dice string, but that never being checked. closes: Bug#83308 -- Stevie Strickland Sat, 10 Mar 2001 15:16:03 -0500 rolldice (1.8-2) unstable; urgency=low * GPG with rfc1991 option creates a bad signature, so I had to repackage. -- Stevie Strickland Tue, 19 Oct 1999 17:10:45 -0400 rolldice (1.8-1) unstable; urgency=low * Fixed segfault when defaulting to rolling one dice (e.g. d6, d%) closes: Bug#43673, Bug#46864 -- Stevie Strickland Sun, 17 Oct 1999 11:46:50 -0400 rolldice (1.7-1) unstable; urgency=low * Changed parser code, much cleaner now (I think :) * Added ability to use multiple dice strings -- Stevie Strickland Sun, 28 Mar 1999 21:30:04 -0500 rolldice (1.6-1) unstable; urgency=low * Added ability to drop a number of lowest die rolls, plus made /dev/urandom the default method, and dropped the method that uses rand() -- Stevie Strickland Sat, 27 Mar 1999 20:21:34 -0500 rolldice (1.5-1) unstable; urgency=low * Added ability to print out each separate die roll -- Stevie Strickland Wed, 10 Mar 1999 13:25:42 -0500 rolldice (1.4-1) unstable; urgency=low * Added ability to use "d#" (roll one #-sided die) and "d%" (roll percentage die) strings -- Stevie Strickland Fri, 12 Feb 1999 22:00:22 -0500 rolldice (1.3-1) unstable; urgency=low * Fixed documentation, is now as it should be... -- Stevie Strickland Wed, 27 Jan 1999 12:32:42 -0500 rolldice (1.2-1) unstable; urgency=low * Added /dev/(u)random code, due to the *perfect* request -- Stevie Strickland Wed, 27 Jan 1999 05:15:42 -0500 rolldice (1.1-2) unstable; urgency=low * Fixes problems with the copyright file included. -- Stevie Strickland Sun, 24 Jan 1999 18:50:04 -0500 rolldice (1.1-1) unstable; urgency=low * Initial Release. -- Stevie Strickland Sun, 24 Jan 1999 18:35:50 -0500 debian/patches/0000755000000000000000000000000011415562002010611 5ustar debian/patches/series0000644000000000000000000000005311365166052012035 0ustar 01_remove_strip.diff debian-changes-1.10-5 debian/patches/01_remove_strip.diff0000644000000000000000000000077311365165264014505 0ustar From: Luis Uribe Subject: Remove the stripping of the package from upstream Index: rolldice/Makefile =================================================================== --- rolldice.orig/Makefile 2010-04-24 17:32:32.000000000 -0500 +++ rolldice/Makefile 2010-04-24 17:33:31.000000000 -0500 @@ -21,7 +21,6 @@ install: $(EXECFILES) install -d $(BIN) $(MAN) install ./rolldice $(BIN) - strip $(BIN)/rolldice gzip -9 -c rolldice.6 > rolldice.6.gz install -m644 rolldice.6.gz $(MAN) debian/patches/debian-changes-1.10-50000644000000000000000000000327511415562002014112 0ustar Description: Upstream changes introduced in version 1.10-5 This patch has been created by dpkg-source during the package build. Here's the last changelog entry, hopefully it gives details on why those changes were made: . rolldice (1.10-5) unstable; urgency=low . * debian/control - Bump debian standards version to 3.8.4 (No changes) - Add ${misc:Depends} to Depends: * debian/compat - Bump debhelper compat version to 5 * Switch to dpkg-source 3.0 (quilt) format * debian/copyright - Fix the symlink to GPL-2 . The person named in the Author field signed this changelog entry. Author: Luis Uribe --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- rolldice-1.10.orig/rolldice.c +++ rolldice-1.10/rolldice.c @@ -28,11 +28,17 @@ void init_random(rand_type rand_file) { static int get_random(int sides) { unsigned int ret_value; - + + unsigned int max = UINT_MAX; + + max -= max % sides; +again: if(!(fread(&ret_value, sizeof(unsigned int), 1, ran_dev) == 1)) { printf("Error in reading random device!\n"); exit(EXIT_FAILURE); } + if (ret_value >= max) + goto again; return (int)(ret_value % sides); } debian/watch0000644000000000000000000000005711365165264010232 0ustar # rolldice is not maintained upstream anymore. debian/control0000644000000000000000000000114711365165264010605 0ustar Source: rolldice Section: games Priority: optional Maintainer: Luis Uribe Standards-Version: 3.8.4 Build-Depends: debhelper (>= 5.0.0), quilt Homepage: http://gitorious.org/debian-packages/rolldice Package: rolldice Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: A virtual dice roller rolldice is a virtual dice roller that takes a string on the command line in the format of some fantasy role playing games like Advanced Dungeons & Dragons [1] and returns the result of the dice rolls. . [1] Advanced Dungeons & Dragons is a registered trademark of TSR, Inc.