Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
packages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
packages
Commits
4d625d26
Commit
4d625d26
authored
6 years ago
by
Hinrikus Wolf
Browse files
Options
Downloads
Patches
Plain Diff
add support for backporting sssd
parent
7c56465f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+14
-7
14 additions, 7 deletions
.gitlab-ci.yml
scripts/sssd.sh
+20
-0
20 additions, 0 deletions
scripts/sssd.sh
with
34 additions
and
7 deletions
.gitlab-ci.yml
+
14
−
7
View file @
4d625d26
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
scripts/sssd.sh
0 → 100755
+
20
−
0
View file @
4d625d26
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment