summaryrefslogtreecommitdiff
path: root/DISTRO_PACKAGE.md
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-02-24 15:21:49 +0100
committerPaul Holzinger <pholzing@redhat.com>2022-02-24 15:24:03 +0100
commit7b89a827458ea3ac5b60a0845f52457545830ddb (patch)
treecef32d36bd5364205817eb339d7413a3aa53f8f5 /DISTRO_PACKAGE.md
parent0975f6d5731bf94dbd68c6b7719a736fd9420569 (diff)
use local cargo dependencies
We should not try to build with deps from the vendor directory locally. This will force me to run make vendor manually if I pull in new deps. When distros want to build with bundlwd deps they should a) download the linked vendor tarball which we should provide for the releases and b) create the cargo config since to let cargo use the vendor dir. ``` tar xvf %{SOURCE1} mkdir -p .cargo cat >.cargo/config << EOF [source.crates-io] replace-with = "vendored-sources" [source.vendored-sources] directory = "vendor" EOF ``` see https://src.fedoraproject.org/rpms/rust-coreos-installer/blob/rawhide/f/rust-coreos-installer.spec#_86 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'DISTRO_PACKAGE.md')
-rw-r--r--DISTRO_PACKAGE.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/DISTRO_PACKAGE.md b/DISTRO_PACKAGE.md
index 34f475b..f46738f 100644
--- a/DISTRO_PACKAGE.md
+++ b/DISTRO_PACKAGE.md
@@ -39,6 +39,22 @@ dist-git](https://src.fedoraproject.org/rpms/aardvark-dns).
The Fedora package builds Aardvark-dns using a compressed tarball of the vendored
libraries that is attached to each upstream release.
+You can download them with the following:
+
+`https://github.com/containers/netavark/releases/download/v{version}/aardvark-dns-v{version}.tar.gz`
+
+And then create a cargo config file to point it to the vendor dir:
+```
+tar xvf %{SOURCE}
+mkdir -p .cargo
+cat >.cargo/config << EOF
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "vendor"
+EOF
+```
The `aardvark-dns` binary is installed to `/usr/libexec/podman/aardvark-dns`.