summaryrefslogtreecommitdiff
path: root/basics.md
diff options
context:
space:
mode:
Diffstat (limited to 'basics.md')
-rw-r--r--basics.md79
1 files changed, 79 insertions, 0 deletions
diff --git a/basics.md b/basics.md
new file mode 100644
index 0000000..166b31e
--- /dev/null
+++ b/basics.md
@@ -0,0 +1,79 @@
+Basic packaging
+===============
+
+Getting the debianized source
+-----------------------------
+
+Using `dget`:
+
+ dget $remote_dsc
+ cd $package*
+
+Using `apt-get`:
+
+ apt-get source package
+
+Checking the source
+-------------------
+
+Get the key if needed
+
+ gpg --recv-keys 12345678
+
+Checking the source
+
+ dscverify *.dsc
+
+Extracting:
+
+ dpkg-source -x *.dsc
+
+See also:
+
+* [apt get - How to get apt-get source verification working? - Super User](https://superuser.com/questions/626810/how-to-get-apt-get-source-verification-working).
+
+Getting dependencies
+--------------------
+
+To get:
+
+ apt-get build-dep package
+
+To remove:
+
+ hydractl remove-dep package
+
+Creating the `debian/` structure
+--------------------------------
+
+If the package wasn't debianized, proceed with
+
+ if [ ! -d "debian" ]; then
+ dh_make -p ${package}_${version} --createorig
+ fi
+
+Simple build
+------------
+
+ dch -i
+ dpkg-buildpackage -rfakeroot -sa -k$KEY_ID
+
+Creating a new debian source
+----------------------------
+
+ cd ..
+ dpkg-source $package*
+ debsign $package*.dsc
+
+Building and signing
+--------------------
+
+To generate signatures, remove `-uc` and `-us` from `dpkg-buildpackage` (see
+[Complete build](http://www.debian.org/doc/maint-guide/ch-build.pt-br.html#s-completebuild)):
+
+ dpkg-buildpackage -rfakeroot
+
+To sign using an specific key:
+
+ dpkg-buildpackage -rfakeroot -kKEY_ID
+