Commit 4d625d26 authored by Hinrikus Wolf's avatar Hinrikus Wolf

add support for backporting sssd

parent 7c56465f
...@@ -8,14 +8,21 @@ before_script: ...@@ -8,14 +8,21 @@ before_script:
- mv sources.list.new /etc/apt/sources.list - mv sources.list.new /etc/apt/sources.list
- apt-get update - apt-get update
- apt-get install -y dpkg-dev quilt devscripts - apt-get install -y dpkg-dev quilt devscripts
- python3 -m venv venv # - python3 -m venv venv
- source venv/bin/activate # - source venv/bin/activate
- pip install wheel # - pip install wheel
- pip install -r requirements.txt # - pip install -r requirements.txt
- mkdir -p ~/.ssh # - mkdir -p ~/.ssh
- echo $DEPLOY_KEY | base64 --decode > ~/.ssh/id_ed25519 # - echo $DEPLOY_KEY | base64 --decode > ~/.ssh/id_ed25519
- chmod go-rw ~/.ssh/id_ed25519 # - chmod go-rw ~/.ssh/id_ed25519
sssd:
stage: build
script: scripts/sssd.sh
artifacts:
path:
- packages/*.deb
stages: stages:
- build - build
......
#!/bin/bash
export DEBIAN_FRONTEND="noninteractive"
export DEBIAN_PRIORITY="critical"
echo "deb-src http://ftp.halifax.rwth-aachen.de/debian/ buster main" > /etc/apt/sources.list.d/buster_src.list
apt-get update
apt-get source --only-source -t buster sssd
SSSD_VERSION=$(rmadison sssd --architecture=amd64 -s buster | cut -d\| -f2 | sed s"/ //g" | sed s"/\-.*$//g")
cd sssd-$SSSD_VERSION
mk-build-deps --install --remove --tool "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes"
dch --local ~bpo9+ --distribution stretch-backports "Rebuild for stretch-backports."
fakeroot debian/rules binary
debuild -us -uc -nc
cd /root
mkdir debug packages
mv *dbgsym* debug
mv *.deb packages
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment