--- arc-5.21m.orig/arcdos.c
+++ arc-5.21m/arcdos.c
@@ -30,6 +30,7 @@
 #if	UNIX
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <utime.h>
 #if	BSD
 #include <sys/time.h>
 #else	
@@ -173,8 +174,11 @@
 #endif
 #if	UNIX
 	struct tm	tm;
+/*
 	struct timeval  tvp[2];
 	int	utimes();
+*/
+	struct utimbuf utb;
 	long	tmclock();
 	tm.tm_sec = (time & 31) * 2;
 	tm.tm_min = (time >> 5) & 63;
@@ -182,10 +186,14 @@
 	tm.tm_mday = date & 31;
 	tm.tm_mon = ((date >> 5) & 15) - 1;
 	tm.tm_year = (date >> 9) + 80;
+/*
 	tvp[0].tv_sec = tmclock(&tm);
 	tvp[1].tv_sec = tvp[0].tv_sec;
 	tvp[0].tv_usec = tvp[1].tv_usec = 0;
 	utimes(f, tvp);
+*/
+	utb.actime = utb.modtime = tmclock(&tm);
+	utime(f, &utb);
 #endif
 }
 
--- arc-5.21m.orig/debian/changelog
+++ arc-5.21m/debian/changelog
@@ -0,0 +1,43 @@
+arc (5.21m-1+interix.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * patches for interix-i386
+
+ -- Martin Koeppe <mkoeppe@gmx.de>  Mon, 18 Jun 2007 22:08:08 +0200
+
+arc (5.21m-1) unstable; urgency=high
+
+  * New upstream release
+  * Fixed insecure permissions of a temporary file [arcsvc.c,
+    CAN-2005-2945] (Closes: #329053)
+  * Fixed insecure temporary file creation [arcsvc.c, CAN-2005-2992]
+
+ -- Klaus Reimer <kay@debian.org>  Wed, 21 Sep 2005 18:28:00 +0100
+
+arc (5.21l-1) unstable; urgency=low
+
+  * New upstream version.
+  * Fixed gcc-4.0 compiler problem (Closes: #285195)
+
+ -- Klaus Reimer <kay@debian.org>  Sun, 13 Mar 2005 16:50:13 +0100
+
+arc (5.21k-1) unstable; urgency=low
+
+  * New upstream version.
+  * Fixed some buffer overflows (Closes: #278879)
+
+ -- Klaus Reimer <kay@debian.org>  Sat,  6 Nov 2004 12:34:09 +0100
+
+arc (5.21j-2) unstable; urgency=low
+
+  * Now build with -O2 and CC=gcc (Closes: 221949)
+  * Created and added a simple marc man page.
+
+ -- Klaus Reimer <kay@debian.org>  Wed, 28 Jan 2004 16:42:43 +0100
+
+arc (5.21j-1) unstable; urgency=low
+
+  * Initial Release (Closes: #219018).
+
+ -- Klaus Reimer <kay@debian.org>  Mon,  3 Nov 2003 22:15:12 +0100
+
--- arc-5.21m.orig/debian/compat
+++ arc-5.21m/debian/compat
@@ -0,0 +1 @@
+4
--- arc-5.21m.orig/debian/control
+++ arc-5.21m/debian/control
@@ -0,0 +1,28 @@
+Source: arc
+Section: utils
+Priority: optional
+Maintainer: Klaus Reimer <kay@debian.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.2
+
+Package: arc
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Archive utility based on the MSDOS ARC program
+ This program is based on the MSDOS ARC program, version 5.21, plus
+ a few enhancements...
+ .
+  o ARC also performs Huffman Squeezing on data. The Huffman Squeeze
+    algorithm was removed from MSDOS ARC after version 5.12. It turns
+    out to be more efficient than Lempel-Ziv style compression when
+    compressing graphic images. Squeeze analysis is always done now,
+    and the best of packing, squeezing, or crunching is used.
+ .
+  o Compresses and extracts Squashed files. "Squashing" was created
+    by Phil Katz in his PKxxx series of ARC utility programs for
+    MSDOS. Dan Lanciani wrote the original modifications to ARC's
+    Crunch code to handle Squashing. I've made minor changes since
+    then, mostly to reduce the amount of memory required. The 'q'
+    option flag must be specified to Squash files. The Squashing
+    algorithm will be used instead of the usual Crunch algorithm,
+    and will be compared against packing and squeezing, as before.
--- arc-5.21m.orig/debian/copyright
+++ arc-5.21m/debian/copyright
@@ -0,0 +1,10 @@
+This package was debianized by Klaus Reimer <kay@debian.org> on
+Mon,  3 Nov 2003 22:15:12 +0100.
+
+It was downloaded from http://arc.sourceforge.net/
+
+Upstream Author: Howard Chu <hyc@symas.com>
+
+arc is available under the terms of the General Public License. On Debian
+GNU/Linux systems, the complete text of this license can be found in
+/usr/share/common-licenses/GPL.
--- arc-5.21m.orig/debian/dirs
+++ arc-5.21m/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- arc-5.21m.orig/debian/docs
+++ arc-5.21m/debian/docs
@@ -0,0 +1,3 @@
+Readme
+Arc521.doc
+Arcinfo
--- arc-5.21m.orig/debian/marc.1
+++ arc-5.21m/debian/marc.1
@@ -0,0 +1,41 @@
+.TH MARC 1L "25 Nov 1992" "Howard Chu@JPL" "LOCAL COMMANDS"
+.SH NAME
+marc \- archive merger
+.SH SYNOPSIS
+.B marc
+\fItgtarc\fR \fIsrcarc\fR [ \fIfiles\fR ... ]
+.SH DESCRIPTION
+Reads \fIfiles\fR from the arc archive \fIsrcarc\fR and add them to the
+arc archive \fItgtarc\fR.
+.SH HISTORY
+\fIArc\fP has been in use in the CP/M and MSDOS world for many years.
+Thom Henderson developed the original version, but it is important to note that
+\fIarc\fP is based on the file compression theories developed by Huffman, Welch,
+Knott, Knuth, and many other scientists. This implementation is based on
+version 5.21 of the MSDOS program.
+.SH BUGS
+\fIArc\fP behaves just like the PC version of the program; all functions
+of the "usage" display are working.
+Full compatibility with PC ARC files is maintained, the price for which is
+that \fIarc\fP doesn't like long filenames, and can only archive files with
+names of up to 12 characters.
+It will *sometimes* do The Right Thing with them, but I suggest
+you put long-winded filenames in a "shar" before
+.IR arc ing
+them.
+
+There shouldn't be any problems, (hah!) but if you find any, please
+send them to me at:
+
+	hyc@hanauma.jpl.nasa.gov
+
+.SH AUTHORS
+Original MSDOS program by Thom Henderson
+.br
+COPYRIGHT(C) 1985-87 by System Enhancement Associates; ALL RIGHTS RESERVED
+
+Original Lempel-Zev code derived from compress 4.0.
+Modified to support Squashing by Dan Lanciani (ddl@harvard.edu)
+Ported from MSDOS by Howard Chu,
+with help from John Gilmore (hoptoad!gnu), James Turner (daisy!turner)
+and others.
--- arc-5.21m.orig/debian/rules
+++ arc-5.21m/debian/rules
@@ -0,0 +1,98 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+CC = gcc-4.2
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE) CC="$(CC)" OPT="$(CFLAGS)"
+	#/usr/bin/docbook-to-man debian/arc.sgml > arc.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/arc.
+	cp -f marc arc $(CURDIR)/debian/arc/usr/bin
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs Changelog
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman arc.1 debian/marc.1
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure

