Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebleazard committed Jan 3, 2018
1 parent 545c1ee commit 8955e70
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
_build
3 changes: 3 additions & 0 deletions CHANGES.md
@@ -0,0 +1,3 @@
# v1.0.0

- Initial release
File renamed without changes.
8 changes: 6 additions & 2 deletions README.md
@@ -1,2 +1,6 @@
# ocaml-conf-netsnmp
OPAM NetSNMP library dependencies
Virtual package relying on net-snmp libs
========================================

Virtual package relying on net-snmp system libraries installation.
This package can only install if the net-snmp lib and development packages
are installed on the system.
24 changes: 24 additions & 0 deletions conf-netsnmp.opam
@@ -0,0 +1,24 @@
opam-version: "1.2"
maintainer: "Steve Bleazard <stevebleazard@googlemail.com>"
authors: "Steve Bleazard <stevebleazard@googlemail.com>"
homepage: "https://www.github.com/stevebleazard/ocaml-conf-netsnmp"
bug-reports: "https://www.github.com/stevebleazard/ocaml-conf-netsnmp/issues"
license: "MIT"
dev-repo: "https://www.github.com/stevebleazard/ocaml-conf-netsnmp.git"

depexts: [
[["debian"] ["libsnmp-dev"]]
[["ubuntu"] ["libsnmp-dev"]]
[["centos"] ["net-snmp-libs" "net-snmp-devel"]]
[["fedora"] ["net-snmp-libs" "net-snmp-devel"]]
[["opensuse"] ["libsnmp30" "net-snmp-devel"]]
[["alpine"] ["net-snmp-libs" "net-snmp-dev"]]
[["freebsd"] [ ]]
[["openbsd"] [ ]]
]

build: [
["sh" "-exc" "cc -c $CFLAGS -I/usr/local/include files/test.c"]
]

available: [ os != "darwin" ]
3 changes: 3 additions & 0 deletions descr
@@ -0,0 +1,3 @@
Virtual package relying on net-snmp system libraries installation.
This package can only install if the net-snmp lib and development packages
are installed on the system.
11 changes: 11 additions & 0 deletions files/test.c
@@ -0,0 +1,11 @@
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/mib_api.h>

#ifndef NET_SNMP_MIB_API_H
#error "No NetSNMP header"
#endif

void test(void)
{
netsnmp_init_mib();
}
2 changes: 2 additions & 0 deletions pkg/pkg.ml
@@ -0,0 +1,2 @@
#use "topfind"
#require "topkg-jbuilder.auto"

0 comments on commit 8955e70

Please sign in to comment.