--- galib-2.4.7.orig/debian/libga2.install
+++ galib-2.4.7/debian/libga2.install
@@ -0,0 +1 @@
+usr/lib/libga.so.*
--- galib-2.4.7.orig/debian/copyright
+++ galib-2.4.7/debian/copyright
@@ -0,0 +1,85 @@
+Author: Matthew Wall
+Download: http://quesoglc.sourceforge.net/
+
+Files: *
+Copyright:
+ 1996-2005 Matthew Wall (the Author)
+ 1995-1996 Massachusetts Institute of Technology (MIT)
+Licence: MIT
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+  Redistributions of source code must retain the above copyright notice,
+  this list of conditions and the following disclaimer.
+ .
+  Redistributions in binary form must reproduce the above copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+ .
+  Neither the name Massachusetts Institute of Technology (MIT), Matthew
+  Wall, nor the names of contributors may be used to endorse or promote
+  products derived from this software without specific prior written
+  permission.
+ .
+ This software is provided "as is".  Any express or implied warranties,
+ including, but not limited to, the implied warranties of merchantability
+ and fitness for a particular purpose are disclaimed.  In no event shall
+ MIT, Matthew Wall, or the contributors to GAlib be liable for any direct,
+ indirect, incidental, special, exemplary, or consequential damages
+ (including, but not limited to, procurement of substitute goods or
+ services; loss of use, data, or profits; or business interruption) however
+ caused and on any theory of liability, whether in contract, strict
+ liability, or tort (including negligence or otherwise) arising in any way
+ out of the use of this software, even if advised of the possibility of
+ such damage.
+
+Files:
+ examples/gnu/AllocRing.cc
+ examples/gnu/error.cc
+ examples/gnu/BitString.cc
+ examples/gnu/Obstack.cc:
+Copyright: (C) 1988-1990 Free Software Foundation
+License: LGPL-2+
+ This file is part of the GNU C++ Library. This library is free software;
+ you can redistribute it and/or modify it under the terms of the GNU
+ Library 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 Library General Public
+ License for more details.
+
+Files: examples/gnu/*
+Copyright: (C) 1988-1994 Free Software Foundation
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+
+Files: debian/*
+Copyright: (C) 2008 Bradley Smith <brad@brad-smith.co.uk>
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+
+On Debian systems, the complete text of the GNU Library General Public
+License can be found in `/usr/share/common-licenses/LGPL-2'.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in `/usr/share/common-licenses/GPL-2'.
--- galib-2.4.7.orig/debian/changelog
+++ galib-2.4.7/debian/changelog
@@ -0,0 +1,23 @@
+galib (2.4.7-3.4.201403120707) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Wed, 12 Mar 2014 07:07:12 +0100
+
+galib (2.4.7-3) unstable; urgency=low
+
+  * Add missing .C files needed by headers. Closes: #510317.
+
+ -- Bradley Smith <bradsmith@debian.org>  Wed, 31 Dec 2008 12:25:44 +0000
+
+galib (2.4.7-2) unstable; urgency=low
+
+  * Correct header install location.
+
+ -- Bradley Smith <bradsmith@debian.org>  Mon, 29 Dec 2008 19:54:43 +0000
+
+galib (2.4.7-1) unstable; urgency=low
+
+  * Initial release. Closes: #508719.
+
+ -- Bradley Smith <bradsmith@debian.org>  Sun, 14 Dec 2008 21:47:55 +0000
--- galib-2.4.7.orig/debian/compat
+++ galib-2.4.7/debian/compat
@@ -0,0 +1 @@
+7
--- galib-2.4.7.orig/debian/rules
+++ galib-2.4.7/debian/rules
@@ -0,0 +1,77 @@
+#!/usr/bin/make -f
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+BUILDDIR=$(CURDIR)/debian/build
+
+CFLAGS = -Wall
+CXXFLAGS = -Wall
+LDFLAGS = -Wl,--as-needed
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+	CXXFLAGS += -O0
+else
+	CFLAGS += -O2
+	CXXFLAGS += -O2
+endif
+
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	MAKEFLAGS += -j$(NUMJOBS)
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	chmod +x $(BUILDDIR)/bootstrap.sh
+	cd $(BUILDDIR); ./bootstrap.sh; \
+	LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
+		./configure --prefix=/usr \
+		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
+	touch $@
+
+build: build-stamp
+build-stamp: configure
+	dh_testdir
+	$(MAKE) -C $(BUILDDIR)
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	[ ! -f $(BUILDDIR)/Makefile ] || $(MAKE) -C $(BUILDDIR) maintainer-clean
+	cd $(BUILDDIR); rm -f aclocal.m4 config.sub depcomp configure \
+		install-sh Makefile.in config.guess  ltmain.sh missing
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	$(MAKE) -C $(BUILDDIR) DESTDIR=$(CURDIR)/debian/tmp install
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installexamples
+	dh_installdocs
+	dh_install --fail-missing
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps -V
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- galib-2.4.7.orig/debian/control
+++ galib-2.4.7/debian/control
@@ -0,0 +1,33 @@
+Source: galib
+Section: devel
+Priority: optional
+Maintainer: Bradley Smith <bradsmith@debian.org>
+Build-Depends:  debhelper (>= 7), automake, libtool
+Standards-Version: 3.8.0
+Homepage: http://lancet.mit.edu/ga/
+Vcs-Git: http://git.brad-smith.co.uk/git/debian/pkg-galib.git
+Vcs-Browser: http://git.brad-smith.co.uk/?p=debian/pkg-galib.git
+
+Package: libga2
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: C++ Library of Genetic Algorithm Components
+ GAlib contains a set of C++ genetic algorithm objects. The library
+ includes tools for using genetic algorithms to do optimization in any C++
+ program using any representation and genetic operators. The documentation
+ includes an extensive overview of how to implement a genetic algorithm as
+ well as examples illustrating customizations to the GAlib classes.
+
+Package: libga-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libga2 (= ${binary:Version})
+Description: C++ Library of Genetic Algorithm Components
+ GAlib contains a set of C++ genetic algorithm objects. The library
+ includes tools for using genetic algorithms to do optimization in any C++
+ program using any representation and genetic operators. The documentation
+ includes an extensive overview of how to implement a genetic algorithm as
+ well as examples illustrating customizations to the GAlib classes.
+ .
+ This package contains the development files.
--- galib-2.4.7.orig/debian/libga-dev.install
+++ galib-2.4.7/debian/libga-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/libga.a
+usr/lib/libga.la
+usr/lib/libga.so
--- galib-2.4.7.orig/debian/watch
+++ galib-2.4.7/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://lancet.mit.edu/ga/dist/galib(\d+)(\d+)(\d+).tgz
--- galib-2.4.7.orig/debian/build/configure.ac
+++ galib-2.4.7/debian/build/configure.ac
@@ -0,0 +1,10 @@
+AC_INIT([galib], [2.4.7], [])
+AC_CONFIG_AUX_DIR(.)
+AM_INIT_AUTOMAKE
+
+AC_PROG_LIBTOOL
+AC_PROG_CXX
+
+AC_OUTPUT(
+    Makefile
+)
--- galib-2.4.7.orig/debian/build/bootstrap.sh
+++ galib-2.4.7/debian/build/bootstrap.sh
@@ -0,0 +1,118 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+DIE=0
+
+debug ()
+# print out a debug message if DEBUG is a defined variable
+{
+  if [ ! -z "$DEBUG" ]; then
+    echo "DEBUG: $1"
+  fi
+}
+
+version_check ()
+# check the version of a package
+# first argument : complain ('1') or not ('0')
+# second argument : package name (executable)
+# third argument : source download url
+# rest of arguments : major, minor, micro version
+{
+  COMPLAIN=$1
+  PACKAGE=$2
+  URL=$3
+  MAJOR=$4
+  MINOR=$5
+  MICRO=$6
+
+  WRONG=
+
+  debug "major $MAJOR minor $MINOR micro $MICRO"
+  VERSION=$MAJOR
+  if [ ! -z "$MINOR" ]; then VERSION=$VERSION.$MINOR; else MINOR=0; fi
+  if [ ! -z "$MICRO" ]; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
+
+  debug "version $VERSION"
+  echo "+ checking for $PACKAGE >= $VERSION ... " | tr -d '\n'
+
+  ($PACKAGE --version) < /dev/null > /dev/null 2>&1 ||
+  {
+    echo
+    echo "You must have $PACKAGE installed to compile $package."
+    echo "Download the appropriate package for your distribution,"
+    echo "or get the source tarball at $URL"
+    return 1
+  }
+  # the following line is carefully crafted sed magic
+  pkg_version=`$PACKAGE --version|head -n 1|sed 's/([^)]*)//g;s/^[a-zA-Z\.\ \-\/]*//;s/ .*$//'`
+  debug "pkg_version $pkg_version"
+  pkg_major=`echo $pkg_version | cut -d. -f1`
+  pkg_minor=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f2`
+  pkg_micro=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f3`
+  [ -z "$pkg_minor" ] && pkg_minor=0
+  [ -z "$pkg_micro" ] && pkg_micro=0
+
+  debug "found major $pkg_major minor $pkg_minor micro $pkg_micro"
+
+  #start checking the version
+  if [ "$pkg_major" -lt "$MAJOR" ]; then
+    WRONG=1
+  elif [ "$pkg_major" -eq "$MAJOR" ]; then
+    if [ "$pkg_minor" -lt "$MINOR" ]; then
+      WRONG=1
+    elif [ "$pkg_minor" -eq "$MINOR" -a "$pkg_micro" -lt "$MICRO" ]; then
+      WRONG=1
+    fi
+  fi
+
+  if [ ! -z "$WRONG" ]; then
+   echo "found $pkg_version, not ok !"
+   if [ "$COMPLAIN" -eq "1" ]; then
+     echo
+     echo "You must have $PACKAGE $VERSION or greater to compile $package."
+     echo "Get the latest version from <$URL>."
+     echo
+   fi
+   return 1
+  else
+    echo "found $pkg_version, ok."
+  fi
+}
+
+version_check 1 "autoconf" "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 56 || DIE=1
+version_check 1 "automake" "ftp://ftp.gnu.org/pub/gnu/automake/" 1 9 || DIE=1
+version_check 1 "libtool" "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 4 || DIE=1
+if [ "$DIE" -eq 1 ]; then
+  exit 1
+fi
+
+echo "+ running aclocal ..."
+aclocal || {
+  echo
+  echo "aclocal failed - check that all needed development files are present on system"
+  exit 1
+}
+echo "+ running autoconf ... "
+autoconf || {
+  echo
+  echo "autoconf failed"
+  exit 1
+}
+echo "+ running libtoolize ... "
+libtoolize -c -f || {
+  echo
+  echo "libtoolize failed"
+  exit 1
+}
+echo "+ running automake ... "
+automake -a -c --foreign || {
+  echo
+  echo "automake failed"
+  exit 1
+}
+
+# now remove the cache, because it can be considered dangerous in this case
+echo "+ Tidying up ... "
+rm -rf config.cache autom4te.cache
+
+exit 0
--- galib-2.4.7.orig/debian/build/Makefile.am
+++ galib-2.4.7/debian/build/Makefile.am
@@ -0,0 +1,44 @@
+topdir=../../ga
+
+INCLUDES = -I$(topdir)/../
+
+ga_includedir = $(includedir)/ga/
+ga_include_HEADERS = $(topdir)/ga.h $(topdir)/gaconfig.h \
+	$(topdir)/gatypes.h $(topdir)/gaid.h $(topdir)/garandom.h \
+	$(topdir)/gaerror.h $(topdir)/std_stream.h $(topdir)/GAEvalData.h \
+	$(topdir)/GAParameter.h $(topdir)/GAStatistics.h $(topdir)/GABaseGA.h \
+	$(topdir)/GASStateGA.h $(topdir)/GASimpleGA.h $(topdir)/GAIncGA.h \
+	$(topdir)/GADemeGA.h $(topdir)/GADCrowdingGA.h $(topdir)/GASelector.h \
+	$(topdir)/GAScaling.h $(topdir)/GAPopulation.h $(topdir)/GAGenome.h \
+	$(topdir)/GAMask.h $(topdir)/GABinStr.h $(topdir)/gabincvt.h \
+	$(topdir)/GAAllele.h $(topdir)/GAArray.h $(topdir)/GANode.h \
+	$(topdir)/GA1DBinStrGenome.h $(topdir)/GA2DBinStrGenome.h \
+	$(topdir)/GA3DBinStrGenome.h $(topdir)/GABin2DecGenome.h \
+	$(topdir)/GA1DArrayGenome.h $(topdir)/GA2DArrayGenome.h \
+	$(topdir)/GA3DArrayGenome.h $(topdir)/GAStringGenome.h \
+	$(topdir)/GARealGenome.h $(topdir)/GATreeBASE.h $(topdir)/GATree.h \
+	$(topdir)/GATreeGenome.h $(topdir)/GAListBASE.h $(topdir)/GAList.h \
+	$(topdir)/GAListGenome.h $(topdir)/GAAllele.C \
+	$(topdir)/GA1DArrayGenome.C $(topdir)/GA2DArrayGenome.C \
+	$(topdir)/GA3DArrayGenome.C $(topdir)/GATree.C \
+	$(topdir)/GATreeGenome.C $(topdir)/GAList.C $(topdir)/GAListGenome.C \
+	$(topdir)/GAStringGenome.C $(topdir)/GARealGenome.C
+
+lib_LTLIBRARIES = libga.la
+
+libga_la_SOURCES = $(topdir)/garandom.C $(topdir)/gaerror.C \
+	$(topdir)/GAParameter.C $(topdir)/GAStatistics.C $(topdir)/GABaseGA.C \
+	$(topdir)/GASStateGA.C $(topdir)/GASimpleGA.C $(topdir)/GAIncGA.C \
+	$(topdir)/GADemeGA.C $(topdir)/GADCrowdingGA.C $(topdir)/GASelector.C \
+	$(topdir)/GAScaling.C $(topdir)/GAPopulation.C $(topdir)/GAGenome.C \
+	$(topdir)/GABinStr.C $(topdir)/gabincvt.C $(topdir)/GAAllele.C \
+	$(topdir)/GAStringGenome.C $(topdir)/GARealGenome.C \
+	$(topdir)/GA1DBinStrGenome.C $(topdir)/GA2DBinStrGenome.C \
+	$(topdir)/GA3DBinStrGenome.C $(topdir)/GABin2DecGenome.C \
+	$(topdir)/GA1DArrayGenome.C $(topdir)/GA2DArrayGenome.C \
+	$(topdir)/GA3DArrayGenome.C $(topdir)/GATreeBASE.C $(topdir)/GATree.C \
+	$(topdir)/GATreeGenome.C $(topdir)/GAListBASE.C $(topdir)/GAList.C \
+	$(topdir)/GAListGenome.C
+
+libga_la_LDFLAGS = -version-info 6:7:4
+libga_la_LIBADD =
