Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 ree (1.4.1-1) unstable; urgency=medium
 .
   * New upstream version.
   * dump debian/ manual pages.
   * Bump standards version to 4.2.1.
   * debian/patches: dropped.
Author: Gürkan Myczko <gurkan@phys.ethz.ch>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2019-05-14

--- /dev/null
+++ ree-1.4.1/CMakeLists.txt
@@ -0,0 +1,3 @@
+cmake_minimum_required (VERSION 2.6)
+add_executable(fontdump fontdump.c)
+add_executable(ree ree.c)
--- /dev/null
+++ ree-1.4.1/Makefile
@@ -0,0 +1,222 @@
+# CMAKE generated file: DO NOT EDIT!
+# Generated by "Unix Makefiles" Generator, CMake Version 3.13
+
+# Default target executed when no arguments are given to make.
+default_target: all
+
+.PHONY : default_target
+
+# Allow only one "make -f Makefile2" at a time, but pass parallelism.
+.NOTPARALLEL:
+
+
+#=============================================================================
+# Special targets provided by cmake.
+
+# Disable implicit rules so canonical targets will work.
+.SUFFIXES:
+
+
+# Remove some rules from gmake that .SUFFIXES does not remove.
+SUFFIXES =
+
+.SUFFIXES: .hpux_make_needs_suffix_list
+
+
+# Suppress display of executed commands.
+$(VERBOSE).SILENT:
+
+
+# A target that is always out of date.
+cmake_force:
+
+.PHONY : cmake_force
+
+#=============================================================================
+# Set environment variables for the build.
+
+# The shell in which to execute make rules.
+SHELL = /bin/sh
+
+# The CMake executable.
+CMAKE_COMMAND = /usr/bin/cmake
+
+# The command to remove a file.
+RM = /usr/bin/cmake -E remove -f
+
+# Escaping for special characters.
+EQUALS = =
+
+# The top-level source directory on which CMake was run.
+CMAKE_SOURCE_DIR = /var/www/debian/ree/ree-1.4.1
+
+# The top-level build directory on which CMake was run.
+CMAKE_BINARY_DIR = /var/www/debian/ree/ree-1.4.1
+
+#=============================================================================
+# Targets provided globally by CMake.
+
+# Special rule for the target rebuild_cache
+rebuild_cache:
+	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
+	/usr/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+.PHONY : rebuild_cache
+
+# Special rule for the target rebuild_cache
+rebuild_cache/fast: rebuild_cache
+
+.PHONY : rebuild_cache/fast
+
+# Special rule for the target edit_cache
+edit_cache:
+	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
+	/usr/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+.PHONY : edit_cache
+
+# Special rule for the target edit_cache
+edit_cache/fast: edit_cache
+
+.PHONY : edit_cache/fast
+
+# The main all target
+all: cmake_check_build_system
+	$(CMAKE_COMMAND) -E cmake_progress_start /var/www/debian/ree/ree-1.4.1/CMakeFiles /var/www/debian/ree/ree-1.4.1/CMakeFiles/progress.marks
+	$(MAKE) -f CMakeFiles/Makefile2 all
+	$(CMAKE_COMMAND) -E cmake_progress_start /var/www/debian/ree/ree-1.4.1/CMakeFiles 0
+.PHONY : all
+
+# The main clean target
+clean:
+	$(MAKE) -f CMakeFiles/Makefile2 clean
+.PHONY : clean
+
+# The main clean target
+clean/fast: clean
+
+.PHONY : clean/fast
+
+# Prepare targets for installation.
+preinstall: all
+	$(MAKE) -f CMakeFiles/Makefile2 preinstall
+.PHONY : preinstall
+
+# Prepare targets for installation.
+preinstall/fast:
+	$(MAKE) -f CMakeFiles/Makefile2 preinstall
+.PHONY : preinstall/fast
+
+# clear depends
+depend:
+	$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
+.PHONY : depend
+
+#=============================================================================
+# Target rules for targets named fontdump
+
+# Build rule for target.
+fontdump: cmake_check_build_system
+	$(MAKE) -f CMakeFiles/Makefile2 fontdump
+.PHONY : fontdump
+
+# fast build rule for target.
+fontdump/fast:
+	$(MAKE) -f CMakeFiles/fontdump.dir/build.make CMakeFiles/fontdump.dir/build
+.PHONY : fontdump/fast
+
+#=============================================================================
+# Target rules for targets named ree
+
+# Build rule for target.
+ree: cmake_check_build_system
+	$(MAKE) -f CMakeFiles/Makefile2 ree
+.PHONY : ree
+
+# fast build rule for target.
+ree/fast:
+	$(MAKE) -f CMakeFiles/ree.dir/build.make CMakeFiles/ree.dir/build
+.PHONY : ree/fast
+
+fontdump.o: fontdump.c.o
+
+.PHONY : fontdump.o
+
+# target to build an object file
+fontdump.c.o:
+	$(MAKE) -f CMakeFiles/fontdump.dir/build.make CMakeFiles/fontdump.dir/fontdump.c.o
+.PHONY : fontdump.c.o
+
+fontdump.i: fontdump.c.i
+
+.PHONY : fontdump.i
+
+# target to preprocess a source file
+fontdump.c.i:
+	$(MAKE) -f CMakeFiles/fontdump.dir/build.make CMakeFiles/fontdump.dir/fontdump.c.i
+.PHONY : fontdump.c.i
+
+fontdump.s: fontdump.c.s
+
+.PHONY : fontdump.s
+
+# target to generate assembly for a file
+fontdump.c.s:
+	$(MAKE) -f CMakeFiles/fontdump.dir/build.make CMakeFiles/fontdump.dir/fontdump.c.s
+.PHONY : fontdump.c.s
+
+ree.o: ree.c.o
+
+.PHONY : ree.o
+
+# target to build an object file
+ree.c.o:
+	$(MAKE) -f CMakeFiles/ree.dir/build.make CMakeFiles/ree.dir/ree.c.o
+.PHONY : ree.c.o
+
+ree.i: ree.c.i
+
+.PHONY : ree.i
+
+# target to preprocess a source file
+ree.c.i:
+	$(MAKE) -f CMakeFiles/ree.dir/build.make CMakeFiles/ree.dir/ree.c.i
+.PHONY : ree.c.i
+
+ree.s: ree.c.s
+
+.PHONY : ree.s
+
+# target to generate assembly for a file
+ree.c.s:
+	$(MAKE) -f CMakeFiles/ree.dir/build.make CMakeFiles/ree.dir/ree.c.s
+.PHONY : ree.c.s
+
+# Help Target
+help:
+	@echo "The following are some of the valid targets for this Makefile:"
+	@echo "... all (the default if no target is provided)"
+	@echo "... clean"
+	@echo "... depend"
+	@echo "... rebuild_cache"
+	@echo "... fontdump"
+	@echo "... edit_cache"
+	@echo "... ree"
+	@echo "... fontdump.o"
+	@echo "... fontdump.i"
+	@echo "... fontdump.s"
+	@echo "... ree.o"
+	@echo "... ree.i"
+	@echo "... ree.s"
+.PHONY : help
+
+
+
+#=============================================================================
+# Special targets to cleanup operation of make.
+
+# Special rule to run CMake to check the build system integrity.
+# No rule that depends on this can have commands that come from listfiles
+# because they might be regenerated.
+cmake_check_build_system:
+	$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
+.PHONY : cmake_check_build_system
+
--- /dev/null
+++ ree-1.4.1/cmake_install.cmake
@@ -0,0 +1,49 @@
+# Install script for directory: /var/www/debian/ree/ree-1.4.1
+
+# Set the install prefix
+if(NOT DEFINED CMAKE_INSTALL_PREFIX)
+  set(CMAKE_INSTALL_PREFIX "/usr/local")
+endif()
+string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
+
+# Set the install configuration name.
+if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
+  if(BUILD_TYPE)
+    string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
+           CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
+  else()
+    set(CMAKE_INSTALL_CONFIG_NAME "")
+  endif()
+  message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
+endif()
+
+# Set the component getting installed.
+if(NOT CMAKE_INSTALL_COMPONENT)
+  if(COMPONENT)
+    message(STATUS "Install component: \"${COMPONENT}\"")
+    set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
+  else()
+    set(CMAKE_INSTALL_COMPONENT)
+  endif()
+endif()
+
+# Install shared libraries without execute permission?
+if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
+  set(CMAKE_INSTALL_SO_NO_EXE "1")
+endif()
+
+# Is this installation the result of a crosscompile?
+if(NOT DEFINED CMAKE_CROSSCOMPILING)
+  set(CMAKE_CROSSCOMPILING "FALSE")
+endif()
+
+if(CMAKE_INSTALL_COMPONENT)
+  set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
+else()
+  set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
+endif()
+
+string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
+       "${CMAKE_INSTALL_MANIFEST_FILES}")
+file(WRITE "/var/www/debian/ree/ree-1.4.1/${CMAKE_INSTALL_MANIFEST}"
+     "${CMAKE_INSTALL_MANIFEST_CONTENT}")
--- ree-1.4.1.orig/fontdump.c
+++ ree-1.4.1/fontdump.c
@@ -13,6 +13,7 @@ if we want a 8x8 font
 
 #include <stdio.h>
 #include <strings.h>
+#include <stdlib.h>
 
 #define	CHARA 65
 
--- /dev/null
+++ ree-1.4.1/makefile.backup
@@ -0,0 +1,10 @@
+all:
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) ree.c -o ree
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) fontdump.c -o fontdump
+
+clean:
+	rm -f fontdump ree
+
+install:
+	cp fontdump $(DESTDIR)/usr/bin
+	cp ree $(DESTDIR)/usr/sbin
--- ree-1.4.1.orig/ree.c
+++ ree-1.4.1/ree.c
@@ -18,6 +18,7 @@ l*512=length of the code including heade
 
 #include <stdio.h>
 #include <strings.h>
+#include <string.h>
 
 char* ID_ROMEXT="U"; /* 0x55aa */
 
