diff options
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/control | 75 | ||||
-rw-r--r-- | debian/copyright | 102 | ||||
-rw-r--r-- | debian/libyang3-dev.install | 4 | ||||
-rw-r--r-- | debian/libyang3-tools.examples | 1 | ||||
-rw-r--r-- | debian/libyang3-tools.install | 3 | ||||
-rw-r--r-- | debian/libyang3.install | 2 | ||||
-rwxr-xr-x | debian/rules | 18 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 4 |
10 files changed, 215 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c060186 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libyang3 (3.1.0+dfsg-1) unstable; urgency=medium + + * Initial upload to sid. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Tue, 23 Jul 2024 11:42:29 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b84a4f0 --- /dev/null +++ b/debian/control @@ -0,0 +1,75 @@ +Source: libyang3 +Section: libs +Priority: optional +Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org> +Build-Depends: + cmake, + debhelper-compat (= 13), + doxygen <!nodoc>, + graphviz <!nodoc>, + libcmocka-dev <!nocheck>, + libpcre2-dev, + pkgconf, + tclsh <!nocheck>, +Rules-Requires-Root: no +Standards-Version: 4.7.0 +Homepage: https://github.com/CESNET/libyang +Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/libyang3 +Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/libyang3 + +Package: libyang3-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: + libpcre2-dev, + libyang3 (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: parser toolkit for IETF YANG data modeling language (development) + YANG is a data modeling language for the definition of data sent over network + management protocols (RFC 6020/7950). It can be used to model both configuration + data as well as state data of network elements and is primarily used by larger + network equipment like routers and switches. + . + This package contains the development files. + +Package: libyang3 +Section: libs +Architecture: any +Multi-Arch: same +Pre-Depends: + ${misc:Pre-Depends}, +Depends: + ${misc:Depends}, + ${shlibs:Depends}, +Description: parser toolkit for IETF YANG data modeling language (library) + YANG is a data modeling language for the definition of data sent over network + management protocols (RFC 6020/7950). It can be used to model both configuration + data as well as state data of network elements and is primarily used by larger + network equipment like routers and switches. + . + This package contains the shared library. + +Package: libyang3-tools +Section: devel +Architecture: any +Multi-Arch: foreign +Pre-Depends: + ${misc:Pre-Depends}, +Depends: + ${misc:Depends}, + ${shlibs:Depends}, +Conflicts: + libyang-tools, + libyang2-tools, +Replaces: + libyang-tools, + libyang2-tools, +Description: parser toolkit for IETF YANG data modeling language (tools) + YANG is a data modeling language for the definition of data sent over network + management protocols (RFC 6020/7950). It can be used to model both configuration + data as well as state data of network elements and is primarily used by larger + network equipment like routers and switches. + . + This package contains additional tools. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0ade3c4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,102 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libyang +Upstream-Contact: https://github.com/CESNET/libyang/issues +Source: https://github.com/CESNET/libyang/releases +Files-excluded: + doc/*.html + doc/logo.png + +Files: * +Copyright: 2015-2024 CESNET, z.s.p.o. +License: BSD-3-clause + +Files: CMakeModules/FindCMocka.cmake +Copyright: 2011-2012 Andreas Schneider <asn@cryptomilk.org> +License: other-BSD + +Files: models/ietf-* + tests/modules/yang/iana-* + tests/modules/yang/ietf-* + tests/yanglint/modules/ietf-* + tools/lint/examples/iana-* + tools/lint/examples/ietf-* +Copyright: 2011-2020 IETF Trust and the persons identified as authors of the code. +License: IETF-BSD-3-clause + +Files: src/tree_data_sorted.c +Copyright: 2015-2023 CESNET, z.s.p.o. + 2002 Niels Provos <provos@citi.umich.edu> + 2016 David Gwynne <dlg@openbsd.org> +License: BSD-3-clause + +Files: tools/lint/linenoise/* +Copyright: 2010-2014 Salvatore Sanfilippo <antirez@gmail.com> + 2010-2013 Pieter Noordhuis <pcnoordhuis@gmail.com> +License: BSD-2-clause + +Files: debian/* +Copyright: 2024 Daniel Baumann <daniel.baumann@progress-linux.org> +License: BSD-3-clause + +License: BSD-2-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + * Neither the name of CESNET nor the names of + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: IETF-BSD-3-clause + Redistribution and use in source and binary forms, with or + without modification, is permitted pursuant to, and subject + to the license terms contained in, the Simplified BSD License + set forth in Section 4.c of the IETF Trust's Legal Provisions + Relating to IETF Documents + (http://trustee.ietf.org/license-info). + . + The initial version of this YANG module is part of RFC 6020; + see the RFC itself for full legal notices. + +License: other-BSD + This software is distributed WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. diff --git a/debian/libyang3-dev.install b/debian/libyang3-dev.install new file mode 100644 index 0000000..fbc68ff --- /dev/null +++ b/debian/libyang3-dev.install @@ -0,0 +1,4 @@ +usr/include/libyang/*.h +usr/lib/*/*.so +usr/lib/*/pkgconfig/*.pc +doc/html /usr/share/doc/libyang3-dev diff --git a/debian/libyang3-tools.examples b/debian/libyang3-tools.examples new file mode 100644 index 0000000..63c4cb1 --- /dev/null +++ b/debian/libyang3-tools.examples @@ -0,0 +1 @@ +tools/lint/examples/* diff --git a/debian/libyang3-tools.install b/debian/libyang3-tools.install new file mode 100644 index 0000000..04f859b --- /dev/null +++ b/debian/libyang3-tools.install @@ -0,0 +1,3 @@ +usr/bin/yanglint +usr/bin/yangre +usr/share/man/man1 diff --git a/debian/libyang3.install b/debian/libyang3.install new file mode 100644 index 0000000..9d72c7e --- /dev/null +++ b/debian/libyang3.install @@ -0,0 +1,2 @@ +usr/lib/*/*.so.* +usr/share/yang/modules/libyang diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3580b39 --- /dev/null +++ b/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +include /usr/share/dpkg/default.mk + +%: + dh ${@} + +override_dh_auto_configure: + dh_auto_configure -- \ + -DCMAKE_BUILD_TYPE:String="Release" \ + -DENABLE_TESTS=ON + +execute_after_dh_auto_build: +ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) + $(MAKE) -C obj-*/ doc +endif diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..03dc927 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/libyang-$1\.tar\.gz/ \ + dversionmangle=s/\+dfsg//" \ +https://github.com/CESNET/libyang/tags .*/v?(\d\S+)\.tar\.gz |