From 5730e908d47984aab65b3bcf0925643401e8476b Mon Sep 17 00:00:00 2001
From: Aurelien Jarno <aurelien@aurel32.net>
Date: Sat, 1 Apr 2023 21:53:58 +0200
Subject: Import flexloader-0.02.tar.gz

---
 ChangeLog           |   6 ++++
 Makefile.am         |   1 +
 Makefile.in         |   1 +
 README              |  12 +++----
 configure           |   2 +-
 configure.ac        |   2 +-
 debian/changelog    |   6 ++++
 debian/compat       |   1 +
 debian/control      |  20 ++++++++++++
 debian/copyright    |  16 +++++++++
 debian/docs         |   2 ++
 debian/rules        |  92 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 doc/Makefile.am     |   2 +-
 doc/Makefile.in     |   2 +-
 doc/byteblaster.png | Bin 4245 -> 0 bytes
 doc/flexloader.1    |   9 ++---
 doc/flexloader.png  | Bin 0 -> 4245 bytes
 17 files changed, 160 insertions(+), 14 deletions(-)
 create mode 100644 debian/changelog
 create mode 100644 debian/compat
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/docs
 create mode 100755 debian/rules
 delete mode 100644 doc/byteblaster.png
 create mode 100644 doc/flexloader.png

diff --git a/ChangeLog b/ChangeLog
index f9ae005..96ba83a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+20/01/2005 - Version 0.02
+
+  * Minor fixes, mainly in documentation.
+
+  -- Aurelien Jarno <aurelien@aurel32.net>
+  
 09/01/2005 - Version 0.01
 
   * Initial release.
diff --git a/Makefile.am b/Makefile.am
index cd38de9..f3f21cd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,6 +3,7 @@ SUBDIRS = doc src
 CLEANFILES = *~
 
 EXTRA_DIST = autogen.sh \
+	     debian \
 	     AUTHORS \
              COPYING \
 	     ChangeLog \
diff --git a/Makefile.in b/Makefile.in
index 7e6e7cf..c4e2c52 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -119,6 +119,7 @@ SUBDIRS = doc src
 CLEANFILES = *~
 
 EXTRA_DIST = autogen.sh \
+	     debian \
 	     AUTHORS \
              COPYING \
 	     ChangeLog \
diff --git a/README b/README
index 047768a..9584053 100644
--- a/README
+++ b/README
@@ -1,13 +1,13 @@
-flexloader is a small utility to configure SRAM base ALTERA devices.
-It downloads a code to the device SRAM using the ALTERA ByteBlaster 
-or a clone (see byteblaster.png for a schematic). It dialogs with it
-through the parallel interface, using parport. Note that you should 
-have access rights to the parallel port.
+flexloader is a small utility to configure SRAM based ALTERA devices.
+It downloads a code to the device SRAM using an ALTERA ByteBlaster 
+or a compatible JTAG programmer (see flexloader.png for a schematic). It 
+dialogs with it through the parallel interface, using parport. Note that 
+you should have access rights to the parallel port.
 
 It should support APEX20K, FLEX10K, FLEX6000 and ACEX1K families, 
 though I only tested it on a FLEX10K10 device.
 
-It currently only support files in raw binary format (.rbf), but others
+It currently only supports files in raw binary format (.rbf), but others
 format such as HEX or TTF may be implemented later.
 
 It's use is very simple:
diff --git a/configure b/configure
index fbc2684..0524cdb 100755
--- a/configure
+++ b/configure
@@ -1632,7 +1632,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE=flexloader
- VERSION=0.01
+ VERSION=0.02
 
 
 cat >>confdefs.h <<_ACEOF
diff --git a/configure.ac b/configure.ac
index 8232326..6c71bc3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@ AM_CONFIG_HEADER(config.h)
 dnl Determine the host and build type. The target is always a PIC.
 AC_CANONICAL_HOST
 
