]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
ci: udapt to changes for apkg
authorDaniel Salzman <daniel.salzman@nic.cz>
Wed, 26 May 2021 16:17:24 +0000 (18:17 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Wed, 26 May 2021 17:26:49 +0000 (19:26 +0200)
.gitlab-ci.yml
distro/pkg/arch/PKGBUILD
scripts/build-in-obs.sh
scripts/make-distrofiles.sh

index 6a1214a2f62ad0771fe4dff86822079a094a435b..54224a07a52cb261d567eae46ed6299be8411148 100644 (file)
@@ -128,8 +128,9 @@ docker:knot-dns:fedora:
 .pkg_symbols: &pkg_symbols
   stage: test
   script:
-    - ln -s distro/deb debian
-    - sed -i "s/__VERSION__/99/g" distro/deb/changelog
+    - ln -s distro/pkg/deb debian
+    - sed -i "s/{{ version }}/99/g" distro/pkg/deb/changelog
+    - sed -i "s/{{ release }}/1/g" distro/pkg/deb/changelog
     - dpkg-gensymbols -c4 -esrc/.libs/$LIB_NAME.so.$LIB_ABI -P. -p$LIB_NAME$LIB_ABI
   allow_failure: true
   except:
index f8d68eaefe2da067df43512b1ecb95b6bf3076bb..96584a51b5efbd1b2d578907de7b0b4994d71ce8 100644 (file)
@@ -65,6 +65,6 @@ package() {
     mv "${pkgdir}"/etc/knot/{knot.sample.conf,knot.conf}
 
     install -Dm644 distro/common/${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
-    install -Dm644 distro/arch/${pkgname}.tmpfiles.arch "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
-    install -Dm644 distro/arch/${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
+    install -Dm644 distro/pkg/arch/${pkgname}.tmpfiles.arch "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
+    install -Dm644 distro/pkg/arch/${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
 }
index 983cab7931a99cd73935241f030978740ef580a4..ac3b84d604a6d65710776182cf78aafda09f6fa1 100755 (executable)
@@ -21,9 +21,9 @@ fi
 osc co "${project}" "${package}"
 pushd "${project}/${package}"
 osc del * ||:
-cp -L ../../*.orig.tar.xz ../../*.debian.tar.xz ../../*.dsc ./
-cp -rL ../../distro/rpm/* ./
-cp -rL ../../distro/arch/* ./
+cp -L ../../*.tar.xz ../../*.dsc ./
+cp -rL ../../distro/pkg/rpm/* ./
+cp -rL ../../distro/pkg/arch/* ./
 osc addremove
 osc ci -n
 popd
index 2777715554f7b915aad02dd328d2afdaa8cb2606..c1e1462c2acac4808bd05037397277b3295f26bd 100755 (executable)
@@ -27,9 +27,10 @@ if [[ $(echo "${version}" | grep '^[[:alnum:].]$') -ne 0 ]]; then
 fi
 
 # Fill in VERSION field in distribution specific files
-files="distro/rpm/${package}.spec distro/deb/changelog distro/arch/PKGBUILD"
+files="distro/pkg/rpm/${package}.spec distro/pkg/deb/changelog distro/pkg/arch/PKGBUILD"
 for file in ${files}; do
-       sed -i "s/__VERSION__/${version}/g" "${file}"
+       sed -i "s/{{ version }}/${version}/g" "${file}"
+       sed -i "s/{{ release }}/1/g" "${file}"
 done
 
 # Rename archive to debian format
@@ -40,7 +41,7 @@ ln -s "${pkgname}.tar.xz" "${debname}.tar.xz"
 # Prepare clean debian-specific directory
 tar -xf "${debname}.tar.xz"
 pushd "${pkgname}" > /dev/null
-cp -arL ../distro/deb debian
+cp -arL ../distro/pkg/deb debian
 
 # Optionally remove symbols file
 if [ "$withsymbols" = false ]; then