--- erlang-14.a-dfsg.orig/debian/erlang-ic-java.links.in
+++ erlang-14.a-dfsg/debian/erlang-ic-java.links.in
@@ -0,0 +1 @@
+usr/lib/erlang/lib/ic-@IC_VSN@/priv/ic.jar    usr/share/java/ic-@IC_VSN@.jar
--- erlang-14.a-dfsg.orig/debian/erlang-base.links.in
+++ erlang-14.a-dfsg/debian/erlang-base.links.in
@@ -0,0 +1,8 @@
+usr/lib/erlang/bin/erl					usr/bin/erl
+usr/lib/erlang/bin/erlc					usr/bin/erlc
+usr/lib/erlang/bin/escript  				usr/bin/escript
+usr/lib/erlang/bin/run_erl				usr/bin/run_erl
+usr/lib/erlang/bin/start				usr/bin/start_embedded
+usr/lib/erlang/erts-@VERSION@/bin/epmd			usr/lib/erlang/bin/epmd
+usr/lib/erlang/bin/epmd					usr/bin/epmd
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/bin/erl_call	usr/bin/erl_call
--- erlang-14.a-dfsg.orig/debian/erlang-base-hipe.prerm
+++ erlang-14.a-dfsg/debian/erlang-base-hipe.prerm
@@ -0,0 +1,100 @@
+#! /bin/sh
+# prerm script for erlang-base-hipe
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> remove
+#        * <old-prerm> upgrade <new-version>
+#        * <new-prerm> failed-upgrade <old-version>
+#        * <conflictor's prerm> remove in-favour <package> <new version>
+#        * <deconfigured's prerm> deconfigure in-favour <package being installed> <version> \
+#				  removing <conflicting package> <version>
+# for details, see /usr/share/doc/debian-policy/
+
+case "$1" in
+    remove|upgrade)
+	echo -n "Searching for services which depend on erlang and should be stopped..."
+	# find all init scripts and packages they belong
+	inits=$(dpkg -S '/etc/init.d/*' 2>/dev/null | sed -e's:/etc/init.d/::')
+	# filter the list of the packages
+	packs=$(echo $inits | sed -e's/:[[:space:]]\+[^[:space:]]*//g' | sed -e's/ /\n/g' | sort -u)
+	# find packages, which depend on erlang
+	packs=$(dpkg -s $packs 2>/dev/null | egrep '^Package:|^Status:|^Depends' | awk '{if ($1 ~ /^Package:/) {package=$2;inst=0} else if ($0 ~ /^Status:.* installed$/) {inst=1} else if ((inst==1) && ($0 ~ /^Depends:.* erlang/)) {print package}}')
+	# construct services list from the packages
+	services=""
+	for p in $packs ; do
+	    service=$(echo $inits | sed -e's/\([^:]\) /\1\n/g' | awk "/^$p:/ {print \$2}")
+	    services="$services $service"
+	done
+	services=$(echo $services | tr '\n' ' ' | sed -e's/\(^[[:space:]]*\|[[:space:]]*$\)//g')
+
+	if [ -z "$services" ] ; then
+	    echo "none found."
+	else
+	    echo "found: $services."
+	    echo "Stopping services which depend on erlang"
+	    rl=$(runlevel | awk '{print $2}')
+	    failed=""
+	    for service in $services ; do
+		if [ -f /usr/share/file-rc/rc -o -f /usr/lib/file-rc/rc ] && [ -f /etc/runlevel.conf ] ; then
+		    idl=$(filerc $rl $service)
+		else
+		    idl=$(ls /etc/rc${rl}.d/S??${service} 2> /dev/null | head -1)
+		fi
+		if [ -n "$idl" ] ; then
+		    echo -n "  $service: stopping..."
+		    if $idl stop > /dev/null 2>&1 ; then
+			echo "done."
+		    else
+			echo "failed. ($?)"
+			failed="$failed $service"
+		    fi
+		fi
+	    done
+	    if [ -n "$failed" ]; then
+		echo "The following services failed to stop: $failed."
+	    else
+		echo "Services stopped successfully."
+	    fi
+	fi
+
+	echo -n "Killing epmd..."
+	if which pgrep >/dev/null ; then
+	    pid=$(pgrep epmd | head -1)
+	    if [ -z "$pid" ] ; then
+		echo "it is not running."
+	    else
+		if epmd -kill 1>/dev/null 2>&1 || kill $pid 2>/dev/null ; then
+		    echo "done."
+		else
+		    echo "failed."
+		fi
+	    fi
+	else
+	    if epmd -kill 1>/dev/null 2>&1 ; then
+		echo "done."
+	    else
+		echo "failed (or it is not running)."
+	    fi
+	fi
+    ;;
+
+    failed-upgrade|deconfigure)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
--- erlang-14.a-dfsg.orig/debian/erlang-jinterface.links.in
+++ erlang-14.a-dfsg/debian/erlang-jinterface.links.in
@@ -0,0 +1 @@
+usr/lib/erlang/lib/jinterface-@JINTERFACE_VSN@/priv/OtpErlang.jar    usr/share/java/OtpErlang-@JINTERFACE_VSN@.jar
--- erlang-14.a-dfsg.orig/debian/erlang-typer.manpages
+++ erlang-14.a-dfsg/debian/erlang-typer.manpages
@@ -0,0 +1 @@
+debian/manpages/typer.1
--- erlang-14.a-dfsg.orig/debian/erlang.xpm
+++ erlang-14.a-dfsg/debian/erlang.xpm
@@ -0,0 +1,41 @@
+/* XPM */
+static char * erlang_xpm[] = {
+"32 32 6 1",
+" 	c None",
+".	c #FFFFFF",
+"+	c #800000",
+"@	c #808080",
+"#	c #FF0000",
+"$	c #000000",
+"................................",
+".++++...........+...........+++.",
+".+++..........+++++.........+++.",
+".+++.........+++++++........@++.",
+".++.........++++++++.........++.",
+".++.........++++++++.........++.",
+".+............................+.",
+".+............................+.",
+".+............................+.",
+".+............................+.",
+".+............................+.",
+".+..........+++++++++++++++++++.",
+".+..........+++++++++++++++++++.",
+".+..........+++++++++++++++++++.",
+".+..........+++++++++++++++++++.",
+".+..........+++++++++++++++++++.",
+".+..........+++++++++++++..++++.",
+".++..........++++++++++++...@++.",
+".++..........@++++++++++......+.",
+".+++..........+++++++++.......+.",
+".+++...........+++++++.......++.",
+".+++#............+++........@++.",
+".++++.......................+++.",
+"................................",
+"................................",
+"................................",
+".$$..$$$...$....$$...$..$...$$$.",
+".$...$..$..$....$$...$$.$..$....",
+".$$..$$$...$....$$...$.$$..$.$$.",
+".$...$.$...$...$$$$..$..$..$..$.",
+".$$..$..$..$$$.$..$..$..$...$$..",
+"................................"};
--- erlang-14.a-dfsg.orig/debian/erlang-base.prerm
+++ erlang-14.a-dfsg/debian/erlang-base.prerm
@@ -0,0 +1,100 @@
+#! /bin/sh
+# prerm script for erlang-base
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> remove
+#        * <old-prerm> upgrade <new-version>
+#        * <new-prerm> failed-upgrade <old-version>
+#        * <conflictor's prerm> remove in-favour <package> <new version>
+#        * <deconfigured's prerm> deconfigure in-favour <package being installed> <version> \
+#				  removing <conflicting package> <version>
+# for details, see /usr/share/doc/debian-policy/
+
+case "$1" in
+    remove|upgrade)
+	echo -n "Searching for services which depend on erlang and should be stopped..."
+	# find all init scripts and packages they belong
+	inits=$(dpkg -S '/etc/init.d/*' 2>/dev/null | sed -e's:/etc/init.d/::')
+	# filter the list of the packages
+	packs=$(echo $inits | sed -e's/:[[:space:]]\+[^[:space:]]*//g' | sed -e's/ /\n/g' | sort -u)
+	# find packages, which depend on erlang
+	packs=$(dpkg -s $packs 2>/dev/null | egrep '^Package:|^Status:|^Depends' | awk '{if ($1 ~ /^Package:/) {package=$2;inst=0} else if ($0 ~ /^Status:.* installed$/) {inst=1} else if ((inst==1) && ($0 ~ /^Depends:.* erlang/)) {print package}}')
+	# construct services list from the packages
+	services=""
+	for p in $packs ; do
+	    service=$(echo $inits | sed -e's/\([^:]\) /\1\n/g' | awk "/^$p:/ {print \$2}")
+	    services="$services $service"
+	done
+	services=$(echo $services | tr '\n' ' ' | sed -e's/\(^[[:space:]]*\|[[:space:]]*$\)//g')
+
+	if [ -z "$services" ] ; then
+	    echo "none found."
+	else
+	    echo "found: $services."
+	    echo "Stopping services which depend on erlang"
+	    rl=$(runlevel | awk '{print $2}')
+	    failed=""
+	    for service in $services ; do
+		if [ -f /usr/share/file-rc/rc -o -f /usr/lib/file-rc/rc ] && [ -f /etc/runlevel.conf ] ; then
+		    idl=$(filerc $rl $service)
+		else
+		    idl=$(ls /etc/rc${rl}.d/S??${service} 2> /dev/null | head -1)
+		fi
+		if [ -n "$idl" ] ; then
+		    echo -n "  $service: stopping..."
+		    if $idl stop > /dev/null 2>&1 ; then
+			echo "done."
+		    else
+			echo "failed. ($?)"
+			failed="$failed $service"
+		    fi
+		fi
+	    done
+	    if [ -n "$failed" ] ; then
+		echo "The following services failed to stop: $failed."
+	    else
+		echo "Services stopped successfully."
+	    fi
+	fi
+
+	echo -n "Killing epmd..."
+	if which pgrep >/dev/null ; then
+	    pid=$(pgrep epmd | head -1)
+	    if [ -z "$pid" ] ; then
+		echo "it is not running."
+	    else
+		if epmd -kill 1>/dev/null 2>&1 || kill $pid 2>/dev/null ; then
+		    echo "done."
+		else
+		    echo "failed."
+		fi
+	    fi
+	else
+	    if epmd -kill 1>/dev/null 2>&1 ; then
+		echo "done."
+	    else
+		echo "failed (or it is not running)."
+	    fi
+	fi
+    ;;
+
+    failed-upgrade|deconfigure)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
--- erlang-14.a-dfsg.orig/debian/erlang-webtool.links.in
+++ erlang-14.a-dfsg/debian/erlang-webtool.links.in
@@ -0,0 +1 @@
+usr/lib/erlang/lib/webtool-@WEBTOOL_VSN@/priv/bin/start_webtool	usr/bin/start_webtool
--- erlang-14.a-dfsg.orig/debian/erlang-base-hipe.manpages
+++ erlang-14.a-dfsg/debian/erlang-base-hipe.manpages
@@ -0,0 +1,7 @@
+debian/erlang-docs/usr/lib/erlang/man/man1/epmd.1
+debian/erlang-docs/usr/lib/erlang/man/man1/erl_call.1
+debian/erlang-docs/usr/lib/erlang/man/man1/erlc.1
+debian/erlang-docs/usr/lib/erlang/man/man1/erl.1
+debian/erlang-docs/usr/lib/erlang/man/man1/escript.1
+debian/erlang-docs/usr/lib/erlang/man/man1/run_erl.1
+debian/erlang-docs/usr/lib/erlang/man/man1/start_embedded.1
--- erlang-14.a-dfsg.orig/debian/erlang-base.manpages
+++ erlang-14.a-dfsg/debian/erlang-base.manpages
@@ -0,0 +1,7 @@
+debian/erlang-docs/usr/lib/erlang/man/man1/epmd.1
+debian/erlang-docs/usr/lib/erlang/man/man1/erl_call.1
+debian/erlang-docs/usr/lib/erlang/man/man1/erlc.1
+debian/erlang-docs/usr/lib/erlang/man/man1/erl.1
+debian/erlang-docs/usr/lib/erlang/man/man1/escript.1
+debian/erlang-docs/usr/lib/erlang/man/man1/run_erl.1
+debian/erlang-docs/usr/lib/erlang/man/man1/start_embedded.1
--- erlang-14.a-dfsg.orig/debian/in.erlang-doc.doc-base.erlang-erts
+++ erlang-14.a-dfsg/debian/in.erlang-doc.doc-base.erlang-erts
@@ -0,0 +1,9 @@
+Document: erlang-erts
+Title: Erlang Runtime Documentation
+Author: Ericsson
+Abstract: Documentation for the Erlang Runtime System
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/erlang-doc/erts-@VERSION@/doc/html/index.html
+Files: /usr/share/doc/erlang-doc/erts-@VERSION@/doc/html/*
--- erlang-14.a-dfsg.orig/debian/TODO.Debian
+++ erlang-14.a-dfsg/debian/TODO.Debian
@@ -0,0 +1,8 @@
+Things we hope in the next versions of this package:
+
+* Build and package erl_jinterface. JInterface is not built
+in the main package since it doesn't not depend on Java.
+
+* Add kernel-poll support and HiPE to kfreebsd-i386 and kfreebsd-amd64
+architecture (It seems to be possible).
+
--- erlang-14.a-dfsg.orig/debian/erlang-base.files
+++ erlang-14.a-dfsg/debian/erlang-base.files
@@ -0,0 +1,34 @@
+usr/lib/erlang/bin/erlc
+usr/lib/erlang/bin/run_erl
+usr/lib/erlang/bin/to_erl
+usr/lib/erlang/erts-*/bin/beam
+usr/lib/erlang/erts-*/bin/beam.elib
+usr/lib/erlang/erts-*/bin/beam.elib.shared
+usr/lib/erlang/erts-*/bin/beam.shared
+usr/lib/erlang/erts-*/bin/child_setup
+usr/lib/erlang/erts-*/bin/child_setup.shared
+usr/lib/erlang/erts-*/bin/epmd
+usr/lib/erlang/erts-*/bin/erlc
+usr/lib/erlang/erts-*/bin/erlexec
+usr/lib/erlang/erts-*/bin/heart
+usr/lib/erlang/erts-*/bin/inet_gethost
+usr/lib/erlang/erts-*/bin/run_erl
+usr/lib/erlang/erts-*/bin/to_erl
+usr/lib/erlang/erts-*/lib/internal/*.a
+usr/lib/erlang/erts-*/bin/beam.hybrid
+usr/lib/erlang/erts-*/bin/child_setup.hybrid
+usr/lib/erlang/lib/odbc-*/priv/bin/odbcserver
+usr/lib/erlang/lib/asn1-*/priv/lib/*.so
+usr/lib/erlang/lib/crypto-*/priv/lib/*.o
+usr/lib/erlang/lib/crypto-*/priv/lib/*.so
+usr/lib/erlang/lib/crypto-*/priv/obj/*.o
+usr/lib/erlang/lib/erl_interface-*/bin/erl_call
+usr/lib/erlang/lib/erl_interface-*/lib/*.a
+usr/lib/erlang/lib/ic-*/priv/lib/*.a
+usr/lib/erlang/lib/megaco-*/priv/lib/*.so
+usr/lib/erlang/lib/orber-*/priv/bin/obj_init_port
+usr/lib/erlang/lib/os_mon-*/priv/bin/memsup
+usr/lib/erlang/lib/runtime_tools-*/priv/lib/*.so
+usr/lib/erlang/lib/ssl-*/priv/bin/ssl_esock
+usr/lib/erlang/lib/ssl-*/priv/obj/*.o
+
--- erlang-14.a-dfsg.orig/debian/rules
+++ erlang-14.a-dfsg/debian/rules
@@ -0,0 +1,526 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+export QUILT_PATCHES := debian/patches
+
+ROOT_DIR=$(shell pwd)
+MAN_DIR = $(ROOT_DIR)/debian/erlang-docs/usr/lib/erlang/man
+
+export HOME := $(ROOT_DIR)/debian
+
+-include ${ROOT_DIR}/erts/vsn.mk
+-include ${ROOT_DIR}/lib/erl_interface/vsn.mk
+-include ${ROOT_DIR}/lib/jinterface/vsn.mk
+-include ${ROOT_DIR}/lib/ic/vsn.mk
+-include ${ROOT_DIR}/lib/tools/vsn.mk
+-include ${ROOT_DIR}/lib/webtool/vsn.mk
+-include ${ROOT_DIR}/lib/common_test/vsn.mk
+SOURCE_VERSION=$(shell dpkg-parsechangelog | sed -ne's!^Version: \(.*\)-.*!\1!p')
+ABI_VERSION=$(shell cat debian/control | sed -ne's!^Provides: erlang-abi-\(.*\)!\1!p' | head -1)
+HIPE_ARCHES=$(shell cat debian/control | grep '^Architecture:' | egrep -v '(all|any)' | sed -e 's/^Architecture: *//')
+
+ifeq ($(findstring debug,$(DEB_BUILD_OPTIONS)),debug)
+BUILD_HIPE := no
+else
+BUILD_HIPE := $(shell echo ' $(HIPE_ARCHES) ' | grep -c ' ${DEB_HOST_ARCH} ' | sed -es/1/yes/ -es/0/no/)
+endif
+ifeq ($(BUILD_HIPE), no)
+BINARY_TARGETS=binary-erlang-base
+INSTALL_RULE=install-stnd-stamp
+TMPINSTALL_DIR=debian/erlang-stnd
+ERLANGBASE=erlang-base (= $${binary:Version})
+else
+BINARY_TARGETS=binary-erlang-base binary-erlang-base-hipe
+INSTALL_RULE=install-stnd-stamp install-hipe-stamp
+TMPINSTALL_DIR=debian/erlang-hipe
+ERLANGBASE=erlang-base (= $${binary:Version}) | erlang-base-hipe (= $${binary:Version})
+endif
+ifneq ($(DEB_HOST_ARCH), hurd-i386)
+PROCPS=procps
+else
+PROCPS=
+endif
+
+USE_KERNEL_POLL := $(shell echo ${DEB_HOST_ARCH} | egrep -c "hurd" | sed -es/1/no/ -es/0/yes/)
+ifeq ($(USE_KERNEL_POLL), no)
+KERNEL_POLL_OPT=--disable-kernel-poll
+else
+KERNEL_POLL_OPT=--enable-kernel-poll
+endif
+
+USE_CLOCK_GETTIME := $(shell echo ${DEB_HOST_ARCH} | egrep -c "bsd|hurd" | sed -es/1/no/ -es/0/yes/)
+ifeq ($(USE_CLOCK_GETTIME), no)
+CLOCK_GETTIME_OPT=
+else
+CLOCK_GETTIME_OPT=--enable-clock-gettime
+endif
+
+# Temporary (until #475459 is fixed) disabling threads for sparc architecture
+ifeq ($(DEB_HOST_ARCH), sparc)
+THREAD_OPTS=--disable-threads --disable-smp-support
+else
+ifeq ($(DEB_HOST_ARCH), hurd-i386)
+THREAD_OPTS=--enable-threads --disable-smp-support
+else
+THREAD_OPTS=--enable-threads --enable-smp-support
+endif
+endif
+
+LIBSCTP=$(shell grep-status -s Depends -PX libsctp-dev |sed -e 's!.*\(libsctp[0-9]*\).*!\1!')
+LIBSCTPDEP=$(shell grep-status -s Version -PX $(LIBSCTP) | sed -e's!^Version: \(.*\)-[^-]*!$(LIBSCTP) (>= \1)!')
+
+ifeq ($(findstring debug,$(DEB_BUILD_OPTIONS)),debug)
+CFLAGS=-g -O2 -fno-strict-aliasing
+GEN_OPT_FLGS=-O2 -fno-strict-aliasing
+TYPE=debug
+else
+CFLAGS=-g -O2 -fno-strict-aliasing
+GEN_OPT_FLGS=-O2 -fno-strict-aliasing
+TYPE=
+endif
+
+unpatch: patch-stamp
+	dh_testdir
+	quilt pop -a || test $$? = 2
+	rm -rf .pc
+	rm -f patch-stamp
+
+patch: patch-stamp
+patch-stamp:
+	dh_testdir
+	quilt push -a || test $$? = 2
+	touch patch-stamp
+
+clean: clean-patched unpatch
+	dh_testdir
+	dh_testroot
+	dh_clean -Xtest.erl.orig
+
+clean-patched: patch-stamp
+	dh_testdir
+	dh_testroot
+	#
+	[ ! -f Makefile ] || ${MAKE} clean
+	rm -f lib/dialyzer/SKIP
+	#
+	# Remove installed erlang from debian/
+	rm -rf debian/erlang-docs
+	rm -rf debian/erlang-stnd
+	rm -rf debian/erlang-hipe
+	#
+	# Restore replaced configure, config.guess, and config.sub files
+	for i in `find ${ROOT_DIR} -name 'configure.backup'` ; do \
+	    mv $$i $${i%%.backup} ; \
+	done
+	for i in `find ${ROOT_DIR} -name 'config.guess~'` ; do \
+	    mv $$i $${i%%\~} ; \
+	done
+	for i in `find ${ROOT_DIR} -name 'config.sub~'` ; do \
+	    mv $$i $${i%%\~} ; \
+	done
+	#
+	# Remove files, which were generated from templates
+	for i in debian/*.in debian/scripts/*.in ; do \
+	     rm -f $${i%%.in} ; \
+	done
+	#
+	# *.install were also generated on-the-fly
+	rm -f debian/*.install
+	rm -f debian/erlang-doc.links
+	rm -f debian/erlang-doc.doc-base.erlang-erts
+	#
+	rm -f debian/AUTHORS
+	#
+	# Don't remove patch-stamp
+	rm -f [!p]*-stamp
+
+automake: automake-stamp
+automake-stamp: patch-stamp
+	dh_testdir
+	#
+	# Return error if there are known nonfree docs in upstream tarball
+	# Return error if there are prebuilt binaries in upstream tarball
+	err=0 ; \
+	for fn in `find lib/*/doc -name standard -or -name archive` ; do \
+	    err=1 ; \
+	    echo Found directory $$fn with non-free docs in upstream. Please remove it. ; \
+	done ; \
+	if [ -f prebuilt.files ] ; then \
+	    err=1 ; \
+	    echo Found prebuilt binaries in upstream. Please remove them. ; \
+	fi ; \
+	if [ $$err = 1 ] ; then \
+	    echo ; \
+	    echo Use get-orig-source target to get upstream tarball. ; \
+	    echo ; \
+	    false ; \
+	fi
+	#
+	# Preserve configure scripts
+	for i in `find ${ROOT_DIR} -not \( -wholename '*/.pc' -prune \) \
+				    -a -name 'configure'` ; do \
+	    cp -f $$i $$i.backup ; \
+	done
+	#
+	# Replace config.guess and config.sub by installed in /usr/share/misc.
+	# Also add suffix -gnu to ibm-linux in config.guess to fix FTBFS
+	# on s390 architecture
+	for i in `find ${ROOT_DIR} -not \( -wholename '*/.pc' -prune \) \
+				    -a -name 'config.guess'` ; do \
+	    cp -fb /usr/share/misc/config.guess $$i ; \
+	    sed -i 's/-ibm-linux$$/-ibm-linux-gnu/g' $$i ; \
+	done
+	for i in `find ${ROOT_DIR} -not \( -wholename '*/.pc' -prune \) \
+				    -a -name 'config.sub'` ; do \
+	    cp -fb /usr/share/misc/config.sub $$i ; \
+	done
+	#
+	# Regenerate configure scripts using autoconf
+	for i in `find ${ROOT_DIR} -not \( -wholename '*/.pc' -prune \) \
+				    -a -name 'configure.in' -printf "%h\n"`; do \
+	    echo "autoconf'ing $${i}"; \
+	    (cd $${i} && autoconf) \
+	done
+	touch automake-stamp
+
+configure-hipe: configure-hipe-stamp
+configure-hipe-stamp: automake-stamp
+	dh_testdir
+	#
+	echo "BUILDING HIPE VERSION (BUILD_HIPE: $(BUILD_HIPE))"
+	#
+	[ ! -f Makefile ] || ${MAKE} clean
+	rm -f lib/dialyzer/SKIP
+	#
+	CFLAGS="$(CFLAGS)" \
+	./configure --host=$(DEB_HOST_GNU_TYPE) \
+		    --build=$(DEB_BUILD_GNU_TYPE) \
+		    --prefix=/usr \
+		    --libexecdir=/usr/bin \
+		    --infodir=/usr/share/info \
+		    --mandir=/usr/share/man \
+		    --enable-hybrid-heap \
+		    $(THREAD_OPTS) \
+		    --enable-hipe \
+		    $(KERNEL_POLL_OPT) \
+		    --enable-sctp \
+		    $(CLOCK_GETTIME_OPT) \
+		    --enable-dynamic-ssl-lib \
+		    --without-ssl-zlib
+	#
+	touch configure-hipe-stamp
+
+configure-stnd: configure-stnd-stamp
+configure-stnd-stamp: automake-stamp
+	dh_testdir
+	#
+	echo "BUILDING STANDARD VERSION (BUILD_HIPE: $(BUILD_HIPE))"
+	#
+	[ ! -f Makefile ] || ${MAKE} clean
+	rm -f lib/dialyzer/SKIP
+	#
+	CFLAGS="$(CFLAGS)" \
+	./configure --host=$(DEB_HOST_GNU_TYPE) \
+		    --build=$(DEB_BUILD_GNU_TYPE) \
+		    --prefix=/usr \
+		    --libexecdir=/usr/bin \
+		    --infodir=/usr/share/info \
+		    --mandir=/usr/share/man \
+		    --enable-hybrid-heap \
+		    $(THREAD_OPTS) \
+		    --disable-hipe \
+		    $(KERNEL_POLL_OPT) \
+		    --enable-sctp \
+		    $(CLOCK_GETTIME_OPT) \
+		    --enable-dynamic-ssl-lib \
+		    --without-ssl-zlib
+	#
+	touch configure-stnd-stamp
+
+define do-install
+	echo "*** do-install called for $(INSTALL_DIR)."
+
+	# Calls make install.
+	${MAKE} DESTDIR=$(INSTALL_DIR) TYPE=$(TYPE) install
+
+	# Replace ROOTDIR in "erl" and "start" scripts for real rootdir
+	# If there's no erl or start then it's better to fail than silently continue
+	for dir in $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/bin		\
+		   $(INSTALL_DIR)/usr/lib/erlang/bin; do			\
+	    for val in erl start; do						\
+		sed -i 's!ROOTDIR=.*!ROOTDIR=/usr/lib/erlang!' $${dir}/$${val}; \
+	    done;								\
+	done
+
+	# Correct ERL_ROOT in RELEASES file
+	sed 's!%ERL_ROOT%!/usr/lib/erlang!' \
+	    $(INSTALL_DIR)/usr/lib/erlang/releases/RELEASES.src \
+	    >$(INSTALL_DIR)/usr/lib/erlang/releases/RELEASES
+
+	# Get rid of windows cruft
+	find $(INSTALL_DIR) -name *.bat -exec rm -v {} \;
+
+	# Fix permissions
+	cp $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/bin/start_erl.src \
+	   $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/bin/start_erl
+	chmod 755 $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/bin/start_erl
+	chmod 755 $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/bin/*.src
+	chmod 644 $(INSTALL_DIR)/usr/lib/erlang/bin/start.script
+	chmod 644 $(INSTALL_DIR)/usr/lib/erlang/lib/wx-*/examples/*/*.beam
+	chmod 644 $(INSTALL_DIR)/usr/lib/erlang/lib/wx-*/examples/*/*.xpm
+
+	# Remove useless ssl and crypto object files
+	rm -rv $(INSTALL_DIR)/usr/lib/erlang/lib/crypto-*/priv/obj
+	rm -rv $(INSTALL_DIR)/usr/lib/erlang/lib/ssl-*/priv/obj
+
+	# Remove some files which should be rather in erlang-doc-html package
+	find $(INSTALL_DIR)/usr/lib/erlang/lib -name info -exec rm -v {} \;
+	rm -rv $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/doc
+
+	# Remove useless Install and manpage formatting scripts
+	rm -v $(INSTALL_DIR)/usr/lib/erlang/Install
+	rm -rv $(INSTALL_DIR)/usr/lib/erlang/misc
+endef
+
+# manpages builds section 1 manual pages
+manpages: manpages-stamp
+manpages-stamp: $(INSTALL_RULE)
+	dh_testdir
+	target=$$(basename $$(find make -type d |grep /)) ; \
+	PATH=$(ROOT_DIR)/bin:$$PATH ; \
+	for m in lib/dialyzer lib/erl_interface lib/common_test lib/webtool erts ; do \
+	    make -C $$m/doc/src man ERL_TOP=$(ROOT_DIR) TARGET=$$target ; \
+	done
+	#
+	install -d $(MAN_DIR)/man1 $(MAN_DIR)/man3 ; \
+	install lib/dialyzer/doc/man3/*.3 $(MAN_DIR)/man3 ; \
+	for m in lib/erl_interface lib/common_test lib/webtool erts ; do \
+	    install $$m/doc/man1/*.1 $(MAN_DIR)/man1 ; \
+	done
+	#
+	sh debian/scripts/fixmanpages $(MAN_DIR)
+	#
+	touch manpages-stamp
+
+# CC_R_FLAG and LD_R_FLAG are empty because Debian doesn't recommend
+# RPATH definition in binaries
+# CC_R_OPT is used in percept
+build-hipe: build-hipe-stamp
+build-hipe-stamp: configure-hipe-stamp
+	dh_testdir
+	touch build-hipe-stamp
+ifeq ($(findstring debug,$(DEB_BUILD_OPTIONS)),debug)
+	${MAKE} TYPE=$(TYPE) FLAVOR=smp GEN_OPT_FLGS="$(GEN_OPT_FLGS)" emulator
+	${MAKE} TYPE=$(TYPE) FLAVOR=plain GEN_OPT_FLGS="$(GEN_OPT_FLGS)" emulator
+endif
+	${MAKE} TYPE=$(TYPE) GEN_OPT_FLGS="$(GEN_OPT_FLGS)"
+
+build-stnd: build-stnd-stamp
+build-stnd-stamp: configure-stnd-stamp
+	dh_testdir
+ifeq ($(findstring debug,$(DEB_BUILD_OPTIONS)),debug)
+	${MAKE} TYPE=$(TYPE) FLAVOR=smp GEN_OPT_FLGS="$(GEN_OPT_FLGS)" emulator
+	${MAKE} TYPE=$(TYPE) FLAVOR=plain GEN_OPT_FLGS="$(GEN_OPT_FLGS)" emulator
+endif
+	${MAKE} TYPE=$(TYPE) GEN_OPT_FLGS="$(GEN_OPT_FLGS)"
+	touch build-stnd-stamp
+
+docs: docs-stamp
+docs-stamp: $(INSTALL_RULE)
+	dh_testdir
+	PATH=$(ROOT_DIR)/bin:$$PATH $(MAKE) docs
+	$(MAKE) DESTDIR=$(ROOT_DIR)/debian/erlang-docs install-docs
+	#
+	sh debian/scripts/fixmanpages $(MAN_DIR)
+	#
+	(cd $(ROOT_DIR)/debian/erlang-docs/usr/lib/erlang/lib ; \
+	 perl $(ROOT_DIR)/debian/scripts/genindex >index.html ; \
+	 perl $(ROOT_DIR)/debian/scripts/genlinks $(VSN) >$(ROOT_DIR)/debian/erlang-doc.links)
+	touch docs-stamp
+
+install-hipe: install-hipe-stamp
+install-hipe-stamp: INSTALL_DIR=$(ROOT_DIR)/debian/erlang-hipe
+install-hipe-stamp: build-hipe-stamp
+	dh_testdir
+	$(do-install)
+	touch install-hipe-stamp
+
+install-stnd: install-stnd-stamp
+install-stnd-stamp: INSTALL_DIR=$(ROOT_DIR)/debian/erlang-stnd
+install-stnd-stamp: build-stnd-stamp
+	dh_testdir
+	$(do-install)
+	touch install-stnd-stamp
+
+build: build-arch build-indep
+build-arch: build-stamp manpages-stamp
+build-indep: build-stamp
+build-stamp: $(INSTALL_RULE)
+	dh_testdir
+	#
+	for i in debian/*.in debian/scripts/*.in ; do \
+	    sed -e's/@VERSION@/$(VSN)/g' \
+	     	-e's/@SOURCE_VERSION@/$(SOURCE_VERSION)/g' \
+	     	-e's/@HIPE_ARCHES@/$(HIPE_ARCHES)/g' \
+	     	-e's/@ABI_VERSION@/$(ABI_VERSION)/g' \
+	     	-e's/@EI_VSN@/$(EI_VSN)/g' \
+	     	-e's/@JINTERFACE_VSN@/$(JINTERFACE_VSN)/g' \
+	     	-e's/@IC_VSN@/$(IC_VSN)/g' \
+		-e's/@WEBTOOL_VSN@/$(WEBTOOL_VSN)/g' \
+		-e's/@COMMON_TEST_VSN@/$(COMMON_TEST_VSN)/g' \
+		-e's/@TOOLS_VSN@/$(TOOLS_VSN)/g' <$$i >$${i%%.in} ; \
+	done
+	sed -e's/@VERSION@/$(VSN)/g' <debian/in.erlang-doc.doc-base.erlang-erts \
+	    >debian/erlang-doc.doc-base.erlang-erts
+	#
+	# Place each installed file into the proper package.
+	# See this script and the debian/patterns/* files for more informations.
+	sh debian/scripts/analyse $(TMPINSTALL_DIR)
+	#
+	# Add all author lists to debian/AUTHORS
+	f=1 ; \
+	for i in `find $(ROOT_DIR) -name AUTHORS | sort` ; do \
+	    echo $$i ; \
+	    if [ $$f = 1 ] ; then \
+	    	f=0 ; \
+	    else \
+	    	echo >>debian/AUTHORS ; \
+		echo "------------------------------------------------------------------------" >>debian/AUTHORS ; \
+	        dirname=`dirname $$i` ; \
+	        echo `basename $$dirname` >>debian/AUTHORS ; \
+		echo >>debian/AUTHORS ; \
+	    fi ; \
+	    cat $$i >>debian/AUTHORS ; \
+	done
+	#
+	touch build-stamp
+
+binary-indep: build-stamp docs-stamp
+	dh_testdir
+	dh_testroot
+	dh_installdirs -i
+	dh_install -i --sourcedir=$(TMPINSTALL_DIR)
+	#
+	for pkg in examples ; do \
+	    install -D -m 644 debian/lintian/erlang-$$pkg.lintian-overrides \
+		$(ROOT_DIR)/debian/erlang-$$pkg/usr/share/lintian/overrides/erlang-$$pkg ; \
+	done
+	#
+	dh_installdocs -i -A debian/README.Debian debian/TODO.Debian debian/AUTHORS
+	dh_installemacsen -i
+	dh_installexamples -i
+	dh_installchangelogs -i
+	dh_installman -i
+	dh_installmenu -i
+	dh_link -i
+	dh_strip -i
+	dh_compress -i -X.txt -X.erl -X.hrl -X.c -X.js -X.kwc -X.pdf -X.eix
+	dh_fixperms -i
+	dh_makeshlibs -i
+	dh_installdeb -i
+	dh_shlibdeps -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch: $(BINARY_TARGETS)
+
+binary-erlang-base: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_installdirs -a -Nerlang-base-hipe
+	dh_install -perlang-base --sourcedir=debian/erlang-stnd
+	dh_install -a -Nerlang-base -Nerlang-base-hipe --sourcedir=$(TMPINSTALL_DIR)
+	#
+	install -D -m 755 $(ROOT_DIR)/debian/scripts/erlang-depends \
+		$(ROOT_DIR)/debian/erlang-dev/usr/bin/erlang-depends
+	install -D -m 644 $(ROOT_DIR)/debian/erlang.xpm \
+		$(ROOT_DIR)/debian/erlang-base/usr/share/pixmaps/erlang.xpm
+	install -D -m 644 $(ROOT_DIR)/debian/erlang-base.desktop \
+		$(ROOT_DIR)/debian/erlang-base/usr/share/apps/konsole/erlang.desktop
+	#
+	for pkg in base appmon debugger docbuilder edoc erl-docgen gs observer percept pman tv wx ; do \
+	    install -D -m 644 debian/lintian/erlang-$$pkg.lintian-overrides \
+		$(ROOT_DIR)/debian/erlang-$$pkg/usr/share/lintian/overrides/erlang-$$pkg ; \
+	done
+	#
+	dh_installdocs -a -Nerlang-base-hipe -A debian/README.Debian debian/TODO.Debian debian/AUTHORS
+	dh_installchangelogs -a -Nerlang-base-hipe
+	dh_installemacsen -a -Nerlang-base-hipe
+	dh_installexamples -a -Nerlang-base-hipe
+	dh_installman -a -Nerlang-base-hipe
+	dh_installmenu -a -Nerlang-base-hipe
+	dh_link -a -Nerlang-base-hipe
+	dh_strip -a -Nerlang-base-hipe
+	dh_compress -a -Nerlang-base-hipe
+	dh_fixperms -a -Nerlang-base-hipe
+	dh_makeshlibs -a -Nerlang-base-hipe
+	dh_installdeb -a -Nerlang-base-hipe
+	dh_shlibdeps -a -Nerlang-base-hipe
+	dh_gencontrol -perlang-base -- \
+		-Vprocps:Depends='$(PROCPS)' \
+		-Vlibsctp:Version='$(LIBSCTPDEP)'
+	dh_gencontrol -a -Nerlang-base -Nerlang-base-hipe -- \
+		-Verlang-base='$(ERLANGBASE)'
+	dh_md5sums -a -Nerlang-base-hipe
+	dh_builddeb -a -Nerlang-base-hipe
+
+binary-erlang-base-hipe: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_installdirs -perlang-base-hipe
+	dh_install -perlang-base-hipe --sourcedir=debian/erlang-hipe
+	install -D -m 644 $(ROOT_DIR)/debian/erlang.xpm \
+		$(ROOT_DIR)/debian/erlang-base-hipe/usr/share/pixmaps/erlang.xpm
+	install -D -m 644 $(ROOT_DIR)/debian/erlang-base-hipe.desktop \
+		$(ROOT_DIR)/debian/erlang-base-hipe/usr/share/apps/konsole/erlang.desktop
+	#
+	for pkg in base-hipe ; do \
+	    install -D -m 644 debian/lintian/erlang-$$pkg.lintian-overrides \
+		$(ROOT_DIR)/debian/erlang-$$pkg/usr/share/lintian/overrides/erlang-$$pkg ; \
+	done
+	#
+	dh_installdocs -perlang-base-hipe debian/README.Debian debian/TODO.Debian debian/AUTHORS
+	dh_installchangelogs -perlang-base-hipe
+	dh_installemacsen -perlang-base-hipe
+	dh_installexamples -perlang-base-hipe
+	dh_installman -perlang-base-hipe
+	dh_installmenu -perlang-base-hipe
+	dh_link -perlang-base-hipe
+	dh_strip -perlang-base-hipe
+	dh_compress -perlang-base-hipe
+	dh_fixperms -perlang-base-hipe
+	dh_makeshlibs -perlang-base-hipe
+	dh_installdeb -perlang-base-hipe
+	dh_shlibdeps -perlang-base-hipe
+	dh_gencontrol -perlang-base-hipe -- \
+		-Vprocps:Depends='$(PROCPS)' \
+		-Vlibsctp:Version='$(LIBSCTPDEP)'
+	dh_md5sums -perlang-base-hipe
+	dh_builddeb -perlang-base-hipe
+
+binary: binary-indep binary-arch
+
+REL=R14A
+DEB_REL=14.a-dfsg
+
+get-orig-source:
+	CURDIR=`pwd` && TMPDIR=`mktemp -d /tmp/erlang.XXXXXX` && \
+	cd $$TMPDIR && \
+	wget -O - http://www.erlang.org/download/otp_src_$(REL).tar.gz | tar -zx && \
+	(cd otp_src_$(REL) && \
+	 ./otp_build save_bootstrap && \
+	 for f in `cat prebuilt.files` ; do rm -f $$f ; done) && \
+	rm -rvf otp_src_$(REL)/lib/*/doc/standard/ && \
+	rm -rvf otp_src_$(REL)/lib/*/doc/archive/ && \
+	tar -zcf $$CURDIR/erlang_$(DEB_REL).orig.tar.gz otp_src_$(REL) && \
+	rm -rf $$TMPDIR
+
+.PHONY: patch unpatch clean-patched clean automake install build build-arch build-indep
+.PHONY: binary binary-arch binary-indep get-orig-source
+.PHONY: configure-stnd build-stnd install-stnd docs manpages
+.PHONY: configure-hipe build-hipe install-hipe
+.PHONY: binary-erlang-base binary-erlang-base-hipe
--- erlang-14.a-dfsg.orig/debian/erlang-base-hipe.links.in
+++ erlang-14.a-dfsg/debian/erlang-base-hipe.links.in
@@ -0,0 +1,8 @@
+usr/lib/erlang/bin/erl					usr/bin/erl
+usr/lib/erlang/bin/erlc					usr/bin/erlc
+usr/lib/erlang/bin/escript  				usr/bin/escript
+usr/lib/erlang/bin/run_erl				usr/bin/run_erl
+usr/lib/erlang/bin/start				usr/bin/start_embedded
+usr/lib/erlang/erts-@VERSION@/bin/epmd			usr/lib/erlang/bin/epmd
+usr/lib/erlang/bin/epmd					usr/bin/epmd
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/bin/erl_call	usr/bin/erl_call
--- erlang-14.a-dfsg.orig/debian/erlang-common-test.links.in
+++ erlang-14.a-dfsg/debian/erlang-common-test.links.in
@@ -0,0 +1 @@
+usr/lib/erlang/bin/run_test	usr/bin/run_test
--- erlang-14.a-dfsg.orig/debian/README.Debian
+++ erlang-14.a-dfsg/debian/README.Debian
@@ -0,0 +1,81 @@
+Open Source Erlang for DEBIAN
+-----------------------------
+
+Erlang is a programming language designed at the Ericsson Computer
+Science Laboratory.  Open-Source Erlang was released to help encourage
+the spread of Erlang outside of Ericsson.
+
+(From the White Paper:  http://erlang.org/white_paper.html)
+
+Erlang is characterized by the following features:
+     
+*  Concurrency - Erlang has extremely lightweight processes whose memory
+   requirements can vary dynamically. Processes have no shared memory and
+   communicate by asynchronous message passing. Erlang supports
+   applications with very large numbers of concurrent processes. No
+   requirements for concurrency are placed on the host operating system.
+					     
+*  Distribution - Erlang is designed to be run in a distributed
+   environment. An Erlang virtual machine is called an Erlang node. A
+   distributed Erlang system is a network of Erlang nodes (typically one
+   per processor). An Erlang node can create parallel processes running  
+   on other nodes, which perhaps use other operating systems. Processes  
+   residing on different nodes communicate in exactly the same was as   
+   processes residing on the same node.
+										                                        
+*  Robustness - Erlang has various error detection primitives which can 
+   be used to structure fault-tolerant systems. For example, processes  
+   can monitor the status and activities of other processes, even if    
+   these processes are executing on other nodes. Processes in a
+   distributed system can be configured to fail-over to other nodes in
+   case of failures and automatically migrate back to recovered nodes.
+*  Soft real-time - Erlang supports programming "soft" real-time systems,
+   which require response times in the order of milliseconds. Long
+   garbage collection delays in such systems are unacceptable, so Erlang
+   uses incremental garbage collection techniques.
+
+*  Hot code upgrade - Many systems cannot be stopped for software
+   maintenance. Erlang allows program code to be changed in a running
+   system. Old code can be phased out and replaced by new code. During  
+   the transition, both old code and new code can coexist. It is thus    
+   possible to install bug fixes and upgrades in a running system without
+   disturbing its operation.
+
+*  Incremental code loading - Users can control in detail how code is
+   loaded. In embedded systems, all code is usually loaded at boot time.
+   In development systems, code is loaded when it is needed, even when  
+   the system is running. If testing uncovers bugs, only the buggy code 
+   need be replaced.
+
+*  External interfaces - Erlang processes communicate with the outside
+   world using the same message passing mechanism as used between Erlang
+   processes. This mechanism is used for communication with the host
+   operating system and for interaction with programs written in other
+   languages. If required for reasons of efficiency, a special version of
+   this concept allows e.g. C programs to be directly linked into the
+   Erlang runtim
+
+The how's and why of Erlang are discussed at the website
+at: http://erlang.org
+
+Enjoy Erlang! :-)
+
+Brent A. Fulgham <bfulgham@debian.org>  Sat, 10 Aug 2002 23:16:47 -0700
+
+
+----------------
+
+This project (Erlang for Debian) is hosted on Alioth:
+
+https://alioth.debian.org/projects/pkg-erlang/ (project page)
+svn://svn.debian.org/svn/pkg-erlang/erlang/trunk/ (SVN)
+http://svn.debian.org/wsvn/pkg-erlang/erlang/trunk/ (browse SVN)
+mailto:pkg-erlang-devel@lists.alioth.debian.org (mailing list)
+
+----------------
+
+Note, that if you want to get Erlang documentation, you'll have to
+install erlang-manpages (for manual pages) and/or erlang-doc
+(for docs in HTML and PDF).
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 12 Oct 2010 11:02:27 +0400
--- erlang-14.a-dfsg.orig/debian/control
+++ erlang-14.a-dfsg/debian/control
@@ -0,0 +1,673 @@
+Source: erlang
+Maintainer: Debian Erlang Packagers <pkg-erlang-devel@lists.alioth.debian.org>
+Uploaders: Sergei Golovan <sgolovan@debian.org>
+Section: interpreters
+Priority: optional
+Standards-Version: 3.9.1
+Build-Depends: debhelper (>= 5.0.0), autoconf (>= 2.50), openssl, libssl-dev, m4,
+ libncurses5-dev, quilt, autotools-dev, unixodbc-dev, bison, flex,
+ libwxgtk2.8-dev, dctrl-tools, xsltproc,
+ libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev,
+ libsctp-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64 !solaris-i386],
+ kfreebsd-kernel-headers [kfreebsd-i386 kfreebsd-amd64]
+Build-Depends-Indep: fop, default-jdk | sun-java6-jdk
+Build-Conflicts: autoconf2.13, libwxgtk2.4-dev, libwxgtk2.6-dev
+Homepage: http://www.erlang.org/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-erlang/erlang/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-erlang/erlang/trunk/
+
+Package: erlang-base
+Architecture: any
+Depends: ${procps:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Recommends: ${libsctp:Version}, erlang-crypto (= ${binary:Version}), erlang-syntax-tools (= ${binary:Version})
+Suggests: erlang-tools (= ${binary:Version}),  erlang, erlang-manpages, erlang-doc
+Conflicts: erlang (<< ${source:Version}), erlang-base-hipe, erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2), erlang-doc-html (<< 1:13.b.4)
+Replaces: erlang (<< ${source:Version}), erlang-base-hipe, erlang-nox (<< ${source:Version}), erlang-x11 (<< ${source:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2), erlang-doc-html (<< 1:13.b.4)
+Provides: erlang-abi-13.a
+Description: Erlang/OTP virtual machine and base applications
+ This package contains the Erlang/OTP runtime implementation, which is
+ configured and built without HiPE support (compiles to byte-code only),
+ and minimal set of Erlang applications:
+  compiler - compiles Erlang code to byte-code;
+  erts - the Erlang runtime system application;
+  kernel - code necessary to run the Erlang runtime system itself;
+  sasl - the system architecture support libraries application;
+  stdlib - modules for manipulating lists, strings, files etc.
+
+
+Package: erlang-base-hipe
+Architecture: amd64 i386 powerpc sparc solaris-i386
+Priority: extra
+Depends: ${procps:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Recommends: ${libsctp:Version}, erlang-crypto (= ${binary:Version}), erlang-syntax-tools (= ${binary:Version})
+Suggests: erlang-edoc (= ${binary:Version}), erlang-gs (= ${binary:Version}), erlang-tools (= ${binary:Version}), erlang, erlang-manpages, erlang-doc
+Conflicts: erlang (<< ${source:Version}), erlang-base, erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2), erlang-doc-html (<< 1:13.b.4)
+Replaces: erlang (<< ${source:Version}), erlang-base, erlang-nox (<< ${source:Version}), erlang-x11 (<< ${source:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2), erlang-doc-html (<< 1:13.b.4)
+Provides: erlang-abi-13.a
+Description: Erlang/OTP HiPE enabled virtual machine and base applications
+ This package contains the Erlang/OTP runtime implementation, which is
+ configured and built with HiPE support (allows compiling to native code),
+ and minimal set of Erlang applications:
+  compiler - compiles Erlang code to byte-code;
+  erts - the Erlang runtime system application;
+  kernel - code necessary to run the Erlang runtime system itself;
+  sasl - the system architecture support libraries application;
+  stdlib - modules for manipulating lists, strings, files etc.
+
+
+Package: erlang-appmon
+Architecture: any
+Depends: ${erlang-base}, erlang-inets (= ${binary:Version}), erlang-gs (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP application monitor
+ The Application Monitor, Appmon, is a graphical utility used to supervise
+ Erlang applications executing either locally or on remote Erlang nodes.
+ The process tree of an application can furthermore be monitored.
+
+
+Package: erlang-asn1
+Architecture: any
+Depends: ${erlang-base}, erlang-syntax-tools (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP modules for ASN.1 support
+ The Asn1 application contains modules with compile-time and run-time
+ support for ASN.1 in Erlang/OTP.
+
+
+Package: erlang-common-test
+Architecture: any
+Depends: ${erlang-base}, erlang-crypto (= ${binary:Version}), erlang-debugger (= ${binary:Version}), erlang-inets (= ${binary:Version}), erlang-runtime-tools (= ${binary:Version}), erlang-snmp (= ${binary:Version}), erlang-ssh (= ${binary:Version}), erlang-test-server (= ${binary:Version}), erlang-tools (= ${binary:Version}), erlang-webtool (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP application for automated testing
+ Common Test is a portable application for automated testing. It is
+ suitable for black-box testing of target systems of any type (i.e.
+ not necessarily implemented in Erlang), as well as for white-box
+ testing of Erlang/OTP programs. Black-box testing is performed via
+ standard interfaces (such as SNMP, HTTP, Corba, Telnet, etc) and,
+ if required, via user specific interfaces (often called test ports).
+ White-box testing of Erlang/OTP programs is easily accomplished by
+ calling the target API functions directly from the test case functions.
+ Common Test also integrates usage of the OTP cover tool for code
+ coverage analysis of Erlang/OTP programs.
+
+
+Package: erlang-corba
+Architecture: any
+Depends: ${erlang-base}, erlang-inets (= ${binary:Version}), erlang-mnesia (= ${binary:Version}), erlang-ssl (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP applications for CORBA support
+ The Orber application is an Erlang implementation of a CORBA
+ Object Request Broker.
+ .
+ The cosEvent application is an Erlang implementation of a CORBA
+ Service CosEvent.
+ .
+ The cosEventDomain application is an Erlang implementation of a
+ CORBA Service CosEventDomainAdmin.
+ .
+ The cosFileTransfer Application is an Erlang implementation of
+ the OMG CORBA File Transfer Service.
+ .
+ The cosNotification application is an Erlang implementation of
+ the OMG CORBA Notification Service.
+ .
+ The cosProperty Application is an Erlang implementation of the
+ OMG CORBA Property Service.
+ .
+ The cosTime application is an Erlang implementation of the OMG
+ CORBA Time and TimerEvent Services.
+ .
+ The cosTransactions application is an Erlang implementation of
+ the OMG CORBA Transaction Service.
+
+
+Package: erlang-crypto
+Architecture: any
+Depends: ${erlang-base}, ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP cryptographic modules
+ The Crypto Application provides functions for computation of message
+ digests, encryption and decryption functions. It uses OpenSSL for
+ actual calculations.
+
+
+Package: erlang-debugger
+Architecture: any
+Depends: ${erlang-base}, erlang-gs (= ${binary:Version}), erlang-wx (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP application for debugging and testing
+ Debugger is a graphical tool which can be used for debugging and
+ testing of Erlang programs. For example, breakpoints can be set,
+ code can be single stepped and variable values can be inspected
+ and modified.
+
+
+Package: erlang-dialyzer
+Architecture: any
+Depends: ${erlang-base}, erlang-syntax-tools (=${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang-gs (= ${binary:Version}), erlang-wx (= ${binary:Version}), erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP discrepancy analyzer application
+ Dialyzer is a static analysis tool that identifies software
+ discrepancies such as type errors, unreachable code, unnecessary
+ tests etc. in single Erlang modules or entire (sets of) applications.
+
+
+Package: erlang-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: erlang
+Conflicts: erlang-doc-html, erlang-base (<< 1:13.b.4), erlang-base-hipe (<< 1:13.b.4)
+Replaces: erlang-doc-html
+Provides: erlang-doc-html
+Description: Erlang/OTP HTML/PDF documentation
+ Documentation for the Erlang programming language and OTP
+ library in HTML and PDF formats.
+
+
+Package: erlang-docbuilder
+Architecture: any
+Depends: ${erlang-base}, erlang-edoc (= ${binary:Version}), erlang-xmerl (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP application for building HTML documentation
+ DocBuilder provides functionality for generating HTML documentation
+ for Erlang modules and Erlang/OTP applications from XML source code
+ and/or EDoc comments in Erlang source code.
+
+
+Package: erlang-edoc
+Architecture: any
+Depends: ${erlang-base}, erlang-inets (= ${binary:Version}), erlang-syntax-tools (=${binary:Version}), erlang-xmerl (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP module for generating documentation
+ EDoc is the Erlang program documentation generator. Inspired by the
+ Javadoc tool for the Java programming language, EDoc is adapted to
+ the conventions of the Erlang world.
+
+
+Package: erlang-erl-docgen
+Architecture: any
+Depends: ${erlang-base}, ${misc:Depends}
+Suggests: xsltproc, fop, erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP documentation stylesheets
+ The erl_docgen package includes XSLT stylesheets and document type
+ definitions used for Erlang/OTP documentation. They allow to
+ transform documentation to manpage, HTML, and PDF formats.
+
+
+Package: erlang-et
+Architecture: any
+Depends: ${erlang-base}, erlang-gs (= ${binary:Version}), erlang-runtime-tools (= ${binary:Version}), erlang-wx (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP event tracer application
+ The Event Tracer (ET) uses the built-in trace mechanism in Erlang
+ and provides tools for collecting and examining trace data using GUI.
+
+
+Package: erlang-eunit
+Architecture: any
+Depends: ${erlang-base}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP module for unit testing
+ The EUnit application contains modules with support for unit testing.
+
+
+Package: erlang-gs
+Architecture: any
+Depends: ${erlang-base}, ${misc:Depends}, tk | wish
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP graphics system
+ The Graphics System application, GS, is a library of routines for
+ writing graphical user interfaces. Programs written using GS work
+ on all Erlang platforms and do not depend upon the underlying
+ windowing system. It uses Tk widgets for visualization.
+
+
+Package: erlang-ic
+Architecture: any
+Depends: ${erlang-base}, ${misc:Depends}
+Suggests: erlang-ic-java, erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP IDL compiler
+ The IC application is an Erlang implementation of an IDL (CORBA Interface
+ Definition Language) compiler. Depending on the choice of back-end the
+ code will map to Erlang, C, or Java. The compiler generates client stubs
+ and server skeletons.
+
+
+Package: erlang-ic-java
+Architecture: all
+Depends: erlang-jinterface, erlang-ic (>= ${binary:Version}), erlang-ic (<< ${binary:Version}.0), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP IDL compiler (Java classes)
+ The IC application is an Erlang implementation of an IDL (CORBA Interface
+ Definition Language) compiler. Depending on the choice of back-end the
+ code will map to Erlang, C, or Java. The compiler generates client stubs
+ and server skeletons.
+ .
+ This package includes classes for Java-Erlang communication.
+
+
+Package: erlang-inets
+Architecture: any
+Depends: ${erlang-base}, erlang-mnesia (= ${binary:Version}), erlang-runtime-tools (= ${binary:Version}), erlang-ssl (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP Internet clients and servers
+ Inets is a container for Internet clients and servers. Currently
+ a FTP client, a HTTP client and server, and a TFTP client and
+ server are provided in Inets.
+
+
+Package: erlang-inviso
+Architecture: any
+Depends: ${erlang-base}, erlang-runtime-tools (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP trace tool
+ Inviso, an Erlang trace tool. With the inviso API, runtime components
+ can be started and tracing managed across a network of distributed
+ Erlang nodes, using a control component also started with inviso API
+ functions.
+
+Package: erlang-manpages
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: erlang, erlang-doc
+Description: Erlang/OTP manual pages
+ Documentation for the Erlang programming language in `man' format. This
+ documentation can be read using the command `erl -man mod', where `mod'
+ is the name of the module you want documentation on.
+ .
+ This package contains all Erlang/OTP manual pages from sections other
+ than 1. They document Erlang/OTP modules, config files and applications.
+
+Package: erlang-megaco
+Architecture: any
+Depends: ${erlang-base}, erlang-asn1 (= ${binary:Version}), erlang-et (= ${binary:Version}), erlang-runtime-tools (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang-debugger (= ${binary:Version}), erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP implementation of Megaco/H.248 protocol
+ The Megaco application is a framework for building applications on
+ top of the Megaco/H.248 protocol.
+
+
+Package: erlang-mnesia
+Architecture: any
+Depends: ${erlang-base}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP distributed relational/object hybrid database
+ Mnesia is a distributed Database Management System (DBMS), appropriate
+ for telecommunications applications and other Erlang applications
+ which require continuous operation and exhibit soft real-time properties.
+
+
+Package: erlang-observer
+Architecture: any
+Depends: ${erlang-base}, erlang-et (= ${binary:Version}), erlang-gs (= ${binary:Version}), erlang-inets (= ${binary:Version}), erlang-runtime-tools (= ${binary:Version}), erlang-webtool (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP application for investigating distributed systems
+ The OBSERVER application contains tools for tracing and investigation of
+ distributed systems. They include etop - a tool for presenting information
+ about Erlang processes, and crashdump_viewer - a HTML based tool for
+ browsing Erlang crashdumps.
+
+
+Package: erlang-odbc
+Architecture: any
+Depends: ${erlang-base}, ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP interface to SQL databases
+ The Erlang ODBC application provides an interface for accessing
+ relational SQL databases from Erlang.
+
+
+Package: erlang-os-mon
+Architecture: any
+Depends: ${erlang-base}, erlang-mnesia (= ${binary:Version}), erlang-snmp (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP operating system monitor
+ The operating system monitor, OS_Mon, provides services for
+ monitoring CPU load, disk usage, memory usage and OS messages.
+
+
+Package: erlang-parsetools
+Architecture: any
+Depends: ${erlang-base}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP parsing tools
+ The Parsetools application contains utilities for parsing. Currently,
+ it includes yecc module. Yecc is an LALR-1 parser generator for Erlang,
+ similar to yacc. Yecc takes a BNF grammar definition as input, and
+ produces Erlang code for a parser as output.
+
+
+Package: erlang-percept
+Architecture: any
+Depends: ${erlang-base}, erlang-inets (= ${binary:Version}), erlang-runtime-tools (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP concurrency profiling tool
+ Percept is a tool which visualizes application level concurrency and
+ helps to identify concurrency bottlenecks.
+
+
+Package: erlang-pman
+Architecture: any
+Depends: ${erlang-base}, erlang-gs (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP process manager
+ The process manager Pman is a graphical tool used to inspect the
+ Erlang processes executing either locally or on remote Erlang nodes.
+ It also allows to trace events in the individual processes.
+
+
+Package: erlang-public-key
+Architecture: any
+Depends: ${erlang-base}, erlang-crypto (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP public key infrastructure
+ Provides functions to handle public key infrastructure from RFC 3280
+ (X.509 certificates) and some parts of the PKCS-standard.
+
+
+Package: erlang-reltool
+Architecture: any
+Depends: ${erlang-base}, erlang-syntax-tools (= ${binary:Version}), erlang-tools (= ${binary:Version}), erlang-wx (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP release management tool
+ Reltool is a release management tool. It analyses a given Erlang/OTP
+ installation and determines dependencies between applications. The
+ graphical frontend depicts the dependencies and enables interactive
+ customization of a target system. The backend provides a batch
+ interface for generation of customized target systems.
+
+
+Package: erlang-runtime-tools
+Architecture: any
+Depends: ${erlang-base}, ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP runtime tracing/debugging tools
+ Runtime_Tools provides low-footprint tracing/debugging tools suitable
+ for inclusion in a production system.
+
+
+Package: erlang-snmp
+Architecture: any
+Depends: ${erlang-base}, erlang-crypto (= ${binary:Version}), erlang-mnesia (= ${binary:Version}), erlang-runtime-tools (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP SNMP applications
+ A multilingual Simple Network Management Protocol application features
+ an Extensible Agent, simple manager, a MIB compiler and facilities for
+ implementing SNMP MIBs etc.
+ .
+ The OTP_Mibs application provides an SNMP management information base
+ for Erlang nodes.
+
+
+Package: erlang-ssh
+Architecture: any
+Depends: ${erlang-base}, erlang-crypto (= ${binary:Version}), erlang-public-key (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP implementation of SSH protocol
+ The SSH application is an erlang implementation of the secure
+ shell protocol.
+
+
+Package: erlang-ssl
+Architecture: any
+Depends: ${erlang-base}, erlang-crypto (= ${binary:Version}), erlang-public-key (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP implementation of SSL
+ The SSL application provides secure communication over sockets.
+
+
+Package: erlang-syntax-tools
+Architecture: any
+Depends: ${erlang-base}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP modules for handling abstract Erlang syntax trees
+ Syntax_Tools contains modules for handling abstract Erlang syntax
+ trees in a way that is compatible with the "parse trees" of the
+ STDLIB module erl_parse, together with utilities for reading source
+ files in unusual ways and pretty-printing syntax trees. Also it
+ includes a module merger and renamer called Igor, as well as an
+ automatic code-cleaner.
+
+
+Package: erlang-test-server
+Architecture: any
+Depends: ${erlang-base}, erlang-observer (= ${binary:Version}), erlang-runtime-tools (= ${binary:Version}), erlang-tools (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP server for automated application testing
+ Test Server is a portable test server for automated application testing.
+ The server can run test suites on local or remote targets and log
+ progress and results to HTML pages. The main purpose of Test Server
+ is to act as engine inside customized test tools. A callback interface
+ for such framework applications is provided.
+
+
+Package: erlang-toolbar
+Architecture: any
+Depends: ${erlang-base}, erlang-gs (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP graphical toolbar
+ The Toolbar application simplifies access to the Erlang/OTP tools.
+ It consists of a number of buttons, one for each available tool.
+
+
+Package: erlang-tools
+Architecture: any
+Depends: ${erlang-base}, erlang-inets (= ${binary:Version}), erlang-runtime-tools (= ${binary:Version}), erlang-webtool (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP various tools
+ The Tools application contains a number of stand-alone tools, which are
+ useful when developing Erlang programs.
+ .
+  cover - A coverage analysis tool for Erlang.
+  cprof - A profiling tool that shows how many times each function
+    is called. Uses a kind of local call trace breakpoints containing
+    counters to achieve very low runtime performance degradation.
+  eprof - A time profiling tool; measures how time is used in Erlang
+    programs. Predecessor of fprof (see below).
+  fprof - Another Erlang profiler; measures how time is used in Erlang
+    programs. Uses trace to file to minimize runtime performance
+    impact, and displays time for calling and called functions.
+  instrument - Utility functions for obtaining and analyzing resource
+    usage in an instrumented Erlang runtime system.
+  make - A make utility for Erlang similar to UNIX make.
+  tags - A tool for generating Emacs TAGS files from Erlang source
+    files.
+  xref - A cross reference tool. Can be used to check dependencies
+    between functions, modules, applications and releases.
+
+
+Package: erlang-tv
+Architecture: any
+Depends: ${erlang-base}, erlang-gs (= ${binary:Version}), erlang-mnesia (= ${binary:Version}), erlang-pman (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP table viewer
+ The TV application allows the user to examine ETS and Mnesia tables.
+ Once a certain table has been opened in the tool, its content may be
+ viewed in various levels of detail.
+
+
+Package: erlang-typer
+Architecture: any
+Depends: ${erlang-base}, erlang-dialyzer (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP code type annotator
+ TypEr is a tool that displays and automatically inserts type annotations
+ in Erlang code. It uses Dialyzer to infer variable types.
+
+
+Package: erlang-webtool
+Architecture: any
+Depends: ${erlang-base}, erlang-inets (= ${binary:Version}), ${misc:Depends}
+Suggests: erlang-observer (= ${binary:Version}), erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP helper for web-based tools
+ WebTool provides an easy way to use web-based tools with Erlang/OTP.
+ It configures and starts a web server as well as all available tools.
+
+
+Package: erlang-wx
+Architecture: any
+Depends: ${erlang-base}, ${shlibs:Depends}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP bindings to wxWidgets
+ The wxErlang application is an API for writing graphical user
+ interfaces with wxWidgets.
+
+
+Package: erlang-xmerl
+Architecture: any
+Depends: ${erlang-base}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${source:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2), erlang-doc (<< ${source:Upstream-Version}), erlang-doc (>> ${source:Upstream-Version}-999), erlang-manpages (<= 1:11.b.1-2)
+Description: Erlang/OTP XML tools
+ The xmerl application contains modules for processing XML.
+
+
+Package: erlang-dev
+Architecture: any
+Depends: ${erlang-base}, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${source:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${binary:Version}), erlang-x11 (<< ${binary:Version}), erlang-src (<< ${source:Version}), erlang-examples (<< ${source:Version}), erlang-mode (<< 1:12.b.1-dfsg-2)
+Description: Erlang/OTP development libraries and headers
+ The files for application development in Erlang. They include headers for
+ all applications included into Erlang/OTP distribution and C interface
+ libraries.
+
+
+Package: erlang-src
+Architecture: all
+Depends: erlang-base (>= ${binary:Version}) | erlang-base-hipe (>= ${binary:Version}), erlang-base (<< ${binary:Version}.0) | erlang-base-hipe (<< ${binary:Version}.0), ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${binary:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${binary:Version}), erlang-x11 (<< ${binary:Version}), erlang-dev (<< ${binary:Version}), erlang-examples (<< ${binary:Version}), erlang-mode (<< 1:12.b.1-dfsg-2)
+Description: Erlang/OTP applications sources
+ Erlang sources for all the applications in the Erlang/OTP system.
+ They are useful for educational purpose and as a base for creating
+ embedded systems.
+
+
+Package: erlang-examples
+Architecture: all
+Depends: erlang-base (>= ${binary:Version}) | erlang-base-hipe (>= ${binary:Version}), erlang-base (<< ${binary:Version}.0) | erlang-base-hipe (<< ${binary:Version}.0), ${misc:Depends}
+Recommends: erlang-asn1, erlang-gs, erlang-megaco, erlang-snmp, erlang-ssl, erlang-syntax-tools, erlang-wx
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang (<< ${binary:Version}), erlang-base (<< ${binary:Version}), erlang-base-hipe (<< ${binary:Version}), erlang-nox (<< ${binary:Version}), erlang-x11 (<< ${binary:Version}), erlang-dev (<< ${binary:Version}), erlang-src (<< ${binary:Version}), erlang-mode (<< 1:12.b.1-dfsg-2)
+Description: Erlang/OTP application examples
+ The examples, included in the Erlang/OTP system distribution.
+
+
+Package: erlang-jinterface
+Architecture: all
+Depends: default-jre-headless | java2-runtime-headless | java1-runtime-headless | java2-runtime | java1-runtime,
+ ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Description: Java communication tool to Erlang
+ Jinterface Java package contains java classes, which help you
+ integrate programs written in Java with Erlang.
+
+Package: erlang-mode
+Architecture: all
+Depends: emacsen-common, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Replaces: erlang-base (<< 1:12.b.1-dfsg-2), erlang-base-hipe (<< 1:12.b.1-dfsg-2)
+Description: Erlang major editing mode for Emacs
+ This package includes the mode for editing Erlang programs in GNU Emacs.
+ It is provided with the default Erlang/OTP distribution. It supports
+ sophisticated indentation, syntax highlighting, electric commands,
+ module name verification, comments, skeletons, tags etc.
+
+
+Package: erlang-nox
+Architecture: all
+Depends: erlang-base | erlang-base-hipe, erlang-asn1, erlang-corba, erlang-crypto,
+ erlang-docbuilder, erlang-edoc, erlang-erl-docgen, erlang-eunit, erlang-ic,
+ erlang-inets, erlang-inviso, erlang-mnesia, erlang-odbc, erlang-os-mon,
+ erlang-parsetools, erlang-percept, erlang-public-key, erlang-runtime-tools,
+ erlang-snmp, erlang-ssh, erlang-ssl, erlang-syntax-tools, erlang-tools,
+ erlang-webtool, erlang-xmerl, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Description: Erlang/OTP applications that don't require X Window System
+ This package is a dummy package which will install all Erlang/OTP
+ applications which do not require X Window System to run.
+
+
+Package: erlang-x11
+Architecture: all
+Depends: erlang-base | erlang-base-hipe, erlang-nox, erlang-appmon, erlang-common-test,
+ erlang-debugger, erlang-dialyzer, erlang-et, erlang-gs, erlang-megaco,
+ erlang-observer, erlang-pman, erlang-reltool, erlang-test-server,
+ erlang-toolbar, erlang-tv, erlang-typer, erlang-wx, ${misc:Depends}
+Suggests: erlang, erlang-manpages, erlang-doc
+Description: Erlang/OTP applications that require X Window System
+ This package is a dummy package which will install all Erlang/OTP
+ applications which use graphical interface and therefore require
+ X Window System to run.
+
+
+Package: erlang
+Architecture: all
+Depends: erlang-base | erlang-base-hipe, erlang-dev, erlang-appmon, erlang-asn1,
+ erlang-common-test, erlang-corba, erlang-crypto, erlang-debugger,
+ erlang-dialyzer, erlang-docbuilder, erlang-edoc, erlang-erl-docgen, erlang-et,
+ erlang-eunit, erlang-gs, erlang-ic, erlang-inets, erlang-inviso,
+ erlang-megaco, erlang-mnesia, erlang-observer, erlang-odbc, erlang-os-mon,
+ erlang-parsetools, erlang-percept, erlang-pman, erlang-public-key,
+ erlang-reltool, erlang-runtime-tools, erlang-snmp, erlang-ssh, erlang-ssl,
+ erlang-syntax-tools, erlang-test-server, erlang-toolbar, erlang-tools,
+ erlang-tv, erlang-typer, erlang-webtool, erlang-wx, erlang-xmerl, ${misc:Depends}
+Recommends: erlang-jinterface, erlang-ic-java, erlang-mode, erlang-src, erlang-examples
+Suggests: erlang-manpages, erlang-doc
+Description: Concurrent, real-time, distributed functional language
+ Open Source Erlang is a functional programming language designed at
+ the Ericsson Computer Science Laboratory.
+ .
+ Some of Erlang main features are:
+  * Clear declarative syntax and is largely free from side-effects;
+  * Built-in support for real-time, concurrent and distributed programming;
+  * Designed for development of robust and continuously operated programs;
+  * Dynamic code replacement at runtime.
+ .
+ The Erlang distribution also includes OTP (Open Telecom Platform) which
+ provides a rich set of libraries and applications.
+ .
+ This package is a dummy package which will install Erlang/OTP runtime,
+ applications, sources, code examples and the Erlang editing mode for Emacs.
--- erlang-14.a-dfsg.orig/debian/erlang-mode.emacsen-install
+++ erlang-14.a-dfsg/debian/erlang-mode.emacsen-install
@@ -0,0 +1,50 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/#PACKAGE#
+
+# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=erlang
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+FLAVORTEST=`echo $FLAVOR | cut -c-6`
+if [ ${FLAVORTEST} = xemacs ] ; then
+    SITEFLAG="-no-site-file"
+else
+    SITEFLAG="--no-site-file"
+fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist. 
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+    echo install/${PACKAGE}: install Info links for ${FLAVOR}
+    install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+if [ ${FLAVOR} = emacs21 -o ${FLAVORTEST} = xemacs ]; then
+    FILES=`echo *.el | sed s/erlang-flymake.el//`
+else
+    FILES=`echo *.el`
+fi
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
+
--- erlang-14.a-dfsg.orig/debian/erlang-base.menu
+++ erlang-14.a-dfsg/debian/erlang-base.menu
@@ -0,0 +1,8 @@
+?package(erlang-base):\
+	needs="text" \
+	section="Applications/Programming" \
+	title="Erlang Shell" \
+	longtitle="Erlang shell in a terminal session" \
+	hints="Erlang" \
+	command="/usr/bin/erl" \
+	icon="/usr/share/pixmaps/erlang.xpm"
--- erlang-14.a-dfsg.orig/debian/erlang-mode.install.in
+++ erlang-14.a-dfsg/debian/erlang-mode.install.in
@@ -0,0 +1,2 @@
+usr/lib/erlang/lib/tools-@TOOLS_VSN@/emacs/*.el     usr/share/emacs/site-lisp/erlang/
+usr/lib/erlang/lib/tools-@TOOLS_VSN@/emacs/README   usr/share/doc/erlang-mode/
--- erlang-14.a-dfsg.orig/debian/erlang-doc.docs.in
+++ erlang-14.a-dfsg/debian/erlang-doc.docs.in
@@ -0,0 +1,3 @@
+debian/erlang-docs/usr/lib/erlang/doc
+debian/erlang-docs/usr/lib/erlang/erts-@VERSION@
+debian/erlang-docs/usr/lib/erlang/lib
--- erlang-14.a-dfsg.orig/debian/README.source
+++ erlang-14.a-dfsg/debian/README.source
@@ -0,0 +1,8 @@
+This package uses quilt to manage all modifications to the upstream
+source. Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To get detailed instructions on how to apply the series of patches
+and modify them, please read /usr/share/doc/quilt/README.source
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 18 Aug 2009 01:27:36 +0400
--- erlang-14.a-dfsg.orig/debian/erlang-webtool.manpages
+++ erlang-14.a-dfsg/debian/erlang-webtool.manpages
@@ -0,0 +1 @@
+debian/erlang-docs/usr/lib/erlang/man/man1/start_webtool.1
--- erlang-14.a-dfsg.orig/debian/erlang-mode.emacsen-remove
+++ erlang-14.a-dfsg/debian/erlang-mode.emacsen-remove
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/#PACKAGE#
+
+FLAVOR=$1
+PACKAGE=erlang
+
+if [ ${FLAVOR} != emacs ]; then
+    if test -x /usr/sbin/install-info-altdir; then
+        echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+        install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/#PACKAGE#.info.gz
+    fi
+
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
--- erlang-14.a-dfsg.orig/debian/erlang-dialyzer.links
+++ erlang-14.a-dfsg/debian/erlang-dialyzer.links
@@ -0,0 +1 @@
+usr/lib/erlang/bin/dialyzer	usr/bin/dialyzer
--- erlang-14.a-dfsg.orig/debian/erlang-common-test.manpages
+++ erlang-14.a-dfsg/debian/erlang-common-test.manpages
@@ -0,0 +1 @@
+debian/erlang-docs/usr/lib/erlang/man/man1/run_test.1
--- erlang-14.a-dfsg.orig/debian/erlang-base-hipe.postinst
+++ erlang-14.a-dfsg/debian/erlang-base-hipe.postinst
@@ -0,0 +1,93 @@
+#! /bin/sh
+# postinst script for erlang-base-hipe
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> configure <most-recently-configured-version>
+#        * <old-postinst> abort-upgrade <new-version>
+#        * <conflictor's-postinst> abort-remove in-favour <package> <new-version>
+#        * <postinst> abort-remove
+#        * <deconfigured's-postinst> abort-deconfigure in-favour <failed-install-package> <version> \
+#				     removing <conflicting-package> <version>
+# for details, see /usr/doc/packaging-manual/
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the <postinst> is called with abort-upgrade,
+#     abort-remove or abort-deconfigure.
+
+case "$1" in
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    configure)
+	if [ -z "$2" ] || dpkg --compare-versions "$2" ge-nl "1:10.b.10-3" ; then
+	    echo -n "Searching for services which depend on erlang and should be started..."
+	    # find all init scripts and packages they belong
+	    inits=$(dpkg -S '/etc/init.d/*' 2>/dev/null | sed -e's:/etc/init.d/::')
+	    # filter the list of the packages
+	    packs=$(echo $inits | sed -e's/:[[:space:]]\+[^[:space:]]*//g' | sed -e's/ /\n/g' | sort -u)
+	    # find packages, which depend on erlang
+	    packs=$(dpkg -s $packs 2>/dev/null | egrep '^Package:|^Status:|^Depends' | awk '{if ($1 ~ /^Package:/) {package=$2;inst=0} else if ($0 ~ /^Status:.* installed$/) {inst=1} else if ((inst==1) && ($0 ~ /^Depends:.* erlang/)) {print package}}')
+	    # construct services list from the packages
+	    services=""
+	    for p in $packs ; do
+		service=$(echo $inits | sed -e's/\([^:]\) /\1\n/g' | awk "/^$p:/ {print \$2}")
+		services="$services $service"
+	    done
+	    services=$(echo $services | tr '\n' ' ' | sed -e's/\(^[[:space:]]*\|[[:space:]]*$\)//g')
+
+	    if [ -z "$services" ] ; then
+		echo "none found."
+	    else
+		echo "found: $services."
+		echo "Starting services which depend on erlang"
+		rl=$(runlevel | awk '{print $2}')
+		failed=""
+		for service in $services ; do
+		    if [ -f /usr/share/file-rc/rc -o -f /usr/lib/file-rc/rc ] && [ -f /etc/runlevel.conf ] ; then
+			idl=$(filerc $rl $service)
+		    else
+			idl=$(ls /etc/rc${rl}.d/S??${service} 2> /dev/null | head -1)
+		    fi
+		    if [ -n "$idl" ] ; then
+			echo -n "  $service: starting..."
+			if $idl start > /dev/null 2>&1 ; then
+			    echo "done."
+			else
+			    echo "failed. ($?)"
+			    failed="$failed $service"
+			fi
+		    fi
+		done
+		if [ -n "$failed" ] ; then
+		    echo "The following services failed to start: $failed."
+		    echo
+		    echo "You will need to start them manually by running \`/etc/init.d/<service> start'"
+		    echo "If the service still fails to start, you may need to file a bug on"
+		    echo "\`erlang' package or the service involved."
+		else
+		    echo "Services started successfully."
+		fi
+	    fi
+	fi
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
--- erlang-14.a-dfsg.orig/debian/erlang-doc.doc-base.erlang-html
+++ erlang-14.a-dfsg/debian/erlang-doc.doc-base.erlang-html
@@ -0,0 +1,9 @@
+Document: erlang-html
+Title: Erlang Documentation
+Author: Ericsson
+Abstract: Documentation for the Erlang programming language
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/erlang-doc/doc/index.html
+Files: /usr/share/doc/erlang-doc/doc/*
--- erlang-14.a-dfsg.orig/debian/changelog
+++ erlang-14.a-dfsg/debian/changelog
@@ -0,0 +1,1477 @@
+erlang (1:14.a-dfsg-3squeeze1) stable; urgency=low
+
+  * Added patch by upstream which fixed CVE-2011-0766 (cryptographic weakness)
+    in Erlang SSH application (closes: #628456).
+
+ -- Sergei Golovan <sgolovan@debian.org>  Fri, 13 Jan 2012 23:37:04 +0400
+
+erlang (1:14.a-dfsg-3) unstable; urgency=low
+
+  * Fixed a few spelling errors in packages descriptions and Debian changelog
+    entries (closes: #592995, #597464).
+  * Applised patch by upstream which fixes wx application crash
+    (closes: #592821).
+  * Switched to the old OpenSSL-based SSL implementation by default (it is
+    still less buggy then the new one written in Erlang).
+  * Enabled IPv6 for odbcserver and prefer IPv4 in odbc.erl to make odbc
+    application working in IPv6-only environment (closes: #598525).
+  * Overridden lintian error mesage about embedded pcre3 library because it
+    is patched and cannot be replaced by a system one.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 14 Nov 2010 12:25:50 +0300
+
+erlang (1:14.a-dfsg-2) unstable; urgency=low
+
+  * Don't bytecompile erlang-flymake.el for Emacs flavors emacs21 and for
+    all versions of XEmacs because they don't contain flymake
+    (closes: #588474).
+  * Bumped standards version to 3.9.1.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 01 Aug 2010 15:08:02 +0400
+
+erlang (1:14.a-dfsg-1) unstable; urgency=low
+
+  * New upstream release.
+  * Refreshed patches.
+  * Removed fix for re:compile/2 crash for a long regular expression because
+    it is already included into the upstream source.
+  * Since run_test is now a binary change the way it's put into the
+    erlang-common-test package.
+  * Split out architecture-independent erlang-ic-java package with Java
+    classes. This also moves Java build-dependencies to build-depends-indep.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 27 Jun 2010 17:39:38 +0400
+
+erlang (1:13.b.4-dfsg-6) unstable; urgency=low
+
+  * Fixed bashism in debian/rules (closes: #581450).
+  * Added conflict of erlang-doc package with older erlang-base and
+    erlang-base-hipe packages to prevent broken situation with erlang-base
+    from stable (1:12.b.5) and erlang-doc from testing (1:13.b.4).
+  * Added sun-java6-jdk as an alternative build dependency to make backporting
+    to lenny and building on a headless machine possible.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 09 Jun 2010 16:28:42 +0400
+
+erlang (1:13.b.4-dfsg-5) unstable; urgency=low
+
+  * Added missing symlinks to /usr/include for a few new header files.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Thu, 22 Apr 2010 21:33:51 +0400
+
+erlang (1:13.b.4-dfsg-4) unstable; urgency=medium
+
+  * Fixed generation of ${erlang-base:Depends} and ${erlang-x11:Depends}
+    substitution variables.
+  * Added a fix for a re:compile/2 crash on a long regular expression.
+  * Changed urgency to medium as the change fixes a security bug.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sat, 20 Mar 2010 09:02:05 +0300
+
+erlang (1:13.b.4-dfsg-3) unstable; urgency=low
+
+  * Manpages in section 1 are needed even if only arch-dependent packages are
+    built. So, re-enabled them.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 09 Mar 2010 17:34:57 +0300
+
+erlang (1:13.b.4-dfsg-2) unstable; urgency=low
+
+  * Fixed HiPE architecture recognition for powerpc Debian architecture.
+  * Moved xsltproc and fop to build-depends-indep and do not build
+    documentation if only architecture-specific packages are built.
+  * Refreshed all patches.
+  * Made Emacs look in man5 and man7 for Erlang manpages and added code
+    skeleton files to erlang-mode package.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Mon, 08 Mar 2010 21:15:39 +0300
+
+erlang (1:13.b.4-dfsg-1) unstable; urgency=low
+
+  * New upstream release.
+  * Moved manpages from incorrect sections 4 and 6 to correct 5 and 7
+    (closes: #498492).
+  * Made manpages regexp in Emacs mode match only 3erl pages in section 3.
+  * Removed docb_gen script which is no longer needed to build manpages.
+  * Added erlang-doc package which contains documentation in HTML and PDF
+    formats. This package replaces erlang-doc-html package and it's easier
+    to synchronize it with the main Erlang packages as it's built from
+    a single source package (closes: #558451).
+  * Removed RPATH from ssl and crypto application binaries as required by
+    Debian policy.
+  * Added libwxgtk2.4-dev and libwxgtk2.6-dev to build conflicts.
+  * Added a few dependencies for erlang-dialyzer, erlang-et, erlang-observer
+    and erlang-examples packages which now call functions from more modules
+    than in 1:13.b.3.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Fri, 05 Mar 2010 09:37:11 +0300
+
+erlang (1:13.b.3-dfsg-5) unstable; urgency=low
+
+  * Added a workaround which disables vfork() for hppa architecture
+    (closes: #562218).
+
+ -- Sergei Golovan <sgolovan@debian.org>  Mon, 22 Feb 2010 10:49:00 +0300
+
+erlang (1:13.b.3-dfsg-4) unstable; urgency=low
+
+  * Strictened check for JDK 1.5 adding a call to String(int[], int, int)
+    because GCJ 4.4 doesn't implement it and OpenJDK isn't available for all
+    architectures.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sat, 13 Feb 2010 10:28:44 +0300
+
+erlang (1:13.b.3-dfsg-3) unstable; urgency=low
+
+  * Fixed erlang-manpages package section.
+  * Made erlang-depends add only substvars which are requested in
+    debian/control file. This minimizes number of warnings from dh_gencontrol.
+    Also, improved descriptions of the functions in erlang-depends escript.
+  * Added erlang-erl-docgen package to erlang-nox dependencies.
+  * Made dummy packages erlang-nox and erlang-x11 architecture all.
+  * Cleaned up working with custom substitution variables in debian/rules.
+  * Reorganized debian/rules to ensure that manpages aren't built twice, and
+    aren't built at all if only architecture-dependent packages are requested.
+  * Fixed project links in README.Debian.
+  * Added a new package erlang-jinterface which provides tools for
+    communication of Java programs with Erlang processes. This adds build
+    dependency on default-jdk and as a result enables Java module for IDL
+    compiler.
+  * Bumped standards version to 3.8.4.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 07 Feb 2010 15:01:16 +0300
+
+erlang (1:13.b.3-dfsg-2) unstable; urgency=low
+
+  * Fixed dialyzer(1) manpage which was placed into section 3 and conflicted
+    with dialyzer(3erl).
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 20 Dec 2009 09:03:40 +0300
+
+erlang (1:13.b.3-dfsg-1) unstable; urgency=low
+
+  * New upstream release (it adds a new binary package erlang-erl-docgen).
+  * Refreshed patches, removed most of emacs.patch which is applied upstream.
+  * Linked run_test binary from erlang-common-test package to /usr/bin.
+  * Fixed VCS headers in debian/control.
+  * Moved from prebuilt manpages to generated from sources. This adds
+    erlang-manpages binary package and xsltproc build dependency.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sat, 19 Dec 2009 19:44:54 +0300
+
+erlang (1:13.b.2.1-dfsg-1) unstable; urgency=low
+
+  * New upstream release (closes: #539269).
+  * New maintainer's email address pkg-erlang-devel@lists.alioth.debian.org
+    mailing list.
+  * Overridden another lintian warning about image file in /usr/lib.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Fri, 25 Sep 2009 23:45:31 +0400
+
+erlang (1:13.b.1-dfsg-6) unstable; urgency=low
+
+  * Restored debug info in beam files for default build. It's better to use
+    more space than to ship broken modules (debugger, dialyzer). The patch
+    is simply commented out in debian/patches/series, so if someone has to
+    strip debug info, he can simply uncomment it.
+  * Disabled SMP support for hurd-i386 architecture, because of FTBFS in case
+    when SMP is enabled.
+  * Added debian/README.source file with a reference to
+    /usr/share/doc/quilt/README.source.
+  * Bumped standards version to 3.8.3.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 18 Aug 2009 01:29:25 +0400
+
+erlang (1:13.b.1-dfsg-5) unstable; urgency=low
+
+  * Fixed parentheses in Emacs mode (closes: #536891).
+  * Removed unnecessary conflicts with erlang-manpages package.
+  * Added workaround for #475459: disabled threads on sparc architecture.
+    This breaks wxErlang, so it's only a temporary solution.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 05 Aug 2009 20:54:29 +0400
+
+erlang (1:13.b.1-dfsg-4) unstable; urgency=low
+
+  * Made mutual dependencies of Erlang packages more parsimonious (removed
+    unnecessary dependencies following erlang-depends advise).
+  * Added several new options to erlang-depends tool (-v, -P, --ignore).
+  * Made erlang-nox and erlang-x11 transitional packages (which will be
+    removed after squeeze release).
+  * Guarded change in the m68k patch for non-m68k architectures.
+  * Fixed building Erlang VM with debug information compiled in. Added a few
+    words about debug build to README.Debian.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Fri, 24 Jul 2009 15:02:33 +0400
+
+erlang (1:13.b.1-dfsg-3) unstable; urgency=low
+
+  * Removed Torsten Werner from the uploaders list as per his request.
+  * Removed full path from epmd calls in erlang-base and erlang-base-hipe
+    prerm scripts.
+  * Added ${erlang:Depends} substvar which expands into a list of Erlang
+    packages which modules are actually used in application.
+  * Bumped standards version to 3.8.2.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 30 Jun 2009 14:13:14 +0400
+
+erlang (1:13.b.1-dfsg-2) unstable; urgency=low
+
+  * Updated manpages for section 1.
+  * Applied patch by James Henstridge, which sets ERL_COMPILE_FLAGS based on
+    DEB_BUILD_OPTIONS. By default slim runtime without debug info is built.
+    To remove slim option set DEB_BUILD_OPTION to 'nostrip', to add debug_info
+    compiler option set DEB_BUILD_OPTION to 'debug'. Or it may be set to
+    'nostrip,debug' to return to the previous level of debug information
+    (closes: #532757).
+  * Added a few words about building Erlang packages with debug info included
+    to README.Debian.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 17 Jun 2009 08:49:38 +0400
+
+erlang (1:13.b.1-dfsg-1) unstable; urgency=low
+
+  * New upstream release.
+  * Removed unnecessary dependency of erlang-os-mon on erlang-observer and
+    erlang-tools and added missing dependency of erlang-nox on erlang-os-mon
+    (closes: #529512).
+  * Removed a patch to eunit application because the bug was fixed upstream.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Thu, 11 Jun 2009 12:18:07 +0400
+
+erlang (1:13.b-dfsg1-1) unstable; urgency=low
+
+  * Removed another bunch of non-free RFCs from original tarball
+    (closes: #527053).
+  * Fixed build-dependencies list by adding missing comma. This requires
+    libsctp-dev again. Also, added libsctp1 dependency to erlang-base and
+    erlang-base-hipe packages because the shared library is loaded via
+    dlopen now and cannot be added using dh_slibdeps (closes: #526682).
+  * Weakened dependency of erlang-webtool on erlang-observer to recommends
+    to avoid circular dependencies (closes: #526627).
+  * Added solaris-i386 to HiPE enabled architectures.
+  * Made script sources in /usr/lib/erlang/erts-*/bin directory executable,
+    which is more convenient if a user wants to create a target Erlang system.
+  * Shortened extended description line for erlang-dev package to make it
+    fit 80x25 terminals.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Thu, 07 May 2009 15:07:37 +0400
+
+erlang (1:13.b-dfsg-2) unstable; urgency=low
+
+  * Cleaned up patches: removed unneeded patch which helped to support
+    different SCTP library versions, made sure that changes for m68k
+    architecture applied only when building on this architecture.
+  * Removed duplicated information from binary packages descriptions.
+  * Don't require libsctp-dev build-dependency on solaris-i386 architecture
+    which allows to build Erlang on Nexenta (thanks to Tim Spriggs for
+    the suggestion).
+
+ -- Sergei Golovan <sgolovan@debian.org>  Fri, 01 May 2009 10:14:38 +0400
+
+erlang (1:13.b-dfsg-1) experimental; urgency=low
+
+  * New upstream release.
+  * Reduced number of packaged in build dependencies (removed unnecessary
+    freeglut3-dev).
+  * Added all new packages to erlang-depends script.
+  * Put start scripts and releases sources into erlang-src package. They
+    are needed when a target Erlang system is to be created.
+  * Temporarily changed architecture of erlang-nox and erlang-x11 packages
+    from all to any. Otherwise they will be broken during transition period
+    when the new split Erlang is uploaded but isn't built on all architectures
+    yet.
+  * Added a patch which fixes backquote syntax in Erlang mode for Emacs
+    (closes: #494823). Thanks to Balint Reczey.
+  * Added a patch by upstream to eunit application. It makes eunit compatible
+    with Erlang R13B.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 22 Apr 2009 09:04:23 +0400
+
+erlang (1:13.a-dfsg-1) experimental; urgency=low
+
+  * New upstream beta release.
+  * Added packages libwxgtk2.8-dev, freeglut3-dev to build dependencies to make
+    wxErlang buildable.
+  * Split erlang-nox and erlang-x11 packages into a bunch of smaller packages
+    for individual Erlang/OTP applications. erlang-nox and erlang-x11 are still
+    exist and depend on the correspondent packages.
+  * Overridden lintian error 'embedded-zlib' because zlib included into Erlang
+    VM is patched, so using system-wide zlib will lead to unknown consequences.
+  * Bumped standards version to 3.8.1.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Fri, 10 Apr 2009 16:32:04 +0400
+
+erlang (1:12.b.5-dfsg-3) unstable; urgency=low
+
+  * Added a patch which fixes HTTP URI decoding if {packet, http} socket
+    option is used.
+  * Added a patch which fixes backquote syntax in Erlang mode for Emacs
+    (closes: #494823). Thanks to Balint Reczey.
+  * Bumped standards version to 3.8.1.
+  * Put start scripts and releases sources into erlang-src package. They
+    are needed when a target Erlang system is to be created.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 22 Apr 2009 08:54:39 +0400
+
+erlang (1:12.b.5-dfsg-2) unstable; urgency=low
+
+  * Upload to unstable after lenny is released.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 15 Feb 2009 16:42:52 +0300
+
+erlang (1:12.b.5-dfsg-1) experimental; urgency=low
+
+  * New upstream release.
+  * Removed patch which fixed detaching from a controlling terminal because
+    this bug was fixed upstream.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 05 Nov 2008 22:24:46 +0300
+
+erlang (1:12.b.4-dfsg-1) experimental; urgency=low
+
+  * New upstream release.
+  * Mangled debian version number in uscan control file debian/watch because
+    it contains -dfsg suffix.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 07 Sep 2008 21:27:27 +0400
+
+erlang (1:12.b.3-dfsg-4) unstable; urgency=low
+
+  * Fixed erlang-depends script to add optional dependency on erlang-base-hipe
+    to ${erlang-base:Depends} substvar for all architecture-independent
+    packages. Otherwise building them on different architectures will lead to
+    different dependencies.
+  * Added Vcs-Svn and Vcs-Browser headers to debian/control.
+  * Removed package libgd2-xpm-dev from build dependencies which is not
+    necessary anymore.
+  * Added a patch which fixes detaching of erlang process from a controlling
+    terminal (closes: #463538).
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 20 Jul 2008 08:12:37 +0400
+
+erlang (1:12.b.3-dfsg-3) unstable; urgency=low
+
+  * Fixed patches to re-enable building erlang regexp driver for common_test
+    application on hurd-i386 architecture.
+  * Refreshed patches and made their description more clear.
+  * Made dependencies of architecture-independent packages erlang,
+    erlang-examples and erlang-src the same regardless of whether they are
+    built on HiPE-enabled architecture or not.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Mon, 14 Jul 2008 09:18:15 +0400
+
+erlang (1:12.b.3-dfsg-2) unstable; urgency=low
+
+  * Adjusted erlang-base-hipe package priority to extra as it conflicts with
+    erlang-base.
+  * Added several substitution variables in debian/control to remove
+    dependencies on hurd and erlang-base-hipe for architectures where these
+    packages don't exist.
+  * Changed erlang-depends script to generate dependency on erlang-base-hipe
+    only for architectures where HiPE is available.
+  * Enabled kernel poll for kfreebsd-i386 and kfreebsd-amd64 architectures.
+  * Explicitly specified host and build architecture to erlang configure
+    script.
+  * Typer application requires dialyzer to work, so moved it to erlang-x11
+    package.
+  * Added a typer manpage based on typer --help output.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Fri, 11 Jul 2008 22:53:54 +0400
+
+erlang (1:12.b.3-dfsg-1) unstable; urgency=low
+
+  * New upstream release.
+  * Removed perl from build dependencies because it is build-essential.
+  * Added checks for error code 2 after quilt invocation which means that all
+    patches are already pushed/popped. This allows to convert the source
+    package to 3.0 (quilt) format.
+  * Enabled building of erlang regexp driver for kfreebsd-* and hurd-i386
+    architectures.
+  * Unconditionally enabled SMP and hybrid heap (which currently doesn't build
+    anyway) emulators in configure call.
+  * Reordered calls to dh_makeshlibs, dh_shlibdeps, dh_installdeb in
+    debian/rules.
+  * Removed unused lintian overrides from erlang-nox and erlang-src packages.
+  * Bumped standards version to 3.8.0.
+  * Fixed references to manpages from section 3 (replaced (3) by (3erl)).
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 17 Jun 2008 17:38:24 +0400
+
+erlang (1:12.b.2-dfsg-3) unstable; urgency=low
+
+  * Fixed clean target to work with debhelper 7.0 (made dh_clean the last
+    command, so debhelper logs are removed now).
+
+ -- Sergei Golovan <sgolovan@debian.org>  Thu, 01 May 2008 12:38:36 +0400
+
+erlang (1:12.b.2-dfsg-2) unstable; urgency=low
+
+  * Added a patch by Balint Reczey <balint@balintreczey.hu> which adds missing
+    SCTP_ADDR_CONFIRMED event to Erlang SCTP API (closes: #475540). To use
+    this event erlang must be build with libsctp-dev (>= 1.0.7).
+  * Moved percept application from erlang-x11 to erlang-nox because it doesn't
+    require libgd2-xpm anymore.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 15 Apr 2008 11:16:52 +0400
+
+erlang (1:12.b.2-dfsg-1) unstable; urgency=low
+
+  * New upstream release.
+  * Removed a patch which allowed to build Erlang with HiPE on i386
+    architecture with glibc 2.7 because it is included into upstream
+    distribution.
+  * Removed patch which defined MAXHOSTNAMELEN because orber doesn't need it
+    anymore on hurd-i386.
+  * Updated manual pages.
+  * Cleaned LDFLAGS environment variable when configuring rx library (in
+    common_test application) to make it work with newer GCC.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Thu, 10 Apr 2008 16:05:01 +0400
+
+erlang (1:12.b.1-dfsg-5) unstable; urgency=low
+
+  * Removed workaround for a bug in gcc-4.2 for mips and mipsel architectures.
+  * Removed workaround for a bug in gcc-4.2 for m68k architecture.
+  * Added -fno-strict-aliasing to GCC options to make casting integers to
+    pointers possible (it's a workaround for C99 rule violation).
+    Closes: #472554.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sat, 05 Apr 2008 22:46:36 +0400
+
+erlang (1:12.b.1-dfsg-4) unstable; urgency=low
+
+  * Moved README to /usr/share/doc/erlang-mode/ directory.
+  * Clarified titles in menu and desktop files.
+  * Generated run script for common_test application.
+  * Updated TODO.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 12 Mar 2008 21:58:02 +0300
+
+erlang (1:12.b.1-dfsg-3) unstable; urgency=low
+
+  * Fixed a workaround for buildd timeout while building dialyzer PLT.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 24 Feb 2008 20:03:49 +0300
+
+erlang (1:12.b.1-dfsg-2) unstable; urgency=low
+
+  * Copied Erlang Emacs mode files to /usr/share/emacs/site-lisp/erlang
+    instead of linking which allows to loosen erlang-mode dependencies. Now it
+    becomes more reliable and doesn't break in unstable until buildd compiles
+    erlang on the corresponding architecture.
+  * Moved link /usr/lib/erlang/man -> /usr/share/man from erlang-base to
+    erlang-mode package since it is used only to allow showing manpages by
+    Emacs.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 17 Feb 2008 12:27:52 +0300
+
+erlang (1:12.b.1-dfsg-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added a patch which fixes building common_test application shared library
+    on certain architectures (added -fPIC to gcc options, closes: #454615).
+  * Included stdlib.h, stdio.h and string.h headers while building common_test
+    application driver to fix implicit declaration warnings.
+  * Added explicit -lc to libraries list to fix lintian complain about static
+    linking.
+  * Reordered manpage sections in MANSECT environment variable (put 3erl to
+    the front) to minimize probability of getting unexpected manpage using
+    erl -man (closes: #458744).
+  * Added patch by Mikael Pettersson to fix HiPE enabled build on i386
+    architecture.
+  * Added a workaround for a bug in gcc-4.2 which caused FTBFS on m68k.
+  * Added homepage header to debian/control.
+  * Switched to a dependency on the default tk package instead of tk8.4.
+  * Added a check for error condition when stopping erlang-based services on
+    erlang-base or erlang-base-hipe upgrades (closes: #462138).
+  * Bumped standards version to 3.7.3.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Thu, 07 Feb 2008 00:00:10 +0300
+
+erlang (1:11.b.5dfsg-12) unstable; urgency=low
+
+  * Added a hack to prevent crashes during networking operations on m68k
+    architecture.
+  * Fixed checking for floating point exceptions on i386 architecture
+    (closes: #456868).
+  * Added extra check for existence of pgrep to make prerm script working on
+    hurd-i386 architecture.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 01 Jan 2008 15:29:36 +0300
+
+erlang (1:11.b.5dfsg-11) unstable; urgency=low
+
+  * Undefined BSD4_4 in os_mon application port driver memsup for hurd-i386
+    architecture.
+  * Skipped building SSL certificate examples on hurd-i386 architecture
+    because it has no a random translator.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Fri, 07 Dec 2007 01:18:09 +0300
+
+erlang (1:11.b.5dfsg-10) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Enabled IPv6 in ssl_esock (closes: #449304).
+  * Copied real manual pages for user commands from erlang-manpages package
+    (closes: #449100).
+  * Renamed /usr/bin/start to /usr/bin/start_embedded to prevent possible
+    confusion with /usr/bin/startx (closes: #449099).
+  * Relaxed suggested packages (removed versioned suggests) in debian/control.
+  * Adjusted HiPE architecture from ppc64 to ppc if 32-bit code is generated
+    (closes: #451505).
+  * Commented out native.diff in debian/patches/series because native code
+    requires more memory resources if the package without HiPE is used. Those
+    who want to enable native code may uncomment it and rebuild the package.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 21 Nov 2007 16:08:08 +0300
+
+erlang (1:11.b.5dfsg-9) experimental; urgency=low
+
+  * Added a patch which allows to build Erlang with HiPE on i386 architecture
+    with glibc 2.7.
+  * Build all modules with native code on architectures where HiPE is enabled.
+    This increases their size more than two times but gives a significant
+    performance gain for CPU-intensive tasks.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sat, 27 Oct 2007 21:06:55 +0400
+
+erlang (1:11.b.5dfsg-8) unstable; urgency=low
+
+  * Added alternative dependency of erlang-base and erlang-base-hipe on hurd
+    to make them installable on hurd-i386 architecture.
+  * Forced build of beam_emu.c with -O0 optimization option on mips/mipsel
+    architectures to bypass a bug in GCC 4.2 (thanks to Martin Michlmayr for
+    this workaround).
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 21 Oct 2007 16:03:31 +0400
+
+erlang (1:11.b.5dfsg-7) unstable; urgency=low
+
+  * Applied patch by Mikael Magnusson which fixes building of SCTP support
+    with libsctp-dev 1.0.7, and enabled SCTP for Linux architectures
+    (closes: #436258).
+  * Unconditionally required using clock_gettime for time correction on Linux
+    architectures. As a result, the package will not build and work on 2.4
+    kernels.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Fri, 28 Sep 2007 14:29:23 +0400
+
+erlang (1:11.b.5dfsg-6) unstable; urgency=low
+
+  * Added a script which prints out dots during dialyzer persistent lookup
+    table creating. This prevents build timeouts in buildd on a slow machines.
+  * Added build-dependency on bison.
+  * Fixed a small error in debian/rules.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 23 Sep 2007 21:13:12 +0400
+
+erlang (1:11.b.5dfsg-5) unstable; urgency=low
+
+  * Weakened dependency of erlang-x11 on tk8.4 to Recommends since this
+    package is useful even without X-Window system.
+  * Weakened dependencies of erlang on erlang-src, erlang-examples and
+    erlang-mode to make the package more robust in unstable during build
+    cycles.
+  * Moved several forgotten source directories to erlang-src.
+  * Rewritten clean target in debian/rules to ignore only missing Makefile
+    error.
+  * Made clean-patched target in debian/rules depend on patch-stamp.
+  * Moved erlang-nox and erlang-x11 menu items from Apps to Applications
+    section.
+  * Overridden lintian warning desktop-command-not-in-package since
+    /usr/bin/erl is included into a package on which erlang-nox depends.
+  * Fixed cleanup patch.
+  * Added patch which defines MAXHOSTNAMELEN. It is harmless on all Linux
+    architectures, but fixes orber building on hurd-i386.
+  * Redefined HOME environment variable to fix Erlang compiler warnings in
+    case when HOME points to an existent inaccessible directory.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 09 Sep 2007 13:09:46 +0400
+
+erlang (1:11.b.5dfsg-4) unstable; urgency=low
+
+  * Skip dialyzer during the second (HiPE enabled) build to save build time.
+  * Do not build erlang-base-hipe package on arm architecture since only
+    big-endian ARM mode is supported. As a result, patch 31arm.diff is
+    removed.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 28 Aug 2007 12:04:34 +0400
+
+erlang (1:11.b.5dfsg-3) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Added Sergei Golovan <sgolovan@debian.org> to uploaders list.
+  * Linked /usr/share/man to /usr/lib/erlang directory and added support for
+    compressed manual pages to Erlang mode. This allows to read manual pages
+    using Erlang mode for Emacs (closes: #436044).
+  * Added patch which helps to reveal certain build failures (the author is
+    Christian Faulhammer).
+  * Overridden lintian warnings about shell script skeletons in megaco
+    examples directory.
+  * Bumped debhelper compatibility level to 5.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 26 Aug 2007 21:53:10 +0400
+
+erlang (1:11.b.5dfsg-2) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Linked openssl libraries dynamically instead of new default static linking
+    which causes difficulties with security updates.
+
+ -- Torsten Werner <twerner@debian.org>  Thu, 02 Aug 2007 13:01:22 +0400
+
+erlang (1:11.b.5dfsg-1) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Fixed using incorrect original tarball in previous version. (Also,
+    dfsg suffix indicates changes with respect to original distribution.)
+  * Added a check for prebuilt binaries and non-free docs to debian/rules.
+
+ -- Torsten Werner <twerner@debian.org>  Sun, 29 Jul 2007 13:58:34 +0400
+
+erlang (1:11.b.5-1) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * New upstream release (fixes FTBFS with glibc 2.6, closes: #434342).
+  * Removed patch which fixed Delete key binding in Erlang mode for emacs
+    since it is included into upstream distribution.
+  * Added build-arch and build-indep targets to debian/rules (they are
+    equivalent to build target since the whole build is required to create
+    architecture-dependent and architecture-independent packages).
+
+ -- Torsten Werner <twerner@debian.org>  Tue, 26 Jun 2007 17:49:41 +0400
+
+erlang (1:11.b.4-4) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Made erlang-base and erlang-base-hipe provide virtual package
+    erlang-abi-11.b.3 (the number means the first erlang version, which
+    provides current ABI). Its version must be changed after any changes
+    in ABI made by upstream. Also added ${erlang-abi:Depends} substitution
+    variable to erlang-depends script.
+  * Added Erlang homepage to debian/control.
+  * Removed lintian override files for erlang-base and erlang-base-hipe
+    since they are no longer needed. Also, removed override for
+    binary-without-manpage from erlang-x11.lintian-override.
+  * Converted erlang-nox and erlang-x11 to architecture-any packages and
+    moved all relevant binaries from erlang-base to these packages.
+  * Made erlang-base (and erlang-base-hipe) suggest erlang-nox and erlang-x11
+    instead of recommending because the default aptitude behavior is to
+    install recommended packages. This avoids installing X window system when
+    only some server application is needed (ejabberd, yaws etc.).
+  * Fixed binary-arch and binary-indep targets dependencies in debian/rules.
+
+ -- Torsten Werner <twerner@debian.org>  Sat, 16 Jun 2007 17:21:57 +0400
+
+erlang (1:11.b.4-3) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Fixed cleanup after package build (closes: #424198).
+  * Applied patch by Mikael Magnusson, which adds IPv6 support to ssl
+    application (closes: #413401).
+
+ -- Torsten Werner <twerner@debian.org>  Fri, 18 May 2007 09:32:00 +0400
+
+erlang (1:11.b.4-2) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Replaced `ps` by `pgrep` in prerm scripts to make them more clear.
+  * Added dependency on procps package because `pgrep` is used in prerm
+    scripts and procps is not an essential package (closes: #417413).
+  * Updated TODO.Debian.
+
+ -- Torsten Werner <twerner@debian.org>  Sun, 08 Apr 2007 19:21:46 +0400
+
+erlang (1:11.b.4-1) experimental; urgency=low
+
+  [ Sergei Golovan ]
+  * New upstream release R11B-4.
+  * Added stub manual page for escript.
+
+ -- Torsten Werner <twerner@debian.org>  Wed, 28 Mar 2007 20:15:50 +0400
+
+erlang (1:11.b.3-1) experimental; urgency=low
+
+  * New upstream release.
+
+  [ Torsten Werner ]
+  * Change header of erlang-depends(1) man page.
+
+  [ Sergei Golovan ]
+  * Fixed FTBFS on m68k architecture.
+  * Documented RSA derived code license in debian/copyright
+    (closes: #405360).
+  * Switched to quilt for patch management
+  * Switched to conventional source:Version, binary:Version and
+    source:Upstream-Version substvars (thus making porting to sarge
+    nontrivial).
+  * Added flex build-dependency (it is needed by megaco application).
+  * Added autoconf2.13 to Build-Conflicts because if it is present then
+    it is used instead of autoconf 2.50 and fails.
+  * Fixed clause arrows syntax highlighting in Erlang mode for Emacs
+    (closes: #413052).
+  * Fixed $' and $" patterns syntax highlighting in Erlang mode for Emacs.
+
+ -- Torsten Werner <twerner@debian.org>  Fri, 09 Feb 2007 20:44:55 +0300
+
+erlang (1:11.b.2-4) unstable; urgency=medium
+
+  [ Sergei Golovan ]
+  * Fixed erlang-base and erlang-base-hipe prerm scripts.
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Sun, 03 Dec 2006 17:07:44 +0300
+
+erlang (1:11.b.2-3) unstable; urgency=medium
+
+  * Introduce erlang-depends to calculate ${erlang-*:Depends} for packages
+    that Build-Depend on erlang.
+  * Setting urgency to medium because this revision does not change any
+    existing functionality but it is important for future backports to etch.
+
+ -- Torsten Werner <twerner@debian.org>  Thu, 30 Nov 2006 21:47:53 +0100
+
+erlang (1:11.b.2-2) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Added IPv6 name resolution patch by Mikael Magnusson (closes: #399628)
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Tue, 21 Nov 2006 22:07:56 +0300
+
+erlang (1:11.b.2-1) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * New upstream release.
+  * Removed /dev/epoll support patch. Now /dev/epoll is supported
+    out-of-the-box.
+  * Optimized erlang-base and erlang-base-hipe prerm and postinst
+    scripts (thanks to Aaron M. Ucko, closes: #394379).
+  * Changed erlang-base and erlang-base-hipe prerm scripts to stop
+    erlang-based services on 'remove in-favour' operation and postinst
+    scripts to start the services on any 'configure' operation. It
+    makes upgrading when conflicting erlang-doc-html is installed or
+    replacing erlang-base by erlang-base-hipe (or vice versa) correct.
+  * Added stub manual pages for all utilities, which are placed to
+    /usr/bin/, with reference to erlang-manpages package.
+  * Added conflict with erlang-manpages <= 1:11.b.1-2 because of
+    added stub manpages.
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Wed, 08 Nov 2006 17:44:44 +0300
+
+erlang (1:11.b.1.dfsg-1) unstable; urgency=medium
+
+  [ Sergei Golovan ]
+  * Removed non-free documentation from the upstream source and added
+    dfsg suffix to version number (closes: #393367).
+  * Removed conflicts with erlang-doc-html from all packages except
+    erlang-base and erlang-base-hipe.
+  * Removed conflicts with erlang binary packages from all packages
+    (made them just replace earlier versions).
+  * Added erlang-src, erlang-examples, and erlang-mode dependency on
+    erlang-base (or erlang-base-hipe). It's done only for easier
+    packaging.
+  * Moved overriding config.sub and config.guess from dpatch
+    to debian/rules.
+  * Bind Backspace key in Erlang mode for Emacs and XEmacs differently
+    (closes: #388851).
+  * Added description to all patches in debian/patches.
+
+  [ Torsten Werner ]
+  * Set urgency to medium, because we are fixing a RC bug.
+
+ -- Torsten Werner <twerner@debian.org>  Mon, 16 Oct 2006 19:30:39 +0200
+
+erlang (1:11.b.1-1) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * New upstream version.
+  * Removed 43beam_makeopts.dpatch as it is included in upstream.
+  * Overridden lintian complain about missing manual page for dialyzer
+    (it is available from erlang-manpages package).
+  * Made "make clean" not removing bootstrap files. Otherwise the second
+    build cannot be successful.
+  * Changed dependencies on erlang-base and erlang-base-hipe to allow
+    binary-only NMUs.
+
+  [ Torsten Werner ]
+  * add SVN id in README.Debian.
+
+ -- Torsten Werner <twerner@debian.org>  Tue,  5 Sep 2006 18:11:45 +0200
+
+erlang (1:11.b.0-3) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Made odbc driver build on 64-bit architectures.
+  * Added debian/watch control file.
+  * Added link from /usr/lib/erlang/include/driver.h to /usr/include
+    (it seems not to conflict with other packages).
+  * Disabled optimization for m68k (both -O1 and -O2 do not work,
+    see bug #378599).
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Wed, 19 Jul 2006 09:03:17 +0400
+
+erlang (1:11.b.0-2) experimental; urgency=low
+
+  [ Sergei Golovan ]
+  * Added odbc application building (with unixodbc dependency).
+
+  * Merged changes from erlang 1:10.b.10-3, namely:
+
+  * Replaced ibm-linux by ibm-linux-gnu in config.guess.
+  * Use -O1 optimization flag for m68k (workaround for bug in GCC, but there
+    are still bugs in glibc, so it's unlikely to build erlang on m68k).
+  * Corrected erlang-dev short description.
+  * Corrected erlang-src.patterns (moved non-source gs application files to
+    erlang-x11).
+  * Added prerm and postinstall scripts which stop and start erlang-dependent
+    services (otherwise certain services, e.g. ejabberd become irresponsible
+    after upgrading erlang).
+  * Removed gawk from Build-Depends (mawk is required package and is
+    sufficient), replaced perl5 by perl because perl5 is a virtual package
+    and can't be installed.
+  * Moved erlang.xpm to /usr/share/pixmaps.
+  * Added erlang.desktop to /usr/share/apps/konsole directory making
+    possible to start erlang from Konsole menu.
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Sat, 08 Jul 2006 09:38:26 +0400
+
+erlang (1:11.b.0-1) experimental; urgency=low
+
+  [ Sergei Golovan ]
+  * New upstream version.
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Tue, 20 Jun 2006 12:48:30 +0400
+
+erlang (1:10.b.10-3) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Fixed erlang-x11.menu (Erlang Toplevel requires terminal).
+  * Applied patch, which fixes large list matching bug on 64-bit
+    architectures (see
+    http://www.erlang.org/ml-archive/erlang-questions/200606/msg00372.html
+    and http://www.erlang.org/ml-archive/erlang-questions/200606/msg00425.html).
+  * replaced "-include" for "include" in debian/rules to make get-orig-source
+    target working in any directory (see section 4.8 of Debian Policy Manual).
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Mon, 19 Jun 2006 23:10:52 +0400
+
+erlang (1:10.b.10-2) unstable; urgency=low
+
+  [ Sergei Golovan ]
+  * Fixed erlang-dev patterns (excluded private file from orber
+    application)
+  * Added patch for building erlang-base-hipe on arm architecture.
+  * Added libiodbc2-dev and unixodbc-dev to Build-Conflicts to prevent
+    accidental building of odbc application.
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Tue, 13 Jun 2006 14:05:39 +0400
+
+erlang (1:10.b.10-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added patch for building Erlang on GNU/kFreeBSD (Closes: #345204).
+  * As a side effect Erlang can be built on GNU/Hurd now.
+  * Added patch for building Erlang on Sparc (Closes: #328031).
+  * Added erlang-dev package, containing development files (C-interface
+    headers and libraries, Erlang/OTP application headers). Closes: #367614.
+  * Added erlang-examples package, containing Erlang/OTP application
+    examples.
+  * Cleaned up debian/rules script, added the possibility to configure
+    Erlang without kernel poll support (useful for kFreeBSD and Hurd
+    architectures).
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Sat, 10 Jun 2006 14:33:56 +0400
+
+erlang (1:10.b.9-5) unstable; urgency=low
+
+  * Sergei Golovan noticed that on platforms supporting HiPE, erlang-
+    base and erlang-base-hipe and configured the same way.  Fixed.
+  * New maintainers: Erlang Packagers
+  [ Sergei Golovan ]
+  * Removed unused files (updvsn, preservebeam, extrafiles, erlang-doc.docs,
+    *.install).
+  * Removed unnecessary patches from patches/00list.
+  * Made templates from erlang-base.links, erlang-mode.links,
+    erlang-base-hipe.links. Replaced explicit version numbers to version
+    templates.
+  * Corrected dependencies in control file (replaced erlang-base-hipe by
+    erlang-base because erlang-base-hipe is not always available, made all
+    packages conflict with erlang-manpages and erlang-doc-html with
+    incompatible versions).
+  * Cleaned up lintian override files.
+  * Made installing erlang with and without HIPE to debian/erlang-hipe and
+    debian/erlang-std respectively (making debugging easier). Rewrote install
+    part of the script (made it removing some src files and object files from
+    ssl and crypto applications). Made some cleanups in rules.
+  * Fixed warnings of missing final newline in several files.
+  * Added menu entries to erlang-nox and erlang-x11 packages (since they use
+    /usr/bin/erl which is not present in these packages, there are also new
+    entries in lintian override files).
+  * Added supervisor performance improvement patch
+    (http://support.process-one.net/browse/EJAB-19).
+  * Added epoll support patch
+    (http://developer.sipphone.com/ejabberd/erlang_epoll_patch/).
+  * Restored patch which makes erl -man searching manual pages in the
+    standard locations.
+  * Moved sasl and stdlib beams from erlang-nox to erlang-base-hipe and
+    erlang-base packages making them usable without erlang-nox.
+  * Closes: #367996
+  * Replaced Ericcson by Ericsson in control file (Closes: #368808)
+  * Added conflicts of erlang-nox, erlang-x11, erlang-base, erlang-base-hipe
+    with erlang-src of incompatible version.
+
+ -- Erlang Packagers <erlang-pkg-devel@lists.berlios.de>  Mon, 29 May 2006 00:48:11 +0400
+
+erlang (1:10.b.9-4) unstable; urgency=low
+
+  [ Francois-Denis Gonthier ]
+  * Disables HiPE build for hppa64 and m68k.
+  * Upgraded policy version.
+
+  [ Torsten Werner ]
+  * disabled HiPE build an arm (not only armv4l)
+  * added myself to the Uploaders: field in debian/control
+
+ -- Torsten Werner <twerner@debian.org>  Tue, 16 May 2006 17:35:41 +0200
+
+erlang (1:10.b.9-3) unstable; urgency=low
+
+  * Closes: #366398: Same has #358410.
+  * Closes: #357134: NMU of Luk Claes.  Most of those errors were already
+    fixed in the new package.  Thanks.
+  * Closes: #358179: Removed the copy of the LGPL in the copyright file.
+    I've put the required shorter text.
+  * Disabled HiPE build for mips, arm, mipsel, s390 and sparc, in hope
+    that it fixes FTBFS on those platforms.
+  * Closes: #358410.  erlang-src and erlang-mode are now Architecture:
+    all.
+  * erlang-nox and erlang-x11 are now built as arch-dependent targets
+    since, practically, they depend on one of erlang-runtime to be
+    built.
+  * Added a link from /usr/lib/erlang/usr/include to /usr/include/erlang
+    to fix potential FTBFS of dependencies of Erlang.
+  * cant install erlang package (dependencie problem) (Closes: #366398)
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Mon,  8 May 2006 21:06:21 -0400
+
+erlang (1:10.b.9-2) unstable; urgency=low
+
+  * Closes: #333853, moved driver_int.h and erl_driver.h to
+    /usr/include.
+  * Closes: #331817, added debconf-2.0 alternative to erlang
+    dependencies.
+  * Closes: #344118, added a missing "," in Depends in the
+    control file.
+  * Removed dependency to bash v3, which means Erlang 10.b.9-2 is
+    backportable to Sarge thanks to Sergei Golovan.
+  * 10.b.9-1 was a test version that was announced on the erlang-
+    questions mailing list.
+  * erlang-manpages: Manpages are not where erl -man looks for them
+    (Closes: #348333). erl -man is now using the standard manual path
+    and MANSECT=1:3erl:4:6.
+  * /usr/bin/ear is a dangling symlink (Closes: #346548)
+  * Removed ear, ecc, elink, escript, which are bad links produced even
+    by the standard erlang install (I sure should ask erlang-questions
+    about those).
+  * FTBFS: build-depends on removed xlibs-dev (Closes: #346655)
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Tue, 24 Jan 2006 13:07:19 -0500
+
+erlang (1:10.b.9-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Wed, 14 Dec 2005 11:42:47 -0500
+
+erlang (1:10.b.8-2) unstable; urgency=low
+
+  * HiPE-enabled binaries are now put in their own package.
+  * Source files (*.erl, *.hrl, *.c and *.h) are now put in their own
+    package since they are not required to use the system.
+  * Well, I have dpatch'ified the thing but since I now use svn-
+    buildpackage locally, the patches are not rather useless.
+  * Closes: #333853
+  * Closes: #331817
+  * Major rules overhaul.  I've had some problems getting some targets
+    to run twice but I worked around them.
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Mon, 28 Nov 2005 14:44:55 -0500
+
+erlang (1:10.b.8-1) unstable; urgency=low
+
+  * new upstream version
+  * fully dpatch'ified.
+  * Emacs editing mode pulled from the main package and put into it's
+    own erlang-mode package.
+  * As it was suggested a few times, I've split the main arch-
+    independent package in two.  There is now an erlang-nox package
+    which include the base applications that don't require tk8.4 to
+    work.  The applications that depend on gs and thus on tk8.4 and now
+    in erlang-x11.
+  * The files that go in the 3 packages are now determined using regular
+    expressions.  See analyse.sh for details.
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Tue,  1 Nov 2005 23:24:01 -0500
+
+erlang (1:10.b.7-2) unstable; urgency=low
+
+  * Now using autooconf2.5x
+  * The whole package is now dpatch'ified.
+  * I've simplified the aggressive cleaning done in the clean phase of
+    debian/rules.  It doesn't mean that it was wrong, but right now I
+    don't fully understand the need for it.  I take care of preserving
+    the pristine content of the bootstrap directory instead of using the
+    weird preservebeam script.  I suspect that might be causing some
+    problems on some platforms although I don't really know why.
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Wed, 28 Sep 2005 00:02:28 -0400
+
+erlang (1:10.b.7-1) unstable; urgency=low
+
+  * new upstream version
+  * Closes: #317456 #310741
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Mon,  5 Sep 2005 20:59:45 -0400
+
+erlang (1:10.b.5-1) unstable; urgency=low
+
+  * new upstream version
+  * Still Closes: #307725
+  * A remaining rpath problem has been fixed by a change in
+    make/configure.in.  I hope it won't break anything else.
+  * Moved a few binary file from erlang to erlang-base.  Apparently they
+    were binary executable files.
+  * I guess it Closes: #298076 too.
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Sat, 14 May 2005 17:47:38 -0400
+
+erlang (1:10.b.4-3) unstable; urgency=low
+
+  * Fixes updvsn which did not detect all version change and left some
+    old directories behind.
+  * Change O3 for O2 in erts/emulator/Makefile.in (thanks Will Newton)
+  * Still not uploaded so: New Maintainer (Closes: #307725)
+  * Removed dependency on sed since it's a build essential
+  * Removed debian/conffiles, which is not useful.
+  * Manually removed SSH & ODBC apps which were empty (thanks Nicolas
+    Niclausse)
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Wed, 11 May 2005 10:58:03 -0400
+
+erlang (1:10.b.4-2) unstable; urgency=low
+
+  * New maintainer (Closes: #307725)
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Mon,  9 May 2005 23:17:42 -0400
+
+erlang (1:10.b.4-1) unstable; urgency=low
+
+  * new upstream version
+
+ -- Francois-Denis Gonthier <neumann@lostwebsite.net>  Thu,  5 May 2005 14:45:00 -0400
+
+erlang (1:10.b.1a-2.2) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * High-urgency upload for sarge-targeted RC bugfix
+  * Build with --disable-hipe on everything but amd64 (not just on i386),
+    for compatibility with 2.4 kernels in sarge; thanks to Lars
+    Wirzenius for tracking this down.  Closes: #276800.
+
+ -- Steve Langasek <vorlon@debian.org>  Sat, 12 Mar 2005 01:27:58 -0800
+
+erlang (1:10.b.1a-2.1) unstable; urgency=high
+
+   * NMU
+   * configure --disable-hipe on i386, (Closes: #276800)
+
+ -- Frank Lichtenheld <djpig@debian.org>  Sat, 12 Mar 2005 14:50:16 +0100
+
+erlang (1:10.b.1a-2) unstable; urgency=low
+
+  * Rebuild with corrected pathnames to libraries (remove duplicates).
+  * Compiled with -fPIC to support RISC (among others).
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Wed, 24 Nov 2004 20:07:57 -0800
+
+erlang (1:10.b.1a-1) unstable; urgency=low
+
+  * New upstream release:
+    - Compiler optimizations.
+    - Runtime memory use error.
+    - Better support for the new try/catch syntax.
+    - Emulator crash with bignums corrected.
+    - HIPE updated to correct a bug that caused the emulator to crash.
+  * Added a 'conflicts' with libxmerl-erlang, since 'xmerl' is now
+    distributed with Erlang OTP.  Perhaps we need some way to allow this
+    to be upgraded if xmerl has interim releases...
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Fri, 19 Nov 2004 23:36:41 -0800
+
+erlang (1:10.b.0-2) unstable; urgency=low
+
+  * Fix erlc:  VSN value changed and I didn't catch it.  Revised build
+    script to extract correct version from sources so I don't make this
+    mistake again.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sun, 10 Oct 2004 14:01:06 -0700
+
+erlang (1:10.b.0-1) unstable; urgency=low
+
+  * New upstream release.
+  * Numbering now matches upstream.
+  * Correct package description duplication.  (Closes:#275595)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Wed,  6 Oct 2004 22:07:42 -0700
+
+erlang (1:9.2.2-6) unstable; urgency=low
+
+  * Include crypto support.  (Closes:#270629)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Mon, 27 Sep 2004 21:12:45 -0700
+
+erlang (1:9.2.2-5) unstable; urgency=low
+
+  * Correct s390 build bug (autoconf/config.guess returns triplet
+    s390-ibm-linux, rather than the s390-ibm-linux-gnu expected by
+    config.sub and others.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Thu,  2 Sep 2004 00:29:45 -0700
+
+erlang (1:9.2.2-4) unstable; urgency=low
+
+  * A few more cleanups.  (Closes:#263590).
+  * Add lintian-override for binaries-without-manpage, since these
+    manpages are all provided in the erlang-manpages package.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat, 28 Aug 2004 17:12:12 -0700
+
+erlang (1:9.2.2-3) unstable; urgency=low
+
+  * Build with Tcl/Tk 8.4 to be more "modern".
+  * Provide better cleanup.  Thanks to David N. Welton for
+    the fix.  (Closes: #263590).
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Fri,  6 Aug 2004 23:36:28 -0700
+
+erlang (1:9.2.2-2) unstable; urgency=low
+
+  * Include dependency on Tcl/Tk 8.3 to allow gs to work.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat, 31 Jul 2004 18:53:58 -0700
+
+erlang (1:9.2.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Highlights:  Some performance improvements, some bug fixes.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Thu, 24 Jun 2004 22:49:25 -0700
+
+erlang (1:9.2.1-5) unstable; urgency=low
+
+  * Before someone files a bug:  ecc conflicts with elastiC, so
+    change link to "erl-ecc".
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat, 19 Jun 2004 09:24:24 -0700
+
+erlang (1:9.2.1-4) unstable; urgency=low
+
+  * A few straggling links to ear, escript.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sun, 13 Jun 2004 00:55:23 -0700
+
+erlang (1:9.2.1-3) unstable; urgency=low
+
+  * Ugh!  Links didn't get picked up after the migration of platform
+    independent files.  (Closes:#253988)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat, 12 Jun 2004 09:25:40 -0700
+
+erlang (1:9.2.1-2) unstable; urgency=low
+
+  * Make upgrade easier.  (Closes:#253914)
+  * Clean up various lintian warnings.  (Made icon 32x32)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Fri, 11 Jun 2004 23:42:45 -0700
+
+erlang (1:9.2.1-1) unstable; urgency=low
+
+  * New upstream release.(Closes:#253116)
+  * Correct Emacs handling.  (Closes:#240235).
+  * Never uploaded 9.2-6 -- make sure (Closes:#237653)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Wed,  9 Jun 2004 22:57:36 -0700
+
+erlang (1:9.2-6) unstable; urgency=low
+
+  * Reconfigure a few things:  Make the 'erlang' package hold the
+    architecture-independent files.  Make the 'erlang-base' package hold
+    the base virtual machine (platform-dependent).
+  * Remove duplicates where possible.  (Closes:#237653)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Mon, 15 Mar 2004 21:10:42 -0800
+
+erlang (1:9.2-5) unstable; urgency=low
+
+  * Regenerate configure stuff in the hopes that this will help HPPA builds.
+  * Updated config.guess, config.sub to most recent version for autoconf2.13
+    series.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Mon,  9 Feb 2004 21:37:33 -0800
+
+erlang (1:9.2-4) unstable; urgency=low
+
+  * Add ia64 to buildable architectures (now that it builds!).
+    (Closes:#142642, #161266, #225226)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sun,  8 Feb 2004 00:33:38 -0800
+
+erlang (1:9.2-3) unstable; urgency=low
+
+  * Minor fixes to build packages.
+  * Incorporate Daniel Schepler's patch (Closes:#196247)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat,  8 Nov 2003 21:00:56 -0800
+
+erlang (1:9.2-2) unstable; urgency=low
+
+  * Correct bad 'WWW' path.  (Closes:#207375).
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Wed, 27 Aug 2003 23:41:08 -0700
+
+erlang (1:9.2-1) unstable; urgency=low
+
+  * The Erlang 9RC Release.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Thu, 14 Aug 2003 21:25:25 -0700
+
+erlang (1:9.1-3) unstable; urgency=low
+
+  * Declare platform dependencies only on architectures supported by upstream.
+    The proper place for these to be fixed is in a real porting effort, not
+    by keeping Erlang out of stable.
+    (Closes:#142642), (Closes:#161266), (Closes:#179803), (Closes:#189591)
+  * Correct bad symlink to epmd (among others).  (Closes:#196268)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Mon, 23 Jun 2003 23:30:16 -0700
+
+erlang (1:9.1-2) unstable; urgency=low
+
+  * Incorporate Laurent Bonnaud's patch for allowing the Erlang mode to
+    work under XEmacs.  (Closes:#179277)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Tue, 18 Mar 2003 21:43:28 -0800
+
+erlang (1:9.1-1) unstable; urgency=low
+
+  * New upstream release.  Highlights:
+    + Constant expressions now evaluated at compile time.
+    + "," and "and" guards now handled properly.
+    + Corrections for floating point problems.
+    + Some 64-bit architecture fixes.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Fri, 14 Mar 2003 22:19:50 -0800
+
+erlang (1:9.0-10) unstable; urgency=low
+
+  * Correct settings of ERLDIR to not include quotes.  This corrects a problem
+        that kept Yaws from building properly "out of the box."  A tip 'o the
+        hat to Jimmie Houchin for noticing.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sun,  2 Mar 2003 20:33:22 -0800
+
+erlang (1:9.0-9) unstable; urgency=low
+
+  * Add conflicts to elastic-base.  (Closes:Bug#179816)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Tue,  4 Feb 2003 22:11:08 -0800
+
+erlang (1:9.0-8) unstable; urgency=low
+
+  * Remove dangling symlinks from bad earlier package.  (Closes:#170528)
+  * Remove HIPE support for SPARC.  SPARC only supports HIPE under
+    SOLARIS (for now), so this causes build failures.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sun,  2 Feb 2003 20:38:37 -0800
+
+erlang (1:9.0-7) unstable; urgency=low
+
+  * HPPA built on Paer, so I'm opening up the architecture to 'any'.
+  * Changed 'gawk' dependency to plain 'awk'.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat,  1 Feb 2003 23:09:23 -0800
+
+erlang (1:9.0-6) unstable; urgency=low
+
+  * Erlang won't build on other architectures because of my monkeying
+    around with 'ecc'.  Too many scripts depend on it being named
+    'ecc' and located in /usr/bin/ecc.  And I'm not sure how many
+    external Erlang programs make this assumption.  Going back to
+    conflicting with Elastic.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat,  1 Feb 2003 10:29:31 -0800
+
+erlang (1:9.0-5) unstable; urgency=low
+
+  * Fix some lintian warnings.
+  * Move all Java stuff into erlang-base, declare as binary-indep, and
+    remove build-depends on Java (since autobuilders don't need to build
+    these parts.)  Since the java-stuff is not critical to the function
+    of Erlang, modify build rules to ignore failure if 'javac' does not
+    exist, for example.
+  * Incorporated translations for German, Spanish, and Japanese.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Thu, 30 Jan 2003 21:46:22 -0800
+
+erlang (1:9.0-4) unstable; urgency=low
+
+  * More fun with 'ecc'.  I stupidly copied this into my own /usr/bin, so of
+    course everything works just fine on my system.  I figured out where this
+    is referenced in the erlc source and *hopefully* have this fixed so it
+    can coexist with the 'elastic' compiler.  (Closes: #172931)
+  * Changed dependency to xlibs-dev (Closes: #170156)
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat, 14 Dec 2002 16:52:18 -0800
+
+erlang (1:9.0-3) unstable; urgency=low
+
+  * Well, it appears bad paths continue to be a problem.  With some
+    messy sed scripts, this is now corrected.  "INSTALL_PREFIX" does
+    not seem to be honored by the installation rules from Ericsson
+    (unfortunately).
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Wed, 13 Nov 2002 23:31:55 -0800
+
+erlang (1:9.0-2) unstable; urgency=low
+
+  * Correct a link to epmd in the runtime.
+  * Provide a menu entry.
+  * Add a conflict with the 'elastic' compiler, which also defines
+    a /usr/bin/ecc. (Closes:Bug#168407)
+  * Use "INSTALL_PREFIX" to avoid all of those bad paths in the compiled
+    scripts.  Surprised no one saw this!
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sun, 10 Nov 2002 00:00:51 -0800
+
+erlang (1:9.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Thu,  7 Nov 2002 21:15:57 -0800
+
+erlang (1:8.2-1) unstable; urgency=low
+
+  * New maintainer.
+  * New upstream version.
+  * Correct a few lintian warnings, eject 'java' package that caused the
+    Debian install system to complain.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat, 10 Aug 2002 23:16:47 -0700
+
+erlang (49.1-10.1) stable; urgency=high
+
+  * Non-maintainer upload by the Security Team
+  * Apply patch for double-free bug to included copy of zlib
+
+ -- Matt Zimmerman <mdz@debian.org>  Thu, 14 Feb 2002 04:38:23 +0000
+
+erlang (49.1-10) frozen unstable; urgency=low
+
+  * Incorporate bug fixes only from upstream maintainer. The bug could lead
+    in database deadlock in some situations.
+
+ -- Samuel Tardieu <sam@debian.org>  Sun, 27 Feb 2000 15:27:34 +0100
+
+erlang (49.1-9) frozen unstable; urgency=low
+
+  * Add a tiny patch to avoid a duplicate case clause on Sparc, because the
+    latest /usr/include/asm/signal.h files have the same value for
+    SIGLOST and SIGPWR. Closes an unreported important bug (this package
+    could not be rebuilt on Sparc). This 4 lines patch is the only code
+    change in this revision.
+  * Add libncurses5-dev to the Build-Depends list. Closes: #58151.
+  * Remove c-shell from the Depends list. Closes: #58152.
+
+ -- Samuel Tardieu <sam@debian.org>  Tue, 15 Feb 2000 13:58:41 +0100
+
+erlang (49.1-8) frozen unstable; urgency=low
+
+  * Apply latest upstream patches for the build process.
+    Closes: #57349, #57350. No new functionality has been added.
+
+ -- Samuel Tardieu <sam@debian.org>  Tue,  8 Feb 2000 13:38:34 +0100
+
+erlang (49.1-7) frozen unstable; urgency=low
+
+  * Remove Alpha from list of supported targets. Obviously, this code is
+    32 bits specific. Closes: #55237.
+
+ -- Samuel Tardieu <sam@debian.org>  Mon, 17 Jan 2000 17:11:31 +0100
+
+erlang (49.1-6) unstable; urgency=low
+
+  * Remove the etkdir.dpatch patch as it is not necessary.
+
+ -- Samuel Tardieu <sam@debian.org>  Mon, 13 Dec 1999 13:05:11 +0100
+
+erlang (49.1-5) unstable; urgency=low
+
+  * Apply patch from upstream to build Erlang libraries with proper dynamic
+    flags.
+  * Apply patch from upstream to put etk in the right directory.
+
+ -- Samuel Tardieu <sam@debian.org>  Sat, 11 Dec 1999 16:59:37 +0100
+
+erlang (49.1-4) unstable; urgency=low
+
+  * Add a patch to fix multicast bug. Submitted to upstream authors.
+
+ -- Samuel Tardieu <sam@debian.org>  Wed,  8 Dec 1999 18:48:31 +0100
+
+erlang (49.1-3) unstable; urgency=low
+
+  * Add Pre-Depends lines for dpkg.
+  * Apply unofficial patch for building ETK library.
+  * Change status of two patches from unofficial to official.
+  * Apply official patch for fixing netadm functions.
+
+ -- Samuel Tardieu <sam@debian.org>  Mon,  6 Dec 1999 13:14:50 +0100
+
+erlang (49.1-2) unstable; urgency=low
+
+  * Split this file into different package, to avoid duplication of
+    architecture independent files.
+  * Remove dependency on java. Closes: #51383.
+  * Remove hard-coded path inherited at installation time.
+
+ -- Samuel Tardieu <sam@debian.org>  Mon, 29 Nov 1999 15:42:55 +0100
+
+erlang (49.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * New maintainer.
+  * New packages.
+
+ -- Samuel Tardieu <sam@debian.org>  Thu, 25 Nov 1999 11:26:58 +0100
+
+erlang (47.4.1-2) unstable; urgency=low
+
+  * Closed bugs: #38119, #38265 - sparc, alpha ports and clean target.
+  
+ -- Mark Ng <ng@debian.org>  Mon,  21 Jun 1999 21:45:00 +1100
+
+erlang (47.4.1-1) unstable; urgency=low
+
+  * the .erl files now have their own package, giving a total of 5 packages.
+  * moved the .jam files and docs into their arch independent packages.
+  * New upstream release.
+  
+ -- Mark Ng <ng@debian.org>  Sat,  8 May 1999 16:45:00 +1100
+
+erlang (47.4.0-1) unstable; urgency=low
+
+  * Initial Release.
+  * Split into  -base and -dev packages
+  * Erlang sources for libraries and tools are removed from the bin dist.
+
+ -- Mark Ng <ng@debian.org>  Thu,  4 Feb 1999 23:21:00 +1100
--- erlang-14.a-dfsg.orig/debian/erlang-mode.dirs
+++ erlang-14.a-dfsg/debian/erlang-mode.dirs
@@ -0,0 +1 @@
+usr/share/emacs/site-lisp/erlang
--- erlang-14.a-dfsg.orig/debian/erlang-dialyzer.manpages
+++ erlang-14.a-dfsg/debian/erlang-dialyzer.manpages
@@ -0,0 +1 @@
+debian/erlang-docs/usr/lib/erlang/man/man1/dialyzer.1
--- erlang-14.a-dfsg.orig/debian/erlang-dev.manpages
+++ erlang-14.a-dfsg/debian/erlang-dev.manpages
@@ -0,0 +1 @@
+debian/manpages/erlang-depends.1
--- erlang-14.a-dfsg.orig/debian/erlang-mode.links
+++ erlang-14.a-dfsg/debian/erlang-mode.links
@@ -0,0 +1 @@
+usr/share/man			/usr/lib/erlang/man
--- erlang-14.a-dfsg.orig/debian/erlang-base.postinst
+++ erlang-14.a-dfsg/debian/erlang-base.postinst
@@ -0,0 +1,93 @@
+#! /bin/sh
+# postinst script for erlang-base
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> configure <most-recently-configured-version>
+#        * <old-postinst> abort-upgrade <new-version>
+#        * <conflictor's-postinst> abort-remove in-favour <package> <new-version>
+#        * <postinst> abort-remove
+#        * <deconfigured's-postinst> abort-deconfigure in-favour <failed-install-package> <version> \
+#				     removing <conflicting-package> <version>
+# for details, see /usr/doc/packaging-manual/
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the <postinst> is called with abort-upgrade,
+#     abort-remove or abort-deconfigure.
+
+case "$1" in
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    configure)
+	if [ -z "$2" ] || dpkg --compare-versions "$2" ge-nl "1:10.b.10-3" ; then
+	    echo -n "Searching for services which depend on erlang and should be started..."
+	    # find all init scripts and packages they belong
+	    inits=$(dpkg -S '/etc/init.d/*' 2>/dev/null | sed -e's:/etc/init.d/::')
+	    # filter the list of the packages
+	    packs=$(echo $inits | sed -e's/:[[:space:]]\+[^[:space:]]*//g' | sed -e's/ /\n/g' | sort -u)
+	    # find packages, which depend on erlang
+	    packs=$(dpkg -s $packs 2>/dev/null | egrep '^Package:|^Status:|^Depends' | awk '{if ($1 ~ /^Package:/) {package=$2;inst=0} else if ($0 ~ /^Status:.* installed$/) {inst=1} else if ((inst==1) && ($0 ~ /^Depends:.* erlang/)) {print package}}')
+	    # construct services list from the packages
+	    services=""
+	    for p in $packs ; do
+		service=$(echo $inits | sed -e's/\([^:]\) /\1\n/g' | awk "/^$p:/ {print \$2}")
+		services="$services $service"
+	    done
+	    services=$(echo $services | tr '\n' ' ' | sed -e's/\(^[[:space:]]*\|[[:space:]]*$\)//g')
+
+	    if [ -z "$services" ] ; then
+		echo "none found."
+	    else
+		echo "found: $services."
+		echo "Starting services which depend on erlang"
+		rl=$(runlevel | awk '{print $2}')
+		failed=""
+		for service in $services ; do
+		    if [ -f /usr/share/file-rc/rc -o -f /usr/lib/file-rc/rc ] && [ -f /etc/runlevel.conf ] ; then
+			idl=$(filerc $rl $service)
+		    else
+			idl=$(ls /etc/rc${rl}.d/S??${service} 2> /dev/null | head -1)
+		    fi
+		    if [ -n "$idl" ] ; then
+			echo -n "  $service: starting..."
+			if $idl start > /dev/null 2>&1 ; then
+			    echo "done."
+			else
+			    echo "failed. ($?)"
+			    failed="$failed $service"
+			fi
+		    fi
+		done
+		if [ -n "$failed" ] ; then
+		    echo "The following services failed to start: $failed."
+		    echo
+		    echo "You will need to start them manually by running \`/etc/init.d/<service> start'"
+		    echo "If the service still fails to start, you may need to file a bug on"
+		    echo "\`erlang' package or the service involved."
+		else
+		    echo "Services started successfully."
+		fi
+	    fi
+	fi
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
--- erlang-14.a-dfsg.orig/debian/erlang-dev.links.in
+++ erlang-14.a-dfsg/debian/erlang-dev.links.in
@@ -0,0 +1,21 @@
+usr/lib/erlang/usr/include/driver.h			usr/include/driver.h
+usr/lib/erlang/usr/include/driver_int.h			usr/include/driver_int.h
+usr/lib/erlang/usr/include/erl_driver.h			usr/include/erl_driver.h
+usr/lib/erlang/usr/include/erl_drv_nif.h		usr/include/erl_drv_nif.h
+usr/lib/erlang/usr/include/erl_fixed_size_int_types.h	usr/include/erl_fixed_size_int_types.h
+usr/lib/erlang/usr/include/erl_int_sizes_config.h	usr/include/erl_int_sizes_config.h
+usr/lib/erlang/usr/include/erl_memory_trace_parser.h	usr/include/erl_memory_trace_parser.h
+usr/lib/erlang/usr/include/erl_nif_api_funcs.h		usr/include/erl_nif_api_funcs.h
+usr/lib/erlang/usr/include/erl_nif.h			usr/include/erl_nif.h
+usr/lib/erlang/usr/lib/liberts.a			usr/lib/liberts.a
+usr/lib/erlang/usr/lib/liberts_r.a			usr/lib/liberts_r.a
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/include/ei.h			usr/include/ei.h
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/include/ei_connect.h		usr/include/ei_connect.h
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/include/eicode.h		usr/include/eicode.h
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/include/erl_interface.h	usr/include/erl_interface.h
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/lib/libei.a			usr/lib/libei.a
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/lib/libei_st.a		usr/lib/libei_st.a
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/lib/liberl_interface.a	usr/lib/liberl_interface.a
+usr/lib/erlang/lib/erl_interface-@EI_VSN@/lib/liberl_interface_st.a	usr/lib/liberl_interface_st.a
+usr/lib/erlang/lib/ic-@IC_VSN@/include/ic.h		usr/include/ic.h
+usr/lib/erlang/lib/ic-@IC_VSN@/priv/lib/libic.a		usr/lib/libic.a
--- erlang-14.a-dfsg.orig/debian/compat
+++ erlang-14.a-dfsg/debian/compat
@@ -0,0 +1 @@
+5
--- erlang-14.a-dfsg.orig/debian/erlang-typer.links
+++ erlang-14.a-dfsg/debian/erlang-typer.links
@@ -0,0 +1 @@
+usr/lib/erlang/bin/typer	usr/bin/typer
--- erlang-14.a-dfsg.orig/debian/erlang-manpages.postinst
+++ erlang-14.a-dfsg/debian/erlang-manpages.postinst
@@ -0,0 +1,25 @@
+#! /bin/sh
+# postinst script for erlang-manpages
+#
+# see: dh_installdeb(1)
+
+set -e
+
+if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl "1:12.b.1" ; then
+    for name in dialyzer \
+		epmd \
+		erl \
+		erl_call \
+		erlc \
+		escript \
+		run_erl \
+		start \
+		start_webtool ; do
+	dpkg-divert --package erlang-manpages --remove --rename \
+		    --divert /usr/share/man/man1/$name.erlang.1.gz \
+			     /usr/share/man/man1/$name.1.gz >/dev/null
+    done
+fi
+
+#DEBHELPER#
+
--- erlang-14.a-dfsg.orig/debian/erlang-manpages.manpages
+++ erlang-14.a-dfsg/debian/erlang-manpages.manpages
@@ -0,0 +1,4 @@
+debian/erlang-docs/usr/lib/erlang/man/man3/*
+debian/erlang-docs/usr/lib/erlang/man/man4/*
+debian/erlang-docs/usr/lib/erlang/man/man6/*
+debian/erlang-docs/usr/lib/erlang/man/man7/*
--- erlang-14.a-dfsg.orig/debian/erlang-base-hipe.desktop
+++ erlang-14.a-dfsg/debian/erlang-base-hipe.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Type=KonsoleApplication
+Name=Erlang
+Comment=New Erlang Shell
+Exec=/usr/bin/erl
+Icon=/usr/share/pixmaps/erlang.xpm
--- erlang-14.a-dfsg.orig/debian/erlang-base.desktop
+++ erlang-14.a-dfsg/debian/erlang-base.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Type=KonsoleApplication
+Name=Erlang
+Comment=New Erlang Shell
+Exec=/usr/bin/erl
+Icon=/usr/share/pixmaps/erlang.xpm
--- erlang-14.a-dfsg.orig/debian/erlang-mode.emacsen-startup
+++ erlang-14.a-dfsg/debian/erlang-mode.emacsen-startup
@@ -0,0 +1,12 @@
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(setq load-path (cons (concat "/usr/share/"
+		(symbol-name debian-emacs-flavor)
+		"/site-lisp/erlang") load-path))
+(setq erlang-root-dir "/usr/lib/erlang")
+(setq exec-path (cons "/usr/lib/erlang/bin" exec-path))
+(require 'erlang-start)
+
+;; (setq auto-mode-alist (cons '("\\.erl$" . erlang-mode) auto-mode-alist))
+;; (setq auto-mode-alist (cons '("\\.hrl$" . erlang-mode) auto-mode-alist))
+																						  
--- erlang-14.a-dfsg.orig/debian/erlang-base-hipe.menu
+++ erlang-14.a-dfsg/debian/erlang-base-hipe.menu
@@ -0,0 +1,8 @@
+?package(erlang-base-hipe):\
+	needs="text" \
+	section="Applications/Programming" \
+	title="Erlang Shell" \
+	longtitle="Erlang shell in a terminal session" \
+	hints="Erlang" \
+	command="/usr/bin/erl" \
+	icon="/usr/share/pixmaps/erlang.xpm"
--- erlang-14.a-dfsg.orig/debian/erlang-doc.doc-base.erlang-lib
+++ erlang-14.a-dfsg/debian/erlang-doc.doc-base.erlang-lib
@@ -0,0 +1,9 @@
+Document: erlang-lib
+Title: Erlang Library Documentation
+Author: Ericsson
+Abstract: Library Documentation for the Erlang programming language
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/erlang-doc/lib/index.html
+Files: /usr/share/doc/erlang-doc/lib/*
--- erlang-14.a-dfsg.orig/debian/watch
+++ erlang-14.a-dfsg/debian/watch
@@ -0,0 +1,7 @@
+# Watch control file for uscan
+
+# Compulsory line, this is a version 3 file
+version=3
+
+opts=dversionmangle=s/-dfsg\d*$//,uversionmangle=tr/[A-Z]/[a-z]/;s/\.$// \
+  http://www.erlang.org/download/otp_src_R(\d*)([A-Z]*)(?:-?(\d*))?.tar.gz
--- erlang-14.a-dfsg.orig/debian/copyright
+++ erlang-14.a-dfsg/debian/copyright
@@ -0,0 +1,426 @@
+This package was debianized by Brent A. Fulgham <bfulgham@debian.org> on
+Sat, 10 Aug 2002 23:16:47 -0700
+
+It was downloaded from the Erlang OTP Homepage at http://www.erlang.org.
+
+Authors:  (In Alphabetical Order)
+	  Stefan Anbratt, Ingela Anderton, Joe Armstrong, Gordon Beaton,
+	  Martin Bjorklund, Johan Blom, Hans Bolinder, Kent Boortz,
+	  Pascal Brisset, Richard Carlsson, Maurice Castro, Anders Dahlin,
+	  Jan-Erik Dahlin, Mick Dwyer, Klas Eriksson, Magnus Frieberg,
+	  Luke Gorrie <luke@vegetable.org>, Joakim Grebeno, Rickard Green,
+	  Dan Gudmundsson, Bjorn Gustavsson, Fredrik Gustafson,
+	  Bogumil Hausman, Per Hedeland, Peter Hogfeldt, Gunilla Hugosson,
+	  Erik Johansson, Arndt Jonasson, Micael Karlberg, Janne Lindblad,
+	  Anders Lindgren, Peter Lundel, Kenneth Lundin <kenneth@erix.ericsson.se>,
+	  Ulf Magnusson, Horkan Mattsson, Ingvar Meyer, Hans Nilsson,
+	  Mattias Nilsson, Raimo Niskanen, Patrik Nyblom, Sven-Olof Nystrom,
+	  Lennart Ohman, Peter Olin, Shawn Pearce <pearcs@rpi.edu>,
+	  Mikael Pettersson, Tony Rogvail <tony.rogvail@bluetail.com>,
+	  Kostis Sagonas, Ola Samuelsson, Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>,
+	  Sebastian Strollo <sebastian.strollo@bluetail.com>, Lars Thorsen,
+	  Fredrik Tillman, Torbjorn Tornquist, Markus Torpvret,
+	  Esko Vierumski, Robert Virding, Carl Wilhelm Welin, Sverker Wiberg,
+	  Jesper Wilhelmsson, Mike Williams, Claes Wikstrom, Patrik Winroth,
+	  Geoff Wong, Babbis Xagorarakis
+
+============================================================================
+As of version 12.b.0 (R12B-0 in original versioning) Erlang/OTP is distributed
+with prebuilt architecture-independent binaries. They are removed from the
+source package (except for required bootstrap files).
+
+The files lib/megaco/standards/* and lib/ssh/standards/* have been removed
+from the upstream tarball because they are not DFSG free.
+
+============================================================================
+This licence applies to lib/edoc and lib/syntax_tools
+
+		  GNU LESSER GENERAL PUBLIC LICENSE
+		       Version 2.1, February 1999
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This library 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
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+On Debian systems, the complete text of the GNU Lesser General Public
+License, version 2.1, can be found in /usr/share/common-licenses/LGPL-2.1
+
+============================================================================
+This license applies to erts/emulator/beam/erl_md5.c,
+lib/erl_interface/src/misc/eimd5.c and lib/erl_interface/src/misc/eimd5.h
+
+Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
+rights reserved.
+
+License to copy and use this software is granted provided that it
+is identified as the "RSA Data Security, Inc. MD5 Message-Digest
+Algorithm" in all material mentioning or referencing this software
+or this function.
+
+License is also granted to make and use derivative works provided
+that such works are identified as "derived from the RSA Data
+Security, Inc. MD5 Message-Digest Algorithm" in all material
+mentioning or referencing the derived work.
+
+RSA Data Security, Inc. makes no representations concerning either
+the merchantability of this software or the suitability of this
+software for any particular purpose. It is provided "as is"
+without express or implied warranty of any kind.
+
+These notices must be retained in any copies of any part of this
+documentation and/or software.
+
+
+Clarification letter:
+
+The following was recevied Fenbruary 23,2000
+From: "Linn, John" <jlinn@rsasecurity.com>
+
+February 19, 2000
+
+        The purpose of this memo is to clarify the status of intellectual
+property rights asserted by RSA Security Inc. ("RSA") in the MD2, MD4 and
+MD5 message-digest algorithms, which are documented in RFC-1319, RFC-1320,
+and RFC-1321 respectively.
+
+        Implementations of these message-digest algorithms, including
+implementations derived from the reference C code in RFC-1319, RFC-1320, and
+RFC-1321, may be made, used, and sold without license from RSA for any
+purpose.
+
+        No rights other than the ones explicitly set forth above are
+granted.  Further, although RSA grants rights to implement certain
+algorithms as defined by identified RFCs, including implementations derived
+from the reference C code in those RFCs, no right to use, copy, sell, or
+distribute any other implementations of the MD2, MD4, or MD5 message-digest
+algorithms created, implemented, or distributed by RSA is hereby granted by
+implication, estoppel, or otherwise.  Parties interested in licensing
+security components and toolkits written by RSA should contact the company
+to discuss receiving a license.  All other questions should be directed to
+Margaret K. Seif, General Counsel, RSA Security Inc., 36 Crosby Drive,
+Bedford, Massachusetts 01730.
+
+        Implementations of the MD2, MD4, or MD5 algorithms may be subject to
+United States laws and regulations controlling the export of technical data,
+computer software, laboratory prototypes and other commodities (including
+the Arms Export Control Act, as amended, and the Export Administration Act
+of 1970).  The transfer of certain technical data and commodities may
+require a license from the cognizant agency of the United States Government.
+RSA neither represents that a license shall not be required for a particular
+implementation nor that, if required, one shall be issued.
+
+
+        DISCLAIMER: RSA MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES
+OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
+WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, VALIDITY OF
+INTELLECTUAL PROPERTY RIGHTS, ISSUED OR PENDING, OR THE ABSENCE OF LATENT OR
+OTHER DEFECTS, WHETHER OR NOT DISCOVERABLE, IN CONNECTION WITH THE MD2, MD4,
+OR MD5 ALGORITHMS.  NOTHING IN THIS GRANT OF RIGHTS SHALL BE CONSTRUED AS A
+REPRESENTATION OR WARRANTY GIVEN BY RSA THAT THE IMPLEMENTATION OF THE
+ALGORITHM WILL NOT INFRINGE THE INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD
+PARTY.  IN NO EVENT SHALL RSA, ITS TRUSTEES, DIRECTORS, OFFICERS, EMPLOYEES,
+PARENTS AND AFFILIATES BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES OF
+ANY KIND RESULTING FROM IMPLEMENTATION OF THIS ALGORITHM, INCLUDING ECONOMIC
+DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS, REGARDLESS OF WHETHER RSA
+SHALL BE ADVISED, SHALL HAVE OTHER REASON TO KNOW, OR IN FACT SHALL KNOW OF
+THE POSSIBILITY OF SUCH INJURY OR DAMAGE.
+
+============================================================================
+
+ERLANG PUBLIC LICENSE
+Version 1.1
+
+1. Definitions.
+
+1.1. ``Contributor'' means each entity that creates or contributes to
+the creation of Modifications.
+
+1.2. ``Contributor Version'' means the combination of the Original
+Code, prior Modifications used by a Contributor, and the Modifications
+made by that particular Contributor.
+
+1.3. ``Covered Code'' means the Original Code or Modifications or the
+combination of the Original Code and Modifications, in each case
+including portions thereof.
+
+1.4. ``Electronic Distribution Mechanism'' means a mechanism generally
+accepted in the software development community for the electronic
+transfer of data.
+
+1.5. ``Executable'' means Covered Code in any form other than Source
+Code.
+
+1.6. ``Initial Developer'' means the individual or entity identified
+as the Initial Developer in the Source Code notice required by Exhibit
+A.
+
+1.7. ``Larger Work'' means a work which combines Covered Code or
+portions thereof with code not governed by the terms of this License.
+
+1.8. ``License'' means this document.
+
+1.9. ``Modifications'' means any addition to or deletion from the
+substance or structure of either the Original Code or any previous
+Modifications. When Covered Code is released as a series of files, a
+Modification is:
+
+A. Any addition to or deletion from the contents of a file containing
+   Original Code or previous Modifications. 
+
+B. Any new file that contains any part of the Original Code or
+   previous Modifications. 
+
+1.10. ``Original Code'' means Source Code of computer software code
+which is described in the Source Code notice required by Exhibit A as
+Original Code, and which, at the time of its release under this
+License is not already Covered Code governed by this License.
+
+1.11. ``Source Code'' means the preferred form of the Covered Code for
+making modifications to it, including all modules it contains, plus
+any associated interface definition files, scripts used to control
+compilation and installation of an Executable, or a list of source
+code differential comparisons against either the Original Code or
+another well known, available Covered Code of the Contributor's
+choice. The Source Code can be in a compressed or archival form,
+provided the appropriate decompression or de-archiving software is
+widely available for no charge.
+
+1.12. ``You'' means an individual or a legal entity exercising rights
+under, and complying with all of the terms of, this License. For legal
+entities,``You'' includes any entity which controls, is controlled by,
+or is under common control with You. For purposes of this definition,
+``control'' means (a) the power, direct or indirect, to cause the
+direction or management of such entity, whether by contract or
+otherwise, or (b) ownership of fifty percent (50%) or more of the
+outstanding shares or beneficial ownership of such entity.
+
+2. Source Code License.
+
+2.1. The Initial Developer Grant.
+The Initial Developer hereby grants You a world-wide, royalty-free,
+non-exclusive license, subject to third party intellectual property
+claims:
+
+(a) to use, reproduce, modify, display, perform, sublicense and
+    distribute the Original Code (or portions thereof) with or without
+    Modifications, or as part of a Larger Work; and 
+
+(b) under patents now or hereafter owned or controlled by Initial
+    Developer, to make, have made, use and sell (``Utilize'') the
+    Original Code (or portions thereof), but solely to the extent that
+    any such patent is reasonably necessary to enable You to Utilize
+    the Original Code (or portions thereof) and not to any greater
+    extent that may be necessary to Utilize further Modifications or
+    combinations. 
+
+2.2. Contributor Grant.
+Each Contributor hereby grants You a world-wide, royalty-free,
+non-exclusive license, subject to third party intellectual property
+claims:
+
+(a) to use, reproduce, modify, display, perform, sublicense and
+    distribute the Modifications created by such Contributor (or
+    portions thereof) either on an unmodified basis, with other
+    Modifications, as Covered Code or as part of a Larger Work; and 
+
+(b) under patents now or hereafter owned or controlled by Contributor,
+    to Utilize the Contributor Version (or portions thereof), but
+    solely to the extent that any such patent is reasonably necessary
+    to enable You to Utilize the Contributor Version (or portions
+    thereof), and not to any greater extent that may be necessary to
+    Utilize further Modifications or combinations. 
+
+3. Distribution Obligations.
+
+3.1. Application of License.
+The Modifications which You contribute are governed by the terms of
+this License, including without limitation Section 2.2. The Source
+Code version of Covered Code may be distributed only under the terms
+of this License, and You must include a copy of this License with
+every copy of the Source Code You distribute. You may not offer or
+impose any terms on any Source Code version that alters or restricts
+the applicable version of this License or the recipients' rights
+hereunder. However, You may include an additional document offering
+the additional rights described in Section 3.5. 
+
+3.2. Availability of Source Code.
+Any Modification which You contribute must be made available in Source
+Code form under the terms of this License either on the same media as
+an Executable version or via an accepted Electronic Distribution
+Mechanism to anyone to whom you made an Executable version available;
+and if made available via Electronic Distribution Mechanism, must
+remain available for at least twelve (12) months after the date it
+initially became available, or at least six (6) months after a
+subsequent version of that particular Modification has been made
+available to such recipients. You are responsible for ensuring that
+the Source Code version remains available even if the Electronic
+Distribution Mechanism is maintained by a third party.
+
+3.3. Description of Modifications.
+You must cause all Covered Code to which you contribute to contain a
+file documenting the changes You made to create that Covered Code and
+the date of any change. You must include a prominent statement that
+the Modification is derived, directly or indirectly, from Original
+Code provided by the Initial Developer and including the name of the
+Initial Developer in (a) the Source Code, and (b) in any notice in an
+Executable version or related documentation in which You describe the
+origin or ownership of the Covered Code.
+
+3.4. Intellectual Property Matters
+
+(a) Third Party Claims.
+    If You have knowledge that a party claims an intellectual property
+    right in particular functionality or code (or its utilization
+    under this License), you must include a text file with the source
+    code distribution titled ``LEGAL'' which describes the claim and
+    the party making the claim in sufficient detail that a recipient
+    will know whom to contact. If you obtain such knowledge after You
+    make Your Modification available as described in Section 3.2, You
+    shall promptly modify the LEGAL file in all copies You make
+    available thereafter and shall take other steps (such as notifying
+    appropriate mailing lists or newsgroups) reasonably calculated to
+    inform those who received the Covered Code that new knowledge has
+    been obtained. 
+
+(b) Contributor APIs.
+    If Your Modification is an application programming interface and
+    You own or control patents which are reasonably necessary to
+    implement that API, you must also include this information in the
+    LEGAL file. 
+
+3.5. Required Notices.
+You must duplicate the notice in Exhibit A in each file of the Source
+Code, and this License in any documentation for the Source Code, where
+You describe recipients' rights relating to Covered Code. If You
+created one or more Modification(s), You may add your name as a
+Contributor to the notice described in Exhibit A. If it is not
+possible to put such notice in a particular Source Code file due to
+its structure, then you must include such notice in a location (such
+as a relevant directory file) where a user would be likely to look for
+such a notice. You may choose to offer, and to charge a fee for,
+warranty, support, indemnity or liability obligations to one or more
+recipients of Covered Code. However, You may do so only on Your own
+behalf, and not on behalf of the Initial Developer or any
+Contributor. You must make it absolutely clear than any such warranty,
+support, indemnity or liability obligation is offered by You alone,
+and You hereby agree to indemnify the Initial Developer and every
+Contributor for any liability incurred by the Initial Developer or
+such Contributor as a result of warranty, support, indemnity or
+liability terms You offer.
+
+3.6. Distribution of Executable Versions.
+You may distribute Covered Code in Executable form only if the
+requirements of Section 3.1-3.5 have been met for that Covered Code,
+and if You include a notice stating that the Source Code version of
+the Covered Code is available under the terms of this License,
+including a description of how and where You have fulfilled the
+obligations of Section 3.2. The notice must be conspicuously included
+in any notice in an Executable version, related documentation or
+collateral in which You describe recipients' rights relating to the
+Covered Code. You may distribute the Executable version of Covered
+Code under a license of Your choice, which may contain terms different
+from this License, provided that You are in compliance with the terms
+of this License and that the license for the Executable version does
+not attempt to limit or alter the recipient's rights in the Source
+Code version from the rights set forth in this License. If You
+distribute the Executable version under a different license You must
+make it absolutely clear that any terms which differ from this License
+are offered by You alone, not by the Initial Developer or any
+Contributor. You hereby agree to indemnify the Initial Developer and
+every Contributor for any liability incurred by the Initial Developer
+or such Contributor as a result of any such terms You offer.
+
+3.7. Larger Works.
+You may create a Larger Work by combining Covered Code with other code
+not governed by the terms of this License and distribute the Larger
+Work as a single product. In such a case, You must make sure the
+requirements of this License are fulfilled for the Covered Code.
+
+4. Inability to Comply Due to Statute or Regulation.
+If it is impossible for You to comply with any of the terms of this
+License with respect to some or all of the Covered Code due to statute
+or regulation then You must: (a) comply with the terms of this License
+to the maximum extent possible; and (b) describe the limitations and
+the code they affect. Such description must be included in the LEGAL
+file described in Section 3.4 and must be included with all
+distributions of the Source Code. Except to the extent prohibited by
+statute or regulation, such description must be sufficiently detailed
+for a recipient of ordinary skill to be able to understand it.
+
+5. Application of this License.
+
+This License applies to code to which the Initial Developer has
+attached the notice in Exhibit A, and to related Covered Code.
+
+6. CONNECTION TO MOZILLA PUBLIC LICENSE
+
+This Erlang License is a derivative work of the Mozilla Public
+License, Version 1.0. It contains terms which differ from the Mozilla
+Public License, Version 1.0.
+
+7. DISCLAIMER OF WARRANTY.
+
+COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN ``AS IS'' BASIS,
+WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
+DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR
+NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF
+THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE
+IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER
+CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR
+CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART
+OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER
+EXCEPT UNDER THIS DISCLAIMER.
+
+8. TERMINATION.
+This License and the rights granted hereunder will terminate
+automatically if You fail to comply with terms herein and fail to cure
+such breach within 30 days of becoming aware of the breach. All
+sublicenses to the Covered Code which are properly granted shall
+survive any termination of this License. Provisions which, by their
+nature, must remain in effect beyond the termination of this License
+shall survive.
+
+9. DISCLAIMER OF LIABILITY
+Any utilization of Covered Code shall not cause the Initial Developer
+or any Contributor to be liable for any damages (neither direct nor
+indirect).
+
+10. MISCELLANEOUS
+This License represents the complete agreement concerning the subject
+matter hereof. If any provision is held to be unenforceable, such
+provision shall be reformed only to the extent necessary to make it
+enforceable. This License shall be construed by and in accordance with
+the substantive laws of Sweden. Any dispute, controversy or claim
+arising out of or relating to this License, or the breach, termination
+or invalidity thereof, shall be subject to the exclusive jurisdiction
+of Swedish courts, with the Stockholm City Court as the first
+instance.
+	
+EXHIBIT A.
+
+``The contents of this file are subject to the Erlang Public License,
+Version 1.1, (the "License"); you may not use this file except in
+compliance with the License. You should have received a copy of the
+Erlang Public License along with this software. If not, it can be
+retrieved via the world wide web at http://www.erlang.org/.
+
+Software distributed under the License is distributed on an "AS IS"
+basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+the License for the specific language governing rights and limitations
+under the License.
+
+The Initial Developer of the Original Code is Ericsson Utvecklings AB.
+Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
+AB. All Rights Reserved.''
+
--- erlang-14.a-dfsg.orig/debian/patches/ssl.patch
+++ erlang-14.a-dfsg/debian/patches/ssl.patch
@@ -0,0 +1,464 @@
+ssl.patch by Mikael Magnusson <mikma@users.sourceforge.net>
+
+Patch adds support for IPv6 to the ssl application.
+
+--- erlang-14.a-dfsg.orig/erts/configure.in
++++ erlang-14.a-dfsg/erts/configure.in
+@@ -1692,6 +1692,8 @@
+ 	esac
+ fi
+ AC_CHECK_FUNCS([getnameinfo getipnodebyname getipnodebyaddr gethostbyname2])
++AC_CHECK_FUNCS([inet_pton])
++AC_CHECK_TYPES([struct sockaddr_storage],,,[#include <netinet/in.h>])
+ 
+ AC_CHECK_FUNCS([ieee_handler fpsetmask finite isnan isinf res_gethostbyname dlopen \
+ 		pread pwrite writev memmove strerror strerror_r strncasecmp \
+--- erlang-14.a-dfsg.orig/erts/config.h.in
++++ erlang-14.a-dfsg/erts/config.h.in
+@@ -272,6 +272,9 @@
+ /* Define if ipv6 is present */
+ #undef HAVE_IN6
+ 
++/* Define to 1 if you have the `inet_pton' function. */
++#undef HAVE_INET_PTON
++
+ /* Define to 1 if you have the <inttypes.h> header file. */
+ #undef HAVE_INTTYPES_H
+ 
+@@ -458,6 +461,9 @@
+ /* Define to 1 if `ssf_data' is member of `struct sctp_send_failed'. */
+ #undef HAVE_STRUCT_SCTP_SEND_FAILED_SSF_DATA
+ 
++/* Define to 1 if the system has the type `struct sockaddr_storage'. */
++#undef HAVE_STRUCT_SOCKADDR_STORAGE
++
+ /* Define to 1 if you have the <syslog.h> header file. */
+ #undef HAVE_SYSLOG_H
+ 
+--- erlang-14.a-dfsg.orig/lib/ssl/c_src/esock.c
++++ erlang-14.a-dfsg/lib/ssl/c_src/esock.c
+@@ -132,6 +132,11 @@
+ #define INADDR_NONE 0xffffffff  /* Should be in <netinet/in.h>.  */
+ #endif
+ 
++#if defined(HAVE_STRUCT_SOCKADDR_STORAGE) && defined(HAVE_GETNAMEINFO) && \
++    defined(HAVE_INET_PTON)
++# define USE_IPV6
++#endif
++
+ #include "esock.h"
+ #include "debuglog.h"
+ #include "esock_utils.h"
+@@ -178,6 +183,15 @@
+ static void dump_connections(void);
+ static int check_num_sock_fds(FD fd); 
+ static void safe_close(FD fd);
++
++#if defined(USE_IPV6)
++static FD do_connect6(char *lipstring, int lport, char *fipstring, int fport);
++static FD do_listen6(char *ipstring, int lport, int backlog, int *aport);
++static int ss_getport(const struct sockaddr *sa, socklen_t size);
++static int reply_sockaddr(int cmd, int fd, const struct sockaddr *sa,
++			  socklen_t size);
++#endif
++
+ static Connection *new_connection(int state, FD fd);
+ static Connection *get_connection(FD fd);
+ static void remove_connection(Connection *conn);
+@@ -366,7 +380,11 @@
+     char *protocol_vsn, *cipher;
+     unsigned char *cert, *bin;
+     int certlen, binlen;
++#if defined(USE_IPV6)
++    struct sockaddr_storage iserv_addr;
++#else
+     struct sockaddr_in iserv_addr;
++#endif
+     int sret = 1;
+     Connection *cp, *cpnext, *newcp;
+     Proxy *pp;
+@@ -443,7 +461,12 @@
+ 			/* Add to pending proxy connections */
+ 			SET_NONBLOCKING(proxysock);
+ 			pp = new_proxy(proxysock);
++#if defined(USE_IPV6)
++			pp->peer_port =
++			    ss_getport((struct sockaddr *)&iserv_addr, length);
++#else
+ 			pp->peer_port = ntohs(iserv_addr.sin_port);
++#endif
+ 			DEBUGF(("-----------------------------------\n"));
+ 			DEBUGF(("[PROXY_LISTEN_SOCK] conn accepted: "
+ 				"proxyfd = %d, "
+@@ -498,9 +521,14 @@
+ 			 * reply  = {cmd(1), fd(4), port(2), 
+ 			 * 	    ipstring(N), 0(1)}
+ 			 */
++#if defined(USE_IPV6)
++			reply_sockaddr(ESOCK_GETPEERNAME_REP, fd,
++				       (struct sockaddr*)&iserv_addr, length);
++#else
+ 			reply(ESOCK_GETPEERNAME_REP, "42s", fd, 
+ 			      ntohs(iserv_addr.sin_port), 
+ 			      inet_ntoa(iserv_addr.sin_addr));
++#endif
+ 		    }
+ 		    break;
+ 
+@@ -524,9 +552,14 @@
+ 			 * reply  = {cmd(1), fd(4), port(2), 
+ 			 * 	    ipstring(N), 0(1)}
+ 			 */
++#if defined(USE_IPV6)
++			reply_sockaddr(ESOCK_GETSOCKNAME_REP, fd,
++				       (struct sockaddr*)&iserv_addr, length);
++#else
+ 			reply(ESOCK_GETSOCKNAME_REP, "42s", fd, 
+ 			      ntohs(iserv_addr.sin_port),
+ 			      inet_ntoa(iserv_addr.sin_addr));
++#endif
+ 		    }
+ 		    break;
+ 
+@@ -701,8 +734,7 @@
+ 		    }
+ 		    DEBUGF(("-> PASSIVE_LISTENING (fd = %d)\n", listensock));
+ 		    /* Publish listensock */
+-		    reply(ESOCK_LISTEN_REP, "442", intref, listensock,
+-			  ntohs(iserv_addr.sin_port));
++		    reply(ESOCK_LISTEN_REP, "442", intref, listensock, lport);
+ 		    break;
+ 
+ 		case ESOCK_TRANSPORT_ACCEPT_CMD:
+@@ -1516,6 +1548,11 @@
+     struct sockaddr_in sock_addr;
+     long inaddr;
+     FD fd;
++
++#if defined(USE_IPV6)
++    if (strchr(fipstring, ':'))
++	return do_connect6(lipstring, lport, fipstring, fport);
++#endif
+    
+     if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_FD) {
+ 	DEBUGF(("Error calling socket()\n"));
+@@ -1573,9 +1610,14 @@
+     static int one = 1;		/* Type must be int, not long */
+     struct sockaddr_in sock_addr;
+     long inaddr;
+-    int length;
++    unsigned int length;
+     FD fd;
+     
++#if defined(USE_IPV6)
++    if (strchr(ipstring, ':'))
++	return do_listen6(ipstring, lport, backlog, aport);
++#endif
++
+     if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_FD) {
+ 	DEBUGF(("Error calling socket()\n"));
+ 	return fd;
+@@ -1631,6 +1673,145 @@
+     return fd;
+ }
+ 
++#if defined(USE_IPV6)
++static FD do_connect6(char *lipstring, int lport, char *fipstring, int fport)
++{
++    struct sockaddr_in6 sock_addr;
++    FD fd;
++
++    if ((fd = socket(AF_INET6, SOCK_STREAM, 0)) == INVALID_FD) {
++	DEBUGF(("Error calling socket()\n"));
++	return fd;
++    }
++    if (check_num_sock_fds(fd) < 0) 
++	return INVALID_FD;
++    DEBUGF(("  fd = %d\n", fd));
++
++    memset(&sock_addr, 0, sizeof(sock_addr));
++    /* local */
++    if (inet_pton(AF_INET6, lipstring, &sock_addr.sin6_addr) <= 0) {
++	DEBUGF(("Error in inet_pton(): lipstring = %s\n", lipstring));
++	safe_close(fd);
++	sock_set_errno(ERRNO_ADDRNOTAVAIL);
++	return INVALID_FD;
++    }
++    sock_addr.sin6_family = AF_INET6;
++    sock_addr.sin6_port = htons(lport);
++    if(bind(fd, (struct sockaddr*) &sock_addr, sizeof(sock_addr)) < 0) {
++	DEBUGF(("Error in bind()\n"));
++	safe_close(fd);
++	/* XXX Set error code for bind error */
++	return INVALID_FD;
++    }
++
++    /* foreign */
++    memset(&sock_addr, 0, sizeof(sock_addr));
++    if (inet_pton(AF_INET6, fipstring, &sock_addr.sin6_addr) <= 0) {
++	DEBUGF(("Error in inet_pton(): fipstring = %s\n", fipstring));
++	safe_close(fd);
++	sock_set_errno(ERRNO_ADDRNOTAVAIL);
++	return INVALID_FD;
++    }
++    sock_addr.sin6_family = AF_INET6;
++    sock_addr.sin6_port = htons(fport);
++
++    SET_NONBLOCKING(fd);
++
++    if(connect(fd, (struct sockaddr*)&sock_addr, sizeof(sock_addr)) < 0) {
++	if (sock_errno() != ERRNO_PROGRESS && /* UNIX */
++	    sock_errno() != ERRNO_BLOCK) { /* WIN32 */
++	    DEBUGF(("Error in connect()\n"));
++	    safe_close(fd);
++	    return INVALID_FD;
++	}
++    }
++    return fd;
++}
++
++static FD do_listen6(char *ipstring, int lport, int backlog, int *aport)
++{
++    static int one = 1;		/* Type must be int, not long */
++    struct sockaddr_in6 sock_addr;
++    socklen_t length;
++    FD fd;
++    
++    if ((fd = socket(AF_INET6, SOCK_STREAM, 0)) == INVALID_FD) {
++	DEBUGF(("Error calling socket()\n"));
++	return fd;
++    }
++    if (check_num_sock_fds(fd) < 0) 
++	return INVALID_FD;
++    DEBUGF(("  fd = %d\n", fd));
++    memset(&sock_addr, 0, sizeof(sock_addr));
++    if (inet_pton(AF_INET6, ipstring, &sock_addr.sin6_addr) <= 0) {
++	DEBUGF(("Error in inet_pton(): ipstring = %s\n", ipstring));
++	safe_close(fd);
++	sock_set_errno(ERRNO_ADDRNOTAVAIL);
++	return INVALID_FD;
++    }
++    sock_addr.sin6_family = AF_INET6;
++    sock_addr.sin6_port = htons(lport);
++
++    setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (void *)&one, sizeof(one));
++
++    if(bind(fd, (struct sockaddr*) &sock_addr, sizeof(sock_addr)) < 0) {
++	DEBUGF(("Error in bind()\n"));
++	safe_close(fd);
++	return INVALID_FD;
++    }
++    if (listen(fd, backlog) < 0) {
++	DEBUGF(("Error in listen()\n"));
++	safe_close(fd);
++	return INVALID_FD;
++    }
++    /* find out assigned local port number */
++    length = sizeof(sock_addr);
++    if (getsockname(fd, (struct sockaddr *)&sock_addr, &length) < 0) {
++	DEBUGF(("Error in getsockname()\n"));
++	safe_close(fd);
++	return INVALID_FD;
++    }
++    if (aport)
++	*aport = ntohs(sock_addr.sin6_port);
++    return fd;
++}
++
++static int reply_sockaddr(int cmd, int fd, const struct sockaddr *sa,
++			  socklen_t size)
++{
++    char addr[INET6_ADDRSTRLEN+1] = "";
++    char port[10] = "";
++    int res;
++
++    res = getnameinfo(sa, size,
++		      addr, sizeof(addr), port, sizeof(port),
++		      NI_NUMERICHOST | NI_NUMERICSERV);
++    if (res) {
++	if (res != EAI_SYSTEM) {
++	    sock_set_errno(ERRNO_INVAL);
++	}
++	return reply(cmd, "4s", fd, psx_errstr());
++    } else {
++	return reply(cmd, "42s", fd, atoi(port), addr);
++    }
++}
++
++static int ss_getport(const struct sockaddr *sa, socklen_t size)
++{
++    char port[10] = "";
++    int res;
++
++    res = getnameinfo(sa, size,
++		      NULL, 0, port, sizeof(port), NI_NUMERICSERV);
++    if (res) {
++	return -1;
++    } else {
++	return atoi(port);
++    }
++}
++#endif
++
++
+ static Connection *new_connection(int state, FD fd)
+ {
+     Connection *cp;
+--- erlang-14.a-dfsg.orig/lib/ssl/src/ssl_broker.erl
++++ erlang-14.a-dfsg/lib/ssl/src/ssl_broker.erl
+@@ -471,7 +471,7 @@
+     debug(St, "peername: client = ~w~n", [Client]),
+     Reply = case ssl_server:peername(St#st.fd) of
+ 		{ok, {Address, Port}} ->
+-		    {ok, At} = inet_parse:ipv4_address(Address),
++		    {ok, At} = inet_parse:address(Address),
+ 		    {ok, {At, Port}};
+ 		Error ->
+ 		    Error
+@@ -527,7 +527,7 @@
+     debug(St, "sockname: client = ~w~n", [Client]),
+     Reply = case ssl_server:sockname(St#st.fd) of
+ 		{ok, {Address, Port}} ->
+-		    {ok, At} = inet_parse:ipv4_address(Address),
++		    {ok, At} = inet_parse:address(Address),
+ 		    {ok, {At, Port}};
+ 		Error ->
+ 		    Error
+@@ -684,7 +684,8 @@
+     SSLOpts = get_ssl_opts(Opts),
+     FlagStr =mk_ssl_optstr(SSLOpts),
+     BackLog = get_backlog(LOpts),
+-    IP = get_ip(LOpts),
++    Family = get_family(Opts),
++    IP = get_ip(LOpts, Family),
+     case ssl_server:listen_prim(ServerName, IP, Port, FlagStr, BackLog) of
+ 	{ok, ListenFd, _Port0} ->
+ 	    ThisSocket = #sslsocket{fd = ListenFd, pid = self()},
+@@ -707,10 +708,11 @@
+     COpts = get_tcp_connect_opts(Opts),
+     SSLOpts = get_ssl_opts(Opts),
+     FlagStr = mk_ssl_optstr(SSLOpts),
+-    case inet:getaddr(FAddress, inet) of
++    Family = get_family(Opts),
++    case inet:getaddr(FAddress, Family) of
+ 	{ok, FIP} ->
+ 	    %% Timeout is gen_server timeout - hence catch
+-	    LIP = get_ip(COpts),
++	    LIP = get_ip(COpts, Family),
+ 	    LPort = get_port(COpts),
+ 	    case (catch ssl_server:connect_prim(ServerName, 
+ 						LIP, LPort, FIP, FPort, 
+@@ -997,8 +999,13 @@
+ get_backlog(Opts) ->
+     get_tagged_opt(backlog, Opts, ?DEF_BACKLOG).
+ 
+-get_ip(Opts) ->
+-    get_tagged_opt(ip, Opts, {0, 0, 0, 0}).
++get_ip(Opts, Family) ->
++    DefaultIp =
++	case Family of
++	    inet -> {0, 0, 0, 0};
++	    inet6 -> {0, 0, 0, 0, 0, 0, 0, 0}
++	end,
++    get_tagged_opt(ip, Opts, DefaultIp).
+ 
+ get_port(Opts) ->
+     get_tagged_opt(port, Opts, 0).
+@@ -1006,6 +1013,9 @@
+ get_nodelay(Opts) ->
+     get_tagged_opt(nodelay, Opts, empty).
+ 
++get_family(Opts) ->
++    get_tagged_opt(family, transform_opts(Opts), inet).
++
+ %%
+ %% add_default_*_opts(Opts) -> NOpts
+ %%
+@@ -1054,6 +1064,8 @@
+ transform_opt(binary) -> 	[{mode, binary}];
+ transform_opt(list) -> 		[{mode, list}];
+ transform_opt({packet, raw}) ->	[{packet, 0}];
++transform_opt(inet) -> 	[{family, inet}];
++transform_opt(inet6) -> 	[{family, inet6}];
+ transform_opt(raw) -> 		[];
+ transform_opt(Opt) -> 		[Opt].
+ 
+@@ -1061,10 +1073,10 @@
+ %% only.
+ 
+ is_connect_opt(Opt) ->
+-    is_tcp_connect_opt(Opt) or is_ssl_opt(Opt).
++    is_tcp_connect_opt(Opt) or is_ssl_opt(Opt) or is_family_opt(Opt).
+ 
+ is_listen_opt(Opt) ->
+-    is_tcp_listen_opt(Opt) or is_ssl_opt(Opt).
++    is_tcp_listen_opt(Opt) or is_ssl_opt(Opt) or is_family_opt(Opt).
+ 
+ is_tcp_accept_opt(Opt) ->
+     is_tcp_gen_opt(Opt).
+@@ -1120,6 +1132,10 @@
+ is_ssl_opt({cachetimeout, Timeout}) when Timeout >= 0 -> true;
+ is_ssl_opt(_Opt) -> false.
+ 
++is_family_opt({family, inet}) -> true;
++is_family_opt({family, inet6}) -> true;
++is_family_opt(_Opt) -> false.
++
+ %% Various types
+ is_string(String) when is_list(String) ->
+     lists:all(fun (C) when is_integer(C), 0 =< C, C =< 255 -> true; 
+@@ -1130,11 +1146,20 @@
+ 
+ is_ip_address(Addr) when tuple_size(Addr) =:= 4 ->
+     is_string(tuple_to_list(Addr));
++is_ip_address(Addr) when is_tuple(Addr), size(Addr) == 8 ->
++    is_ip6_string(tuple_to_list(Addr));
+ is_ip_address(Addr) when is_list(Addr) ->
+     is_string(Addr);
+ is_ip_address(_) ->
+     false.
+ 
++is_ip6_string(String) when is_list(String) ->
++    lists:all(fun (C) when is_integer(C), 0 =< C, C =< 65535 -> true; 
++		  (_C) -> false end, 
++	      String);
++is_ip6_string(_) ->
++    false.
++
+ get_tagged_opt(Tag, Opts, Default) ->
+     case lists:keysearch(Tag, 1, Opts) of
+ 	{value, {_, Value}} ->
+--- erlang-14.a-dfsg.orig/lib/ssl/src/ssl_prim.erl
++++ erlang-14.a-dfsg/lib/ssl/src/ssl_prim.erl
+@@ -118,7 +118,7 @@
+ peername(#st{fd = Fd, status = open}) ->
+     case ssl_server:peername_prim(ssl_server_prim, Fd) of
+ 	{ok, {Address, Port}} ->
+-	    {ok, At} = inet_parse:ipv4_address(Address),
++	    {ok, At} = inet_parse:address(Address),
+ 	    {ok, {At, Port}};
+ 	Error ->
+ 	    Error
+@@ -129,7 +129,7 @@
+ sockname(#st{fd = Fd, status = open}) ->
+     case ssl_server:sockname_prim(ssl_server_prim, Fd) of
+ 	{ok, {Address, Port}} ->
+-	    {ok, At} = inet_parse:ipv4_address(Address),
++	    {ok, At} = inet_parse:address(Address),
+ 	    {ok, {At, Port}};
+ 	Error ->
+ 	    Error
+--- erlang-14.a-dfsg.orig/lib/ssl/src/ssl_server.erl
++++ erlang-14.a-dfsg/lib/ssl/src/ssl_server.erl
+@@ -1363,7 +1363,10 @@
+ 
+ ip_to_string({A,B,C,D}) ->
+     [integer_to_list(A),$.,integer_to_list(B),$.,
+-     integer_to_list(C),$.,integer_to_list(D)].
++     integer_to_list(C),$.,integer_to_list(D)];
++
++ip_to_string(Addr) when is_tuple(Addr), size(Addr) == 8 ->
++    inet_parse:ntoa(Addr).
+ 
+ debug(St, Format, Args) ->
+     debug1(St#st.debug, Format, Args).
--- erlang-14.a-dfsg.orig/debian/patches/clean.patch
+++ erlang-14.a-dfsg/debian/patches/clean.patch
@@ -0,0 +1,208 @@
+clean.patch by Sergei Golovan <sgolovan@nes.ru>
+
+Erlang leaves many files after make clean. This patch contains
+a hack to remove them.
+
+--- erlang-14.a-dfsg.orig/Makefile.in
++++ erlang-14.a-dfsg/Makefile.in
+@@ -999,6 +999,7 @@
+ 	cd erts && ERL_TOP=$(ERL_TOP) $(MAKE) clean
+ 	cd lib  && ERL_TOP=$(ERL_TOP) $(MAKE) clean BUILD_ALL=true
+ 	cd lib/dialyzer && ERL_TOP=$(ERL_TOP) $(MAKE) clean
++	$(MAKE) additional_clean
+ 
+ #
+ # Just wipe out emulator, not libraries
+@@ -1033,3 +1034,192 @@
+ 		|| $(MAKE) BOOTSTRAP_ROOT=$(BOOTSTRAP_ROOT) bootstrap_root_clean
+ 
+ # ----------------------------------------------------------------------
++
++additional_clean:
++	rm -rf $(ERL_TOP)/bin
++	rm -rf $(ERL_TOP)/bootstrap/bin/erl
++	rm -rf $(ERL_TOP)/bootstrap/bin/erlc
++	rm -rf $(ERL_TOP)/bootstrap/lib/asn1
++	rm -rf $(ERL_TOP)/bootstrap/lib/hipe
++	rm -rf $(ERL_TOP)/bootstrap/lib/ic
++	rm -rf $(ERL_TOP)/bootstrap/lib/parsetools
++	rm -rf $(ERL_TOP)/bootstrap/lib/sasl
++	rm -rf $(ERL_TOP)/bootstrap/lib/snmp
++	rm -rf $(ERL_TOP)/bootstrap/lib/syntax_tools
++	rm -rf $(ERL_TOP)/bootstrap/lib/test_server
++	rm -rf $(ERL_TOP)/bootstrap/lib/wx
++	rm -rf $(ERL_TOP)/erts/config.log
++	rm -rf $(ERL_TOP)/erts/config.status
++	rm -rf $(ERL_TOP)/erts/emulator/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/emulator/obj
++	rm -rf $(ERL_TOP)/erts/emulator/pcre/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/emulator/pcre/obj
++	rm -rf $(ERL_TOP)/erts/emulator/pcre/pcre_exec_loop_break_cases.inc
++	rm -rf $(ERL_TOP)/erts/emulator/zlib/obj
++	rm -rf $(ERL_TOP)/erts/emulator/zlib/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/epmd/src/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/etc/common/erl.src
++	rm -rf $(ERL_TOP)/erts/etc/common/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/etc/common/Install
++	rm -rf $(ERL_TOP)/erts/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/include/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/include/internal/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/info
++	rm -rf $(ERL_TOP)/erts/lib/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/lib/internal/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/lib_src/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/lib_src/obj
++	rm -rf $(ERL_TOP)/erts/Makefile
++	rm -rf $(ERL_TOP)/erts/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/obj.debug/$(TARGET)
++	rm -rf $(ERL_TOP)/erts/start_scripts/RELEASES.src
++	rm -rf $(ERL_TOP)/erts/start_scripts/tmp
++	rm -rf $(ERL_TOP)/lib/asn1/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/asn1/priv/lib/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/asn1/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/common_test/config.log
++	rm -rf $(ERL_TOP)/lib/common_test/config.status
++	rm -rf $(ERL_TOP)/lib/common_test/install.sh
++	rm -rf $(ERL_TOP)/lib/common_test/priv/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/config.log
++	rm -rf $(ERL_TOP)/lib/config.status
++	rm -rf $(ERL_TOP)/lib/cosEventDomain/include/CosEventDomainAdmin_EventDomainFactory.hrl
++	rm -rf $(ERL_TOP)/lib/cosEventDomain/include/CosEventDomainAdmin_EventDomain.hrl
++	rm -rf $(ERL_TOP)/lib/cosEventDomain/include/CosEventDomainAdmin.hrl
++	rm -rf $(ERL_TOP)/lib/cosEventDomain/include/oe_CosEventDomainAdmin.hrl
++	rm -rf $(ERL_TOP)/lib/crypto/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/crypto/priv/lib/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/crypto/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/docbuilder/ebin/docbuilder.appup
++	rm -rf $(ERL_TOP)/lib/erl_interface/bin/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/erl_interface/config.log
++	rm -rf $(ERL_TOP)/lib/erl_interface/config.status
++	rm -rf $(ERL_TOP)/lib/erl_interface/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/erl_interface/obj.mt/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/erl_interface/obj.st/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/erl_interface/src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/et/doc/html/.html
++	rm -rf $(ERL_TOP)/lib/eunit/doc/src/eunit_surefire.xml
++	rm -rf $(ERL_TOP)/lib/eunit/doc/src/eunit.xml
++	rm -rf $(ERL_TOP)/lib/gs/config.log
++	rm -rf $(ERL_TOP)/lib/gs/config.status
++	rm -rf $(ERL_TOP)/lib/gs/tcl/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/gs/tcl/win32
++	rm -rf $(ERL_TOP)/lib/ic/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/ic/priv/com
++	rm -rf $(ERL_TOP)/lib/ic/priv/ic.jar
++	rm -rf $(ERL_TOP)/lib/ic/priv/lib/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/ic/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/jinterface/priv/com
++	rm -rf $(ERL_TOP)/lib/jinterface/priv/OtpErlang.jar
++	rm -rf $(ERL_TOP)/lib/kernel/ebin/*.beam
++	rm -rf $(ERL_TOP)/lib/kernel/ebin/*.app
++	rm -rf $(ERL_TOP)/lib/kernel/ebin/*.appup
++	rm -rf $(ERL_TOP)/lib/kernel/src/inet_dns_record_adts.hrl
++	rm -rf $(ERL_TOP)/lib/megaco/config.log
++	rm -rf $(ERL_TOP)/lib/megaco/config.status
++	rm -rf $(ERL_TOP)/lib/megaco/priv/lib/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/megaco/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/megaco/src/flex/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/mnesia/doc/src/Mnesia_App_B.xml
++	rm -rf $(ERL_TOP)/lib/mnesia/doc/src/Mnesia_App_C.xml
++	rm -rf $(ERL_TOP)/lib/mnesia/doc/src/Mnesia_App_D.xml
++	rm -rf $(ERL_TOP)/lib/mnesia/doc/src/Mnesia_chap2.xml
++	rm -rf $(ERL_TOP)/lib/mnesia/doc/src/Mnesia_chap4.xml
++	rm -rf $(ERL_TOP)/lib/mnesia/doc/src/Mnesia_chap5.xml
++	rm -rf $(ERL_TOP)/lib/mnesia/doc/src/Mnesia_chap7.xml
++	rm -rf $(ERL_TOP)/lib/mnesia_session/src/mnesia_AttrNames.erl
++	rm -rf $(ERL_TOP)/lib/mnesia_session/src/mnesia_Checkpoints.erl
++	rm -rf $(ERL_TOP)/lib/mnesia_session/src/mnesia_Indices.erl
++	rm -rf $(ERL_TOP)/lib/mnesia_session/src/mnesia_KeyList.erl
++	rm -rf $(ERL_TOP)/lib/mnesia_session/src/mnesia_NodeList.erl
++	rm -rf $(ERL_TOP)/lib/mnesia_session/src/mnesia_Recordlist.erl
++	rm -rf $(ERL_TOP)/lib/mnesia_session/src/mnesia_TableList.erl
++	rm -rf $(ERL_TOP)/lib/odbc/config.log
++	rm -rf $(ERL_TOP)/lib/odbc/config.status
++	rm -rf $(ERL_TOP)/lib/odbc/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/odbc/priv/bin/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/odbc/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/orber/COSS/CosNaming/CosNaming_NamingContextExt_AlreadyBound.erl
++	rm -rf $(ERL_TOP)/lib/orber/COSS/CosNaming/CosNaming_NamingContextExt_CannotProceed.erl
++	rm -rf $(ERL_TOP)/lib/orber/COSS/CosNaming/CosNaming_NamingContextExt_InvalidName.erl
++	rm -rf $(ERL_TOP)/lib/orber/COSS/CosNaming/CosNaming_NamingContextExt_NotEmpty.erl
++	rm -rf $(ERL_TOP)/lib/orber/COSS/CosNaming/CosNaming_NamingContextExt_NotFound.erl
++	rm -rf $(ERL_TOP)/lib/orber/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/orber/priv/bin/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/orber/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/orber/src/OrberCSIv2.beam
++	rm -rf $(ERL_TOP)/lib/orber/src/PKIX1Explicit88.asn1db
++	rm -rf $(ERL_TOP)/lib/orber/src/PKIX1Implicit88.asn1db
++	rm -rf $(ERL_TOP)/lib/orber/src/PKIXAttributeCertificate.asn1db
++	rm -rf $(ERL_TOP)/lib/os_mon/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/os_mon/doc/man6/os_mon.6
++	rm -rf $(ERL_TOP)/lib/os_mon/priv/bin/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/os_mon/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/otp_mibs/ebin/otp_mib.beam
++	rm -rf $(ERL_TOP)/lib/percept/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/percept/priv/lib
++	rm -rf $(ERL_TOP)/lib/percept/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/runtime_tools/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/runtime_tools/priv/lib/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/runtime_tools/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/snmp/config.log
++	rm -rf $(ERL_TOP)/lib/snmp/config.status
++	rm -rf $(ERL_TOP)/lib/snmp/mibs/Makefile
++	rm -rf $(ERL_TOP)/lib/ssl/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/ssl/doc/man6/ssl.6
++	rm -rf $(ERL_TOP)/lib/ssl/doc/src/using_ssl.xml
++	rm -rf $(ERL_TOP)/lib/ssl/examples/certs/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/ssl/pkix/OTP-PKIX.asn1db
++	rm -rf $(ERL_TOP)/lib/ssl/priv/bin/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/ssl/priv/obj/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/test_server/src/configure
++	rm -rf $(ERL_TOP)/lib/tools/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/tools/src/xref_parser.erl
++	rm -rf $(ERL_TOP)/lib/webtool/ebin/webtool.appup
++	rm -rf $(ERL_TOP)/lib/wx/config.log
++	rm -rf $(ERL_TOP)/lib/wx/config.mk
++	rm -rf $(ERL_TOP)/lib/wx/c_src/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/wx/c_src/Makefile
++	rm -rf $(ERL_TOP)/lib/wx/doc/src/ref_man.xml
++	rm -rf $(ERL_TOP)/lib/wx/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/wx/priv/$(TARGET)
++	rm -rf $(ERL_TOP)/lib/xmerl/doc/src/xmerl_ug.xml
++	rm -rf $(ERL_TOP)/make/emd2exml
++	rm -rf $(ERL_TOP)/make/$(TARGET)
++	rm -rf $(ERL_TOP)/Makefile
++	rm -rf $(ERL_TOP)/system/doc/html/applications.html
++	rm -rf $(ERL_TOP)/system/doc/html/design_principles
++	rm -rf $(ERL_TOP)/system/doc/html/efficiency_guide
++	rm -rf $(ERL_TOP)/system/doc/html/embedded
++	rm -rf $(ERL_TOP)/system/doc/html/getting_started
++	rm -rf $(ERL_TOP)/system/doc/html/highlights.html
++	rm -rf $(ERL_TOP)/system/doc/html/incompatible.html
++	rm -rf $(ERL_TOP)/system/doc/html/index.html
++	rm -rf $(ERL_TOP)/system/doc/html/installation_guide
++	rm -rf $(ERL_TOP)/system/doc/html/js
++	rm -rf $(ERL_TOP)/system/doc/html/man_index.html
++	rm -rf $(ERL_TOP)/system/doc/html/oam
++	rm -rf $(ERL_TOP)/system/doc/html/otp-system-documentation.eix
++	rm -rf $(ERL_TOP)/system/doc/html/programming_examples
++	rm -rf $(ERL_TOP)/system/doc/html/reference_manual
++	rm -rf $(ERL_TOP)/system/doc/html/system_architecture_intro
++	rm -rf $(ERL_TOP)/system/doc/html/system_principles
++	rm -rf $(ERL_TOP)/system/doc/html/tutorial
++	rm -rf $(ERL_TOP)/system/doc/installation_guide/INSTALL-CROSS.xml
++	rm -rf $(ERL_TOP)/system/doc/installation_guide/INSTALL-WIN32.xml
++	rm -rf $(ERL_TOP)/system/doc/installation_guide/INSTALL.xml
++	rm -rf $(ERL_TOP)/system/doc/pdf/otp-system-documentation-5.8.fo
++	rm -rf $(ERL_TOP)/system/doc/pdf/otp-system-documentation-5.8.pdf
++	rm -rf $(ERL_TOP)/system/doc/programming_examples/funs.xml
++	rm -rf $(ERL_TOP)/system/doc/top/ebin/erl_html_tools.beam
++	rm -rf $(ERL_TOP)/system/doc/top/ebin/erlresolvelinks.beam
++	rm -rf $(ERL_TOP)/system/doc/top/ebin/otp_man_index.beam
++	rm -rf $(ERL_TOP)/system/doc/top/erlresolvelinks.js
++	rm -rf $(ERL_TOP)/system/doc/top/PR.template
++	rm -rf $(ERL_TOP)/system/doc/tutorial/cnode.xml
++	rm -rf $(ERL_TOP)/system/doc/tutorial/c_portdriver.xml
++	rm -rf $(ERL_TOP)/system/doc/tutorial/c_port.xml
++	rm -rf $(ERL_TOP)/system/doc/tutorial/erl_interface.xml
++	rm -rf $(ERL_TOP)/system/doc/tutorial/example.xml
++	rm -rf $(ERL_TOP)/system/doc/tutorial/nif.xml
--- erlang-14.a-dfsg.orig/debian/patches/rpath.patch
+++ erlang-14.a-dfsg/debian/patches/rpath.patch
@@ -0,0 +1,20 @@
+Author: Sergei Golovan <sgolovan@debian.org>
+Description: A quick hack which removes rpath from crypto and ssl applications binaries to
+ satisfy Debian policy.
+Forwarded: no
+Last-modified:Sat, 27 Feb 2010 09:34:43 +0300
+--- erlang-14.a-dfsg.orig/erts/configure.in
++++ erlang-14.a-dfsg/erts/configure.in
+@@ -3858,9 +3858,9 @@
+ SSL_CC_RUNTIME_LIBRARY_PATH=
+ SSL_LD_RUNTIME_LIBRARY_PATH=
+ SSL_DED_LD_RUNTIME_LIBRARY_PATH=
+-cc_rflg="$CFLAG_RUNTIME_LIBRARY_PATH"
+-ld_rflg="$LDFLAG_RUNTIME_LIBRARY_PATH"
+-ded_ld_rflg="$DED_LD_FLAG_RUNTIME_LIBRARY_PATH"
++cc_rflg=
++ld_rflg=
++ded_ld_rflg=
+ 
+ if test "$SSL_APP" != "" && test "$SSL_DYNAMIC_ONLY" = "yes" && \
+    { test "$cc_rflg" != "" || test "$ld_rflg" != "" || test "$ded_ld_rflg" != ""; } ; then
--- erlang-14.a-dfsg.orig/debian/patches/hppa.patch
+++ erlang-14.a-dfsg/debian/patches/hppa.patch
@@ -0,0 +1,25 @@
+Author: Sergei Golovan <sgolovan@debian.org>
+Description: The patch adds a temporary workaround for a bug in kernel and
+ glibc for hppa architecture where vfork()+exec() fail (see thread
+ http://lists.debian.org/debian-hppa/2009/12/msg00035.html for details)
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562218
+Forwarded: no
+Last-updated: Mon, 22 Feb 2010 10:34:34 +0300
+
+--- erlang-14.a-dfsg.orig/erts/configure.in
++++ erlang-14.a-dfsg/erts/configure.in
+@@ -1706,6 +1706,14 @@
+ AC_FUNC_SETVBUF_REVERSED	
+ 
+ disable_vfork=false
++AC_MSG_CHECKING([if vfork is to be disabled (for HPPA)])
++case $host_alias in
++	hppa*)
++		AC_MSG_RESULT(yes)
++		disable_vfork=true;;
++	*)
++		AC_MSG_RESULT(no);;
++esac
+ if test "x$EMU_THR_LIB_NAME" != "x"; then
+ 	AC_MSG_CHECKING([if vfork is known to hang multithreaded applications])
+ 	case $host_os in
--- erlang-14.a-dfsg.orig/debian/patches/cve-2011-0766.patch
+++ erlang-14.a-dfsg/debian/patches/cve-2011-0766.patch
@@ -0,0 +1,345 @@
+Description: Patch fixes CVE-2011-0766 (cryptographic weakness) vulnerability
+ in Erlang SSH application. It is taken from upstream git repository
+ https://github.com/erlang/otp/commit/f228601de45c5
+Author: Upstream
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628456
+Last-Updated: Tue, 03 Jan 2012 14:05:07 +0400
+
+--- erlang-14.a-dfsg.orig/lib/crypto/c_src/crypto.c
++++ erlang-14.a-dfsg/lib/crypto/c_src/crypto.c
+@@ -127,7 +127,9 @@
+ static ERL_NIF_TERM des_ede3_cbc_crypt(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
+ static ERL_NIF_TERM aes_cfb_128_crypt(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
+ static ERL_NIF_TERM rand_bytes_1(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
++static ERL_NIF_TERM strong_rand_bytes_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
+ static ERL_NIF_TERM rand_bytes_3(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
++static ERL_NIF_TERM strong_rand_mpint_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
+ static ERL_NIF_TERM rand_uniform_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
+ static ERL_NIF_TERM mod_exp_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
+ static ERL_NIF_TERM dss_verify(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]);
+@@ -195,7 +197,9 @@
+     {"des_ede3_cbc_crypt", 6, des_ede3_cbc_crypt},
+     {"aes_cfb_128_crypt", 4, aes_cfb_128_crypt},
+     {"rand_bytes", 1, rand_bytes_1},
++    {"strong_rand_bytes_nif", 1, strong_rand_bytes_nif},
+     {"rand_bytes", 3, rand_bytes_3},
++    {"strong_rand_mpint_nif", 3, strong_rand_mpint_nif},
+     {"rand_uniform_nif", 2, rand_uniform_nif},
+     {"mod_exp_nif", 3, mod_exp_nif},
+     {"dss_verify", 4, dss_verify},
+@@ -667,6 +671,22 @@
+     ERL_VALGRIND_MAKE_MEM_DEFINED(data, bytes);
+     return ret;
+ }
++static ERL_NIF_TERM strong_rand_bytes_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
++{/* (Bytes) */     
++    unsigned bytes;
++    unsigned char* data;
++    ERL_NIF_TERM ret;
++    if (!enif_get_uint(env, argv[0], &bytes)) {
++        return enif_make_badarg(env);
++    }
++    data = enif_make_new_binary(env, bytes, &ret);
++    if ( RAND_bytes(data, bytes) != 1) {
++        return atom_false;
++    }
++    ERL_VALGRIND_MAKE_MEM_DEFINED(data, bytes);
++    return ret;
++}
++
+ static ERL_NIF_TERM rand_bytes_3(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
+ {/* (Bytes, TopMask, BottomMask) */    
+     unsigned bytes;
+@@ -687,6 +707,47 @@
+     }
+     return ret;
+ }
++static ERL_NIF_TERM strong_rand_mpint_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
++{/* (Bytes, TopMask, BottomMask) */    
++    unsigned bits;
++    BIGNUM *bn_rand;
++    int top, bottom;
++    unsigned char* data;
++    unsigned dlen;
++    ERL_NIF_TERM ret;
++    if (!enif_get_uint(env, argv[0], &bits)
++        || !enif_get_int(env, argv[1], &top)
++        || !enif_get_int(env, argv[2], &bottom)) {
++        return enif_make_badarg(env);
++    }
++    if (! (top == -1 || top == 0 || top == 1) ) {
++        return enif_make_badarg(env);
++    }
++    if (! (bottom == 0 || bottom == 1) ) {
++        return enif_make_badarg(env);
++    }
++
++    bn_rand = BN_new();
++    if (! bn_rand ) {
++        return enif_make_badarg(env);
++    }
++
++    /* Get a (bits) bit random number */
++    if (!BN_rand(bn_rand, bits, top, bottom)) {
++        ret = atom_false;
++    }
++    else {
++        /* Copy the bignum into an erlang mpint binary. */
++        dlen = BN_num_bytes(bn_rand);
++        data = enif_make_new_binary(env, dlen+4, &ret);
++        put_int32(data, dlen);
++        BN_bn2bin(bn_rand, data+4);
++        ERL_VALGRIND_MAKE_MEM_DEFINED(data+4, dlen);
++    }
++    BN_free(bn_rand);
++
++    return ret;
++}
+ 
+ static int get_bn_from_mpint(ErlNifEnv* env, ERL_NIF_TERM term, BIGNUM** bnp)
+ {
+--- erlang-14.a-dfsg.orig/lib/crypto/doc/src/crypto.xml
++++ erlang-14.a-dfsg/lib/crypto/doc/src/crypto.xml
+@@ -587,6 +587,21 @@
+       </desc>
+     </func>
+     <func>
++      <name>strong_rand_bytes(N) -> binary()</name>
++      <fsummary>Generate a binary of random bytes</fsummary>
++      <type>
++        <v>N = integer()</v>
++      </type>
++      <desc>
++        <p>Generates N bytes randomly uniform 0..255, and returns the
++        result in a binary. Uses a cryptographically secure prng seeded and
++        periodically mixed with operating system provided entropy. By default
++        this is the <c>RAND_bytes</c> method from OpenSSL.</p>
++        <p>May throw exception <c>low_entropy</c> in case the random generator
++        failed due to lack of secure "randomness".</p>
++      </desc>
++    </func>
++    <func>
+       <name>rand_uniform(Lo, Hi) -> N</name>
+       <fsummary>Generate a random number</fsummary>
+       <type>
+@@ -601,6 +616,31 @@
+       </desc>
+     </func>
+     <func>
++      <name>strong_rand_mpint(N, Top, Bottom) -> Mpint</name>
++      <fsummary>Generate an N bit random number</fsummary>
++      <type>
++        <v>N = non_neg_integer()</v>
++        <v>Top = -1 | 0 | 1</v>
++        <v>Bottom = 0 | 1</v>
++        <v>Mpint = binary()</v>
++      </type>
++      <desc>
++        <p>Generate an N bit random number using OpenSSL's
++        cryptographically strong pseudo random number generator
++        <c>BN_rand</c>.</p>
++        <p>The parameter <c>Top</c> places constraints on the most
++        significant bits of the generated number. If <c>Top</c> is 1, then the
++        two most significant bits will be set to 1, if <c>Top</c> is 0, the
++        most significant bit will be 1, and if <c>Top</c> is -1 then no
++        constraints are applied and thus the generated number may be less than
++        N bits long.</p>
++        <p>If <c>Bottom</c> is 1, then the generated number is
++        constrained to be odd.</p>
++        <p>May throw exception <c>low_entropy</c> in case the random generator
++        failed due to lack of secure "randomness".</p>
++      </desc>
++    </func>
++    <func>
+       <name>mod_exp(N, P, M) -> Result</name>
+       <fsummary>Perform N ^ P mod M</fsummary>
+       <type>
+--- erlang-14.a-dfsg.orig/lib/crypto/src/crypto.erl
++++ erlang-14.a-dfsg/lib/crypto/src/crypto.erl
+@@ -46,6 +46,7 @@
+ -export([rsa_private_encrypt/3, rsa_public_decrypt/3]).
+ -export([dh_generate_key/1, dh_generate_key/2, dh_compute_key/3]).
+ -export([rand_bytes/1, rand_bytes/3, rand_uniform/2]).
++-export([strong_rand_bytes/1, strong_rand_mpint/3]).
+ -export([mod_exp/3, mpint/1, erlint/1]).
+ %% -export([idea_cbc_encrypt/3, idea_cbc_decrypt/3]).
+ -export([aes_cbc_128_encrypt/3, aes_cbc_128_decrypt/3]).
+@@ -67,6 +68,8 @@
+ 		    des_ede3_cbc_encrypt, des_ede3_cbc_decrypt,
+ 		    aes_cfb_128_encrypt, aes_cfb_128_decrypt,
+ 		    rand_bytes,
++		    strong_rand_bytes,
++		    strong_rand_mpint,
+ 		    rand_uniform,
+ 		    mod_exp,
+ 		    dss_verify,dss_sign,
+@@ -340,12 +343,32 @@
+ %% RAND - pseudo random numbers using RN_ functions in crypto lib
+ %%
+ -spec rand_bytes(non_neg_integer()) -> binary().
++-spec strong_rand_bytes(non_neg_integer()) -> binary().
+ -spec rand_uniform(crypto_integer(), crypto_integer()) ->
+ 			  crypto_integer().
++-spec strong_rand_mpint(Bits::non_neg_integer(),
++      Top::-1..1,
++      Bottom::0..1) -> binary().
+ 
+ rand_bytes(_Bytes) -> ?nif_stub.
++
++strong_rand_bytes(Bytes) ->
++    case strong_rand_bytes_nif(Bytes) of
++        false -> erlang:error(low_entropy);
++        Bin -> Bin
++    end.
++strong_rand_bytes_nif(_Bytes) -> ?nif_stub.
++
+ rand_bytes(_Bytes, _Topmask, _Bottommask) -> ?nif_stub.
+ 
++strong_rand_mpint(Bits, Top, Bottom) -> 
++    case strong_rand_mpint_nif(Bits,Top,Bottom) of
++        false -> erlang:error(low_entropy);
++        Bin -> Bin
++    end.
++strong_rand_mpint_nif(_Bits, _Top, _Bottom) -> ?nif_stub.
++
++
+ rand_uniform(From,To) when is_binary(From), is_binary(To) ->
+     case rand_uniform_nif(From,To) of
+ 	<<Len:32/integer, MSB, Rest/binary>> when MSB > 127 ->
+--- erlang-14.a-dfsg.orig/lib/ssh/src/ssh.appup.src
++++ erlang-14.a-dfsg/lib/ssh/src/ssh.appup.src
+@@ -19,8 +19,40 @@
+ 
+ {"%VSN%",	
+  [
++  {"2.0.3", [{load_module, ssh_bits, soft_purge, soft_purge, []},
++             {load_module, ssh_connection_handler, soft_purge, soft_purge, []},
++             {load_module, ssh_file, soft_purge, soft_purge, []},
++             {load_module, ssh, soft_purge, soft_purge, []},
++             {load_module, ssh_rsa, soft_purge, soft_purge, []},
++             {load_module, ssh_acceptor, soft_purge, soft_purge, []},
++             {load_module, ssh_transport, soft_purge, soft_purge, []},
++             {load_module, ssh_connection_manager, soft_purge, soft_purge, []}]},
++  {"2.0.2", [{load_module, ssh_bits, soft_purge, soft_purge, []},
++             {load_module, ssh_connection_handler, soft_purge, soft_purge, []},
++             {load_module, ssh_file, soft_purge, soft_purge, []},
++             {load_module, ssh, soft_purge, soft_purge, []},
++             {load_module, ssh_rsa, soft_purge, soft_purge, []},
++             {load_module, ssh_acceptor, soft_purge, soft_purge, []},
++             {load_module, ssh_transport, soft_purge, soft_purge, []},
++             {load_module, ssh_connection_manager, soft_purge, soft_purge, []}]}
+  ],
+  [
++  {"2.0.3", [{load_module, ssh_bits, soft_purge, soft_purge, []},
++             {load_module, ssh_connection_handler, soft_purge, soft_purge, []},
++             {load_module, ssh_file, soft_purge, soft_purge, []},
++             {load_module, ssh, soft_purge, soft_purge, []},
++             {load_module, ssh_rsa, soft_purge, soft_purge, []},
++             {load_module, ssh_acceptor, soft_purge, soft_purge, []},
++             {load_module, ssh_transport, soft_purge, soft_purge, []},
++             {load_module, ssh_connection_manager, soft_purge, soft_purge, []}]},
++  {"2.0.2", [{load_module, ssh_bits, soft_purge, soft_purge, []},
++             {load_module, ssh_connection_handler, soft_purge, soft_purge, []},
++             {load_module, ssh_file, soft_purge, soft_purge, []},
++             {load_module, ssh, soft_purge, soft_purge, []},
++             {load_module, ssh_rsa, soft_purge, soft_purge, []},
++             {load_module, ssh_acceptor, soft_purge, soft_purge, []},
++             {load_module, ssh_transport, soft_purge, soft_purge, []},
++             {load_module, ssh_connection_manager, soft_purge, soft_purge, []}]}
+  ] 
+ }.
+ 
+--- erlang-14.a-dfsg.orig/lib/ssh/src/ssh_bits.erl
++++ erlang-14.a-dfsg/lib/ssh/src/ssh_bits.erl
+@@ -34,7 +34,7 @@
+ %% integer utils
+ -export([isize/1]).
+ -export([irandom/1, irandom/3]).
+--export([random/1, random/3]).
++-export([random/1]).
+ -export([xor_bits/2, fill_bits/2]).
+ -export([i2bin/2, bin2i/1]).
+ 
+@@ -401,9 +401,6 @@
+ irandom(Bits) ->
+     irandom(Bits, 1, 0).
+ 
+-%% irandom_odd(Bits) ->
+-%%     irandom(Bits, 1, 1).
+-
+ %%
+ %% irandom(N, Top, Bottom)
+ %%
+@@ -414,57 +411,16 @@
+ %%       Bot = 0 - do not set the least signifcant bit
+ %%       Bot = 1 - set the least signifcant bit (i.e always odd)
+ %%
+-irandom(0, _Top, _Bottom) -> 
+-    0;
+-irandom(Bits, Top, Bottom) ->
+-    Bytes = (Bits+7) div 8,
+-    Skip  = (8-(Bits rem 8)) rem 8,
+-    TMask = case Top of
+-		  0 -> 0;
+-		  1 -> 16#80;
+-		  2 -> 16#c0
+-	      end,
+-    BMask = case Bottom of
+-		0 -> 0;
+-		1 -> (1 bsl Skip)
+-	    end,
+-    <<X:Bits/big-unsigned-integer, _:Skip>> = random(Bytes, TMask, BMask),
+-    X.
++irandom(Bits, Top, Bottom) when is_integer(Top),
++                                0 =< Top, Top =< 2 ->
++    crypto:erlint(crypto:strong_rand_mpint(Bits, Top - 1, Bottom)).
+ 
+ %%
+ %% random/1
+ %%   Generate N random bytes
+ %%
+ random(N) ->
+-    random(N, 0, 0).
+-
+-random(N, TMask, BMask) ->
+-    list_to_binary(rnd(N, TMask, BMask)).
+-
+-%% random/3
+-%%   random(Bytes, TopMask, BotMask)
+-%% where 
+-%% Bytes is the number of bytes to generate
+-%% TopMask is bitwised or'ed to the first byte
+-%% BotMask is bitwised or'ed to the last byte
+-%%
+-rnd(0, _TMask, _BMask) ->
+-    [];
+-rnd(1, TMask, BMask) ->
+-    [(rand8() bor TMask) bor BMask];
+-rnd(N, TMask, BMask) ->
+-    [(rand8() bor TMask) | rnd_n(N-1, BMask)].
+-
+-rnd_n(1, BMask) ->
+-    [rand8() bor BMask];
+-rnd_n(I, BMask) ->
+-    [rand8() | rnd_n(I-1, BMask)].
+-
+-rand8() ->
+-    (rand32() bsr 8) band 16#ff.
+-
+-rand32() ->
+-    random:uniform(16#100000000) -1.
++    crypto:strong_rand_bytes(N).
+ 
+ %%
+ %% Base 64 encode/decode
+--- erlang-14.a-dfsg.orig/lib/ssh/src/ssh_connection_handler.erl
++++ erlang-14.a-dfsg/lib/ssh/src/ssh_connection_handler.erl
+@@ -106,8 +106,6 @@
+ %% initialize. 
+ %%--------------------------------------------------------------------
+ init([Role, Manager, Socket, SshOpts]) ->
+-    {A,B,C} = erlang:now(),
+-    random:seed(A, B, C),
+     {NumVsn, StrVsn} = ssh_transport:versions(Role, SshOpts),
+     ssh_bits:install_messages(ssh_transport:transport_messages(NumVsn)),
+     {Protocol, Callback, CloseTag} = 
--- erlang-14.a-dfsg.orig/debian/patches/sparc.patch
+++ erlang-14.a-dfsg/debian/patches/sparc.patch
@@ -0,0 +1,45 @@
+sparc.patch by Jurij Smakov <jurij@wooyd.org>
+
+(1) Defines ARCH=ultrasparc for any sparc* architecture. This allows
+    to build HiPE enabled package for sparc in Debian.
+
+(2) Fixes FTBFS(see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=328031).
+
+--- erlang-14.a-dfsg.orig/erts/configure.in
++++ erlang-14.a-dfsg/erts/configure.in
+@@ -609,7 +609,7 @@
+ fi
+ 
+ case $chk_arch_ in
+-    sun4u)	ARCH=ultrasparc;;
++    sun4u|sparc*)	ARCH=ultrasparc;;
+     sparc64)	ARCH=sparc64;;
+     sun4v)	ARCH=ultrasparc;;
+     i86pc)	ARCH=x86;;
+--- erlang-14.a-dfsg.orig/erts/emulator/beam/beam_emu.c
++++ erlang-14.a-dfsg/erts/emulator/beam/beam_emu.c
+@@ -1022,16 +1022,6 @@
+  * in registers.
+  */
+ 
+-#if defined(__GNUC__) && defined(sparc) && !defined(DEBUG)
+-#  define REG_x0 asm("%l0")
+-#  define REG_xregs asm("%l1")
+-#  define REG_htop asm("%l2")
+-#  define REG_stop asm("%l3")
+-#  define REG_I asm("%l4")
+-#  define REG_fcalls asm("%l5")
+-#  define REG_tmp_arg1 asm("%l6")
+-#  define REG_tmp_arg2 asm("%l7")
+-#else
+ #  define REG_x0
+ #  define REG_xregs
+ #  define REG_htop
+@@ -1040,7 +1030,6 @@
+ #  define REG_fcalls
+ #  define REG_tmp_arg1
+ #  define REG_tmp_arg2
+-#endif
+ 
+ /*
+  * process_main() is called twice:
--- erlang-14.a-dfsg.orig/debian/patches/build-options.patch
+++ erlang-14.a-dfsg/debian/patches/build-options.patch
@@ -0,0 +1,88 @@
+build-options.patch by James Henstridge <james.henstridge@canonical.com>
+and Sergei Golovan
+
+Set ERL_COMPILE_FLAGS based on DEB_BUILD_OPTIONS instead of hard coding
+it based on the platform.  By default, we'll generate compressed stripped
+BEAM files.
+
+Also, add debug info to VM binaries if DEB_BUILD_OPTIONS contains "debug".
+
+--- erlang-14.a-dfsg.orig/Makefile.in
++++ erlang-14.a-dfsg/Makefile.in
+@@ -16,6 +16,9 @@
+ #
+ # %CopyrightEnd%
+ 
++ifeq ($(TYPE),debug)
++TYPEMARKER = .debug
++endif
+ # Toplevel makefile for building the Erlang system
+ #
+ 
+--- erlang-14.a-dfsg.orig/erts/etc/common/Makefile.in
++++ erlang-14.a-dfsg/erts/etc/common/Makefile.in
+@@ -499,13 +499,13 @@
+ 
+ Install:	../unix/Install.src ../../vsn.mk $(TARGET)/Makefile
+ 	sed -e 's;%I_VSN%;$(VSN);' \
+-	    -e 's;%EMULATOR%;$(EMULATOR);' \
++	    -e 's;%EMULATOR%;$(EMULATOR)$(TYPEMARKER);' \
+             -e 's;%EMULATOR_NUMBER%;$(EMULATOR_NUMBER);' \
+ 	    -e 's;%I_SYSTEM_VSN%;$(SYSTEM_VSN);' \
+           ../unix/Install.src > Install
+ 
+ erl.src: ../unix/erl.src.src ../../vsn.mk $(TARGET)/Makefile
+-	sed -e 's;%EMULATOR%;$(EMULATOR);' \
++	sed -e 's;%EMULATOR%;$(EMULATOR)$(TYPEMARKER);' \
+             -e 's;%EMULATOR_NUMBER%;$(EMULATOR_NUMBER);' \
+             -e 's;%VSN%;$(VSN);' \
+                   ../unix/erl.src.src > erl.src
+--- erlang-14.a-dfsg.orig/erts/emulator/Makefile.in
++++ erlang-14.a-dfsg/erts/emulator/Makefile.in
+@@ -258,7 +258,7 @@
+ CS_CFLAGS = $(CS_CFLAGS_)
+ endif
+ CS_LDFLAGS = $(LDFLAGS)
+-CS_LIBS = -L../lib/internal/$(TARGET) -lerts_internal @ERTS_INTERNAL_X_LIBS@
++CS_LIBS = -L../lib/internal/$(TARGET) -lerts_internal$(TYPEMARKER) @ERTS_INTERNAL_X_LIBS@
+ 
+ LIBS	+= @TERMCAP_LIB@ -L../lib/internal/$(TARGET) @ERTS_INTERNAL_X_LIBS@
+ 
+@@ -284,7 +284,7 @@
+ LIBS    += $(ERL_TOP)/erts/emulator/pcre/obj/$(TARGET)/$(TYPE)/libepcre.a
+ DEPLIBS += \
+ 	$(ERL_TOP)/erts/emulator/pcre/obj/$(TARGET)/$(TYPE)/libepcre.a \
+-	$(ERL_TOP)/erts/lib/internal/$(TARGET)/liberts_internal.a 
++	$(ERL_TOP)/erts/lib/internal/$(TARGET)/liberts_internal$(TYPEMARKER).a 
+ # rem liberts_internal.a
+ endif
+ 
+--- erlang-14.a-dfsg.orig/make/otp.mk.in
++++ erlang-14.a-dfsg/make/otp.mk.in
+@@ -72,18 +72,17 @@
+ #	Erlang language section
+ # ----------------------------------------------------
+ EMULATOR = beam
+-ifeq ($(findstring vxworks,$(TARGET)),vxworks)
+-# VxWorks object files should be compressed.
+-# Other object files should have debug_info.
+-  ERL_COMPILE_FLAGS += +compressed
++ifdef BOOTSTRAP
++  ERL_COMPILE_FLAGS += +slim
+ else
+-  ifeq ($(findstring ose_ppc750,$(TARGET)),ose_ppc750)
+-    ERL_COMPILE_FLAGS += +compressed
++  ERL_COMPILE_FLAGS += +compressed
++  ifeq ($(findstring debug,$(DEB_BUILD_OPTIONS)),debug)
++    ERL_COMPILE_FLAGS += +debug_info
+   else
+-    ifdef BOOTSTRAP
+-      ERL_COMPILE_FLAGS += +slim
+-    else
++    ifeq ($(findstring nostrip,$(DEB_BUILD_OPTIONS)),nostrip)
+       ERL_COMPILE_FLAGS += +debug_info
++    else
++      ERL_COMPILE_FLAGS += +slim
+     endif
+   endif
+ endif
--- erlang-14.a-dfsg.orig/debian/patches/man.patch
+++ erlang-14.a-dfsg/debian/patches/man.patch
@@ -0,0 +1,21 @@
+man.patch by Francois-Denis Gonthier <neumann@lostwebsite.net>
+
+Patch allows to use standard man path with erl -man command.
+(Erlang manual pages are placed to /usr/share/man/ hierarchy
+as required by Debian policy.)
+
+--- erlang-14.a-dfsg.orig/erts/etc/common/erlexec.c
++++ erlang-14.a-dfsg/erts/etc/common/erlexec.c
+@@ -707,8 +707,10 @@
+ 			error("-man not supported on Windows");
+ #else
+ 			argv[i] = "man";
+-			sprintf(tmpStr, "%s/man", rootdir);
+-			set_env("MANPATH", tmpStr);
++			/*
++			* Conform to erlang-manpages content.
++			*/
++			putenv(strsave("MANSECT=3erl:1:5:7"));
+ 			execvp("man", argv+i);
+ 			error("Could not execute the 'man' command.");
+ #endif
--- erlang-14.a-dfsg.orig/debian/patches/wx.patch
+++ erlang-14.a-dfsg/debian/patches/wx.patch
@@ -0,0 +1,26 @@
+Author: Upstream
+Description: Fixes crash in wx callback
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592821
+Forwarded: not-needed
+Last-updated: Tue, 12 Oct 2010 11:12:10 +0400
+
+--- erlang-14.a-dfsg.orig/lib/wx/c_src/wxe_impl.cpp
++++ erlang-14.a-dfsg/lib/wx/c_src/wxe_impl.cpp
+@@ -411,7 +411,7 @@
+ 	  if(event->caller == process ||  // Callbacks from CB process only 
+ 	     event->op == WXE_CB_START || // Recursive event callback allow
+ 	     // Allow connect_cb during CB i.e. msg from wxe_server.
+-	     event->caller == memenv->owner) 
++	     (memenv && event->caller == memenv->owner)) 
+ 	    {
+ 	      switch(event->op) {
+ 	      case WXE_BATCH_END:
+@@ -669,7 +669,7 @@
+       send_msg("debug", &msg);
+     }
+     
+-    if(refd->pid != -1) {  
++    if(((int) refd->pid) != -1) {
+       // Send terminate pid to owner
+       wxeReturn rt = wxeReturn(WXE_DRV_PORT,refd->memenv->owner, false);
+       rt.addAtom("_wxe_destroy_");
--- erlang-14.a-dfsg.orig/debian/patches/odbc.patch
+++ erlang-14.a-dfsg/debian/patches/odbc.patch
@@ -0,0 +1,134 @@
+Author: Upstream
+Description: Fixes connecting odbcserver back to Erlang VM in IPv6-only
+ environment
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598525
+Forwarded: not-needed
+Last-updated: Sun, 14 Nov 2010 12:20:41 +0300
+
+--- erlang-14.a-dfsg.orig/lib/odbc/src/odbc.erl
++++ erlang-14.a-dfsg/lib/odbc/src/odbc.erl
+@@ -441,10 +441,12 @@ init(Args) ->
+ 
+     {ok, ListenSocketSup} =
+ 	gen_tcp:listen(0, [Inet, binary, {packet, ?LENGTH_INDICATOR_SIZE},
+-			   {active, false}, {nodelay, true}]),
++			   {active, false}, {nodelay, true},
++			   {ip, loopback}]),
+     {ok, ListenSocketOdbc} =
+ 	gen_tcp:listen(0, [Inet, binary, {packet, ?LENGTH_INDICATOR_SIZE},
+-			   {active, false}, {nodelay, true}]),
++			   {active, false}, {nodelay, true},
++			   {ip, loopback}]),
+ 
+     %% Start the port program (a c program) that utilizes the odbc driver 
+     case os:find_executable(?SERVERPROG, ?SERVERDIR) of
+--- erlang-14.a-dfsg.orig/lib/odbc/c_src/odbcserver.c
++++ erlang-14.a-dfsg/lib/odbc/c_src/odbcserver.c
+@@ -1727,74 +1727,48 @@ static byte * receive_erlang_port_msg(void)
+ }
+  
+ /* ------------- Socket communication functions --------------------------*/
+-#define USE_IPV4
+-#ifdef UNIX
+-#define SOCKET int   
+-#endif
+ 
+-#if defined WIN32 || defined USE_IPV4
+-/* Currently only an old windows compiler is supported so we do not have ipv6
+-  capabilities */
++#if defined(WIN32)
+ static SOCKET connect_to_erlang(const char *port)
+-{
+-    SOCKET sock;
+-    struct sockaddr_in sin;
+-    
+-    sock = socket(AF_INET, SOCK_STREAM, 0);
+-    
+-    memset(&sin, 0, sizeof(sin));
+-    sin.sin_port = htons ((unsigned short)atoi(port));
+-    sin.sin_family = AF_INET;
+-    sin.sin_addr.s_addr = inet_addr("127.0.0.1");
+-    
+-    if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) != 0) {
+-        close_socket(sock);
+-        DO_EXIT(EXIT_SOCKET_CONNECT);
+-    }
+-    return sock;
+-}
+ #elif defined(UNIX)
+ static int connect_to_erlang(const char *port)
++#endif
+ {
+-    int sock;
+-    
+-    struct addrinfo hints;
+-    struct addrinfo *erlang_ai, *first;
+-    
+-    memset(&hints, 0, sizeof(hints));
+-    hints.ai_family = PF_UNSPEC; /* PF_INET or PF_INET6 */
+-    hints.ai_socktype = SOCK_STREAM;
+-    hints.ai_protocol = IPPROTO_TCP;
+-    
+-    if (getaddrinfo("localhost", port, &hints, &first) != 0) {
+-  	DO_EXIT(EXIT_FAILURE);
+-    }
++#if defined(WIN32)
++	SOCKET sock;
++#elif defined(UNIX)
++	int sock;
++#endif
++	struct sockaddr_in sin;
++
++#if defined(AF_INET6)
++	struct sockaddr_in6 sin6;
++
++	sock = socket(AF_INET6, SOCK_STREAM, 0);
++
++	memset(&sin6, 0, sizeof(sin6));
++	sin6.sin6_port = htons ((unsigned short)atoi(port));
++	sin6.sin6_family = AF_INET6;
++	sin6.sin6_addr = in6addr_loopback;
+     
+-    for (erlang_ai = first; erlang_ai; erlang_ai = erlang_ai->ai_next) {
++	if (connect(sock, (struct sockaddr*)&sin6, sizeof(sin6)) == 0) {
++		return sock;
++	}
++	close_socket(sock);
++#endif
++	sock = socket(AF_INET, SOCK_STREAM, 0);
++
++	memset(&sin, 0, sizeof(sin));
++	sin.sin_port = htons ((unsigned short)atoi(port));
++	sin.sin_family = AF_INET;
++	sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
+ 	
+-	sock = socket(erlang_ai->ai_family, erlang_ai->ai_socktype,
+-		      erlang_ai->ai_protocol);
+-	if (sock < 0)
+-	    continue;
+-	if (connect(sock,  (struct sockaddr*)erlang_ai->ai_addr,
+-		    erlang_ai->ai_addrlen) < 0) {
+-	    close(sock); 
+-	    sock = -1;
+-	    continue;
+-	} else {
+-	    break;
++	if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) != 0) {
++		close_socket(sock);
++		DO_EXIT(EXIT_SOCKET_CONNECT);
+ 	}
+-    }
+-    freeaddrinfo(first); 
+-    
+-    if (sock < 0){
+-	close_socket(sock); 
+-	DO_EXIT(EXIT_SOCKET_CONNECT); 
+-    }
+-    
+-    return sock;
++	return sock;
+ }
+-#endif
+ 
+ #ifdef WIN32
+ static void close_socket(SOCKET socket)
--- erlang-14.a-dfsg.orig/debian/patches/powerpc.patch
+++ erlang-14.a-dfsg/debian/patches/powerpc.patch
@@ -0,0 +1,14 @@
+Author: Sergei Golovan <sgolovan@debian.org>
+Description: Patch defines HiPE architecture ppc for powerpc arch.
+Last-Modified: Mon, 08 Mar 2010 12:23:16 +0300
+
+--- erlang-14.a-dfsg.orig/erts/configure.in
++++ erlang-14.a-dfsg/erts/configure.in
+@@ -620,6 +620,7 @@
+     x86_64)	ARCH=amd64;;
+     amd64)	ARCH=amd64;;
+     macppc)	ARCH=ppc;;
++    powerpc)	ARCH=ppc;;
+     ppc)	ARCH=ppc;;
+     ppc64)	ARCH=ppc64;;
+     "Power Macintosh")	ARCH=ppc;;
--- erlang-14.a-dfsg.orig/debian/patches/ssl_old.patch
+++ erlang-14.a-dfsg/debian/patches/ssl_old.patch
@@ -0,0 +1,26 @@
+Author: Sergei Golovan
+Description: Makes the old SSL implementation, which is more reliable
+ then the new one, the default one
+Forwarded: not-needed
+Last-updated: Sun, 17 Oct 2010 10:21:08 +0400
+
+--- erlang-14.a-dfsg.orig/lib/ssl/src/ssl.erl
++++ erlang-14.a-dfsg/lib/ssl/src/ssl.erl
+@@ -105,7 +105,7 @@
+     connect(Address, Port, Options, infinity).
+ 
+ connect(Address, Port, Options0, Timeout) ->
+-    case proplists:get_value(ssl_imp, Options0, new) of
++    case proplists:get_value(ssl_imp, Options0, old) of
+         new ->
+             new_connect(Address, Port, Options0, Timeout);
+         old ->
+@@ -128,7 +128,7 @@
+ listen(_Port, []) ->
+     {error, enooptions};
+ listen(Port, Options0) ->
+-    case proplists:get_value(ssl_imp, Options0, new) of
++    case proplists:get_value(ssl_imp, Options0, old) of
+ 	new ->
+ 	    new_listen(Port, Options0);
+ 	old ->
--- erlang-14.a-dfsg.orig/debian/patches/gnu.patch
+++ erlang-14.a-dfsg/debian/patches/gnu.patch
@@ -0,0 +1,62 @@
+gnu.patch by Aurelien Jarno <aurel32@debian.org> and
+Sergei Golovan <sgolovan@debian.org>
+
+(1) Defines GNU macros not only for Linux but also for any system
+    with 'gnu' substring in OS name. Fixes FTBFS on GNU/kFreeBSD and GNU/Hurd.
+
+(2) Undefines BSD4_4 for os_mon application for GNU/Hurd;
+
+(2) Skips building SSL certificate examples for GNU/Hurd (Debian GNU/Hurd has
+    no a random translator yet).
+--- erlang-14.a-dfsg.orig/erts/configure.in
++++ erlang-14.a-dfsg/erts/configure.in
+@@ -385,7 +385,7 @@
+ 
+ dnl NOTE: CPPFLAGS will be included in CFLAGS at the end
+ case $host_os in
+-    linux*) CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE";; 
++    linux*|*gnu*) CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE";; 
+     win32)
+ 	# The ethread library requires _WIN32_WINNT of at least 0x0403.
+ 	# -D_WIN32_WINNT=* from CPPFLAGS is saved in ETHR_DEFS.
+@@ -1148,7 +1148,7 @@
+ 	    solaris*)
+ 		enable_child_waiter_thread=yes
+ 		;;
+-	    linux*)
++	    linux*|*gnu*)
+ 		AC_DEFINE(USE_RECURSIVE_MALLOC_MUTEX,[1],
+ 			[Define if malloc should use a recursive mutex])
+ 		AC_MSG_CHECKING([whether dlopen() needs to be called before first call to dlerror()])
+--- erlang-14.a-dfsg.orig/lib/os_mon/c_src/memsup.c
++++ erlang-14.a-dfsg/lib/os_mon/c_src/memsup.c
+@@ -110,6 +110,11 @@
+ #include <memLib.h>
+ #endif
+ 
++#ifdef __GNU__
++#warning "Undefined BSD4_4 for GNU/Hurd"
++#undef BSD4_4
++#endif
++
+ #ifdef BSD4_4
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+--- erlang-14.a-dfsg.orig/lib/ssl/Makefile
++++ erlang-14.a-dfsg/lib/ssl/Makefile
+@@ -32,8 +32,15 @@
+ SKIP_BUILDING_BINARIES := true
+ endif
+ else
++ifeq ($(HOST_OS),)
++HOST_OS := $(shell $(ERL_TOP)/erts/autoconf/config.guess)
++endif
++ifeq ($(findstring gnu0.3,$(HOST_OS)),gnu0.3)
++SKIP_BUILDING_BINARIES := true
++else
+ SKIP_BUILDING_BINARIES := false
+ endif
++endif
+ 
+ ifeq ($(SKIP_BUILDING_BINARIES), true)
+ SUB_DIRECTORIES = src c_src doc/src 
--- erlang-14.a-dfsg.orig/debian/patches/series
+++ erlang-14.a-dfsg/debian/patches/series
@@ -0,0 +1,18 @@
+clean.patch
+rpath.patch
+gnu.patch
+sparc.patch
+man.patch
+emacs.patch
+ssl.patch
+m68k.patch
+docs.patch
+java.patch
+hppa.patch
+powerpc.patch
+wx.patch
+ssl_old.patch
+odbc.patch
+cve-2011-0766.patch
+#native.patch
+#build-options.patch
--- erlang-14.a-dfsg.orig/debian/patches/docs.patch
+++ erlang-14.a-dfsg/debian/patches/docs.patch
@@ -0,0 +1,93 @@
+Author: Sergei Golovan <sgolovan@debian.org>
+Description: Fixes a bug with .RE macro in the Erlang manpages.
+Last-modified:Sat, 27 Feb 2010 09:35:21 +0300
+
+--- erlang-14.a-dfsg.orig/lib/erl_docgen/priv/xsl/db_man.xsl
++++ erlang-14.a-dfsg/lib/erl_docgen/priv/xsl/db_man.xsl
+@@ -53,7 +53,7 @@
+   <xsl:template match="list">
+     <xsl:text>&#10;.RS 2</xsl:text>
+     <xsl:apply-templates/>
+-    <xsl:text>&#10;.RE</xsl:text>
++    <xsl:text>&#10;.RE&#10;</xsl:text>
+   </xsl:template>
+ 
+   <xsl:template match="list/item">
+@@ -66,7 +66,7 @@
+   <xsl:template match="taglist">
+     <xsl:text>&#10;.RS 2</xsl:text>
+     <xsl:apply-templates select="tag|item"/>
+-    <xsl:text>&#10;.RE</xsl:text>
++    <xsl:text>&#10;.RE&#10;</xsl:text>
+   </xsl:template>
+   
+   <xsl:template match="taglist/tag">
+@@ -91,7 +91,7 @@
+         <xsl:text>&#10;.RS 2</xsl:text>     
+         <xsl:text>&#10;.LP&#10;&#10;.LP&#10;</xsl:text>     
+         <xsl:value-of select="$content"/>
+-        <xsl:text>&#10;.RE</xsl:text>     
++        <xsl:text>&#10;.RE&#10;</xsl:text>     
+       </xsl:otherwise>
+     </xsl:choose>
+   </xsl:template>
+@@ -287,7 +287,7 @@
+     <xsl:text>&#10;.TP</xsl:text>
+     <xsl:text>&#10;Types</xsl:text>
+     <xsl:apply-templates/>
+-    <xsl:text>&#10;.RE</xsl:text>
++    <xsl:text>&#10;.RE&#10;</xsl:text>
+   </xsl:template>
+ 
+ 
+@@ -307,7 +307,7 @@
+   <xsl:template match="desc">
+     <xsl:text>&#10;.RS</xsl:text>
+     <xsl:apply-templates/>
+-    <xsl:text>&#10;.RE</xsl:text>
++    <xsl:text>&#10;.RE&#10;</xsl:text>
+   </xsl:template>
+ 
+ 
+--- erlang-14.a-dfsg.orig/lib/megaco/doc/src/Makefile
++++ erlang-14.a-dfsg/lib/megaco/doc/src/Makefile
+@@ -247,8 +247,6 @@
+ 	$(INSTALL_DATA) $(INFO_FILE) $(RELSYSDIR)
+ 	$(INSTALL_DIR) $(RELEASE_PATH)/man/man3
+ 	$(INSTALL_DATA) $(MAN3DIR)/* $(RELEASE_PATH)/man/man3
+-	$(INSTALL_DIR)  $(RELSYSDIR)/doc/standard
+-	$(INSTALL_DATA) $(STANDARDS) $(RELSYSDIR)/doc/standard
+ 
+ else
+ 
+@@ -270,8 +268,6 @@
+ 	$(INSTALL_DIR)  $(RELEASE_PATH)/man/man3
+ 	$(INSTALL_DATA) $(MAN3_FILES) $(RELEASE_PATH)/man/man3
+ 	$(INSTALL_DATA) $(TOP_HTML_FILES) $(RELSYSDIR)/doc
+-	$(INSTALL_DIR)  $(RELSYSDIR)/doc/standard
+-	$(INSTALL_DATA) $(STANDARDS) $(RELSYSDIR)/doc/standard
+ endif
+ endif
+ 
+--- erlang-14.a-dfsg.orig/lib/stdlib/doc/src/re.xml
++++ erlang-14.a-dfsg/lib/stdlib/doc/src/re.xml
+@@ -353,7 +353,7 @@
+       metacharacter should not match before it. Setting this without
+       <c>multiline</c> (at compile time) causes circumflex never to
+       match. This option affects only the behavior of the circumflex
+-      metacharacter. It does not affect \A.</item>
++      metacharacter. It does not affect \\A.</item>
+ 
+       <tag><c>noteol</c></tag>
+ 
+@@ -362,8 +362,8 @@
+       match it nor (except in multiline mode) a newline immediately
+       before it. Setting this without <c>multiline</c> (at compile time)
+       causes dollar never to match. This option affects only the
+-      behavior of the dollar metacharacter. It does not affect \Z or
+-      \z.</item>
++      behavior of the dollar metacharacter. It does not affect \\Z or
++      \\z.</item>
+ 
+       <tag><c>{offset, int()}</c></tag>
+ 
--- erlang-14.a-dfsg.orig/debian/patches/m68k.patch
+++ erlang-14.a-dfsg/debian/patches/m68k.patch
@@ -0,0 +1,33 @@
+m68k.patch by Sergei Golovan <sgolovan@nes.ru>
+
+This patch fixes 2 issues on m68k architecture:
+
+(1) FTBFS because of insufficiently aligned variable (thanks to
+    Aleksey Shchepin for help in debugging it).
+
+(2) Non-working networking besause of blind conversion of long to a pointer.
+
+--- erlang-14.a-dfsg.orig/erts/emulator/beam/binary.c
++++ erlang-14.a-dfsg/erts/emulator/beam/binary.c
+@@ -31,6 +31,10 @@
+ #include "erl_binary.h"
+ #include "erl_bits.h"
+ 
++#ifdef __m68k__
++erts_atomic_t erts_allocated_binaries __attribute__ ((aligned (4)));
++#endif
++
+ #ifdef DEBUG
+ static int list_to_bitstr_buf(Eterm obj, char* buf, int len);
+ #else
+--- erlang-14.a-dfsg.orig/erts/emulator/beam/erl_driver.h
++++ erlang-14.a-dfsg/erts/emulator/beam/erl_driver.h
+@@ -562,7 +562,7 @@
+ EXTERN ErlDrvTermData driver_caller(ErlDrvPort);
+ extern const ErlDrvTermData driver_term_nil;
+ EXTERN ErlDrvTermData driver_mk_term_nil(void);
+-EXTERN ErlDrvPort driver_create_port(ErlDrvPort creator_port, 
++EXTERN long driver_create_port(long creator_port, 
+ 				     ErlDrvTermData connected, /* pid */
+ 				     char* name, /* driver name */
+ 				     ErlDrvData drv_data);
--- erlang-14.a-dfsg.orig/debian/patches/java.patch
+++ erlang-14.a-dfsg/debian/patches/java.patch
@@ -0,0 +1,32 @@
+Author: Sergei Golovan <sgolovan@debian.org>
+Description: GCJ 4.4 passes the test for JDK 1.5 but doesn't implement
+ String#String(int[], int, int) constructor, which breaks jinterface
+ build. This patch adds a check for the definition of this constructor.
+ It helps to build Erlang on architectures without openjdk-6 available.
+Forwarded: yes
+Last-updated: Sat, 13 Feb 2010 10:08:42 +0300
+
+--- erlang-14.a-dfsg.orig/erts/configure.in
++++ erlang-14.a-dfsg/erts/configure.in
+@@ -4002,7 +4002,8 @@
+   dnl Make sure it's at least JDK 1.5
+   AC_CACHE_CHECK(for JDK version 1.5, 
+      ac_cv_prog_javac_ver_1_5,
+-     [ERL_TRY_LINK_JAVA([], [for (String i : args);],
++     [ERL_TRY_LINK_JAVA([], [for (String i : args);
++        int[] values = {}; String s = new String(values, 0, values.length);],
+         ac_cv_prog_javac_ver_1_5=yes, ac_cv_prog_javac_ver_1_5=no)])
+   if test $ac_cv_prog_javac_ver_1_5 = no; then
+     unset -v JAVAC
+--- erlang-14.a-dfsg.orig/lib/test_server/src/configure.in
++++ erlang-14.a-dfsg/lib/test_server/src/configure.in
+@@ -399,7 +399,8 @@
+   dnl Make sure it's at least JDK 1.5
+   AC_CACHE_CHECK(for JDK version 1.5, 
+      ac_cv_prog_javac_ver_1_5,
+-     [ERL_TRY_LINK_JAVA([], [for (String i : args);],
++     [ERL_TRY_LINK_JAVA([], [for (String i : args);
++        int[] values = {}; String s = new String(values, 0, values.length);],
+         ac_cv_prog_javac_ver_1_5=yes, ac_cv_prog_javac_ver_1_5=no)])
+   if test $ac_cv_prog_javac_ver_1_5 = no; then
+     unset -v JAVAC
--- erlang-14.a-dfsg.orig/debian/patches/emacs.patch
+++ erlang-14.a-dfsg/debian/patches/emacs.patch
@@ -0,0 +1,85 @@
+Patch by Balint Reczey <balint@balintreczey.hu> fixes backquote
+syntax (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494823).
+Also, it fixes manpage name regexp matching only 3erl manpages in
+section 3.
+
+--- erlang-14.a-dfsg.orig/lib/tools/emacs/erlang.el
++++ erlang-14.a-dfsg/lib/tools/emacs/erlang.el
+@@ -492,8 +492,8 @@
+ (defvar erlang-man-dirs
+   '(("Man - Commands" "/man/man1" t)
+     ("Man - Modules" "/man/man3" t)
+-    ("Man - Files" "/man/man4" t)
+-    ("Man - Applications" "/man/man6" t))
++    ("Man - Files" "/man/man5" t)
++    ("Man - Applications" "/man/man7" t))
+   "*The man directories displayed in the Erlang menu.
+ 
+ Each item in the list should be a list with three elements, the first
+@@ -1176,23 +1176,22 @@
+ (or (fboundp 'eval-when-compile)
+     (defmacro eval-when-compile (&rest rest) nil))
+ 
+-;; These umm...functions are new in Emacs 20. And, yes, until version
+-;; 19.27 Emacs backquotes were this ugly.
++;; These umm...functions are new in Emacs 20.
+ 
+ (or (fboundp 'unless)
+     (defmacro unless (condition &rest body)
+       "(unless CONDITION BODY...): If CONDITION is false, do BODY, else return nil."
+-      `((if (, condition) nil ,@body))))
++      (cons 'if  (cons condition (cons nil body)))))
+ 
+ (or (fboundp 'when)
+     (defmacro when (condition &rest body)
+       "(when CONDITION BODY...): If CONDITION is true, do BODY, else return nil."
+-      `((if (, condition) (progn ,@body) nil))))
++      (list 'if condition (cons 'progn body) nil)))
+ 
+ (or (fboundp 'char-before)
+     (defmacro char-before (&optional pos)
+       "Return the character in the current buffer just before POS."
+-      `( (char-after (1- (or ,pos (point)))))))
++      (list 'char-after (list '1- (list 'or  pos '(point))))))
+ 
+ ;; defvar some obsolete variables, which we still support for
+ ;; backwardscompatibility reasons.
+@@ -1919,7 +1918,7 @@
+ 
+ (defun erlang-man-make-menu-item (file)
+   "Create a menu item containing the name of the man page."
+-  (and (string-match ".+/\\([^/]+\\)\\.\\([124-9]\\|3\\(erl\\)?\\)\\(\\.gz\\)?$" file)
++  (and (string-match ".+/\\([^/]+\\)\\.\\([124-9]\\|3\\(erl\\)\\)\\(\\.gz\\)?$" file)
+        (let ((page (substring file (match-beginning 1) (match-end 1))))
+ 	 (list (capitalize page)
+ 	       (list 'lambda '()
+@@ -1930,7 +1929,7 @@
+ 
+ (defun erlang-man-get-files (dir)
+   "Return files in directory DIR."
+-  (directory-files dir t ".+\\.\\([124-9]\\|3\\(erl\\)?\\)\\(\\.gz\\)?\\'"))
++  (directory-files dir t ".+\\.\\([124-9]\\|3\\(erl\\)\\)\\(\\.gz\\)?\\'"))
+ 
+ 
+ (defun erlang-man-module (&optional module)
+@@ -1950,7 +1949,7 @@
+   (if (or (null module) (string= module ""))
+       (error "No Erlang module name given"))
+   (let ((dir-list erlang-man-dirs)
+-	(pat (concat "/" (regexp-quote module) "\\.\\([124-9]\\|3\\(erl\\)?\\)\\(\\.gz\\)?$"))
++	(pat (concat "/" (regexp-quote module) "\\.\\([124-9]\\|3\\(erl\\)\\)\\(\\.gz\\)?$"))
+ 	(file nil)
+ 	file-list)
+     (while (and dir-list (null file))
+@@ -2091,9 +2090,9 @@
+     (error nil))
+   (if file
+       (let ((process-environment (copy-sequence process-environment)))
+-	(if (string-match "\\(.*\\)/man[^/]*/\\([^.]+\\)\\.\\([124-9]\\|3\\(erl\\)?\\)\\(\\.gz\\)?$" file)
++	(if (string-match "\\(.*\\)/man[^/]*/\\([^.]+\\)\\.\\([124-9]\\|3\\(erl\\)\\)\\(\\.gz\\)?$" file)
+ 	    (let ((dir (substring file (match-beginning 1) (match-end 1)))
+-		  (page (substring file (match-beginning 2) (match-end 2))))
++		  (page (concat (substring file (match-beginning 2) (match-end 2)) "(" (substring file (match-beginning 3) (match-end 3)) ")")))
+ 	      (if (fboundp 'setenv)
+ 		  (setenv "MANPATH" dir)
+ 		;; Emacs 18
--- erlang-14.a-dfsg.orig/debian/patches/native.patch
+++ erlang-14.a-dfsg/debian/patches/native.patch
@@ -0,0 +1,18 @@
+native.patch by Sergei Golovan <sgolovan@debian.org>
+
+Adds native code to all Erlang binaries if HiPE is enabled.
+
+--- erlang-14.a-dfsg.orig/make/otp.mk.in
++++ erlang-14.a-dfsg/make/otp.mk.in
+@@ -84,6 +84,11 @@
+       ERL_COMPILE_FLAGS += +slim
+     else
+       ERL_COMPILE_FLAGS += +debug_info
++      ifeq ($(HIPE_ENABLED),yes)
++        ifeq ($(BUILD_ALL),true)
++          ERL_COMPILE_FLAGS += +native
++        endif
++      endif
+     endif
+   endif
+ endif
--- erlang-14.a-dfsg.orig/debian/scripts/erlang-depends.in
+++ erlang-14.a-dfsg/debian/scripts/erlang-depends.in
@@ -0,0 +1,780 @@
+#! /usr/bin/env escript
+%% -*- erlang -*-
+%%! -smp disable
+
+-include_lib("kernel/include/file.hrl").
+
+% The current Erlang version
+-define(VERSION, "@SOURCE_VERSION@").
+-define(ABI_VERSION, "@ABI_VERSION@").
+
+% The list of HiPE enabled architectures (with added 'all' architecture),
+% isn't used yet
+-define(HIPE_ARCHES, split("@HIPE_ARCHES@ all", $\ )).
+
+% Since all packages required built application to run may be unavailable
+% on build stage it's necessary to list all module-package relationships
+% explicitly:
+-define(MODULES, [@MODULES@ {"erlang", "erlang-base"}]).
+
+% The erlang packages list (suffixes only)
+-define(PACKAGES, [@PACKAGES@]).
+
+% main/1 --
+%
+%	Generate debhelper substitution variables for Erlang-dependent
+%	packages.
+%
+% Arguments:
+%	Options		List of debhelper options (-v, -a, -i, -p*, -N*) or -h.
+%
+% Result:
+%	None.
+%
+% Side effects:
+%	For each of the selected packages the corresponding file
+%	debian/package.substvars is created (if necessary) and filled by erlang
+%	dependencies. If -h or --help is among arguments then the usage info is
+%	printed instead and script is halted.
+
+main(Options) ->
+    {Verbosity, TmpDir, Exclude, NewOptions} =
+	lists:foldl(fun(Opt, {Sum, Dir, Ex, Opts}) ->
+			case Opt of
+			    "-h" ->
+				usage(),
+				halt(2);
+			    "--help" ->
+				usage(),
+				halt(2);
+			    "-v" ->
+				{Sum + 1, Dir, Ex, Opts};
+			    "--verbose" ->
+				{Sum + 1, Dir, Ex, Opts};
+			    "--ignore=" ++ File ->
+				{Sum, Dir, Ex ++ [File], Opts};
+			    "-P" ++ D ->
+				{Sum, D, Ex, Opts};
+			    "--tmpdir=" ++ D ->
+				{Sum, D, Ex, Opts};
+			    _ ->
+				{Sum, Dir, Ex, Opts ++ [Opt]}
+			end
+		    end, {0, [], [], []}, Options),
+    lists:foreach(
+      fun({Package, Variables}) ->
+	    PkgDir = case TmpDir of
+			 [] ->
+		    	     filename:join("debian", Package);
+			 _ ->
+		    	     TmpDir
+		     end,
+	    delsubstvar(Verbosity, Package, "erlang:Depends"),
+	    Variables2 = Variables ++
+		case lists:member("erlang:Depends", Variables) of
+		    true ->
+			Deps = ordsets:to_list(
+				 lists:foldl(
+				   fun(M, Acc) ->
+					case lists:keysearch(M, 1, ?MODULES) of
+					    {value, {_, P}} ->
+						ordsets:add_element(P, Acc);
+					    _ ->
+						io:format("WARNING: Module ~s not found~n", [M]),
+						Acc
+					end
+				   end, ordsets:new(),
+				   get_remote_modules(Verbosity, PkgDir, Exclude))),
+			Dep = join(lists:map(
+				     fun(D) ->
+					    "${" ++ D ++ ":Depends}"
+				     end, Deps), ", "),
+			addsubstvar(Verbosity, Package, "erlang:Depends", Dep),
+			lists:map(fun(D) ->
+					D ++ ":Depends"
+				  end, Deps);
+		    _ ->
+			[]
+		end,
+	    deladdsubstvar(Verbosity, Package, Variables2, "erlang-abi:Depends",
+			   "erlang-abi-" ++ ?ABI_VERSION),
+	    deladdsubstvar(Verbosity, Package, Variables2, "erlang-base:Depends",
+			   "erlang-base (>= " ++ ?VERSION ++
+			   ") | erlang-base-hipe (>= " ++ ?VERSION ++ ")"),
+	    lists:foreach(
+	      fun(Pkg) ->
+		    deladdsubstvar(Verbosity, Package, Variables2, "erlang-" ++ Pkg ++ ":Depends",
+				   "erlang-" ++ Pkg ++ " (>= " ++ ?VERSION ++ ")")
+	      end, ?PACKAGES)
+      end, get_packages(NewOptions)).
+
+% usage/0 --
+%
+%	Print a short usage info.
+%
+% Arguments:
+%	None.
+%
+% Result:
+%	ok.
+%
+% Side effects:
+%	Usage is printed to stdout.
+
+usage() ->
+    io:format("Usage: erlang-depends [options]~n"
+	      "Options:~n"
+	      "    -h, --help       Show this help message~n"
+	      "    -v, --verbose    Verbose mode~n"
+	      "    -a, --arch       Act on architecture dependent packages~n"
+	      "    -i, --indep      Act on architecture independent packages~n"
+	      "    -ppackage, --package=package~n"
+	      "                     Act on package \"package\"~n"
+	      "    -Npackage, --no-package=package~n"
+	      "                     Do not act on package \"package\"~n"
+	      "    -Ptmpdir, --tmpdir=tmpdir~n"
+	      "                     Use \"tmpdir\" for package build directory~n").
+
+% get_remote_modules/3 --
+%
+%	Return a difference between all modules used in the application and
+%	the local modules which dependencies are satisfied automagically.
+%
+% Arguments:
+%	Verbosity   Verbosity level (0 - silence, 1 - print action).
+%	Dir	    Directory where the local BEAM files are to be searched.
+%	Exclude	    Don't take into account files in this list.
+%
+% Result:
+%	The list of remote modules.
+%
+% Side effects:
+%	Application files are taken from filesystem.
+
+get_remote_modules(Verbosity, Dir, Exclude) ->
+    Mods = ordsets:to_list(ordsets:subtract(get_modules(Dir, Exclude),
+					    get_local_modules(Dir, Exclude))),
+    if  Verbosity >= 1 ->
+	    lists:foreach(fun(M) ->
+				io:format("Remote module: ~s~n", [M])
+			  end, Mods);
+	true ->
+	    ok
+    end,
+    Mods.
+
+% get_modules/2 --
+%
+%	Return an ordset of all modules found in the application.
+%
+% Arguments:
+%	Dir	    Directory where the app BEAM files are to be searched.
+%	Exclude	    Don't take into account files in this list.
+%
+% Result:
+%	The ordset of all used modules.
+%
+% Side effects:
+%	Application files are taken from filesystem.
+
+get_modules(Dir, Exclude) ->
+    Modules = lists:map(fun({M, _F, _A}) ->
+			    atom_to_list(M)
+			end, get_imports(Dir, Exclude)),
+    ordsets:from_list(Modules).
+
+% get_local_modules/2 --
+%
+%	Return an ordset of local modules found in the application (it is
+%	constructed from BEAM filenames).
+%
+% Arguments:
+%	Dir	    Directory where the app BEAM files are to be searched.
+%	Exclude	    Don't take into account files in this list.
+%
+% Result:
+%	The ordset of all local modules.
+%
+% Side effects:
+%	Files are taken from filesystem.
+
+get_local_modules(Dir, Exclude) ->
+    Files = lists:filter(fun(File) ->
+				case lists:member(File, Exclude) of
+				    true ->
+					false;
+				    _ ->
+					true
+				end
+			 end, files(Dir, ".*\\.beam$", true)),
+    Basenames = lists:map(fun(File) ->
+				filename:basename(File, ".beam")
+			  end, Files),
+    ordsets:from_list(Basenames).
+
+% get_imports/2 --
+%
+%	Get imports from all BEAM files in the specified directory and below.
+%
+% Arguments:
+%	Dir	    Directory where to search for BEAM files
+%	Exclude	    Don't take into account files in this list.
+%
+% Results:
+%	A list of imports from all found BEAM files.
+%
+% Side effects:
+%	Files are taken from filesystem.
+
+get_imports(Dir, Exclude) ->
+    Files = lists:filter(fun(File) ->
+				case lists:member(File, Exclude) of
+				    true ->
+					false;
+				    _ ->
+					true
+				end
+			 end, files(Dir, ".*\\.beam$", true)),
+    lists:foldl(fun(File, Acc) ->
+			case beam_lib:chunks(File, [imports]) of
+			    {ok, {_, [{imports, List}]}} ->
+				Acc ++ List;
+			    _ ->
+				Acc
+			end
+		end, [], Files).
+
+% split/2 --
+%
+%	Split string into a list of tokens using the specified delimiter
+%
+% Arguments:
+%	String	    String to split
+%	Delimiter   Character (delimiter)
+%
+% Results:
+%	A list of strings.
+%
+% Side effects:
+%	None.
+
+split(String, Delimiter) ->
+    split(String, Delimiter, none, []).
+
+split([], _Delimiter, Current, Res) ->
+    case Current of
+	none ->
+	    lists:reverse(Res);
+	_ ->
+	    lists:reverse([lists:reverse(Current) | Res])
+    end;
+
+split([Delimiter | Tail], Delimiter, Current, Res) ->
+    case Current of
+	none ->
+	    split(Tail, Delimiter, [], [[] | Res]);
+	_ ->
+	    split(Tail, Delimiter, [], [lists:reverse(Current) | Res])
+    end;
+
+split([Char | Tail], Delimiter, Current, Res) ->
+    case Current of
+	none ->
+	    split(Tail, Delimiter, [Char], Res);
+	_ ->
+	    split(Tail, Delimiter, [Char | Current], Res)
+    end.
+
+% join/2 --
+%
+%	Join string list into a single string using the specified delimiter
+%
+% Arguments:
+%	List	    List of strings to join
+%	Delimiter   Character or character list (delimiter)
+%
+% Results:
+%	A string.
+%
+% Side effects:
+%	None.
+
+join(List, Delimiter) ->
+    join(List, Delimiter, []).
+
+join([], _Delimiter, Res) ->
+    lists:flatten(lists:reverse(Res));
+
+join([String | Tail], Delimiter, []) ->
+    join(Tail, Delimiter, [String]);
+
+join([String | Tail], Delimiter, Res) ->
+    join(Tail, Delimiter, [String, Delimiter | Res]).
+
+% delsubstvar/3 --
+%
+%	Removes substitution variable from a substvar file for a given
+%	package in debian/ directory.
+%
+% Arguments:
+%	Verbosity   Verbosity level (0 - silence, 1 - print action)
+%	Package	    Name of a package (file Package ++ ".substvars" is used).
+%	Substvar    Name of a substitution variable to delete.
+%
+% Results:
+%	ok or halt.
+%
+% Side effects:
+%	File "debian/" ++ Package ++ ".substvars" is overwritten. The
+%	specified variable is deleted. Program is halted in case of error.
+
+delsubstvar(Verbosity, Package, Substvar) ->
+    SubstvarFile = filename:join("debian", Package ++ ".substvars"),
+    if  Verbosity >= 1 ->
+	    io:format("Deleting substvar ~s from file ~s~n", [Substvar, SubstvarFile]);
+	true ->
+	    ok
+    end,
+    case file:read_file(SubstvarFile) of
+	{ok, BinData} ->
+	    StrData = binary_to_list(BinData),
+
+	    % Remove the trailing newline if any
+
+	    Len = string:len(StrData),
+	    StrData2 = case Len - string:rstr(StrData, "\n") of
+			    0 ->
+				string:left(StrData, Len - 1);
+			    _ ->
+				StrData
+		       end,
+	    Tokens = split(StrData2, $\n),
+	    NewTokens = lists:filter(
+			    fun(S) ->
+				    case string:str(S, Substvar ++ "=") of
+					1 ->
+					    false;
+					_ ->
+					    true
+				    end
+			    end, Tokens),
+	    case file:write_file(SubstvarFile, join(NewTokens, $\n) ++ "\n") of
+		ok ->
+		    ok;
+		{error, Error} ->
+		    io:format("ERROR: Can't write ~s: ~s~n", [SubstvarFile, Error]),
+		    halt(1)
+	    end;
+	{error, enoent} ->
+	    ok;
+	{error, Error} ->
+	    io:format("ERROR: Can't read ~s: ~s~n", [SubstvarFile, Error]),
+	    halt(1)
+    end.
+
+% addsubstvar/4 --
+%
+%	Adds a dependency to a substitution variable in a substvar file
+%	for a given package in debian/ directory.
+%
+% Arguments:
+%	Verbosity   Verbosity level (0 - silence, 1 - print action)
+%	Package	    Name of a package (file Package ++ ".substvars" is used).
+%	Substvar    Name of a substitution variable to add/change.
+%	Dependency  An added substitution dependency string.
+%
+% Results:
+%	ok or halt.
+%
+% Side effects:
+%	File "debian/" ++ Package ++ ".substvars" is overwritten. The specified
+%	depandency string is added to the variable. Program is halted in case
+%	of error.
+
+addsubstvar(Verbosity, Package, Substvar, Dependency) ->
+    SubstvarFile = filename:join("debian", Package ++ ".substvars"),
+    if  Verbosity >= 1 ->
+	    io:format("Adding value ~s to substvar ~s in file ~s~n",
+		      [Substvar, Dependency, SubstvarFile]);
+	true ->
+	    ok
+    end,
+    case file:read_file(SubstvarFile) of
+	{ok, BinData} ->
+	    StrData = binary_to_list(BinData),
+
+	    % Remove the trailing newline if any
+
+	    Len = string:len(StrData),
+	    StrData2 = case Len - string:rstr(StrData, "\n") of
+			    0 ->
+				string:left(StrData, Len - 1);
+			    _ ->
+				StrData
+		       end,
+	    Tokens = split(StrData2, $\n),
+	    {NewTokens, Found} = lists:mapfoldl(
+				    fun(S, F) ->
+					    case string:str(S, Substvar ++ "=") of
+						1 ->
+						    {S ++ ", " ++ Dependency, true};
+						_ ->
+						    {S, F}
+					    end
+				    end, false, Tokens),
+	    NewTokens2 = if Found ->
+				NewTokens;
+			    true ->
+				[Substvar ++ "=" ++ Dependency | NewTokens]
+			 end,
+	    case file:write_file(SubstvarFile, join(NewTokens2, $\n) ++ "\n") of
+		ok ->
+		    ok;
+		{error, Error} ->
+		    io:format("Can't write ~s: ~s~n", [SubstvarFile, Error]),
+		    halt(1)
+	    end;
+	{error, enoent} ->
+	    case file:write_file(SubstvarFile, [Substvar, "=", Dependency, "\n"]) of
+		ok ->
+		    ok;
+		{error, Error} ->
+		    io:format("Can't write ~s: ~s~n", [SubstvarFile, Error]),
+		    halt(1)
+	    end;
+	{error, Error} ->
+	    io:format("Can't read ~s: ~s~n", [SubstvarFile, Error]),
+	    halt(1)
+    end.
+
+% deladdsubstvar/5 --
+%
+%	Delete a substitution variable from a substvar file and add a
+%	dependency to it if this substvar is present in a specified list of
+%	variables for a given package in debian/ directory.
+%
+% Arguments:
+%	Verbosity   Verbosity level (0 - silence, 1 - print action)
+%	Package	    Name of a package (file Package ++ ".substvars" is used).
+%	Variables   List of requested variables for the package.
+%	Substvar    Name of a substitution variable to add/change.
+%	Dependency  An added substitution dependency string.
+%
+% Results:
+%	ok or halt.
+%
+% Side effects:
+%	File "debian/" ++ Package ++ ".substvars" is overwritten. The specified
+%	dependency string is either deleted or replaced. Program is halted in
+%	case of error.
+
+deladdsubstvar(Verbosity, Package, Variables, Substvar, Dependency) ->
+    delsubstvar(Verbosity, Package, Substvar),
+    case lists:member(Substvar, Variables) of
+	true ->
+	    addsubstvar(Verbosity, Package, Substvar, Dependency);
+	_ ->
+	    ok
+    end.
+
+% get_packages/1 --
+%
+%	Parses debhelper command line options and debian/control file and
+%	returns packages with requested substvars to act on.
+%
+% Arguments:
+%	ArgList	    Dephelper options (only -a, -i, -p, -N options are
+%		    recognised).
+%
+% Results:
+%	{ok, [{Package,Vars}]} to work on or error message and halt if
+%	debian/control is unreadable or unknown option is specified.
+%
+% Side effects:
+%	Program is halted in case of error, packages info is taken from
+%	an external file.
+
+get_packages(ArgList) ->
+    ControlFile = filename:join("debian", "control"),
+    case file:read_file(ControlFile) of
+	{ok, BinData} ->
+	    {Arches, Excluded, Explicit} =
+		lists:foldl(fun(Arg, {A1, E1, E2}) ->
+				case Arg of
+				    % Only the last -a or -i option takes
+				    % effect
+
+				    "-a" ->
+					{arch, E1, E2};
+				    "--arch" ->
+					{arch, E1, E2};
+				    "-i" ->
+					{indep, E1, E2};
+				    "--indep" ->
+					{indep, E1, E2};
+				    "-s" ->
+					io:format("Options -s and --same-arch aren't supported yet~n"),
+					halt(1);
+				    "--same-arch" ->
+					io:format("Options -s and --same-arch aren't supported yet~n"),
+					halt(1);
+				    "-p" ++ Package ->
+					{A1, E1, E2 ++ [Package]};
+				    "--package=" ++ Package ->
+					{A1, E1, E2 ++ [Package]};
+				    "-N" ++ Package ->
+					{A1, E1 ++ [Package], E2};
+				    "--no-package=" ++ Package ->
+					{A1, E1 ++ [Package], E2};
+				    _ ->
+					io:format("Unknown option ~s~n", [Arg]),
+					halt(1)
+				end
+			    end, {all, [], []}, ArgList),
+
+	    % Join up continuation lines
+
+	    StrData = re:replace(BinData, "\\n( |\\t)", "\\1", [global, {return, list}]),
+
+	    % Add an extra empty line for the case if debian/config doesn't have a trailing LF
+
+	    Tokens = split(StrData, $\n) ++ [[]],
+	    {_Arch, _Package, _Vars, Packages, AllPackages} =
+		lists:foldl(fun(Line, {A, P, Vs, Ps, APs}) ->
+				case Line of
+				    "Package: " ++ Pkg ->
+					{A, string:strip(Pkg), Vs, Ps, APs};
+				    "Architecture: " ++ Arc ->
+					{string:strip(Arc), P, Vs, Ps, APs};
+				    "Pre-Depends: " ++ Deps ->
+					{A, P, Vs ++ find_vars(Deps), Ps, APs};
+				    "Depends: " ++ Deps ->
+					{A, P, Vs ++ find_vars(Deps), Ps, APs};
+				    "Recommends: " ++ Deps ->
+					{A, P, Vs ++ find_vars(Deps), Ps, APs};
+				    "Suggests: " ++ Deps ->
+					{A, P, Vs ++ find_vars(Deps), Ps, APs};
+				    "Enhances: " ++ Deps ->
+					{A, P, Vs ++ find_vars(Deps), Ps, APs};
+				    "Breaks: " ++ Deps ->
+					{A, P, Vs ++ find_vars(Deps), Ps, APs};
+				    "Conflicts: " ++ Deps ->
+					{A, P, Vs ++ find_vars(Deps), Ps, APs};
+				    "Provides: " ++ Deps ->
+					{A, P, Vs ++ find_vars(Deps), Ps, APs};
+				    "Replaces: " ++ Deps ->
+					{A, P, Vs ++ find_vars(Deps), Ps, APs};
+				    "" ->
+					case P of
+					    "" ->
+						% Two LF in a row or the end of a source package
+
+						{"", "", [], Ps, APs};
+					    _ ->
+						case lists:member(P, Excluded) of
+						    true ->
+							% The package is excluded by -Npackage
+
+							{"", "", [], Ps, APs};
+						    _ ->
+							case lists:member(P, Explicit) of
+							    true ->
+								% The package is explicitly required
+
+								{"", "", [], Ps ++ [{P, Vs}], APs};
+							    _ ->
+								case A of
+								    "all" ->
+									case Arches of
+									    indep ->
+										% Arch independent packages
+										% are requested
+
+										{"", "", [], Ps ++ [{P, Vs}], APs};
+									    all ->
+										{"", "", [], Ps, APs ++ [{P, Vs}]};
+									    _ ->
+										{"", "", [], Ps, APs}
+									end;
+								    _ ->
+									case Arches of
+									    arch ->
+										% Arch dependent packages
+										% are requested
+
+										{"", "", [], Ps ++ [{P, Vs}], APs};
+									    all ->
+										{"", "", [], Ps, APs ++ [{P, Vs}]};
+									    _ ->
+										{"", "", [], Ps, APs}
+									end
+								end
+							end
+						end
+					end;
+				    _ ->
+					{A, P, Vs, Ps, APs}
+				end
+			    end, {"", "", [], [], []}, Tokens),
+	    case {Arches, Packages} of
+		{all, []} ->
+		    % There aren't explicitly requested packages
+
+		    AllPackages;
+		_ ->
+		    Packages
+	    end;
+	{error, Error} ->
+	    io:format("Can't read ~s: ~s~n", [ControlFile, Error]),
+	    halt(1)
+    end.
+
+% find_vars/1 --
+%
+%	Find substitution variables in dependencies line and return list of
+%	their names.
+%
+% Arguments:
+%	Dependencies	Dependencies line from debian/control
+%
+% Result:
+%	List of substvars names (inside ${}).
+%
+% Side effects:
+%	None.
+
+find_vars(Dependencies) ->
+    case re:run(Dependencies, "\\$\\{(\\S*)\\}", [global, {capture, all_but_first, list}]) of
+	{match, Captured} ->
+	    lists:foldl(fun(M, Acc) ->
+			    Acc ++ M
+			end, [], Captured);
+	_ ->
+	    []
+    end.
+
+% files/3 --
+%
+%	Return all files in a directory which names match a given expression.
+%	(This procedure is borrowed from http://erlang.org/examples/examples-2.0.html
+%	and a bit modified.)
+%
+% Arguments:
+%	Dir	    Directory from which to search
+%	Re	    Regular expression for filename matching
+%	Recursive   Whether to search for files recursively
+%
+% Result:
+%	A list of filenames.
+%
+% Side effects:
+%	File and directory names are taken from filesystem.
+
+files(Dir, Re, Recursive) ->
+    find_files(Dir, Re, Recursive, []).
+
+% find_files/4 --
+%
+%	Find all files in a directory which names match a given expression,
+%	prepend them to a given list of files and return the total files list.
+%	(This procedure is borrowed from http://erlang.org/examples/examples-2.0.html
+%	and a bit modified.)
+%
+% Arguments:
+%	Dir	    Directory from which to search
+%	Re	    Regular expression for filename matching
+%	Recursive   Whether to search for files recursively
+%	L	    List of already found files
+%
+% Result:
+%	A list of filenames.
+%
+% Side effects:
+%	File and directory names are taken from filesystem.
+
+find_files(Dir, Re, Recursive, L) ->
+    case file:list_dir(Dir) of
+	{ok, Files} ->
+	    find_files(Files, Dir, Re, Recursive, L);
+	{error, _} ->
+	    L
+    end.
+
+% find_files/5 --
+%
+%	Check all specified filenames if they match a given expressions and
+%	prepend matched ones to a given list of filenames. If the file type is
+%	directory and search is recursive then descend into it and add found
+%	filenames to the result too. Return the total files list.
+%	(This procedure is borrowed from http://erlang.org/examples/examples-2.0.html
+%	and a bit modified.)
+%
+% Arguments:
+%	_FL	    List of files in directory Dir
+%	Dir	    Directory from which to search
+%	Re	    Regular expression for filename matching
+%	Recursive   Whether to search for files recursively
+%	L	    List of already found files
+%
+% Result:
+%	A list of filenames.
+%
+% Side effects:
+%	File and directory names are taken from filesystem.
+
+find_files(_FL = [File | T], Dir, Re, Recursive, L) ->
+    FullName = filename:join(Dir, File),
+    case file_type(FullName) of
+	regular ->
+	    case re:run(FullName, Re) of
+		{match, _}  ->
+		    find_files(T, Dir, Re, Recursive, [FullName | L]);
+		_ ->
+		    find_files(T, Dir, Re, Recursive, L)
+	    end;
+	directory ->
+	    case Recursive of
+		true ->
+		    L1 = find_files(FullName, Re, Recursive, L),
+		    find_files(T, Dir, Re, Recursive, L1);
+		false ->
+		    find_files(T, Dir, Re, Recursive, L)
+	    end;
+	error ->
+	    find_files(T, Dir, Re, Recursive, L)
+    end;
+
+find_files([], _, _, _, L) ->
+    L.
+
+% file_type/1 --
+%
+%	Return file type (regular, directory, or error) for a given filename.
+%	(This procedure is borrowed from http://erlang.org/examples/examples-2.0.html
+%	and a bit modified.)
+%
+% Arguments:
+%	File	    Filename to get type.
+%
+% Result:
+%	A file type.
+%
+% Side effects:
+%	File info is taken from the filesystem.
+
+file_type(File) ->
+    case file:read_file_info(File) of
+	{ok, FileInfo} ->
+	    case FileInfo#file_info.type of
+		regular ->
+		    regular;
+		directory ->
+		    directory;
+		_ ->
+		    error
+	    end;
+	_ ->
+	    error
+    end.
+
+% vim:ft=erlang
--- erlang-14.a-dfsg.orig/debian/scripts/analyse
+++ erlang-14.a-dfsg/debian/scripts/analyse
@@ -0,0 +1,107 @@
+#!/bin/sh
+
+echo "Determining which files goes where through \
+the magic of regular expressions."
+
+# Pretty dead simple.  The pattern files include
+# regular expression that match some files.  Files that
+# match patterns in binary.patterns go into the base
+# package.  Same goes for the X11 package.  Files
+# that don't match anything go into the NO-X package etc.
+
+# Files that match here might also go into
+# erlang-base-hipe.install.
+
+DIR=$1
+
+echo "erlang-base"
+find debian/erlang-stnd -type f | \
+    grep -E -f debian/patterns/erlang-base.patterns | \
+    cut -c 20- > debian/erlang-base.install
+
+echo "erlang-base-hipe"
+find debian/erlang-hipe -type f | \
+    grep -E -f debian/patterns/erlang-base-hipe.patterns | \
+    cut -c 20- > debian/erlang-base-hipe.install
+
+# Here, files that matched above shouldn't
+# be looked at.
+
+echo "erlang-examples"
+find $DIR -type f | \
+    grep -v -E -f debian/patterns/erlang-base.patterns | \
+    grep -v -E -f debian/patterns/erlang-base-hipe.patterns | \
+    grep -E -f debian/patterns/erlang-examples.patterns | \
+    cut -c 20- > debian/erlang-examples.install
+
+echo "erlang-src"
+find $DIR -type f | \
+    grep -v -E -f debian/patterns/erlang-base.patterns | \
+    grep -v -E -f debian/patterns/erlang-base-hipe.patterns | \
+    grep -v -E -f debian/patterns/erlang-examples.patterns | \
+    grep -E -f debian/patterns/erlang-src.patterns | \
+    cut -c 20- > debian/erlang-src.install
+
+echo "erlang-dev"
+find $DIR -type f | \
+    grep -E -e './usr/lib/erlang/usr/include' | \
+    cut -c 20- | sed -e 's!$! usr/lib/erlang/usr/include!' > debian/erlang-dev.install
+
+find $DIR -type f | \
+    grep -v -E -f debian/patterns/erlang-base.patterns | \
+    grep -v -E -f debian/patterns/erlang-base-hipe.patterns | \
+    grep -v -E -f debian/patterns/erlang-examples.patterns | \
+    grep -v -E -f debian/patterns/erlang-src.patterns | \
+    grep -E -f debian/patterns/erlang-dev.patterns | \
+    cut -c 20- >> debian/erlang-dev.install
+
+PACKAGES='appmon asn1 common-test corba crypto debugger dialyzer docbuilder
+	  edoc erl-docgen et eunit gs ic-java ic inets inviso jinterface megaco mnesia
+	  observer odbc os-mon parsetools percept pman public-key reltool
+	  runtime-tools snmp ssh ssl syntax-tools test-server toolbar tools tv
+	  typer webtool wx xmerl'
+
+CMD='grep -v -E -e ./usr/lib/erlang/usr/include |
+     grep -v -E -f debian/patterns/erlang-base.patterns |
+     grep -v -E -f debian/patterns/erlang-base-hipe.patterns |
+     grep -v -E -f debian/patterns/erlang-examples.patterns |
+     grep -v -E -f debian/patterns/erlang-src.patterns |
+     grep -v -E -f debian/patterns/erlang-dev.patterns'
+
+CMD1=$CMD
+MODULES=""
+for fn in $(awk -- '/\.beam$/ {system("basename " $1 " .beam")}' debian/erlang-base.install)
+do
+    MODULES="$MODULES{\"$fn\", \"erlang-base\"},\n"
+done
+PACKAGES2="\"dev\", \"nox\", \"x11\""
+for pkg in $PACKAGES ; do
+    echo erlang-$pkg
+
+    find $DIR -type f | eval $CMD | \
+	grep -E -f debian/patterns/erlang-$pkg.patterns | \
+	cut -c 20- | sort > debian/erlang-$pkg.install
+
+    CMD1="$CMD1 | grep -v -E -f debian/patterns/erlang-$pkg.patterns"
+    for fn in $(awk -- '/\.beam$/ {system("basename " $1 " .beam")}' debian/erlang-$pkg.install)
+    do
+	MODULES="$MODULES{\"$fn\", \"erlang-$pkg\"},\n"
+    done
+    PACKAGES2="$PACKAGES2, \"$pkg\""
+done
+
+sed -i -e "s/@PACKAGES@/$PACKAGES2/" -e "s/@MODULES@/$MODULES/" debian/scripts/erlang-depends
+
+echo "FILES WHICH HAVEN'T REACHED ANY PACKAGE"
+find $DIR -type f | eval $CMD1
+
+echo "PACKAGES INTERSECTIONS"
+for pkg1 in $PACKAGES ; do
+    for pkg2 in $PACKAGES ; do
+	if [ $pkg1 != $pkg2 ] ; then
+	    comm -1 -2 debian/erlang-$pkg1.install debian/erlang-$pkg2.install
+	fi
+    done
+done
+echo "---------------------------------------"
+
--- erlang-14.a-dfsg.orig/debian/scripts/fixmanpages
+++ erlang-14.a-dfsg/debian/scripts/fixmanpages
@@ -0,0 +1,32 @@
+#! /bin/sh
+
+DIR=$1
+
+cp $DIR/man3/dialyzer.3 $DIR/man1/dialyzer.1
+mv $DIR/man1/start.1 $DIR/man1/start_embedded.1
+
+# Fix manpages
+for f in $DIR/*/*.1 ; do
+    sed -i -e's/, start_erl(1)//g' \
+	   -e's/start(1)/start_embedded(1)/g' \
+	$f
+done
+
+sed -i -e's/^\(\.TH .*\) 3 \(.*\) "Erlang Module Definition"/\1 1 \2 "User Commands"/' \
+    $DIR/man1/dialyzer.1
+
+sed -i -e's/^start \\-/start_embedded \\-/' \
+       -e's/^\.TH start 1/.TH start_embedded 1/' \
+    $DIR/man1/start_embedded.1
+
+for f in $DIR/*/*.[1-6] ; do
+    sed -i -e's/^\(\.TH .*\) 3 /\1 3erl /' \
+	   -e's/\([^[:space:]]\)(3)/\1(3erl)/g' \
+	   -e's/\([^[:space:]]\)(4)/\1(5)/g' \
+	   -e's/\([^[:space:]]\)(6)/\1(7)/g' \
+	$f
+done
+
+for f in $DIR/*/*.3 ; do \
+    mv $f ${f}erl ; \
+done
--- erlang-14.a-dfsg.orig/debian/scripts/genlinks
+++ erlang-14.a-dfsg/debian/scripts/genlinks
@@ -0,0 +1,33 @@
+#!/usr/bin/perl -w
+
+my $erts_version=$ARGV[0];
+my @files = `ls -d *\-*`;
+chomp(@files);
+
+my($filename);
+foreach $filename (@files) {
+        my($name) = $filename;
+        print STDERR "Incorporating $filename:";
+
+        #
+        #  Add documentation directories
+        #
+        my(@info) = `ls $filename`;
+        foreach $line (@info) {
+                chomp($line);
+                print STDERR " $line";
+                print "/usr/share/doc/erlang-doc/lib/" . $filename . "/" . $line;
+                print "  /usr/lib/erlang/lib/" . $filename . "/" . $line;
+                print "\n";
+        }
+	print STDERR "\n";
+}
+
+#
+#  Closing boilerplate
+#
+print "/usr/share/doc/erlang-doc/erts-$erts_version/doc /usr/lib/erlang/erts-$erts_version/doc\n";
+print "/usr/share/doc/erlang-doc/erts-$erts_version/info /usr/lib/erlang/erts-$erts_version/info\n";
+print "/usr/share/doc/erlang-doc/doc /usr/lib/erlang/doc\n";
+
+print STDERR "Finished generating erlang-doc.links\n";
--- erlang-14.a-dfsg.orig/debian/scripts/genindex
+++ erlang-14.a-dfsg/debian/scripts/genindex
@@ -0,0 +1,51 @@
+#!/usr/bin/perl -w
+
+my @files = `ls -d *\-*`;
+chomp(@files);
+
+#
+#  Put in some boilerplate stuff -- Cribbed from the Erlang distribution.
+#
+print "<html>\n<head>\n";
+print "  <title>Erlang Library Modules Index</title>\n";
+print "  <style type=\"text/css\">\n";
+print "<!--\n";
+print "    body          { background: white; margin: 3em }\n";
+print "    body          { font-family: Verdana, Arial, Helvetica, sans-serif }\n";
+print "    h1 h2 h3 h4   { font-family: Verdana, Arial, Helvetica, sans-serif }\n";
+print "    h1            { font-size: 48 }\n";
+print "    p li          { font-family: Verdana, Arial, Helvetica, sans-serif }\n";
+print "-->\n";
+print "  </style>\n";
+print "</head>\n";
+print "<body bgcolor=white>\n";
+print "<center><h1>Index of Library Functions</h1></center><hr>\n";
+print "<table border=0 cellspacing=10 width=\"100%\">\n";
+
+my($filename);
+foreach $filename (@files) {
+        my($name) = $filename;
+        $name =~ s/[\d\.\-]//g;
+        print STDERR "Incorporating $filename\n";
+        print '<tr><td><strong><a href="' . $filename;
+        print '/doc/html/index.html">' . $name . '</strong></td>';
+
+        #
+        #  Get short description
+        #
+        print "<td>";
+        my(@info) = `grep "short:" $filename/info`;
+        foreach $line (@info) {
+                $line =~ s/^short://;
+                print $line;
+        }
+        print "</td></tr>\n";
+        
+}
+
+#
+#  Closing boilerplate
+#
+print "</body></html>\n";
+
+print STDERR "Finished generating index.\n";
--- erlang-14.a-dfsg.orig/debian/manpages/typer.1
+++ erlang-14.a-dfsg/debian/manpages/typer.1
@@ -0,0 +1,81 @@
+.TH typer 1 "typer  0.1.7.4" "Ericsson AB" "USER COMMANDS"
+.SH NAME
+typer \- The TypEr, a Type annotator of Erlang code
+.SH DESCRIPTION
+.LP
+TypEr is a tool that displays and automatically inserts type annotations
+in Erlang code. It uses Dialyzer to infer variable types.
+
+.SH USAGE
+.LP
+typer [--help] [--version] [--comments] [--plt PltFile]
+      [--show | --show-exported | --annotate | --annotate-inc-files]
+      [-Ddefine]* [-I include_dir]* [-T application]* [-r] file*
+.fi
+.LP
+Options:
+.RS 2
+.TP 4
+.B
+\fI-r dir\fR
+Searches directories recursively for .erl files below them.
+.TP 4
+.B
+\fI--show\fR
+Prints type specifications for all functions on stdout
+(this is the default behaviour; this option is not really needed).
+.TP 4
+.B
+\fI--show-exported\fR
+Same as --show, but prints specifications for exported functions only.
+Specs are displayed sorted alphabetically on the function's name.
+.TP 4
+.B
+\fI--annotate\fR
+Annotates the specified files with type specifications.
+.TP 4
+.B
+\fI--annotate-inc-files\fR
+Same as --annotate but annotates all -include() files as well as
+all .erl files (use this option with caution, it has not been tested much).
+.TP 4
+.B
+\fI--comments\fR
+Prints type information using Edoc comments, not type contracts.
+.TP 4
+.B
+\fI--plt PltFile\fR
+Uses the specified Dialyzer PLT file rather than the default one.
+.TP 4
+.B
+\fI-T file\fR
+The file \fIfile\fR already contains type specifications and these specifications
+are to be trusted in order to print specs for the rest of the files.
+(Multiple files or dirs, separated by spaces, can be specified.)
+.TP 4
+.B
+\fI-Dname\fR (or \fI-Dname=value\fR)
+Passes the defined name to TypEr.
+(The syntax of defines is the same as that used by \fIerlc\fR, see erlc(1).)
+.TP 4
+.B
+\fI-I include_dir\fR
+Passes the include_dir to TypEr.
+(The syntax of includes is the same as that used by \fIerlc\fR, see erlc(1).)
+.TP 4
+.B
+\fI--version\fR (or \fI-v\fR)
+Prints the TypEr version and exits.
+.TP 4
+.B
+\fI--help\fR (or \fI-h\fR)
+Prints help message and exits.
+.RE
+.SS Note:
+.LP
+* denotes that multiple occurrences of these options are possible\&.
+
+.SH SEE ALSO
+dialyzer(1), erlc(1)
+
+.RE
--- erlang-14.a-dfsg.orig/debian/manpages/erlang-depends.1
+++ erlang-14.a-dfsg/debian/manpages/erlang-depends.1
@@ -0,0 +1,237 @@
+.\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.05)
+.\" Modified by Sergei Golovan
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings.  \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
+.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+.    ds -- \(*W-
+.    ds PI pi
+.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
+.    ds L" ""
+.    ds R" ""
+.    ds C` ""
+.    ds C' ""
+'br\}
+.el\{\
+.    ds -- \|\(em\|
+.    ds PI \(*p
+.    ds L" ``
+.    ds R" ''
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD.  Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.ie \nF \{\
+.    de IX
+.    tm Index:\\$1\t\\n%\t"\\$2"
+..
+.    nr % 0
+.    rr F
+.\}
+.el \{\
+.    de IX
+..
+.\}
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
+.    \" fudge factors for nroff and troff
+.if n \{\
+.    ds #H 0
+.    ds #V .8m
+.    ds #F .3m
+.    ds #[ \f1
+.    ds #] \fP
+.\}
+.if t \{\
+.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+.    ds #V .6m
+.    ds #F 0
+.    ds #[ \&
+.    ds #] \&
+.\}
+.    \" simple accents for nroff and troff
+.if n \{\
+.    ds ' \&
+.    ds ` \&
+.    ds ^ \&
+.    ds , \&
+.    ds ~ ~
+.    ds /
+.\}
+.if t \{\
+.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+.    \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+.    \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+.    \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+.    ds : e
+.    ds 8 ss
+.    ds o a
+.    ds d- d\h'-1'\(ga
+.    ds D- D\h'-1'\(hy
+.    ds th \o'bp'
+.    ds Th \o'LP'
+.    ds ae ae
+.    ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "ERLANG-DEPENDS 1"
+.TH ERLANG-DEPENDS 1 "2010\-01\-10" "1:13.b.3\-dfsg\-3" "Erlang packages for Debian GNU/Linux"
+.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+erlang\-depends \- calculates Erlang dependencies
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+\&\fBerlang-depends\fR [\fIdebhelper\ options\fR]
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+erlang\-depends is a debhelper-like program that is responsible for generating
+the substitution variables for Erlang-dependent packages.
+.PP
+The most useful variable is ${erlang:Depends}. It expands into the list of
+Erlang packages which modules are used in the building package. It was
+introduced in version 1:13.b.1\-dfsg\-3 of erlang-dev package.
+.PP
+Also, ${erlang\-abi:Depends} substitution adds current erlang \s-1ABI\s0 virtual
+package to substvar files. It is useful if your package uses C-based
+extensions which may break in case of \s-1ABI\s0 changes. It was introduced in
+version 1:11.b.4\-4 of erlang\-dev package.
+.PP
+If you want to fine tune your package dependencies then you may want to use
+substvars for all Erlang packages you need. Currently they are:
+${erlang\-base:Depends},
+${erlang\-dev:Depends},
+${erlang\-appmon:Depends},
+${erlang\-asn1:Depends},
+${erlang\-common-test:Depends},
+${erlang\-corba:Depends},
+${erlang\-crypto:Depends},
+${erlang\-debugger:Depends},
+${erlang\-dialyzer:Depends},
+${erlang\-docbuilder:Depends},
+${erlang\-edoc:Depends},
+${erlang\-et:Depends},
+${erlang\-eunit:Depends},
+${erlang\-gs:Depends},
+${erlang\-ic:Depends},
+${erlang\-inets:Depends},
+${erlang\-inviso:Depends},
+${erlang\-megaco:Depends},
+${erlang\-mnesia:Depends},
+${erlang\-observer:Depends},
+${erlang\-odbc:Depends},
+${erlang\-os-mon:Depends},
+${erlang\-parsetools:Depends},
+${erlang\-percept:Depends},
+${erlang\-pman:Depends},
+${erlang\-public-key:Depends},
+${erlang\-reltool:Depends},
+${erlang\-runtime-tools:Depends},
+${erlang\-snmp:Depends},
+${erlang\-ssh:Depends},
+${erlang\-ssl:Depends},
+${erlang\-syntax-tools:Depends},
+${erlang\-test-server:Depends},
+${erlang\-toolbar:Depends},
+${erlang\-tools:Depends},
+${erlang\-tv:Depends},
+${erlang\-typer:Depends},
+${erlang\-webtool:Depends},
+${erlang\-wx:Depends},
+${erlang\-xmerl:Depends}.
+All variables except ${erlang\-base:Depends} and ${erlang\-dev:Depends} were
+introduced in version 1:13.b\-dfsg\-2 of erlang\-dev package.
+.PP
+For compatibility with older versions the variables
+${erlang\-nox:Depends} and ${erlang\-x11:Depends} also works (even since the
+corresponding packages turned into dummy packages).
+.PP
+If you use this program, your package must build-depend on erlang\-dev
+(>= 1:13.b\-dfsg\-2). If you want your package to use automatic calculation
+of dependencies then it must build-depend on erlang\-dev (>= 1:13.b.1\-dfsg\-3).
+.SH "OPTIONS"
+.IX Header "OPTIONS"
+.IP "\fB\-v\fR, \fB\-\-verbose\fR" 4
+.IX Item "-v, --verbose"
+Verbose mode.
+.IP "\fB\-a\fR, \fB\-\-arch\fR" 4
+.IX Item "-a, --arch"
+Act on all architecture dependent packages.
+.IP "\fB\-i\fR, \fB\-\-indep\fR" 4
+.IX Item "-i, --indep"
+Act on all architecture independent packages.
+.IP "\fB\-p\fR\fIpackage\fR, \fB\-\-package=\fR\fIpackage\fR" 4
+.IX Item "-ppackage, --package=package"
+Act on the package named \*(L"package\*(R". This option may be specified multiple
+times.
+.IP "\fB\-N\fR\fIpackage\fR, \fB\-\-no\-package=\fR\fIpackage\fR" 4
+.IX Item "-Npackage, --no-package=package"
+Do not act on the specified package even if an \-a, \-i, or \-p option lists
+the package as one that should be acted on.
+.IP "\fB\-\-ignore=\fR\fIfile\fR" 4
+.IX Item "--ignore=file"
+Ignore the specified file.
+.IP "\fB\-P\fR\fItmpdir\fR, \fB\-\-tmpdir=\fR\fItmpdir\fR" 4
+.IX Item "-Ptmpdir, --tmpdir=tmpdir"
+Use \*(L"tmpdir\*(R" for package build directory. The default is debian/<package>
+.SH "SEE ALSO"
+.IX Header "SEE ALSO"
+\&\fIdebhelper\fR\|(7)
+.PP
+This program is not part of debhelper.
+.SH "AUTHORS"
+.IX Header "AUTHORS"
+Torsten Werner <twerner@debian.org> initially wrote it in Perl,
+Sergei Golovan <sgolovan@debian.org> rewrote in Erlang (started from 1:13.b.1\-dfsg\-3).
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-wx.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-wx.lintian-overrides
@@ -0,0 +1 @@
+erlang-wx: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-docbuilder.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-docbuilder.lintian-overrides
@@ -0,0 +1 @@
+erlang-docbuilder: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-examples.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-examples.lintian-overrides
@@ -0,0 +1,5 @@
+erlang-examples: image-file-in-usr-lib
+
+# The scripts in the following warnings are not scripts but script skeletons.
+erlang-examples: script-not-executable
+erlang-examples: shell-script-fails-syntax-check
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-gs.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-gs.lintian-overrides
@@ -0,0 +1 @@
+erlang-gs: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-erl-docgen.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-erl-docgen.lintian-overrides
@@ -0,0 +1 @@
+erlang-erl-docgen: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-percept.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-percept.lintian-overrides
@@ -0,0 +1 @@
+erlang-percept: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-tv.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-tv.lintian-overrides
@@ -0,0 +1 @@
+erlang-tv: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-base.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-base.lintian-overrides
@@ -0,0 +1,4 @@
+# Zlib and PCRE3 which are embedded into Erlang VM are patched, so
+# it's not possible to link them to an external zlib or pcre3.
+erlang-base: embedded-zlib
+erlang-base: embedded-library
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-observer.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-observer.lintian-overrides
@@ -0,0 +1 @@
+erlang-observer: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-debugger.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-debugger.lintian-overrides
@@ -0,0 +1 @@
+erlang-debugger: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-edoc.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-edoc.lintian-overrides
@@ -0,0 +1 @@
+erlang-edoc: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-base-hipe.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-base-hipe.lintian-overrides
@@ -0,0 +1,4 @@
+# Zlib and PCRE3 which are embedded into Erlang VM are patched, so
+# it's not possible to link them to an external zlib or pcre3.
+erlang-base-hipe: embedded-zlib
+erlang-base-hipe: embedded-library
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-appmon.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-appmon.lintian-overrides
@@ -0,0 +1 @@
+erlang-appmon: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/lintian/erlang-pman.lintian-overrides
+++ erlang-14.a-dfsg/debian/lintian/erlang-pman.lintian-overrides
@@ -0,0 +1 @@
+erlang-pman: image-file-in-usr-lib
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-dialyzer.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-dialyzer.patterns
@@ -0,0 +1,3 @@
+./usr/lib/erlang/bin/dialyzer
+./usr/lib/erlang/erts-.*/bin/dialyzer
+./usr/lib/erlang/lib/dialyzer-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-percept.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-percept.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/percept-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-tv.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-tv.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/tv-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-appmon.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-appmon.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/appmon-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-ssl.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-ssl.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/ssl-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-pman.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-pman.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/pman-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-snmp.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-snmp.patterns
@@ -0,0 +1,2 @@
+./usr/lib/erlang/lib/otp_mibs-.*/
+./usr/lib/erlang/lib/snmp-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-corba.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-corba.patterns
@@ -0,0 +1,8 @@
+./usr/lib/erlang/lib/cosEvent-.*/
+./usr/lib/erlang/lib/cosEventDomain-.*/
+./usr/lib/erlang/lib/cosFileTransfer-.*/
+./usr/lib/erlang/lib/cosNotification-.*/
+./usr/lib/erlang/lib/cosProperty-.*/
+./usr/lib/erlang/lib/cosTime-.*/
+./usr/lib/erlang/lib/cosTransactions-.*/
+./usr/lib/erlang/lib/orber-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-erl-docgen.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-erl-docgen.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/erl_docgen-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-gs.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-gs.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/gs-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-syntax-tools.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-syntax-tools.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/syntax_tools-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-parsetools.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-parsetools.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/parsetools-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-inviso.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-inviso.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/inviso-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-ic.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-ic.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/ic-.*/ebin/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-webtool.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-webtool.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/webtool-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-typer.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-typer.patterns
@@ -0,0 +1,3 @@
+./usr/lib/erlang/bin/typer
+./usr/lib/erlang/erts-.*/bin/typer
+./usr/lib/erlang/lib/typer-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-eunit.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-eunit.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/eunit-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-src.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-src.patterns
@@ -0,0 +1,70 @@
+./usr/lib/erlang/.*/java_src/
+./usr/lib/erlang/erts-.*/bin/.*\.src
+./usr/lib/erlang/erts-.*/src/
+./usr/lib/erlang/lib/appmon-.*/src/
+./usr/lib/erlang/lib/asn1-.*/c_src/
+./usr/lib/erlang/lib/asn1-.*/src/
+./usr/lib/erlang/lib/compiler-.*/src/
+./usr/lib/erlang/lib/common_test-.*/src/
+./usr/lib/erlang/lib/cosEventDomain-.*/src/
+./usr/lib/erlang/lib/cosEvent-.*/src/
+./usr/lib/erlang/lib/cosFileTransfer-.*/src/
+./usr/lib/erlang/lib/cosNotification-.*/src/
+./usr/lib/erlang/lib/cosProperty-.*/src/
+./usr/lib/erlang/lib/cosTime-.*/src/
+./usr/lib/erlang/lib/cosTransactions-.*/src/
+./usr/lib/erlang/lib/crypto-.*/src/
+./usr/lib/erlang/lib/debugger-.*/src/
+./usr/lib/erlang/lib/dialyzer-.*/src/
+./usr/lib/erlang/lib/docbuilder-.*/src/
+./usr/lib/erlang/lib/edoc-.*/src/
+./usr/lib/erlang/lib/erl_interface-.*/src/
+./usr/lib/erlang/lib/erts-.*/src/
+./usr/lib/erlang/lib/et-.*/src/
+./usr/lib/erlang/lib/eunit-.*/src/
+./usr/lib/erlang/lib/gs-.*/src/
+./usr/lib/erlang/lib/gs-.*/contribs/bonk/[^/]*$
+./usr/lib/erlang/lib/gs-.*/contribs/cols/[^/]*$
+./usr/lib/erlang/lib/gs-.*/contribs/mandel/[^/]*$
+./usr/lib/erlang/lib/gs-.*/contribs/othello/[^/]*$
+./usr/lib/erlang/lib/hipe-.*/
+./usr/lib/erlang/lib/ic-.*/c_src/
+./usr/lib/erlang/lib/ic-.*/src/
+./usr/lib/erlang/lib/inviso-.*/src/
+./usr/lib/erlang/lib/inets-.*/src/
+./usr/lib/erlang/lib/kernel-.*/src/
+./usr/lib/erlang/lib/megaco-.*/src/
+./usr/lib/erlang/lib/mnemosyne-.*/src/
+./usr/lib/erlang/lib/mnesia_session-.*/src/
+./usr/lib/erlang/lib/mnesia-.*/src/
+./usr/lib/erlang/lib/observer-.*/src/
+./usr/lib/erlang/lib/odbc-.*/c_src/
+./usr/lib/erlang/lib/odbc-.*/src/
+./usr/lib/erlang/lib/orber-.*/COSS/CosNaming/
+./usr/lib/erlang/lib/orber-[^/]*/src/
+./usr/lib/erlang/lib/os_mon-.*/src/
+./usr/lib/erlang/lib/otp_mibs-.*/src/
+./usr/lib/erlang/lib/parsetools-.*/src/
+./usr/lib/erlang/lib/percept-.*/src/
+./usr/lib/erlang/lib/pman-.*/src/
+./usr/lib/erlang/lib/public_key-.*/asn1/
+./usr/lib/erlang/lib/public_key-.*/src/
+./usr/lib/erlang/lib/reltool-.*/src/
+./usr/lib/erlang/lib/runtime_tools-.*/src/
+./usr/lib/erlang/lib/sasl-.*/src/
+./usr/lib/erlang/lib/snmp-.*/src/
+./usr/lib/erlang/lib/ssh-.*/src/
+./usr/lib/erlang/lib/ssl-.*/pkix/
+./usr/lib/erlang/lib/ssl-.*/src/
+./usr/lib/erlang/lib/stdlib-.*/src/
+./usr/lib/erlang/lib/syntax_tools-.*/src/
+./usr/lib/erlang/lib/test_server-.*/src/
+./usr/lib/erlang/lib/toolbar-.*/src/
+./usr/lib/erlang/lib/tools-.*/c_src/
+./usr/lib/erlang/lib/tools-.*/src/
+./usr/lib/erlang/lib/tv-.*/src/
+./usr/lib/erlang/lib/typer-.*/src/
+./usr/lib/erlang/lib/webtool-.*/src/
+./usr/lib/erlang/lib/wx-.*/src/
+./usr/lib/erlang/lib/xmerl-.*/src/
+./usr/lib/erlang/releases/.*\.src
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-ssh.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-ssh.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/ssh-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-ic-java.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-ic-java.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/ic-.*/priv/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-docbuilder.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-docbuilder.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/docbuilder-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-mnesia.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-mnesia.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/mnesia-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-jinterface.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-jinterface.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/jinterface-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-public-key.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-public-key.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/public_key-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-test-server.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-test-server.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/test_server-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-examples.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-examples.patterns
@@ -0,0 +1,18 @@
+./usr/lib/erlang/lib/asn1-.*/examples/
+./usr/lib/erlang/lib/et-.*/examples/
+./usr/lib/erlang/lib/eunit-.*/examples/
+./usr/lib/erlang/lib/gs-.*/examples/
+./usr/lib/erlang/lib/ic-.*/examples/
+./usr/lib/erlang/lib/inets-.*/examples/
+./usr/lib/erlang/lib/kernel-.*/examples/
+./usr/lib/erlang/lib/megaco-.*/examples/
+./usr/lib/erlang/lib/mnemosyne-.*/examples/
+./usr/lib/erlang/lib/mnesia-.*/examples/
+./usr/lib/erlang/lib/orber-.*/examples/
+./usr/lib/erlang/lib/reltool-.*/examples/
+./usr/lib/erlang/lib/snmp-.*/examples/
+./usr/lib/erlang/lib/ssl-.*/examples/
+./usr/lib/erlang/lib/stdlib-.*/examples/
+./usr/lib/erlang/lib/syntax_tools-.*/examples/
+./usr/lib/erlang/lib/tools-.*/examples/
+./usr/lib/erlang/lib/wx-.*/examples/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-dev.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-dev.patterns
@@ -0,0 +1,38 @@
+\.a$
+./usr/lib/erlang/erts-.*/include/
+./usr/lib/erlang/erts-.*/lib/
+./usr/lib/erlang/lib/common_test-.*/include/
+./usr/lib/erlang/lib/cosEventDomain-.*/include/
+./usr/lib/erlang/lib/cosEvent-.*/include/
+./usr/lib/erlang/lib/cosFileTransfer-.*/include/
+./usr/lib/erlang/lib/cosNotification-.*/include/
+./usr/lib/erlang/lib/cosProperty-.*/include/
+./usr/lib/erlang/lib/cosTime-.*/include/
+./usr/lib/erlang/lib/cosTransactions-.*/include/
+./usr/lib/erlang/lib/edoc-.*/include/
+./usr/lib/erlang/lib/erl_interface-.*/include/
+./usr/lib/erlang/lib/erl_interface-.*/lib/
+./usr/lib/erlang/lib/et-.*/include/
+./usr/lib/erlang/lib/eunit-.*/include/
+./usr/lib/erlang/lib/ic-.*/include/
+./usr/lib/erlang/lib/ic-.*/priv/lib/
+./usr/lib/erlang/lib/kernel-.*/include/
+./usr/lib/erlang/lib/megaco-.*/include/
+./usr/lib/erlang/lib/mnemosyne-.*/include/
+./usr/lib/erlang/lib/mnesia-.*/include/
+./usr/lib/erlang/lib/mnesia_session-.*/include/
+./usr/lib/erlang/lib/observer-.*/include/
+./usr/lib/erlang/lib/odbc-.*/include/
+./usr/lib/erlang/lib/orber-[^/]*/include/
+./usr/lib/erlang/lib/os_mon-.*/include/
+./usr/lib/erlang/lib/otp_mibs-.*/include/
+./usr/lib/erlang/lib/parsetools-.*/include/
+./usr/lib/erlang/lib/public_key-.*/include/
+./usr/lib/erlang/lib/runtime_tools-.*/include/
+./usr/lib/erlang/lib/snmp-.*/include/
+./usr/lib/erlang/lib/ssh-.*/include/
+./usr/lib/erlang/lib/ssl-.*/include/
+./usr/lib/erlang/lib/stdlib-.*/include/
+./usr/lib/erlang/lib/test_server-.*/include/
+./usr/lib/erlang/lib/wx-.*/include/
+./usr/lib/erlang/lib/xmerl-.*/include/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-crypto.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-crypto.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/crypto-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-megaco.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-megaco.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/megaco-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-asn1.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-asn1.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/asn1-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-base-hipe.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-base-hipe.patterns
@@ -0,0 +1,13 @@
+./usr/lib/erlang/Install
+./usr/lib/erlang/misc/
+./usr/lib/erlang/releases/[^.]*(\.[^s]|\.s[^r]|\.sr[^c]|\.src.)?[^.]*$
+./usr/lib/erlang/bin/[^d][^y].*([^t]|[^s]t)$
+./usr/lib/erlang/erts-.*/bin/[^d][^y][^.]*(\.debug)?(\.[^s]|\.s[^r]|\.sr[^c]|\.src.)?[^.]*([^t]|[^s]t|[^e]st)$
+./usr/lib/erlang/erts-.*/bin/dyn_erl$
+./usr/lib/erlang/lib/erl_interface-.*/bin/
+./usr/lib/erlang/lib/compiler-.*/ebin/
+./usr/lib/erlang/lib/erts-.*/ebin/
+./usr/lib/erlang/lib/hipe-.*/ebin/
+./usr/lib/erlang/lib/kernel-.*/ebin/
+./usr/lib/erlang/lib/sasl-.*/ebin/
+./usr/lib/erlang/lib/stdlib-.*/ebin/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-odbc.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-odbc.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/odbc-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-wx.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-wx.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/wx-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-toolbar.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-toolbar.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/toolbar-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-inets.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-inets.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/inets-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-runtime-tools.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-runtime-tools.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/runtime_tools-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-reltool.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-reltool.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/reltool-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-base.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-base.patterns
@@ -0,0 +1,13 @@
+./usr/lib/erlang/Install
+./usr/lib/erlang/misc/
+./usr/lib/erlang/releases/[^.]*(\.[^s]|\.s[^r]|\.sr[^c]|\.src.)?[^.]*$
+./usr/lib/erlang/bin/[^d][^y].*([^t]|[^s]t)$
+./usr/lib/erlang/erts-.*/bin/[^d][^y][^.]*(\.debug)?(\.[^s]|\.s[^r]|\.sr[^c]|\.src.)?[^.]*([^t]|[^s]t|[^e]st)$
+./usr/lib/erlang/erts-.*/bin/dyn_erl$
+./usr/lib/erlang/lib/erl_interface-.*/bin/
+./usr/lib/erlang/lib/compiler-.*/ebin/
+./usr/lib/erlang/lib/erts-.*/ebin/
+./usr/lib/erlang/lib/hipe-.*/ebin/
+./usr/lib/erlang/lib/kernel-.*/ebin/
+./usr/lib/erlang/lib/sasl-.*/ebin/
+./usr/lib/erlang/lib/stdlib-.*/ebin/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-tools.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-tools.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/tools-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-edoc.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-edoc.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/edoc-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-os-mon.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-os-mon.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/os_mon-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-common-test.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-common-test.patterns
@@ -0,0 +1,3 @@
+./usr/lib/erlang/bin/run_test
+./usr/lib/erlang/erts-.*/bin/run_test
+./usr/lib/erlang/lib/common_test-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-debugger.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-debugger.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/debugger-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-xmerl.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-xmerl.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/xmerl-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-observer.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-observer.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/observer-.*/
--- erlang-14.a-dfsg.orig/debian/patterns/erlang-et.patterns
+++ erlang-14.a-dfsg/debian/patterns/erlang-et.patterns
@@ -0,0 +1 @@
+./usr/lib/erlang/lib/et-.*/
