Project

General

Profile

Manually building a distribution package » History » Version 2

« Previous - Version 2/5 (diff) - Next » - Current version
neels, 09/16/2020 12:48 PM


THIS IS WORK IN PROGRESS, unfinished

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
wget https://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_10/Release.key_
sha256sum Release.key | grep b5e2c1df9ff80bc73dd00a0c153ef308e7ec643ddb859e69789fcd4a9b1893d3
apt-key add Release.key
rm Release.key
cat > /etc/apt/sources.list.d/osmocom-nightly.list <<END
deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_10/ ./
deb-src http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_10/ ./
END
apt-get update
apt-get install git-buildpackage
apt-get build-depends osmo-msc

git clone git://git.osmocom.org/osmo-msc
cd osmo-msc
git checkout neels/mncc_codecs2

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