]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
scripts: scripts to build fedora package
authorVasek Sraier <git@vakabus.cz>
Thu, 11 Nov 2021 23:19:53 +0000 (00:19 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 8 Apr 2022 14:17:53 +0000 (16:17 +0200)
manager/scripts/make-fedora-package.sh [new file with mode: 0644]

diff --git a/manager/scripts/make-fedora-package.sh b/manager/scripts/make-fedora-package.sh
new file mode 100644 (file)
index 0000000..f4bd354
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+set -o errexit
+set -o nounset
+
+# upgrade system to latest
+dnf upgrade -y
+
+# apkg
+dnf install -y python3-pip
+pip3 install apkg
+
+# prepare the repo
+git clone https://gitlab.nic.cz/knot/knot-resolver
+cd knot-resolver
+git config --global user.email "ci@knot-resolver"
+git config --global user.name "GitLab CI"
+git checkout manager-pkg
+git rebase origin/manager-integration
+git submodule update --init --recursive
+
+# build the package
+apkg system-setup
+apkg build -b
+apkg srcpkg