debian/0000755000000000000000000000000012263307657007201 5ustar debian/source/0000755000000000000000000000000011573666521010502 5ustar debian/source/format0000644000000000000000000000001411573443733011706 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000107711753500216011234 0ustar About the OpenSSL/GPL issue. The LibRHash is compiled with runtime loading of the OpenSSL library. It loads OpenSSL assembly optimized algorithms only if package libssl is installed. The SHA1, for example, is computed 2 times faster with OpenSSL loaded. If a GPL program uses LibRHash, then the library acts as a wrapper to libssl. The LibRHash exports only its own ABI, thus solving the OpenSSL/GPL incompatibility issue. In any way, calling rhash_set_openssl_mask(0) before rhash_library_init() explicitly prevents LibRHash from loading OpenSSL. debian/compat0000644000000000000000000000000212066123322010361 0ustar 9 debian/control0000644000000000000000000000612012263305257010575 0ustar Source: rhash Section: utils Priority: optional Maintainer: Aleksey Kravchenko Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.2), libssl-dev (>= 1.0.0) Standards-Version: 3.9.5 Homepage: http://rhash.sourceforge.net/ Vcs-Git: git://anonscm.debian.org/collab-maint/rhash.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/rhash.git Package: rhash Architecture: any Depends: librhash0 (>= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Recommends: libssl1.0.0 (>= 1.0.0) Description: utility for computing hash sums and magnet links RHash is a console utility for calculation and verification of magnet links and a wide range of hash sums like CRC32, MD4, MD5, SHA1, SHA256, SHA512, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru. Hash sums are used to ensure and verify integrity of large volumes of data for a long-term storing or transferring. . Features: * Output in a predefined (SFV, BSD-like) or a user-defined format. * Can calculate Magnet links. * Ability to process directories recursively. * Updating hash files (adding hash sums of files missing in the hash file). * Portability: the program works the same on Linux, *BSD or Windows. Package: librhash0 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: libssl1.0.0 (>= 1.0.0) Description: shared library for hash functions computing LibRHash is a professional, portable, thread-safe C library for computing magnet links and a wide variety of hash sums, such as CRC32, MD4, MD5, SHA1, SHA256, SHA512, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru. Hash sums are used to ensure and verify integrity of large volumes of data for a long-term storing or transferring. . Features: * Small and easy to learn interface. * Hi-level and Low-level API. * Allows calculating of several hash functions simultaneously. * Portability: the library works on Linux, *BSD and Windows. Package: librhash-dev Architecture: any Section: libdevel Depends: librhash0 (= ${binary:Version}), ${misc:Depends} Description: header files and a static library for librhash LibRHash is a professional, portable, thread-safe C library for computing magnet links and a wide variety of hash sums, such as CRC32, MD4, MD5, SHA1, SHA256, SHA512, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru. . This package contains LibRHash static library and header files. Package: librhash0-dbg Architecture: any Section: debug Priority: extra Depends: librhash0 (= ${binary:Version}), ${misc:Depends} Description: debugging symbols for librhash LibRHash is a professional, portable, thread-safe C library for computing magnet links and a wide variety of hash sums, such as CRC32, MD4, MD5, SHA1, SHA256, SHA512, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru. . This package contains debug information for the librhash shared library. debian/rules0000755000000000000000000000403612263273346010261 0ustar #!/usr/bin/make -f # debian/rules makefile that uses debhelper. # # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS = -DUSE_GETTEXT -DNDEBUG -D_FORTIFY_SOURCE=2 -Wall -fomit-frame-pointer $(shell dpkg-buildflags --get CFLAGS) LDFLAGS= $(shell dpkg-buildflags --get LDFLAGS) LIBCFLAGS = LIBLDFLAGS = $(LDFLAGS) INSTALL_PROGRAM = install -p -m 755 DESTDIR = $(CURDIR)/debian/tmp LD_LIB=$(DESTDIR):$(LD_LIBRARY_PATH) # see Debian Policy Manual - source packages ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g endif ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif # by default compile RHash with openssl runtime linking ifeq (,$(findstring nossl,$(DEB_BUILD_OPTIONS))) LIBCFLAGS += -DUSE_OPENSSL ifneq (,$(findstring ssldynamic,$(DEB_BUILD_OPTIONS))) LIBLDFLAGS += -lcrypto else LIBCFLAGS += -DOPENSSL_RUNTIME -rdynamic LIBLDFLAGS += -ldl endif endif # using debhelper >= 8 to build the package %: dh $@ build: # Compile static/shared libraries and the program. $(MAKE) lib-static lib-shared build-shared CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ LIBCFLAGS="$(LIBCFLAGS)" LIBLDFLAGS="$(LIBLDFLAGS)" override_dh_auto_build: override_dh_auto_test: $(MAKE) test-static-lib CFLAGS="$(CFLAGS)" LIBLDFLAGS="$(LIBLDFLAGS)" $(MAKE) test-shared CFLAGS="$(CFLAGS)" LIBLDFLAGS="$(LIBLDFLAGS)" LD_LIBRARY_PATH="$(LD_LIB)" override_dh_auto_install: # Install the program and its translation strings $(MAKE) PREFIX=/usr DESTDIR=$(CURDIR)/debian/rhash INSTALL_PROGRAM="$(INSTALL_PROGRAM)" install-shared install-gmo # Install static library $(MAKE) PREFIX=/usr DESTDIR=$(CURDIR)/debian/librhash-dev install-lib-static # Install shared library $(MAKE) PREFIX=/usr DESTDIR=$(CURDIR)/debian/librhash0 install-lib-shared override_dh_strip: dh_strip -plibrhash0 --dbg-package=librhash0-dbg dh_strip override_dh_auto_clean: $(MAKE) distclean debian/copyright0000644000000000000000000000266311766762533011150 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: rhash Upstream-Contact: Aleksey Kravchenko Source: http://rhash.sourceforge.net/ Comment: The RHash program and LibRHash library are distributed under RHash License, see the COPYING file for details. In particular, the program, the library and source code can be used free of charge under the MIT, BSD or other OSI-approved, commercial or a freeware license without additional restrictions. In a case an OSI-approved license is required the MIT license should be used. Files: * Copyright: 2005-2012 Aleksey Kravchenko License: RHash Files: bindings/* Copyright: 2011-2012 Sergey Basalaev, Aleksey Kravchenko License: RHash License: RHash 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. . 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. Use this program at your own risk! debian/changelog0000644000000000000000000001412612263305441011044 0ustar rhash (1.3.1-1) unstable; urgency=low * New upstream release version 1.3.1 - bump Standards-Version to 3.9.5 -- Aleksey Kravchenko Wed, 08 Jan 2014 23:47:28 +0700 rhash (1.3.0-3) unstable; urgency=low * Fixed 'Value too large...' error (Closes: #727012) -- Aleksey Kravchenko Sun, 24 Nov 2013 20:19:26 +0700 rhash (1.3.0-2) unstable; urgency=low * Fixed sha3 on big-endian processors -- Aleksey Kravchenko Sun, 22 Sep 2013 00:51:37 +0700 rhash (1.3.0-1) unstable; urgency=low * New upstream release version 1.3.0 - switched the package back to unstable -- Aleksey Kravchenko Mon, 16 Sep 2013 19:48:55 +0700 rhash (1.2.10-1) experimental; urgency=low * New upstream release version 1.2.10 - switched to Debhelper 9 and Standards-Version 3.9.4 - moved language bindings to separate rhash-bindings package -- Aleksey Kravchenko Tue, 25 Dec 2012 01:55:52 +0700 rhash (1.2.9-8) unstable; urgency=medium [ Aleksey Kravchenko ] * Removed DMUA field to switch to new DM permissions management interface [ Asheesh Laroia ] * Slight simplification of debian/rules that aims to fix parallel builds. In particular, we used to build a dynamically linked rhash binary as 'rhash'; now, we build it as 'rhash-shared' like the default of the upstream build system, and later rename it to 'rhash' as needed. (Closes: #687398) [ Gregor Herrmann ] * debian/control: remove alternative build dependency on c-sharp-2.0-compiler, which gets satisfied by mono-devel, and then the needed mono-gmcs is missing. Thanks, Andrey Rahmatullin. -- Aleksey Kravchenko Wed, 28 Nov 2012 01:47:19 +0700 rhash (1.2.9-7) unstable; urgency=low * Fixed dependencies of ruby-rhash -- Aleksey Kravchenko Sun, 17 Jun 2012 19:10:51 +0700 rhash (1.2.9-6) unstable; urgency=low * update for ruby 1.9.1 (Closes: #676110) * security hardening build flags -- Aleksey Kravchenko Wed, 15 Jun 2012 00:42:51 +0700 rhash (1.2.9-5) unstable; urgency=low * Quick fix for ruby1.8 mkmf concurrency bug * Separated build-arch and build-indep targets * Corrected Vcs-* fields in debian/control * Updated rhash package description -- Aleksey Kravchenko Fri, 11 May 2012 02:12:58 +0700 rhash (1.2.9-4) unstable; urgency=low * Fixed failed parallel build on amd64 (Closes: #671989) * Fixed jni compilation on kfreebsd-* archs * Fixed crash of python test on ia64 * Extended descriptions to fix lintian informational warnings * Disabled mono compilation for binary-arch builds -- Aleksey Kravchenko Wed, 09 May 2012 14:26:29 +0700 rhash (1.2.9-3) unstable; urgency=low * Fixed javadoc build error -- Aleksey Kravchenko Thu, 03 May 2012 00:07:23 +0700 rhash (1.2.9-2) unstable; urgency=low * Fixed binary-arch builds (Closes: #670205) * Corrected installation directory of ruby extension * Updated LibRHash description -- Aleksey Kravchenko Sat, 28 Apr 2012 09:21:17 +0700 rhash (1.2.9-1) unstable; urgency=low [ Aleksey Kravchenko ] * New upstream release version 1.2.9 * copyright: format upgraded to 1.0 * librhash0.symbols: changed minimum symbols version to 1.2.6 * librhash0.symbols: added two new functions * ruby-rhash: updated to new Ruby policy * mono bindings supported [ Kilian Krause ] * Add DM-Upload-Allowed:yes - congrats Aleksey to your successful DM application! -- Aleksey Kravchenko Sat, 14 Apr 2012 13:21:44 +0700 rhash (1.2.8-3) unstable; urgency=low * fixed loading of the RHash python module (Closes: 652302) * fixed librhash-java compilation on Ubuntu (Closes: 654180) * updated debian/copyright -- Aleksey Kravchenko Wed, 18 Jan 2012 22:51:54 +0700 rhash (1.2.8-2) unstable; urgency=low * Compilation fix for several Debian architectures - fixed librhash-java compilation with gcj (Closes: 644599) - control: added python-rhash dependency on librhash0 -- Aleksey Kravchenko Sun, 09 Oct 2011 13:57:47 +0700 rhash (1.2.8-1) unstable; urgency=low * New upstream release version 1.2.8 - language bindings for Java, Perl, Python, Ruby - Russian translation - fixed recommended libssl1.0.0 dependency - patched broken re-compilation - fixed a mistype in perl documentation - control: updated Vcs-Git field - copyright: corrected Format field, added Upstream-Contact - copyright: updated Copyright field, mentioned another developer -- Aleksey Kravchenko Wed, 14 Sep 2011 23:50:14 +0700 rhash (1.2.7-1) unstable; urgency=medium * New upstream release version 1.2.7 - Fixes security issue (Closes: #632280) - changed author/maintainer name to the way I prefer s/Alexey S/Aleksey/ - simplified descriptions of binary packages - written rules in more now standard way, using CFLAGS/LDFLAGS - reworded README.Debian a bit - applied patch from upstream to fix possible segfault - applied patch from upstream to fix glibc runtime warning - applied patch from upstream to repair -openssl option handling -- Aleksey Kravchenko Sun, 14 Aug 2011 20:35:00 +0700 rhash (1.2.6-2) unstable; urgency=low * Package compilation is fixed for several archs -- Alexey S Kravchenko Thu, 30 Jun 2011 01:04:24 +0700 rhash (1.2.6-1) unstable; urgency=low * New upstream release version 1.2.6 - ABI changed - now librhash0.0 is librhash0 - OpenSSL support for faster hash calculation if libssl is installed (fully optional) for both rhash and librhash0 -- Alexey S Kravchenko Wed, 15 Jun 2011 01:03:34 +0700 rhash (1.2.5-1) unstable; urgency=low * Initial release (Closes: #629614) * The library SONAME was changed in the Debian package, see README.Debian -- Alexey S Kravchenko Tue, 07 Jun 2011 22:46:05 +0700 debian/watch0000644000000000000000000000007311571657672010240 0ustar version=3 http://sf.net/rhash/rhash-([\d\.]+)-src\.tar\.gz debian/librhash0.symbols0000644000000000000000000000124111702356656012465 0ustar librhash.so.0 librhash0 #MINVER# rhash_count@Base 1.2.6 rhash_file@Base 1.2.6 rhash_file_update@Base 1.2.6 rhash_final@Base 1.2.6 rhash_free@Base 1.2.6 rhash_get_digest_size@Base 1.2.6 rhash_get_hash_length@Base 1.2.6 rhash_get_magnet_name@Base 1.2.8 rhash_get_name@Base 1.2.6 rhash_init@Base 1.2.6 rhash_is_base32@Base 1.2.6 rhash_library_init@Base 1.2.6 rhash_msg@Base 1.2.6 rhash_print@Base 1.2.6 rhash_print_bytes@Base 1.2.6 rhash_print_magnet@Base 1.2.8 rhash_reset@Base 1.2.6 rhash_run_benchmark@Base 1.2.6 rhash_set_callback@Base 1.2.6 rhash_timer_start@Base 1.2.6 rhash_timer_stop@Base 1.2.6 rhash_transmit@Base 1.2.6 rhash_update@Base 1.2.6