Manually building a distribution package » History » Version 1

Version 1/5 - Next » - Current version
neels, 09/16/2020 12:16 PM

Manually building a distribution package

This is a complete example showing how I created a .deb package of a custom osmo-msc version.
The aim was to distribute a certain patch of osmo-msc without modifying the official Osmocom package feeds.

lxc container

For a clean build base, create a fresh debian 10 (buster) container.

on lxc host:

lxc-create -t download -n neels-deb10
lxc-start -n neels-deb10
lxc-attach -n neels-deb10

in neels-deb10 container:

apt install openssh-server
useradd -m -s /bin/bash neels
cd /home/neels/
mkdir .ssh
cd .ssh/
cat > authorized_keys
# paste my ssh pubkey, hit ctrl-D
cd ..
chown -R neels: .ssh
passwd neels
apt-get install sudo
gpasswd -a neels sudo
apt-get update
apt-get install wget gnupg git tig
sha256sum Release.key | grep b5e2c1df9ff80bc73dd00a0c153ef308e7ec643ddb859e69789fcd4a9b1893d3
apt-key add Release.key
rm Release.key
cat > /etc/apt/sources.list.d/osmocom-nightly.list <<END
deb ./
deb-src ./
apt-get update
apt-get install git-buildpackage
apt-get build-depends osmo-msc

git clone git://
cd osmo-msc
git checkout neels/mncc_codecs2

dpkg-buildpackage -uc -us -tc
Add picture from clipboard (Maximum size: 48.8 MB)