--- ucspi-unix-0.36.orig/debian/README.Debian.diet
+++ ucspi-unix-0.36/debian/README.Debian.diet
@@ -0,0 +1,15 @@
+Building ucspi-unix with the diet libc
+--------------------------------------
+
+This package optionally can be built with the diet libc instead of the glibc
+to provide small statically linked programs.  The resulting package has no
+dependency on any other package.
+
+To use the diet libc, make sure the latest versions of the dietlibc-dev and
+bglibs-dev packages are installed, and set DEB_BUILD_OPTIONS=diet in the
+environment when building the package, e.g.:
+
+ # apt-get install dietlibc-dev bglibs-dev
+ $ DEB_BUILD_OPTIONS=diet fakeroot apt-get source -b ucspi-unix
+
+ -- Gerrit Pape <pape@smarden.org>, Sat, 02 Apr 2005 17:22:31 +0000
--- ucspi-unix-0.36.orig/debian/copyright
+++ ucspi-unix-0.36/debian/copyright
@@ -0,0 +1,15 @@
+This package was debianized by Gerrit Pape <pape@smarden.org> on
+Fri, 18 Jan 2002 11:35:27 +0100.
+
+It was downloaded from http://untroubled.org/ucspi-unix/
+
+Upstream Author: Bruce Guenter <bruceg@em.ca>
+
+Copyright:
+
+This program is Copyright(C) 2002 Bruce Guenter, and may be copied
+according to the GNU GENERAL PUBLIC LICENSE (GPL) Version 2 or a later
+version.  A copy of this license is included with this package.  This
+package comes with no warranty of any kind.
+
+The full text of the GPL can be found at /usr/share/common-licenses/GPL-2.
--- ucspi-unix-0.36.orig/debian/changelog
+++ ucspi-unix-0.36/debian/changelog
@@ -0,0 +1,56 @@
+ucspi-unix (0.36-4.6.201403112132) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Tue, 11 Mar 2014 21:32:21 +0100
+
+ucspi-unix (0.36-4) unstable; urgency=medium
+
+  * debian/rules: add -D_GNU_SOURCE to CFLAGS (thx peter green, closes:
+    #527665).
+  * debian/control: Standards-Version: 3.8.2.0.
+  * debian/control: Build-Depends: libbg-dev instead of bglibs-dev (has
+    been renamed).
+  * debian/rules: do not ignore 'make clean' error.
+  * debian/copyright: properly refer to common-licenses/GPL-2, not GPL.
+
+ -- Gerrit Pape <pape@smarden.org>  Sun, 28 Jun 2009 23:19:38 +0000
+
+ucspi-unix (0.36-3) unstable; urgency=low
+
+  * debian/implicit: update to revision 1.10.
+  * debian/rules: DEB_BUILD_OPTIONS=diet to optionally build with the diet
+    libc instead of glibc; cleanup.
+  * debian/README.Debian.diet; new: how to build package with the diet
+    libc.
+  * debian/ucspi-unix.docs: add debian/README.Debian.diet.
+
+ -- Gerrit Pape <pape@smarden.org>  Sat,  2 Apr 2005 17:23:04 +0000
+
+ucspi-unix (0.36-2) unstable; urgency=low
+
+  * debian/control: no longer Build-Depends: debhelper; Standards-Version:
+    3.6.1.0.
+  * debian/copyright: include explicit copyright statement; refer to
+    common-licenses/GPL.
+  * debian/rules: stop using debhelper, use implicit rules.
+  * debian/implicit: new; implicit rules.
+  * debian/ucspi-unix.docs: new.
+  * debian/dirs, debian/docs: remove; obsolete.
+
+ -- Gerrit Pape <pape@smarden.org>  Thu, 18 Dec 2003 14:23:47 +0000
+
+ucspi-unix (0.36-1) unstable; urgency=low
+
+  * new upstream version; Build-Depends on bglibs-dev.
+
+ -- Gerrit Pape <pape@smarden.org>  Sat, 20 Jul 2002 14:19:54 +0200
+
+ucspi-unix (0.34-1) unstable; urgency=low
+
+  * Initial Release (closes: #93153).
+  * man pages added.
+  * unixclient.c: correct USAGE output.
+
+ -- Gerrit Pape <pape@smarden.org>  Fri, 18 Jan 2002 11:35:27 +0100
+
--- ucspi-unix-0.36.orig/debian/implicit
+++ ucspi-unix-0.36/debian/implicit
@@ -0,0 +1,85 @@
+# $Id$
+
+.PHONY: deb-checkdir deb-checkuid
+
+deb-checkdir:
+	@test -e debian/control || sh -cx '! : wrong directory'
+deb-checkuid:
+	@test "`id -u`" -eq 0 || sh -cx '! : need root privileges'
+
+%.deb: %.deb-docs %.deb-DEBIAN
+	@rm -f $*.deb $*.deb-checkdir $*.deb-docs $*.deb-docs-base \
+	  $*.deb-docs-docs $*.deb-docs-examples $*.deb-DEBIAN \
+	  $*.deb-DEBIAN-dir $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums
+
+%.udeb: %.deb-DEBIAN
+	@rm -f $*.deb $*.deb-checkdir $*.deb-DEBIAN $*.deb-DEBIAN-dir \
+	  $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums
+
+%.deb-checkdir:
+	@test -d debian/$* || sh -cx '! : directory debian/$* missing'
+	@test "`id -u`" -eq 0 || sh -cx '! : need root privileges'
+
+%.deb-docs-base:
+	: implicit
+	@rm -f debian/$*/usr/share/doc/$*/* || :
+	@install -d -m0755 debian/$*/usr/share/doc/$*
+	: debian/$*/usr/share/doc/$*/
+	@sh -cx 'install -m0644 debian/copyright debian/$*/usr/share/doc/$*/'
+	@sh -cx 'install -m0644 debian/changelog \
+	  debian/$*/usr/share/doc/$*/changelog.Debian'
+	@test ! -r changelog || \
+	  sh -cx 'install -m0644 changelog debian/$*/usr/share/doc/$*/'
+	@test -r debian/$*/usr/share/doc/$*/changelog || \
+	  sh -cx 'mv debian/$*/usr/share/doc/$*/changelog.Debian \
+	    debian/$*/usr/share/doc/$*/changelog'
+	@test -s debian/$*/usr/share/doc/$*/changelog || \
+	  sh -cx 'rm -f debian/$*/usr/share/doc/$*/changelog'
+	@gzip -9 debian/$*/usr/share/doc/$*/changelog*
+%.deb-docs-docs:
+	@for i in `cat debian/$*.docs 2>/dev/null || :`; do \
+	  sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/" || exit 1; \
+	done
+	@test ! -r debian/$*.README.Debian || \
+	  sh -cx 'install -m0644 debian/$*.README.Debian \
+	    debian/$*/usr/share/doc/$*/README.Debian'
+	@if test -r debian/$*.NEWS.Debian; then \
+	  sh -cx 'install -m0644 debian/$*.NEWS.Debian \
+	    debian/$*/usr/share/doc/$*/NEWS.Debian && \
+	      gzip -9 debian/$*/usr/share/doc/$*/NEWS.Debian'; \
+	fi
+%.deb-docs-examples:
+	@rm -rf debian/$*/usr/share/doc/$*/examples
+	: debian/$*/usr/share/doc/$*/examples/
+	@test ! -r debian/$*.examples || \
+	  install -d -m0755 debian/$*/usr/share/doc/$*/examples
+	@for i in `cat debian/$*.examples 2>/dev/null || :`; do \
+	  sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/examples/" \
+	    || exit 1; \
+	done
+%.deb-docs: %.deb-checkdir %.deb-docs-base %.deb-docs-docs %.deb-docs-examples
+	: debian/$*/usr/share/doc/$*/ ok
+
+%.deb-DEBIAN-base:
+	@rm -rf debian/$*/DEBIAN
+	: debian/$*/DEBIAN/
+	@install -d -m0755 debian/$*/DEBIAN
+	@for i in conffiles shlibs templates; do \
+	  test ! -r debian/$*.$$i || \
+	    sh -cx "install -m0644 debian/$*.$$i debian/$*/DEBIAN/$$i" \
+	      || exit 1; \
+	done
+%.deb-DEBIAN-scripts:
+	@for i in preinst prerm postinst postrm config; do \
+	  test ! -r debian/$*.$$i || \
+	    sh -cx "install -m0755 debian/$*.$$i debian/$*/DEBIAN/$$i" \
+	      || exit 1; \
+	done
+%.deb-DEBIAN-md5sums:
+	: debian/$*/DEBIAN/md5sums
+	@rm -f debian/$*/DEBIAN/md5sums
+	@cd debian/$* && find * -path 'DEBIAN' -prune -o \
+	  -type f -exec md5sum {} >>DEBIAN/md5sums \;
+%.deb-DEBIAN: %.deb-checkdir %.deb-DEBIAN-base %.deb-DEBIAN-scripts \
+	  %.deb-DEBIAN-md5sums
+	: debian/$*/DEBIAN/ ok
--- ucspi-unix-0.36.orig/debian/unixcat.1
+++ ucspi-unix-0.36/debian/unixcat.1
@@ -0,0 +1,14 @@
+.TH unixcat 1
+.SH NAME
+unixcat \- prints data from a UNIX domain socket.
+.SH SYNOPSIS
+.B unixcat
+.I socket
+.SH DESCRIPTION
+.B unixcat
+connects to the UNIX domain socket
+.IR socket .
+It prints any data it receives. 
+.SH SEE ALSO
+unixserver(1),
+unixclient(1)
--- ucspi-unix-0.36.orig/debian/control
+++ ucspi-unix-0.36/debian/control
@@ -0,0 +1,23 @@
+Source: ucspi-unix
+Section: net
+Priority: optional
+Maintainer: Gerrit Pape <pape@smarden.org>
+Build-Depends: libbg-dev
+Standards-Version: 3.8.2.0
+
+Package: ucspi-unix
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: UNIX-domain socket client-server command-line tools
+ unixclient and unixserver are command-line tools for building UNIX
+ domain client-server applications.  unixclient connects to a UNIX domain
+ socket and runs a program of your choice.  unixserver creates a UNIX
+ domain socket, waits for incoming connections and, for each connection,
+ runs a program of your choice.
+ .
+ unixclient and unixserver conform to UCSPI, the UNIX Client-Server
+ Program Interface, using UNIX domain sockets.  UCSPI tools are available
+ for several different networks.
+ .
+ See http://cr.yp.to/proto/ucspi.txt for more information on UCSPI.  See
+ http://untroubled.org/ucspi-unix/ for recent informations.
--- ucspi-unix-0.36.orig/debian/rules
+++ ucspi-unix-0.36/debian/rules
@@ -0,0 +1,70 @@
+#!/usr/bin/make -f
+
+CFLAGS =-O2 -Wall -D_GNU_SOURCE
+STRIP =strip
+CC =gcc
+BGLIBS =/usr/lib/bglibs
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+  CFLAGS +=-g
+endif
+ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+  STRIP =: nostrip
+endif
+ifneq (,$(findstring diet,$(DEB_BUILD_OPTIONS)))
+  CC =diet -v -Os gcc -nostdinc
+  BGLIBS =/usr/lib/diet/bglibs
+endif
+
+DIR =$(shell pwd)/debian/ucspi-unix
+
+build: deb-checkdir build-stamp
+build-stamp:
+	test -e conf-bin'{orig}' || cp conf-bin conf-bin'{orig}'
+	echo '/usr/bin' >conf-bin
+	test -e conf-man'{orig}' || cp conf-man conf-man'{orig}'
+	echo '/usr/share/man' >conf-man
+	test -e conf-cc'{orig}' || cp conf-cc conf-cc'{orig}'
+	echo '$(CC) $(CFLAGS) -I$(BGLIBS)/include' >conf-cc
+	test -e conf-ld'{orig}' || cp conf-ld conf-ld'{orig}'
+	echo '$(CC) -L$(BGLIBS)/lib' >conf-ld
+	$(MAKE)
+	rm -f installer instcheck instshow insthier.o conf_bin.c conf_man.c
+	echo '$(DIR)/usr/bin' >conf-bin
+	echo '$(DIR)/usr/share/man' >conf-man
+	$(MAKE) installer instcheck instshow
+	mv -f conf-ld'{orig}' conf-ld
+	mv -f conf-cc'{orig}' conf-cc
+	mv -f conf-man'{orig}' conf-man
+	mv -f conf-bin'{orig}' conf-bin
+	touch build-stamp
+
+clean: deb-checkdir deb-checkuid
+	$(MAKE) clean
+	rm -f build-stamp
+	rm -rf '$(DIR)'
+	rm -f debian/files debian/substvars changelog
+
+install: deb-checkdir deb-checkuid build-stamp
+	rm -rf '$(DIR)'
+	install -d -m0755 '$(DIR)'/usr/bin
+	install -d -m0755 '$(DIR)'/usr/share/man
+	./installer; ./instcheck
+	$(STRIP) -R .comment -R .note \
+	  '$(DIR)'/usr/bin/unixserver '$(DIR)'/usr/bin/unixclient
+	install -m0644 debian/unixcat.1 '$(DIR)'/usr/share/man/man1/
+	gzip -9 '$(DIR)'/usr/share/man/man?/*.?
+	rm -f changelog && ln -s NEWS changelog
+
+binary-indep:
+
+binary-arch: deb-checkdir deb-checkuid install ucspi-unix.deb
+	test '$(CC)' != 'gcc' || dpkg-shlibdeps '$(DIR)'/usr/bin/*
+	dpkg-gencontrol -isp -pucspi-unix -P'$(DIR)'
+	dpkg -b '$(DIR)' ..
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean install binary-indep binary-arch binary
+
+include debian/implicit
--- ucspi-unix-0.36.orig/debian/ucspi-unix.docs
+++ ucspi-unix-0.36/debian/ucspi-unix.docs
@@ -0,0 +1,4 @@
+PROTOCOL
+README
+TODO
+debian/README.Debian.diet
