summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
-rwxr-xr-xbuild.sh7
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat1
-rw-r--r--debian/control16
-rw-r--r--debian/copyright35
-rw-r--r--debian/libvyosconfig0.install1
-rw-r--r--debian/libvyosconfig0.postinst1
-rwxr-xr-xdebian/rules17
9 files changed, 84 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 5d44629..798f869 100644
--- a/Makefile
+++ b/Makefile
@@ -95,13 +95,3 @@ $(BUILDDIR)/lib/vyos1x_parser.cmx: $(BUILDDIR)/lib/vyos1x_parser.cmi $(BUILDDIR)
clean:
rm -rf $(BUILDDIR)
-
-test: all
- $(MAKE) -C $@
-ifeq ($(OSTYPE),Win32)
- PATH="$(BUILDDIR):$(PATH)" _build/test/test.native test/ocaml.svg
-else
- LD_LIBRARY_PATH=$(BUILDDIR) _build/test/test.native test/ocaml.svg
-endif
-
-.PHONY: test
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..ce21827
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+DIR=$1
+
+eval `opam config env`
+make clean
+make
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..ae5d6bc
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+libvyosconfig0 (0.0.1) unstable; urgency=low
+
+ * Created the package
+
+ -- Daniil Baturin <daniil@baturin.org> Wed, 23 May 2018 21:14:46 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f69749a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,16 @@
+Source: libvyosconfig0
+Section: contrib/net
+Priority: extra
+Maintainer: VyOS Package Maintainers <maintainers@vyos.net>
+Build-Depends: debhelper (>= 9),
+ quilt,
+ libpcre3-dev,
+ libffi-dev
+Standards-Version: 3.9.6
+
+Package: libvyosconfig0
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: VyConf config tree manipulation library
+ VyConf config tree parsing and manipulation library
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b3846b0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+This package was debianized by Daniil Baturin <daniil@baturin.org> on
+Wed, 23 May 2018 21:14:46 +0200
+
+It's original content from the GIT repository <http://github.com/vyos/libvyosconfig>
+
+Upstream Author:
+
+ <maintainers@vyos.net>
+
+Copyright:
+
+ Copyright (C) 2018 VyOS maintainers and contributors
+ All Rights Reserved.
+
+License:
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+A copy of the GNU General Public License is available as
+`/usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution
+or on the World Wide Web at `http://www.gnu.org/copyleft/gpl.html'.
+You can also obtain it by writing to the Free Software Foundation,
+Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+MA 02110-1301, USA.
+
+The Debian packaging is (C) 2018, Daniil Baturin <daniil@baturin.org> and
+is licensed under the GPL, see above.
diff --git a/debian/libvyosconfig0.install b/debian/libvyosconfig0.install
new file mode 100644
index 0000000..40b3a73
--- /dev/null
+++ b/debian/libvyosconfig0.install
@@ -0,0 +1 @@
+usr/lib/libvyosconfig.so.0
diff --git a/debian/libvyosconfig0.postinst b/debian/libvyosconfig0.postinst
new file mode 100644
index 0000000..32d09d8
--- /dev/null
+++ b/debian/libvyosconfig0.postinst
@@ -0,0 +1 @@
+ldconfig
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ae59417
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+DIR := debian/tmp
+
+%:
+ dh $@ --with quilt
+
+override_dh_auto_build:
+ ./build.sh $(DIR)
+
+override_dh_auto_install:
+ mkdir -p $(DIR)/usr/lib
+ cp _build/libvyosconfig.so $(DIR)/usr/lib/libvyosconfig.so.0
+ dh_makeshlibs
+
+override_dh_auto_test:
+ echo "No tests yet"