Skip to content

Commit 769bc44

Browse files
committed
Convert to topkg build.
1 parent 4c8c3ff commit 769bc44

File tree

14 files changed

+65
-51
lines changed

14 files changed

+65
-51
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
*.byte
22
*.native
3-
*.cma
43
_build
4+
rawlink.install

.travis.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@ env:
88
global:
99
- PACKAGE="rawlink.9999"
1010
matrix:
11-
- DISTRO="debian-stable" OCAML_VERSION="4.02.3"
12-
- DISTRO="debian-testing" OCAML_VERSION="4.03.0"
13-
- DISTRO="ubuntu-14.04" OCAML_VERSION="4.02.3"
14-
- DISTRO="ubuntu-16.04" OCAML_VERSION="4.02.3"
15-
- DISTRO="centos-7" OCAML_VERSION="4.02.3"
16-
- DISTRO="centos-6" OCAML_VERSION="4.02.3"
1711
- DISTRO="alpine-3.4" OCAML_VERSION="4.03.0"
12+
- DISTRO="alpine-3.4" OCAML_VERSION="4.04.0"
13+
- DISTRO="centos-6" OCAML_VERSION="4.03.0"
14+
- DISTRO="centos-6" OCAML_VERSION="4.04.0"
15+
- DISTRO="centos-7" OCAML_VERSION="4.03.0"
16+
- DISTRO="centos-7" OCAML_VERSION="4.04.0"
17+
- DISTRO="debian-stable" OCAML_VERSION="4.03.0"
18+
- DISTRO="debian-stable" OCAML_VERSION="4.04.0"
19+
- DISTRO="debian-testing" OCAML_VERSION="4.03.0"
20+
- DISTRO="debian-testing" OCAML_VERSION="4.04.0"
1821
- DISTRO="fedora-24" OCAML_VERSION="4.03.0"
22+
- DISTRO="fedora-24" OCAML_VERSION="4.04.0"
23+
- DISTRO="ubuntu-14.04" OCAML_VERSION="4.03.0"
24+
- DISTRO="ubuntu-14.04" OCAML_VERSION="4.04.0"
25+
- DISTRO="ubuntu-16.04" OCAML_VERSION="4.03.0"
26+
- DISTRO="ubuntu-16.04" OCAML_VERSION="4.04.0"

CHANGES.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## 0.5 (2017-04-16)
2+
3+
* Convert to topkg
4+
5+
## 0.4 (2016-12-17)
6+
7+
* Convert to ppx
8+
9+
## 0.3 (2015-08-30)
10+
11+
* Fix fd leak in bpf_open
12+
* Fix linux send function
13+
14+
## 0.2 (2015-08-28)
15+
16+
* Fix to bpf_split_buf
17+
18+
## 0.1 (2015-10-09)
19+
20+
* Initial release
File renamed without changes.

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Rawlink
2-
3-
A portable library to read and write raw packets.
1+
## Rawlink - portable library to read and write raw packets.
42

53
[![Build Status](https://travis-ci.org/haesbaert/rawlink.svg)](https://travis-ci.org/haesbaert/rawlink)
64

_tags

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
true: debug, bin_annot, strict_sequence
2-
true: package(cstruct), package(cstruct.ppx)
3-
true: package(lwt.unix), package(lwt.ppx), ppopt(-lwt-debug)
1+
true: color(auto), debug, bin_annot, strict_sequence
2+
true: package(cstruct cstruct.ppx lwt.unix lwt.ppx)
43
true: use_rawlink_stubs
5-
4+
"lib": include
65
<*.byte>: linkdep(rawlink_stubs.o), custom
76
<*.native>: linkdep(rawlink_stubs.o)

all.itarget

Lines changed: 0 additions & 5 deletions
This file was deleted.

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1616
#
1717

18-
ocamlbuild -no-links -use-ocamlfind all.otarget $@
18+
topkg build

doc/api.odocl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Rawlink
2+
Lwt_rawlink

myocamlbuild.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ dispatch begin function
1919
| After_rules ->
2020
pflag ["ocaml";"compile";] "ppopt" (fun s -> S [A"-ppopt"; A s]);
2121
pflag ["ocaml";"ocamldep";] "ppopt" (fun s -> S [A"-ppopt"; A s]);
22-
pdep ["link"] "linkdep" (fun param -> [param]);
2322
(* Linking generated stubs *)
2423
dep ["ocaml"; "link"; "byte"; "library"; "use_rawlink_stubs"]
2524
["lib/dllrawlink_stubs"-.-(!Options.ext_dll)];
2625
flag ["ocaml"; "link"; "byte"; "library"; "use_rawlink_stubs"] &
2726
S[A"-dllib"; A"-lrawlink_stubs"];
28-
27+
pdep ["link"] "linkdep" (fun param -> [param]);
2928
dep ["ocaml"; "link"; "native"; "library"; "use_rawlink_stubs"]
3029
["lib/librawlink_stubs"-.-(!Options.ext_lib)];
3130
flag ["ocaml"; "link"; "native"; "library"; "use_rawlink_stubs"] &

0 commit comments

Comments
 (0)