diff --git a/docs/configurations/debian-config-4-build-deb/how-to-build-deb-package.md b/docs/configurations/debian-config-4-build-deb/how-to-build-deb-package.md index 884bc4c..788c2b6 100644 --- a/docs/configurations/debian-config-4-build-deb/how-to-build-deb-package.md +++ b/docs/configurations/debian-config-4-build-deb/how-to-build-deb-package.md @@ -1,4 +1,4 @@ -# How to build the deb package +# How to build the deb package ## Pre-install ``` @@ -13,12 +13,12 @@ export DEBEMAIL DEBFULLNAME EOF $ . ~/.bashrc ``` -## Download realese +## Download realese ``` $ wget https://github.com/hardenedlinux/harbian-audit/archive/V0.4.1.tar.gz $ tar zxvf V0.4.1.tar.gz ``` -## Init and dh_make +## Init and dh_make ``` ~$ rm V0.4.1.tar.gz ~$ tar -czvf harbian-audit-0.4.1.tar.gz --exclude=.gitignore harbian-audit-0.4.1 @@ -32,13 +32,17 @@ $ tar zxvf V0.4.1.tar.gz ~/harbian-audit-0.4.1$ rm debian/Readme ``` -## Build deb package +## Build deb package ``` ~/harbian-audit-0.4.1$ dpkg-buildpackage --sign-key= ``` If don't sign the source package and the .buildinfo and .changes files ``` ~/harbian-audit-0.4.1$ dpkg-buildpackage -us -uc +``` + +## Sign deb package +``` ~/harbian-audit-0.4.1$ cd .. ~$ sha512sum harbianaudit_0.4.1-1_all.deb > harbianaudit_0.4.1-1_all.deb.sha512sum ~$ gpg -ab harbianaudit_0.4.1-1_all.deb