Skip to content
Commits on Source (12)
libdisorder: entropy measurement
$Id$
----------------------------------------------------------------------------
The libdisorder project is a simple C library for entropy measurement of
byte streams and other data.
This is a readme file. See
The homepage is:
http://libdisorder.freshdefense.net/
http://libdisorder.freshdefense.net
for more information.
You can also retrieve the code from:
libdisorder is a small, simple C library for use by programmers in
other programs. There is a small test program included that opens
/dev/urandom and calls libdisorder in the `test/' directory. There is
also a command-line tool, `ropy' in the `tool/' directory for reporting
on the entropy of normal files.
http://code.dyne.org/?r=libdisorder
You will probably want to pipe the output of libdisorder to some other
math analysis or graphing environment (e.g., gnuplot).
The library's primary function reports entropy in bits: essentially,
this is the number of bits necessary to encode the actual level of
information contained in the data passed to the library: it is the
theoretical maximum amount of compression possible.
\ No newline at end of file
Plans include adding new entropy measurement functions as well as a module
for supporting the parsing or chunking of data format tokens (for example,
this mechanism would support measuring the entropy of an HTML document in
terms of the tags it uses, where each tag is considered a "token"). This
mechanism can be extended to any structured data format: files, network
protocols, etc.
\ No newline at end of file
libdisorder: entropy measurement
$Id$
----------------------------------------------------------------------------
This is a readme file. See
http://libdisorder.freshdefense.net/
for more information.
libdisorder is a small, simple C library for use by programmers in
other programs. There is a small test program included that opens
/dev/urandom and calls libdisorder in the `test/' directory. There is
also a command-line tool, `ropy' in the `tool/' directory for reporting
on the entropy of normal files.
You will probably want to pipe the output of libdisorder to some other
math analysis or graphing environment (e.g., gnuplot).
The library's primary function reports entropy in bits: essentially,
this is the number of bits necessary to encode the actual level of
information contained in the data passed to the library: it is the
theoretical maximum amount of compression possible.
\ No newline at end of file
libdisorder (0.0.2+git20130809.8062ee1-1) unstable; urgency=medium
* Create watch file using mode=git
* Do not parse d/changelog
* Remove unneeded get-orig-source target
* Standards-Version: 4.1.4
* Point Vcs fields to salsa.debian.org
* debhelper 11
* Add override for d-shlibs to build on kfreebsd as well
-- Andreas Tille <tille@debian.org> Sun, 15 Apr 2018 11:20:27 +0200
libdisorder (0.0.2-1) unstable; urgency=medium
* Initial release (Closes: #828787)
......
......@@ -3,12 +3,11 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.
Uploaders: Andreas Tille <tille@debian.org>
Section: science
Priority: optional
Build-Depends: debhelper (>= 9),
dh-autoreconf,
Build-Depends: debhelper (>= 11~),
d-shlibs
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libdisorder.git
Vcs-Git: https://anonscm.debian.org/git/debian-med/libdisorder.git
Standards-Version: 4.1.4
Vcs-Browser: https://salsa.debian.org/med-team/libdisorder
Vcs-Git: https://salsa.debian.org/med-team/libdisorder.git
Homepage: https://github.com/locasto/libdisorder
Package: libdisorder0
......
#!/bin/sh -e
COMPRESS=xz
NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
MVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/^\([0-9\.]\+\)[+~][-0-9]\+$/\1/'`
mkdir -p ../tarballs
cd ../tarballs
# need to clean up the tarballs dir first because upstream tarball might
# contain a directory with unpredictable name
rm -rf *
git clone --quiet https://github.com/locasto/libdisorder
cd $NAME
#VERSION=${MVERSION}+`date -d @$(git show --format="%at" | head -n1) +%Y%m%d`
VERSION=$(cat code/VERSION | head -n1)
# for esthetical reasons set file timestamps (if git-restore-mtime is installed)
git restore-mtime || true
rm -f README
mv code/* .
rmdir code
cd ..
TARDIR=${NAME}-${VERSION}
mv ${NAME} ${TARDIR}
rm -rf ${TARDIR}/.git
GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
rm -rf ${TARDIR}
......@@ -3,7 +3,7 @@ Last-Update: Mon, 27 Jun 2016 23:57:12 +0200
Description: Add autoconf stuff to enable simple library creation
--- /dev/null
+++ b/Makefile.am
+++ b/code/Makefile.am
@@ -0,0 +1,16 @@
+lib_LTLIBRARIES = libdisorder.la
+libdisorder_la_SOURCES = src/disorder.c
......@@ -22,7 +22,7 @@ Description: Add autoconf stuff to enable simple library creation
+TEST_EXTENSIONS = .sh
+SH_LOG_COMPILER = /bin/sh
--- /dev/null
+++ b/configure.ac
+++ b/code/configure.ac
@@ -0,0 +1,47 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
......@@ -72,7 +72,7 @@ Description: Add autoconf stuff to enable simple library creation
+AC_OUTPUT
+
--- /dev/null
+++ b/test/gpl.sh
+++ b/code/test/gpl.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
......
......@@ -2,8 +2,8 @@ Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 22 Jun 2016 16:27:46 +0200
Description: Allow C++ name space
--- a/include/disorder.h
+++ b/include/disorder.h
--- a/code/include/disorder.h
+++ b/code/include/disorder.h
@@ -24,6 +24,10 @@
#ifndef __DISORDER_H_
#define __DISORDER_H_
......