From eb18e4de88761cc36a5c0cf8167622e357dfdc52 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Tue, 22 Apr 2025 16:48:50 +0200
Subject: [PATCH] Adding debian version 0.1.10+dfsg-1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
---
 debian/changelog     |  7 +++++++
 debian/control       | 21 +++++++++++++++++++++
 debian/copyright     | 29 +++++++++++++++++++++++++++++
 debian/rules         |  7 +++++++
 debian/source/format |  1 +
 debian/watch         |  3 +++
 6 files changed, 68 insertions(+)
 create mode 100644 debian/changelog
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100755 debian/rules
 create mode 100644 debian/source/format
 create mode 100644 debian/watch

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5f59253
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,7 @@
+zmodemjs (0.1.10+dfsg-1) sid; urgency=low
+
+  * Initial upload to sid (Closes: #1000249), required for ttyd (#996042).
+  * Rebuilding upstream tarball without non-free copy of a non-free ZMODEM
+    protocol specificiation.
+
+ -- Daniel Baumann <daniel.baumann@progress-linux.org>  Sat, 20 Nov 2021 07:06:01 +0100
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..47216eb
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: zmodemjs
+Section: web
+Priority: optional
+Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org>
+Build-Depends:
+ debhelper-compat (= 13),
+ pkg-js-tools,
+Rules-Requires-Root: no
+Standards-Version: 4.6.0
+Homepage: https://github.com/FGasper/zmodemjs
+Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/zmodemjs
+Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/zmodemjs
+
+Package: node-zmodem.js
+Section: web
+Architecture: all
+Depends:
+ ${misc:Depends},
+Description: ZMODEM file transfers in JavaScript
+ zmodem.js is a JavaScript implementation of the ZMODEM file transfer protocol,
+ which facilitates file transfers via a terminal.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9f14b55
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: zmodemjs
+Upstream-Contact: Felipe Gasper <felipe@felipegasper.com>
+Source: https://github.com/FGasper/zmodemjs/relases
+Files-excluded: reference/*
+
+Files: *
+Copyright: 2017-2020 Gasper Software Consulting
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2021 Daniel Baumann <daniel.baumann@progress-linux.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+     http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ The complete text of the Apache-2.0 License
+ can be found in /usr/share/common-licenses/Apache-2.0 file.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a0304bb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+	dh ${@} --with nodejs
+
+override_dh_auto_test:
+	# requires node-crc-32 (!= node-crc32)
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0d4b69d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/zmodemjs-$1\.tar\.gz/ \
+https://github.com/FGasper/zmodemjs/tags .*/v?(\d\S+)\.tar\.gz