From 9da45ba22b3ff64ee19733b7c7f8422c79e0f847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 15 Apr 2023 19:02:48 +0200 Subject: =?UTF-8?q?l=C3=B6r=2015=20apr=202023=2019:02:48=20CEST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Debian Packages.wiki | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ Debian Repo.wiki | 2 ++ deb.wiki | 83 ---------------------------------------------------- debian-pkg.wiki | 2 +- index.wiki | 2 +- 5 files changed, 87 insertions(+), 85 deletions(-) create mode 100644 Debian Packages.wiki delete mode 100644 deb.wiki diff --git a/Debian Packages.wiki b/Debian Packages.wiki new file mode 100644 index 0000000..00d70a6 --- /dev/null +++ b/Debian Packages.wiki @@ -0,0 +1,83 @@ + +See also [[debian-pkg]], [[Debian Repo]] + +apt-file (like Arch's [[pkgfile]]) + +All commands assume (unless otherwise noted) that PWD is the source +dir of the upstream code, and that there is a `debian` repo in that +directory. + +- build-directory + - _____.orig.tar.gz + - extracted-dir + - source files ... + - `debian` + +- _____-_____.{build,buildinfo,changes,deb,dsc} + +== Requirements == +- devscripts + +== debmake == +Creates a new `debian` directory. + +Assumes that +- that `$PWD` is `-` +- than `$PWD/../_.orig.tar.gz` exists + +== debuild == +Builds a pakage. +Runs `debian/rules build` to build package + +{{{ +sudo debuild --no-sign +}}} + +== sections == +https://packages.debian.org/stable/ + +== debian/watch == +https://wiki.debian.org/debian/watch + +Specifies where to look for an newer version. +By running `uscan`. + +It should download `../${PKG}-${NEW-VERSION}.tar.gz`, and sets up some +symlinks for that debian might want. + +From there, extract and move the `debian` folder to the new directory. + +== Building == +`debian/rules build` build the binaries, but not the package + +apt install debmake build-dep tree + +=== Build dependencies === + +`mk-build-deps` :: Generarer ett paket från `debian/control`, vilket +:: inte innehåller någonting, men beror på build-depends. +`dpkg --fix-broken install ./-build-deps_-_all.deb` :: +`apt install ./-build-deps_-_all.deb` :: +:: Installerar det lokala paketet, med beroenden +- # apt-get build-dep -build-deps_-_all.deb + +=== Update changelog === +==== Creates new entry with verssion number ==== +> dch --newversion -2.1 +`-2` :: is debian package version, start at 2 to avoid lintian issue about [[https://wiki.debian.org/ITP|ITP]] +`.1` :: Shows that this is an [[https://www.debian.org/doc/manuals/developers-reference/pkgs.html#nmus-and-debian-changelog|NMU]], since we aren't a Debian maintainer + +=== Figure out runtime dependencies === + +`objdump -p | grep NEEDED` + +-------------------------------------------------- + +- git-dch +- apt build-dep + +== Other files == +https://www.debian.org/doc/manuals/maint-guide/dother.en.html#install + +== All lintian errors == +https://lintian.debian.org/tags diff --git a/Debian Repo.wiki b/Debian Repo.wiki index 07bd577..161c65c 100644 --- a/Debian Repo.wiki +++ b/Debian Repo.wiki @@ -1,5 +1,7 @@ = Debian Repo = +[[Debian Packages]] + [[adrift-space repository]] Repos are easiest managed by reprepro. diff --git a/deb.wiki b/deb.wiki deleted file mode 100644 index 00d70a6..0000000 --- a/deb.wiki +++ /dev/null @@ -1,83 +0,0 @@ - -See also [[debian-pkg]], [[Debian Repo]] - -apt-file (like Arch's [[pkgfile]]) - -All commands assume (unless otherwise noted) that PWD is the source -dir of the upstream code, and that there is a `debian` repo in that -directory. - -- build-directory - - _____.orig.tar.gz - - extracted-dir - - source files ... - - `debian` - -- _____-_____.{build,buildinfo,changes,deb,dsc} - -== Requirements == -- devscripts - -== debmake == -Creates a new `debian` directory. - -Assumes that -- that `$PWD` is `-` -- than `$PWD/../_.orig.tar.gz` exists - -== debuild == -Builds a pakage. -Runs `debian/rules build` to build package - -{{{ -sudo debuild --no-sign -}}} - -== sections == -https://packages.debian.org/stable/ - -== debian/watch == -https://wiki.debian.org/debian/watch - -Specifies where to look for an newer version. -By running `uscan`. - -It should download `../${PKG}-${NEW-VERSION}.tar.gz`, and sets up some -symlinks for that debian might want. - -From there, extract and move the `debian` folder to the new directory. - -== Building == -`debian/rules build` build the binaries, but not the package - -apt install debmake build-dep tree - -=== Build dependencies === - -`mk-build-deps` :: Generarer ett paket från `debian/control`, vilket -:: inte innehåller någonting, men beror på build-depends. -`dpkg --fix-broken install ./-build-deps_-_all.deb` :: -`apt install ./-build-deps_-_all.deb` :: -:: Installerar det lokala paketet, med beroenden -- # apt-get build-dep -build-deps_-_all.deb - -=== Update changelog === -==== Creates new entry with verssion number ==== -> dch --newversion -2.1 -`-2` :: is debian package version, start at 2 to avoid lintian issue about [[https://wiki.debian.org/ITP|ITP]] -`.1` :: Shows that this is an [[https://www.debian.org/doc/manuals/developers-reference/pkgs.html#nmus-and-debian-changelog|NMU]], since we aren't a Debian maintainer - -=== Figure out runtime dependencies === - -`objdump -p | grep NEEDED` - --------------------------------------------------- - -- git-dch -- apt build-dep - -== Other files == -https://www.debian.org/doc/manuals/maint-guide/dother.en.html#install - -== All lintian errors == -https://lintian.debian.org/tags diff --git a/debian-pkg.wiki b/debian-pkg.wiki index 4e26790..ee0efe9 100644 --- a/debian-pkg.wiki +++ b/debian-pkg.wiki @@ -1,4 +1,4 @@ -[[deb]] +[[Debian Packages]] from `~/pkg/deb/znc/2/sub/sub` (dir with `debian` dir) diff --git a/index.wiki b/index.wiki index d3d7a5e..4a96064 100644 --- a/index.wiki +++ b/index.wiki @@ -22,7 +22,7 @@ - [[automake]] - [[btrfs]] - [[cmake]] -- [[deb]] +- [[Debian Packages]] - [[emacs]] - [[ffmpeg]] - [[fpga]] -- cgit v1.2.3