diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3e00428
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,65 @@
+easygen (5.1.9-2) unstable; urgency=medium
+
+  * Team Upload.
+  * Remove install rule in d/rules, use install file for binary packages
+  * d/rules: DH_GOLANG_EXCLUDES for .gitignore
+  * Move {examples,docs} -> easygen.{examples,docs}
+
+ -- Nilesh Patra <nilesh@debian.org>  Tue, 04 Jan 2022 23:52:33 +0530
+
+easygen (5.1.9-1) unstable; urgency=medium
+
+  * New upstream version 5.1.9
+    - version v5.1.9, add sprintf alias
+    - version v5.1.8
+      * allow the Go flag template to have shorthand options
+      * break up the Go flag template init() function
+      * allow easygen to read from stdin
+    - version v5.1.7, fix from anthonyfok/fix-typo
+    - version v5.1.6, replace USAGE_SUMMARY with go style name
+    - version v5.1.5, commandlineFlag now deal with bool variables
+    - version v5.1.1, added Execute0(), execute the Template w/o template file
+    - version v5.0.1, Change all internal template functions to external
+  * Update lintian-overrides to override statically-linked-binary
+  * fix "source: older-debian-watch-file-standard" problem
+  * fix "source: out-of-date-standards-version" problem
+  * fix upstream-metadata-file-is-missing with DEP-12 upstream metadata
+  * fix "source: update-debian-copyright" problem
+  * fix "package-uses-old-debhelper-compat-version" problem
+
+ -- Tong Sun <suntong001@users.sourceforge.net>  Mon, 03 Jan 2022 21:35:15 +0000
+
+easygen (4.1.0-1) unstable; urgency=medium
+
+  * New upstream version 4.1.0
+    Since v4.0.0-1:
+    implement newfeature/v4-json, close #23
+    - [+] add example_execute
+    - [*] Check under /etc/ for templates too
+    - [*] optionally output check steps
+    - [+] add more CamelCase converting & full coverage test
+    - [+] add more test coverages
+    - [+] add more test coverage cases
+    - [+] add more demo cases
+    - [+] add egFilePath sub pkg
+    - [+] add egFilePath pkg doc
+    - [+] include all filepath (allowed) functions
+    * fix package-uses-old-debhelper-compat-version, uses-debhelper-compat-file, rules-requires-root-missing
+    * fix upstream-metadata-file-is-missing with DEP-12 upstream metadata
+    * fix debian-watch-does-not-check-gpg-signature
+    * fix d/copyright
+
+
+ -- Tong Sun <suntong001@users.sourceforge.net>  Sat, 28 Dec 2019 15:54:38 +0000
+
+easygen (4.0.0-1) unstable; urgency=medium
+
+  * New upstream version 4.0.0 (Closes: 924890)
+
+ -- Tong Sun <suntong001@users.sourceforge.net>  Sat, 28 Dec 2019 15:53:30 +0000
+
+easygen (3.0.0+git20180723.75369c3-1) unstable; urgency=medium
+
+  * Initial release (Closes: 924890)
+
+ -- Tong Sun <suntong001@users.sourceforge.net>  Sun, 17 Mar 2019 20:48:52 +0000
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..fa7f988
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,53 @@
+Source: easygen
+Section: devel
+Priority: optional
+Maintainer: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
+Uploaders: Tong Sun <suntong001@users.sourceforge.net>
+Build-Depends: debhelper-compat (= 13),
+               ronn (>= 0.8.0-2~),
+               dh-golang,
+               golang-any,
+               golang-github-danverbraganza-varcaser-dev,
+               golang-yaml.v2-dev
+Rules-Requires-Root: no
+Standards-Version: 4.6.0.1
+Homepage: https://github.com/go-easygen/easygen
+Vcs-Browser: https://salsa.debian.org/go-team/packages/easygen
+Vcs-Git: https://salsa.debian.org/go-team/packages/easygen.git
+XS-Go-Import-Path: github.com/go-easygen/easygen
+Testsuite: autopkgtest-pkg-go
+
+Package: easygen
+Architecture: any
+Built-Using: ${misc:Built-Using}
+Depends: ${misc:Depends},
+#        ${shlibs:Depends}
+Description: Easy to use universal code/text generator
+ Command easygen is an easy to use universal code/text generator.
+ .
+ It can be used as a text, html or a code generator for arbitrary purposes with
+ arbitrary data and templates. It can be used as a GSL replacement, as it
+ .
+  - is more easy to define driving data, in form of YML instead of XML
+  - has more powerful template engine that based on Go template.
+    You can even write your own function in Go to customize your template.
+ .
+ You can even use easygen as a generic Go template testing tool.
+
+Package: golang-github-go-easygen-easygen-dev
+Architecture: all
+Depends: golang-github-danverbraganza-varcaser-dev,
+         golang-yaml.v2-dev,
+         ${misc:Depends},
+         ${shlibs:Depends},
+Description: Easy to use universal code/text generator -- source
+ Command easygen is an easy to use universal code/text generator.
+ .
+ It can be used as a text, html or a code generator for arbitrary purposes with
+ arbitrary data and templates. It can be used as a GSL replacement, as it
+ .
+  - is more easy to define driving data, in form of YML instead of XML
+  - has more powerful template engine that based on Go template.
+    You can even write your own function in Go to customize your template.
+ .
+ This package provides the source code to be used as a library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ddabc2d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: easygen
+Source: https://github.com/go-easygen/easygen
+
+Files: *
+Copyright: 2015-2022 Tong Sun <suntong001@users.sourceforge.net>
+License: Expat
+
+Files: debian/*
+Copyright: 2019-2022 Tong Sun <suntong001@users.sourceforge.net>
+License: Expat
+Comment: Debian packaging is licensed under the same terms as upstream
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
diff --git a/debian/easygen.docs b/debian/easygen.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/easygen.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/easygen.examples b/debian/easygen.examples
new file mode 100644
index 0000000..ce9e6ed
--- /dev/null
+++ b/debian/easygen.examples
@@ -0,0 +1,2 @@
+test/commandline*
+test/sgdisk*
diff --git a/debian/easygen.install b/debian/easygen.install
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/easygen.install
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/easygen.lintian-overrides b/debian/easygen.lintian-overrides
new file mode 100644
index 0000000..ae125a2
--- /dev/null
+++ b/debian/easygen.lintian-overrides
@@ -0,0 +1,2 @@
+# Go always links statically
+easygen: statically-linked-binary usr/bin/easygen
diff --git a/debian/easygen.manpages b/debian/easygen.manpages
new file mode 100644
index 0000000..c062872
--- /dev/null
+++ b/debian/easygen.manpages
@@ -0,0 +1 @@
+cmd/easygen/easygen.1
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml
new file mode 100644
index 0000000..594e14e
--- /dev/null
+++ b/debian/gitlab-ci.yml
@@ -0,0 +1,6 @@
+# auto-generated, DO NOT MODIFY.
+# The authoritative copy of this file lives at:
+# https://salsa.debian.org/go-team/infra/pkg-go-tools/blob/master/config/gitlabciyml.go
+---
+include:
+  - https://salsa.debian.org/go-team/infra/pkg-go-tools/-/raw/master/pipeline/test-archive.yml
diff --git a/debian/golang-github-go-easygen-easygen-dev.install b/debian/golang-github-go-easygen-easygen-dev.install
new file mode 100644
index 0000000..dd222db
--- /dev/null
+++ b/debian/golang-github-go-easygen-easygen-dev.install
@@ -0,0 +1 @@
+usr/share
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1e43871
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+
+#export DH_GOLANG_EXCLUDES := test vendor
+
+BUILD_DIR := obj-$(DEB_BUILD_GNU_TYPE)
+
+export PATH := $(CURDIR)/$(BUILD_DIR)/bin:$(PATH)
+
+# Do not install .gitignore
+export DH_GOLANG_EXCLUDES := .gitignore
+# skip using dh_auto_test
+#export DEB_BUILD_OPTIONS := nocheck
+# for dh_auto_test to find all tests that `go test -v ./...` needs
+export DH_GOLANG_INSTALL_EXTRA := test
+# for list0E testing under docker
+export SHELL=/bin/bash
+
+
+override_dh_auto_build:
+	dh_auto_build
+	ronn cmd/easygen/easygen.1.ronn
+
+override_dh_clean:
+	rm -f cmd/easygen/easygen.1 cmd/easygen/easygen.1.html
+	dh_clean
+
+%:
+	dh $@ --buildsystem=golang --with=golang
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/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..e5cb1ef
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+# Upstream tarball automatically provided by GH CI/CD. Thus not signed.
+easygen source: debian-watch-does-not-check-gpg-signature
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..4e17b5a
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+Security-Contact: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
+Repository-Browse: https://salsa.debian.org/go-team/packages/easygen
+Bug-Database: https://salsa.debian.org/go-team/packages/easygen/issues
+Bug-Submit: https://salsa.debian.org/go-team/packages/easygen/issues/new
+Repository: https://salsa.debian.org/go-team/packages/easygen.git
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d9e9bec
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://github.com/go-easygen/easygen/tags .*/v?(\d\S*)\.tar\.gz