TNT/packaging/debian
2026-05-26 09:42:14 +08:00
..
debian release: prepare 1.0.1 2026-05-24 09:16:07 +08:00
README.md Build public release readiness foundation 2026-05-26 09:42:14 +08:00

Debian and Ubuntu Packaging

Ubuntu distribution should start with a Launchpad PPA. Direct inclusion in Debian or Ubuntu archives is a separate, slower process and should wait until the project has a stable release cadence.

Draft metadata

The debian/ directory in this folder is a packaging draft. To test it against an upstream release tree, copy it to the root of a clean source checkout:

cp -a packaging/debian/debian ./debian
dpkg-buildpackage -us -uc

For PPA uploads, build a signed source package instead:

debuild -S
  1. Keep the upstream project installable with:

    make DESTDIR="$pkgdir" PREFIX=/usr install
    
  2. Review Debian packaging metadata from a release tarball:

    • debian/control
    • debian/rules
    • debian/changelog
    • debian/copyright
    • debian/source/format
  3. Build locally with debuild or dpkg-buildpackage.

  4. Upload the signed source package to a Launchpad PPA.

  5. Only after repeated stable releases, consider Debian mentors or Ubuntu archive sponsorship.

Package shape

  • Binary package name: tnt-chat
  • Installed commands: /usr/bin/tnt, /usr/bin/tntctl
  • Runtime dependency: libssh
  • Optional systemd unit: /usr/lib/systemd/system/tnt.service