Skip to content

Commit fae05d3

Browse files
committed
distro FEATURE debian scripts
1 parent d10c8fa commit fae05d3

File tree

10 files changed

+123
-0
lines changed

10 files changed

+123
-0
lines changed

distro/pkg/deb/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
libnetconf2 ({{ version }}-{{ release }}) unstable; urgency=medium
2+
3+
* upstream packaging
4+
5+
-- Michal Vaško <[email protected]> Fri, 01 Oct 2021 14:29:03 +0200

distro/pkg/deb/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

distro/pkg/deb/control

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Source: libnetconf2
2+
Section: libs
3+
Homepage: https://github.com/CESNET/libnetconf2/
4+
Maintainer: CESNET <[email protected]>
5+
Priority: optional
6+
Standards-Version: 4.5.0
7+
Build-Depends: cmake,
8+
debhelper (>= 10),
9+
libyang2-dev,
10+
libssl-dev,
11+
libssh-dev (>= 0.7.1),
12+
pkg-config
13+
Vcs-Browser: https://github.com/CESNET/libnetconf2/tree/master
14+
Vcs-Git: https://github.com/CESNET/libnetconf2.git
15+
16+
Package: libnetconf2-2
17+
Depends: ${misc:Depends},
18+
${shlibs:Depends}
19+
Architecture: any
20+
Description: library implementing NETCONF protocol - runtime
21+
Libnetconf2 implements network communication using NETCONF
22+
protocol specified in IETF RFC 6241. It is based on libnetconf
23+
(which it replaces and makes obsolete) but written from scratch.
24+
.
25+
Both server and client-side functionality is provided.
26+
.
27+
It is implemented in C.
28+
29+
Package: libnetconf2-dev
30+
Depends: libyang2-dev,
31+
libnetconf2-2 (= ${binary:Version}),
32+
${misc:Depends}
33+
Section: libdevel
34+
Architecture: any
35+
Description: library implementing NETCONF protocol - development files
36+
Libnetconf2 implements network communication using NETCONF
37+
protocol specified in IETF RFC 6241. It is based on libnetconf
38+
(which it replaces and makes obsolete) but written from scratch.
39+
.
40+
Both server and client-side functionality is provided.
41+
.
42+
This package contains the C headers, a pkgconfig file, and .so entry
43+
point for libnetconf2.
44+

distro/pkg/deb/copyright

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: libnetconf2
3+
License: BSD-3-clause
4+
5+
Files: *
6+
Copyright: 2015-2021 by CESNET, z.s.p.o.
7+
License: BSD-3-clause
8+
9+
Files: */ietf-*.yang */ietf-*.h
10+
Copyright: 2011-2018 by the IETF Trust and the persons identified as authors
11+
License: IETF-BSD-3-clause
12+
Redistribution and use in source and binary forms, with or
13+
without modification, is permitted pursuant to, and subject
14+
to the license terms contained in, the Simplified BSD
15+
License set forth in Section 4.c of the IETF Trust's
16+
Legal Provisions Relating to IETF Documents
17+
(http://trustee.ietf.org/license-info).
18+
.
19+
This version of this YANG module is part of RFC 6536; see
20+
the RFC itself for full legal notices.
21+
22+
License: BSD-3-clause
23+
Redistribution and use in source and binary forms, with or without
24+
modification, are permitted provided that the following conditions are met:
25+
.
26+
* Redistributions of source code must retain the above copyright notice, this
27+
list of conditions and the following disclaimer.
28+
.
29+
* Redistributions in binary form must reproduce the above copyright notice,
30+
this list of conditions and the following disclaimer in the documentation
31+
and/or other materials provided with the distribution.
32+
.
33+
* Neither the name of libyang nor the names of its
34+
contributors may be used to endorse or promote products derived from
35+
this software without specific prior written permission.
36+
.
37+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
38+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
40+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
41+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
42+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
43+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
44+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

distro/pkg/deb/gbp.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[DEFAULT]
2+
pristine-tar = False
3+
debian-branch = master
4+
upstream-tree = SLOPPY
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/lib/*/libnetconf2.so.*
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
usr/lib/*/libnetconf2.so
2+
usr/lib/*/pkgconfig/libnetconf2.pc
3+
usr/include/libnetconf2/*
4+
usr/include/nc_client.h
5+
usr/include/nc_server.h

distro/pkg/deb/rules

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/make -f
2+
#export DH_VERBOSE=1
3+
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4+
5+
include /usr/share/dpkg/default.mk
6+
7+
%:
8+
dh $@
9+
10+
override_dh_auto_configure:
11+
dh_auto_configure -- \
12+
-DCMAKE_BUILD_TYPE:String="Release"

distro/pkg/deb/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

distro/pkg/deb/watch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version=4
2+
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%libnetconf2-$1.tar.gz%" \
3+
https://github.com/CESNET/libnetconf2/releases \
4+
(?:.*?/)?v?(\d[\d.]*)(?:-r\d+)?\.tar\.gz debian uupdate

0 commit comments

Comments
 (0)