File tree Expand file tree Collapse file tree 6 files changed +18
-26
lines changed Expand file tree Collapse file tree 6 files changed +18
-26
lines changed Original file line number Diff line number Diff line change
1
+ ### v0.1.1 (2017-08-17)
2
+
3
+ * simplify the build by watermarking with ` jbuilder subst `
4
+ * fix the build of the released package archive
5
+
1
6
### v0.1.0 (2017-08-17)
2
7
3
8
* use Mirage 3 interfaces
Original file line number Diff line number Diff line change @@ -25,13 +25,6 @@ uninstall:
25
25
26
26
artefacts : $(ARTEFACTS )
27
27
28
- src/bin/depends.ml : src/bin/depends.ml.in
29
- $(OPAMFLAGS ) opam config subst src/bin/depends.ml || true
30
- cp src/bin/depends.ml src/bin/depends.tmp
31
- sed -e ' s/££VERSION££/$(shell git rev-parse HEAD)/g' src/bin/depends.tmp > src/bin/depends.ml
32
- cp src/bin/depends.ml src/bin/depends.tmp
33
- sed -e ' s/££HVSOCK_PINNED££/$(shell opam info hvsock -f pinned)/g' src/bin/depends.tmp > src/bin/depends.ml
34
-
35
28
vpnkit.tgz : vpnkit.exe
36
29
mkdir -p _build/root/Contents/MacOS
37
30
cp vpnkit.exe _build/root/Contents/MacOS/vpnkit
@@ -42,7 +35,7 @@ vpnkit.tgz: vpnkit.exe
42
35
tar -C _build/root -cvzf vpnkit.tgz Contents
43
36
44
37
.PHONY : vpnkit.exe
45
- vpnkit.exe : src/bin/depends.ml
38
+ vpnkit.exe :
46
39
jbuilder build --dev src/bin/main.exe
47
40
cp _build/default/src/bin/main.exe vpnkit.exe
48
41
68
61
rm -rf _build
69
62
rm -f vpnkit.exe
70
63
rm -f vpnkit.tgz
71
- rm -f src/bin/depends.ml
72
64
73
65
REPO =../../mirage/opam-repository
74
66
PACKAGES =$(REPO ) /packages
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
mirage-clock-unix mirage-random
9
9
))
10
10
(preprocess no_preprocessing)))
11
+
12
+ (install
13
+ ((section bin)
14
+ (package vpnkit)
15
+ (files ((main.exe as vpnkit)))))
Original file line number Diff line number Diff line change @@ -229,11 +229,9 @@ let hvsock_addr_of_uri ~default_serviceid uri =
229
229
(try Sys. set_signal Sys. sigpipe Sys. Signal_ignore
230
230
with Invalid_argument _ -> () );
231
231
Log. info (fun f ->
232
- f " vpnkit version %s with uwt version %s hvsock version %s %s"
233
- Depends. version
234
- Depends. uwt_version
235
- Depends. hvsock_version Depends. hvsock_pinned
236
- );
232
+ f " vpnkit version %%VERSION%% from %%VCS_COMMIT_ID%%"
233
+ );
234
+
237
235
Log. info (fun f -> f " System SOMAXCONN is %d" ! Utils. somaxconn);
238
236
Utils. somaxconn :=
239
237
(match listen_backlog with None -> ! Utils. somaxconn | Some x -> x);
@@ -521,7 +519,7 @@ let command =
521
519
$ socket $ port_control_path $ introspection_path $ diagnostics_path
522
520
$ max_connections $ vsock_path $ db_path $ db_branch $ dns $ hosts
523
521
$ host_names $ listen_backlog $ port_max_idle_time $ debug),
524
- Term. info (Filename. basename Sys. argv.(0 )) ~version: Depends. version ~doc ~man
522
+ Term. info (Filename. basename Sys. argv.(0 )) ~version: " %%VERSION%% " ~doc ~man
525
523
526
524
let () =
527
525
Printexc. record_backtrace true ;
Original file line number Diff line number Diff line change @@ -18,16 +18,12 @@ dev-repo: "https://github.com/moby/vpnkit.git"
18
18
doc: "https://moby.github.io/vpnkit/"
19
19
20
20
build: [
21
- [make]
21
+ ["jbuilder" "subst"] {pinned}
22
+ ["jbuilder" "build" "-p" name "-j" jobs]
22
23
]
23
- build-test: [
24
- [make "test"]
25
- ]
26
- install: [make "install" "BINDIR=%{bin}%"]
27
- remove: [make "uninstall" "BINDIR=%{bin}%"]
28
24
29
25
depends: [
30
- "jbuilder" {build}
26
+ "jbuilder" {build & >="1.0+beta10" }
31
27
"alcotest" {test}
32
28
"result"
33
29
"tar" {>= "0.8.0"}
You can’t perform that action at this time.
0 commit comments