]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
distro: add apkg support
authorJakub Ružička <jakub.ruzicka@nic.cz>
Tue, 16 Feb 2021 16:42:25 +0000 (17:42 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 10 Jun 2021 09:17:37 +0000 (11:17 +0200)
.gitignore
NEWS
distro/config/apkg.toml [new file with mode: 0644]
distro/pkg/arch/PKGBUILD
distro/pkg/deb/changelog
distro/pkg/rpm/knot-resolver.spec

index e28639f6e47171131d9be1afbff8b0ead3d27060..fb776a6ea634104f4a65ec4e8cd334d77aa216ae 100644 (file)
@@ -57,6 +57,7 @@
 /ltmain.sh
 /missing
 /modules/dnstap/dnstap.pb-c.d
+/pkg
 /self.crt
 /self.key
 /stamp-h1
diff --git a/NEWS b/NEWS
index 45b0103837b97a69d02fec9562985996f3568ff2..8924e548a7fecf05e21323593338066329596350 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,10 @@
 Knot Resolver 5.x.y (2021-0m-dd)
 ================================
 
+Improvements
+------------
+- support apkg tool for packaging workflow (!1178)
+
 Bugfixes
 --------
 - trust_anchors.set_insecure: improve precision (#673, !1177)
diff --git a/distro/config/apkg.toml b/distro/config/apkg.toml
new file mode 100644 (file)
index 0000000..1096c38
--- /dev/null
@@ -0,0 +1,12 @@
+[project]
+name = "knot-resolver"
+# needed for make-archive
+make_archive_script = "scripts/make-dev-archive.sh"
+
+[upstream]
+# needed for get-archive
+archive_url = "https://secure.nic.cz/files/knot-resolver/knot-resolver-{{ version }}.tar.xz"
+signature_url = "https://secure.nic.cz/files/knot-resolver/knot-resolver-{{ version }}.tar.xz.asc"
+
+[apkg]
+compat = 1
index 7b3cfe4f9f9814e73f1ed9205c0be2179d068950..161e9dca964e1f5f5ba76a6648c156cc7c64bca0 100644 (file)
@@ -3,7 +3,7 @@
 # SPDX-License-Identifier: GPL-3.0-or-later
 
 pkgname=knot-resolver
-pkgver=__VERSION__
+pkgver={{ version }}
 pkgrel=1
 pkgdesc='Caching DNSSEC-validating DNS resolver'
 arch=('x86_64' 'armv7h')
@@ -34,7 +34,7 @@ optdepends=(
 )
 backup=('etc/knot-resolver/kresd.conf')
 options=(debug strip)
-source=("knot-resolver_${pkgver}.orig.tar.xz")
+source=("knot-resolver-${pkgver}.tar.xz")
 sha256sums=('SKIP')
 
 build() {
index 4d6f28b94f9373328649372c46a4e3956abdfc49..8e51c43a94e5b45623419496d528014e0de65264 100644 (file)
@@ -1,4 +1,4 @@
-knot-resolver (__VERSION__-cznic.1) unstable; urgency=medium
+knot-resolver ({{ version }}-cznic.1) unstable; urgency=medium
 
   * move changelog to OBS
   * see NEWS or https://knot-resolver.cz
index ef4c8677c1f224dcabd227cb53ff4ba1822e8c5b..e8c95a3345340baa9de03c9df50935833d8b7a4e 100644 (file)
@@ -4,18 +4,17 @@
 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}}
 
 %define GPG_CHECK 0
-%define VERSION __VERSION__
 %define repodir %{_builddir}/%{name}-%{version}
 %define NINJA ninja-build
 
 Name:           knot-resolver
-Version:        %{VERSION}
+Version:        {{ version }}
 Release:        cznic.1%{?dist}
 Summary:        Caching full DNS Resolver
 
 License:        GPL-3.0-or-later
 URL:            https://www.knot-resolver.cz/
-Source0:        knot-resolver_%{version}.orig.tar.xz
+Source0:        knot-resolver-%{version}.tar.xz
 
 # LuaJIT only on these arches
 %if 0%{?rhel} == 7