-AM_INIT_AUTOMAKE(flexloader, 0.01)
+AM_INIT_AUTOMAKE(flexloader, 0.02)
 
 dnl Checks for programs.
 AC_PROG_CC
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..689f555
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+flexloader (0.02-1) unstable; urgency=low
+
+  * Initial Debian upload (closes: bug#291308).
+
+ -- Aurelien Jarno <aurelien@aurel32.net>  Thu, 20 Jan 2004 00:16:08 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..da12631
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: flexloader
+Section: electronics
+Priority: extra
+Maintainer: Aurelien Jarno <aurel32@debian.org>
+Build-Depends: debhelper (>> 4.0.0), autotools-dev
+Standards-Version: 3.6.1
+
+Package: flexloader
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: utility to configure SRAM based ALTERA devices
+ flexloader is a small utility to configure SRAM based ALTERA devices.
+ It downloads a code to the device SRAM using an ALTERA ByteBlaster or 
+ a compatible JTAG programmer. It dialogs with it through the parallel
+ interface, using parport.
+ .
+ It supports APEX20K, FLEX10K, FLEX6000 and ACEX1K families.
+ . 
+  Author:   Aurelien Jarno <aurelien@aurel32.net>
+  Homepage: http://flexloader.aurel32.net
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0a2402a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+This package was debianized by Aurelien Jarno <aurelien@aurel32.net> on
+Thu, 20 Jan 2004 00:02:08 +0100.
+
+It was downloaded from http://flexloader.aurel32.net
+
+Upstream Author: Aurelien Jarno <aurelien@aurel32.net>
+
+Copyright: Copyright (C) 2005 Aurelien Jarno
+
+License:
+
+"The code, documentation and schematics are copyright (C) 2005 Aurelien Jarno, 
+and are distributed under the terms of the GNU General Public License version 2."
+
+On Debian systems, the complete text of the GNU General Public License can
+be found at /usr/share/common-licenses/GPL
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..724e084
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README
+TODO
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e0dd5bf
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,92 @@
+#!/usr/bin/make -f
+# 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
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+		
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	-test -r /usr/share/misc/config.sub && \
+	cp -f /usr/share/misc/config.sub admin/config.sub
+	-test -r /usr/share/misc/config.guess && \
+	cp -f /usr/share/misc/config.guess admin/config.guess
+				
+	-chmod 755 configure
+	./configure \
+		--prefix=/usr \
+		--host=$(DEB_HOST_GNU_TYPE) \
+		--build=$(DEB_BUILD_GNU_TYPE) \
+		--mandir=\$${prefix}/share/man \
+		--infodir=\$${prefix}/share/info
+		
+	$(MAKE)
+	touch build-stamp
+
+clean: debian-clean
+	dh_clean
+
+debian-clean:
+	dh_testdir
+	-$(MAKE) distclean
+	-rm -f *-stamp
+	-rm -f admin/config.sub admin/config.guess
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Main install.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/flexloader
+
+# 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_installdebconf	
+	dh_installdocs
+#	dh_installexamples
+	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+	dh_installman
+#	dh_installinfo
+	dh_installchangelogs ChangeLog
+	dh_link
+	dh_strip
+	dh_compress --exclude=.docbook
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 89fae6b..9029eb0 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -22,7 +22,7 @@ CLEANFILES = *~
 
 man_MANS = flexloader.1
 
-doc_DATA = byteblaster.png protocol.txt
+doc_DATA = flexloader.png protocol.txt
 docdir = $(datadir)/doc/flexloader
 
 EXTRA_DIST = $(man_MANS) $(doc_DATA)
diff --git a/doc/Makefile.in b/doc/Makefile.in
index 4bd35a8..c11fff0 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -139,7 +139,7 @@ CLEANFILES = *~
 
 man_MANS = flexloader.1
 
-doc_DATA = byteblaster.png protocol.txt
+doc_DATA = flexloader.png protocol.txt
 docdir = $(datadir)/doc/flexloader
 
 EXTRA_DIST = $(man_MANS) $(doc_DATA)
diff --git a/doc/byteblaster.png b/doc/byteblaster.png
deleted file mode 100644
index 83743e4..0000000
Binary files a/doc/byteblaster.png and /dev/null differ
diff --git a/doc/flexloader.1 b/doc/flexloader.1
index 380781b..c027b86 100644
--- a/doc/flexloader.1
+++ b/doc/flexloader.1
@@ -16,17 +16,18 @@
 .\" .sp <n>    insert n+1 empty lines
 .\" for manpage-specific macros, see man(7)
 .SH NAME
-flexloader \- GPL utility to configure SRAM base ALTERA devices via the ALTERA ByteBlaster
+flexloader \- GPL utility to configure SRAM based ALTERA devices via the ALTERA ByteBlaster
 
 .SH SYNOPSIS
 .B flexloader 
 .I [options] [parport_dev] [rbf_filename]
 .SH DESCRIPTION
 .B flexloader
-is a small utility to configure SRAM base ALTERA devices.
+is a small utility to configure SRAM based ALTERA devices.
 It downloads a code to the device SRAM using the ALTERA ByteBlaster
-or a clone. It dialogs with it through the parallel interface, using 
-parport. Note that you should have access rights to the parallel port.
+or compatible JTAG programmer. It dialogs with it through the parallel 
+interface, using parport. Note that you should have access rights to the 
+parallel port.
 
 It should support APEX20K, FLEX10K, FLEX6000 and ACEX1K families,
 though I only tested it on a FLEX10K10 device.
diff --git a/doc/flexloader.png b/doc/flexloader.png
new file mode 100644
index 0000000..83743e4
Binary files /dev/null and b/doc/flexloader.png differ
-- 
cgit v1.2.3