Refer to this workflow:
mkdir demo_dh_make
cd demo_dh_make
git init # this repo
dh_make -s -c gpl -n -e [email protected] -p helloworld_0.1
Tree:
.
├── debian
│ ├── changelog
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── helloworld.cron.d.ex
│ ├── helloworld.default.ex
│ ├── helloworld.doc-base.EX
│ ├── helloworld-docs.docs
│ ├── init.d.ex
│ ├── manpage.1.ex
│ ├── manpage.sgml.ex
│ ├── manpage.xml.ex
│ ├── menu.ex
│ ├── postinst.ex
│ ├── postrm.ex
│ ├── preinst.ex
│ ├── prerm.ex
│ ├── README
│ ├── README.Debian
│ ├── README.source
│ ├── rules
│ └── source
│ └── format
└── README.md
Tree:
.
├── debian
│ ├── changelog
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── helloworld.cron.d.ex
│ ├── helloworld.default.ex
│ ├── helloworld.doc-base.EX
│ ├── helloworld-docs.docs
│ ├── init.d.ex
│ ├── manpage.1.ex
│ ├── manpage.sgml.ex
│ ├── manpage.xml.ex
│ ├── menu.ex
│ ├── postinst.ex
│ ├── postrm.ex
│ ├── preinst.ex
│ ├── prerm.ex
│ ├── README
│ ├── README.Debian
│ ├── README.source
│ ├── rules
│ └── source
│ └── format
├── Makefile <==================== new
├── README.md
└── src <==================== new
└── hello.c <==================== new
- run
debuild
to prepare deb files - build log => debuild.log
- Notes:
- deb / des / ... are placed in parent folder
Tree:
.
├── helloworld_0.1_amd64.build <==================== new
├── helloworld_0.1_amd64.changes <==================== new
├── helloworld_0.1_amd64.deb <==================== new
├── helloworld_0.1.dsc <==================== new
├── helloworld_0.1.tar.xz <==================== new
└── helloworlddeb
├── debian
│ ├── changelog
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── debhelper-build-stamp <==================== new
│ ├── files <==================== new
│ ├── helloworld <==================== new
│ │ ├── bin <==================== new
│ │ │ └── hello <==================== new
│ │ ├── DEBIAN <==================== new
│ │ │ ├── control <==================== new
│ │ │ └── md5sums <==================== new
│ │ └── usr <==================== new
│ │ └── share <==================== new
│ │ └── doc <==================== new
│ │ └── helloworld <==================== new
│ │ ├── changelog.gz <==================== new
│ │ ├── copyright <==================== new
│ │ └── README.Debian <==================== new
│ ├── helloworld.cron.d.ex
│ ├── helloworld.debhelper.log
│ ├── helloworld.default.ex
│ ├── helloworld.doc-base.EX
│ ├── helloworld-docs.docs
│ ├── helloworld.substvars <==================== new
│ ├── init.d.ex
│ ├── manpage.1.ex
│ ├── manpage.sgml.ex
│ ├── manpage.xml.ex
│ ├── menu.ex
│ ├── postinst.ex
│ ├── postrm.ex
│ ├── preinst.ex
│ ├── prerm.ex
│ ├── README
│ ├── README.Debian
│ ├── README.source
│ ├── rules
│ └── source
│ └── format
├── debian_workflow.png
├── debuild.log
├── Makefile
├── README.md
└── src
├── hello <==================== new
└── hello.c
Steps:
debuild #
cp ../helloworld_0.1.tar.xz ../helloworld_0.1.orig.tar.xz
echo '3.0 (quilt)' > debian/source/format
dch 'Switch to dpkg-source 3.0 (quilt) format'
debuild
Result:
diff --git a/debian/changelog b/debian/changelog
old mode 100644
new mode 100755
index 12554c6..bf36f78
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+helloworld (0.1) UNRELEASED; urgency=medium
+
+ * Switch to dpkg-source 3.0 (quilt) format
+
+ -- Tim Chen <[email protected]> Mon, 17 Feb 2020 08:29:52 +0800
+
helloworld (0.1) unstable; urgency=medium
* Initial Release.
diff --git a/debian/source/format b/debian/source/format
index 89ae9db..163aaf8 100644
--- a/debian/source/format
+++ b/debian/source/format
@@ -1 +1 @@
-3.0 (native)
+3.0 (quilt)
Reference: DebSrc3.0