Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
setup.bin
setup.data
setup.log
dist
_build
api.docdir
*.native
*.byte
_build/
.merlin
*.install

16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: c
sudo: false
services:
- docker
install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh
script: bash -ex ./.travis-docker.sh
env:
global:
- PACKAGE="fd-send-recv"
matrix:
- DISTRO="debian-testing" OCAML_VERSION="4.02.3"
- DISTRO="ubuntu-14.04" OCAML_VERSION="4.02.3"
- DISTRO="ubuntu-15.10" OCAML_VERSION="4.02.3"
- DISTRO="centos-7" OCAML_VERSION="4.02.3"
- DISTRO="centos-6" OCAML_VERSION="4.02.3"
- DISTRO="fedora-23" OCAML_VERSION="4.02.3"
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.0.4 (2017-01-11)
* add opam file
* add .travis.yml
* fix build on Win32

1.0.1 (23-Apr-2013)
* fix the build on Mac OSX

Expand Down
47 changes: 15 additions & 32 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,41 +1,24 @@
# OASIS_START
# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)
.PHONY: build release install uninstall clean test doc

SETUP = ocaml setup.ml
build:
jbuilder build @install --dev

build: setup.data
$(SETUP) -build $(BUILDFLAGS)
release:
jbuilder build @install

doc: setup.data build
$(SETUP) -doc $(DOCFLAGS)
install:
jbuilder install

test: setup.data build
$(SETUP) -test $(TESTFLAGS)

all:
$(SETUP) -all $(ALLFLAGS)

install: setup.data
$(SETUP) -install $(INSTALLFLAGS)

uninstall: setup.data
$(SETUP) -uninstall $(UNINSTALLFLAGS)

reinstall: setup.data
$(SETUP) -reinstall $(REINSTALLFLAGS)
uninstall:
jbuilder uninstall

clean:
$(SETUP) -clean $(CLEANFLAGS)

distclean:
$(SETUP) -distclean $(DISTCLEANFLAGS)

setup.data:
$(SETUP) -configure $(CONFIGUREFLAGS)
jbuilder clean

configure:
$(SETUP) -configure $(CONFIGUREFLAGS)
test:
jbuilder runtest

.PHONY: build doc test all install uninstall reinstall clean distclean configure
# requires odoc
doc:
jbuilder build @doc

# OASIS_STOP
62 changes: 0 additions & 62 deletions _oasis

This file was deleted.

38 changes: 0 additions & 38 deletions _tags

This file was deleted.

27 changes: 0 additions & 27 deletions configure

This file was deleted.

1 change: 0 additions & 1 deletion doc/api.odocl

This file was deleted.

11 changes: 6 additions & 5 deletions opam → fd-send-recv-tuntap.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ tags: [
"org:mirage"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's interesting that we have a separate opam file for the tuntap tests, but I guess this is the best way, since optional dependencies are harmful.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's annoying but I thought it does no harm. And I like it more than generating additional stuff in the jbuild file if a flag is present (mostly because it requires an additional dependency)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. It's much better than causing loads of unnecessary recompilations.

"org:xapi-project"
]
build: make
remove: [["ocamlfind" "remove" "fd-send-recv"]]
build-test: [
["jbuilder" "build" "-j" jobs]
]
depends: [
"ocamlfind"
"ocamlbuild" {build}
"jbuilder" {build}
"fd-send-recv"
"tuntap"
]
install: [make "install"]
21 changes: 21 additions & 0 deletions fd-send-recv.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
opam-version: "1.2"
maintainer: "dave@recoil.org"
authors: [
"David Scott"
"David Sheets"
"Euan Harris"
"Vincent Bernardoff"
]
homepage: "https://github.com/xapi-project/ocaml-fd-send-recv"
bug-reports: "https://github.com/xapi-project/ocaml-fd-send-recv/issues"
dev-repo: "https://github.com/xapi-project/ocaml-fd-send-recv.git"
doc: "https://github.com/xapi-project/ocaml-fd-send-recv/blob/master/lib/fd_send_recv.mli"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 😄 , better than nothing.

tags: [
"org:mirage"
"org:xapi-project"
]
build: [["jbuilder" "build" "-p" name "-j" jobs]]
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]]
depends: [
"jbuilder" {build}
]
13 changes: 0 additions & 13 deletions lib/META

This file was deleted.

4 changes: 0 additions & 4 deletions lib/fd_send_recv.mllib

This file was deleted.

6 changes: 6 additions & 0 deletions lib/jbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(library
((name fd_send_recv)
(public_name fd-send-recv)
(c_names (fd_send_recv_stubs))
(libraries (unix))
))
4 changes: 0 additions & 4 deletions lib/libfd_send_recv_stubs.clib

This file was deleted.

Loading