summaryrefslogtreecommitdiff
path: root/docs/packaging/building.md
blob: dcfa8ad5a984b67a704b2cfe969e73c45074bf53 (plain)
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
# Building

## Standard build

With `cowbuilder`:

    DIST=bookworm sudo -E cowbuilder --build $package*.dsc

With `sbuild`:

* [sbuild - Debian Package Tracker](https://tracker.debian.org/pkg/sbuild)
* [sbuild - Debian Wiki](https://wiki.debian.org/sbuild)

## Signing

To sign both the `.dsc` and the `.changes` files:

    debsign $package*.changes

## Uploading

Simply run

    dupload *changes

This assumes a `~/.dupload.conf` like the following:

    package config;
    $default_host = "myremote";

    $cfg{'myremote'} = {
            fqdn     => "myremote.example.org",
            login    => "user",
            method   => "scpb",
            incoming => "/var/reprepro/incoming/",
            # The dinstall on ftp-master sends emails itself
            #dinstall_runs => 1,
    };

It's also important that:

  1. The host remote port is correctly defined at your `~/.ssh/config`.
  2. The user is in the `reprepro` group in the server.