{"id":775,"date":"2021-10-31T00:36:40","date_gmt":"2021-10-30T22:36:40","guid":{"rendered":"https:\/\/itso.dk\/?p=775"},"modified":"2021-10-31T00:38:00","modified_gmt":"2021-10-30T22:38:00","slug":"building-deb-package","status":"publish","type":"post","link":"https:\/\/blog.itso.dk\/?p=775","title":{"rendered":"Building Deb package"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>In you build directory: ~\/build\/[Project]<\/p>\n\n\n\n<p>Directory structure:  <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>~\/build\/PROJECT_1.0-1<\/p><p>~\/build\/PROJECT_1.0-1\/DEBIAN<\/p><p>~\/build\/PROJECT_1.0-1\/usr\/local\/bin\/<\/p><p>~\/build\/PROJECT_1.0-1\/etc\/sudoers.d\/<\/p><p>~\/build\/PROJECT_1.0-1\/usr\/local\/man<\/p><\/blockquote>\n\n\n\n<p>Add the files you need<\/p>\n\n\n\n<p>The deb-build file ~\/build\/PROJECT_1.0-1\/DEBIAN\/control<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Package: PROJECT<br>Version: 1.0-1<br>Section: utils<br>Priority: optional<br>Architecture: amd64<br>Depends: libc6 (&gt;= 2.15), libext2fs2 (&gt;= 1.37)<br>Suggests: <br>Recommends:<br>Provides: <br>Maintainer: Thor Grotle <a href=\"mailto:thor@itso.dk\">thor@itso.dk<\/a><br>Description: Descriptions of project<\/p><\/blockquote>\n\n\n\n<p>Build deb file with the command:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>dpkg-deb &#8211;build ~\/build\/PROJECT_1.0-1<\/p><\/blockquote>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In you build directory: ~\/build\/[Project] Directory structure: ~\/build\/PROJECT_1.0-1 ~\/build\/PROJECT_1.0-1\/DEBIAN ~\/build\/PROJECT_1.0-1\/usr\/local\/bin\/ ~\/build\/PROJECT_1.0-1\/etc\/sudoers.d\/ ~\/build\/PROJECT_1.0-1\/usr\/local\/man Add the files you need The deb-build file ~\/build\/PROJECT_1.0-1\/DEBIAN\/control Package: PROJECTVersion: 1.0-1Section: utilsPriority: optionalArchitecture: amd64Depends: libc6 (&gt;= 2.15), libext2fs2 (&gt;= 1.37)Suggests: Recommends:Provides: Maintainer: Thor Grotle thor@itso.dkDescription: Descriptions of project Build deb file with the command: dpkg-deb &#8211;build ~\/build\/PROJECT_1.0-1<\/p>\n","protected":false},"author":1,"featured_media":335,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[40,62,52],"class_list":["post-775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-tip","tag-linux","tag-packaging","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=775"}],"version-history":[{"count":4,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/775\/revisions"}],"predecessor-version":[{"id":780,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/775\/revisions\/780"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/media\/335"}],"wp:attachment":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}