1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
How to update Debian package
Let's first set key parameters
If you have salsa account, use SSH URL.
```
$ GIT_SALSA_URL="git@salsa.debian.org:debian/interception-tools.git"
```
If you don't have salsa account, use HTTPS URL.
```
$ GIT_SALSA_URL="https://salsa.debian.org/debian/debian/interception-tools.git"
```
For upstream URL and branch to track, use HTTPS URL..
```
$ HTTPS_UPSTREAM_URL="https://gitlab.com/interception/linux/tools.git"
```
Debian packaging uses debian/latest branch following DEP-14.
https://dep-team.pages.debian.net/deps/dep14/
Create and update package as follows:
```
$ git clone $GIT_SALSA_URL
$ git remote add upstream $HTTPS_UPSTREAM_URL
$ git remote set-url --push upstream DONT_PUSH
$ git pull --no-rebase upstream master
$ git pull --no-rebase upstream --tags
... hack (set debian/changelog with the latest version)
$ git deborig
$ sbuild # test build
...
```
Here, sbuild needs to be configured properly.
See https://www.debian.org/doc/manuals/debmake-doc/ch03.en.html#sbuild-setup
Initial upload needs to be source+binary. So this config needs adjustment.
In future upload (source only), I may use dgit.
```
$ dgit sbuild
$ dgit push-source
$ git push
```
|