Skip to content

Instantly share code, notes, and snippets.

@metaquanta
Last active November 26, 2020 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metaquanta/19d023ceb5f35145077d0e9c4077b7ac to your computer and use it in GitHub Desktop.
Save metaquanta/19d023ceb5f35145077d0e9c4077b7ac to your computer and use it in GitHub Desktop.
Playing Debian maintainer
PACKAGE=libuconfig
VERSION=0.8.2b1
PREFIX=${PACKAGE}_${VERSION}

create source archive:

git archive --format=tar --prefix=$PREFIX/ $VERSION | gzip -c > ../$PREFIX.orig.tar.gz

update version: (??)

gbp dch ??

import the upstream archive:

gbp import-orig --no-interactive ../${PACKAGE}_${VERSION}.orig.tar.gz

build the package:

gbp buildpackage -us -uc --git-tag

use dch to set/update version:

  • dch -i increments version
  • dch -v sets to given version

use dpkg-buildpackage to build packages. dpkg-buildpackage -us -uc, reprepro will sign the packages later.

Add/update deb: reprepro includedeb bullseye somedeb.deb Add/update source: reprepro includedsc bullseye somedeb.dsc

On client:

  • Add key: wget -O - http://metaquanta.com/apt/debian/metaquanta.com.pgp.pub|apt-key add -
  • Add repository: wget -O - http://metaquanta.com/apt/debian/metaquanta.com.list > /etc/apt/sources.list.d/metaquanta.com.list
#!/bin/bash
rsync -a --exclude 'debian/conf/options' debian nfshost:metaquanta.com/apt/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment