summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-02-09 09:38:35 +0000
committerGitHub <noreply@github.com>2024-02-09 09:38:35 +0000
commitee09423fe66af387317122d0b60368025b5f881f (patch)
tree308687906f8a0df639e15ca80308322222ffe5bd /debian
parent731fa6a931126f963475c962dbc5cedd062a9f5d (diff)
parentacec28c250895c849228e3a138706c15ef7394a9 (diff)
downloadvyos-utils-ee09423fe66af387317122d0b60368025b5f881f.tar.gz
vyos-utils-ee09423fe66af387317122d0b60368025b5f881f.zip
Merge pull request #19 from jestabro/build-with-dune
T5882: use Dune as build system
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules23
1 files changed, 7 insertions, 16 deletions
diff --git a/debian/rules b/debian/rules
index 7000814..451eef1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,26 +7,17 @@ DIR := debian/tmp
override_dh_auto_build:
eval `opam env`
- mkdir -p _build
- ocamlfind ocamlopt -o _build/numeric -package pcre -linkpkg src/numeric.ml
- ocamlfind ocamlopt -o _build/file-path -package fileutils -linkpkg src/file_path.ml
- ocamlfind ocamlopt -o _build/url -package pcre -linkpkg src/url.ml
- ocamlfind ocamlopt -o _build/validate-value -package pcre,unix,containers -linkpkg src/validate_value.ml
-# list_interfaces
- ocamlfind ocamlopt -c src/iface/func.mli
- ocamlfind ocamlopt -I src/iface -c src/iface/func.ml
- ocamlfind ocamlopt -I src/iface -c src/iface/iface.c
- ocamlfind ocamlopt -I src/iface -package pcre -c src/iface/list_interfaces.ml
- ocamlfind ocamlopt -I src/iface func.cmx iface.o list_interfaces.cmx -o _build/list_interfaces -package pcre -linkpkg
+ dune clean
+ dune build
override_dh_auto_install:
mkdir -p $(DIR)/usr/libexec/vyos/validators
mkdir -p $(DIR)/usr/libexec/vyos/completion
- cp _build/numeric $(DIR)/usr/libexec/vyos/validators
- cp _build/validate-value $(DIR)/usr/libexec/vyos/
- cp _build/file-path $(DIR)/usr/libexec/vyos/validators
- cp _build/url $(DIR)/usr/libexec/vyos/validators
- cp _build/list_interfaces $(DIR)/usr/libexec/vyos/completion
+ cp _build/install/default/bin/numeric $(DIR)/usr/libexec/vyos/validators
+ cp _build/install/default/bin/validate-value $(DIR)/usr/libexec/vyos/
+ cp _build/install/default/bin/file-path $(DIR)/usr/libexec/vyos/validators
+ cp _build/install/default/bin/url $(DIR)/usr/libexec/vyos/validators
+ cp _build/install/default/bin/list_interfaces $(DIR)/usr/libexec/vyos/completion
override_dh_auto_test:
echo "No tests yet"