Add debian package for puppet-network

This package is 3rdparty. Get latest release that supports Puppet 5,
which is 0.9.0. Get few commits after, such that requirements better
align with other packages we provide (puppet modules:
stdlib 5.x, boolean 2.x).
The commit has the module version of 0.9.1-rc0.

Considering patches in alphabetical order.
Patches 1, 2 are not needed as the changes are present upstream.
Patch 3 not needed as we don't care about the redhat change in
it and the rest of the changes are merged upstream.
Didn't port patch 4, not sure we need it. Assume we don't need it.
From patch 5 dropped WRlinux OS support.

TODO: Port gateway property change from patch 5. Port patches 6 and 7.

Did build-pkgs. Did build iso.

Story: 2009101
Task: 43359
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Id94e43f1a556c83e4ffd429e0937a80258728b02
This commit is contained in:
Dan Voiculeasa 2021-09-17 12:17:26 +03:00
parent 5997bdc453
commit 44548f62cf
10 changed files with 118 additions and 0 deletions

View File

@ -0,0 +1,5 @@
puppet-network (0.9.1-1) unstable; urgency=medium
* Initial release
-- Dan Voiculeasa <dan.voiculeasa@windriver.com> Wed, 08 Sep 2021 11:50:43 +0000

View File

@ -0,0 +1,19 @@
Source: puppet-network
Section: admin
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.4.1
Homepage: https://www.starlingx.io
Package: puppet-network
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
puppet,
puppet-boolean,
puppet-module-adrienthebo-filemapper,
puppet-module-camptocamp-kmod,
puppet-module-puppetlabs-stdlib
Description: Puppet module named puppet-boolean
A Puppet module to manage non volatile network and route configuration

View File

@ -0,0 +1,31 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: puppet-network
Upstream-Contact: https://github.com/voxpupuli
Source: https://github.com/voxpupuli/puppet-network
Files: *
Copyright: (C) 2012-2018 https://github.com/voxpupuli/
License: Apache-2
Upstream-Name: puppet-network
Upstream-Contact: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Source: https://opendev.org/starlingx/integ/src/branch/master/config/puppet-modules/puppet-network
Files: debian/*
Copyright: (c) 2021 Wind River Systems, Inc.
License: Apache-2
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'.

View File

@ -0,0 +1,6 @@
lib usr/share/puppet/modules.available/puppet-network
LICENSE usr/share/puppet/modules.available/puppet-network
manifests usr/share/puppet/modules.available/puppet-network
metadata.json usr/share/puppet/modules.available/puppet-network
spec usr/share/puppet/modules.available/puppet-network
templates usr/share/puppet/modules.available/puppet-network

View File

@ -0,0 +1,13 @@
#!/bin/sh
# see: dh_installdeb(1)
set -e
if [ "${1}" = "configure" ] ; then
update-alternatives --install /usr/share/puppet/modules/network puppet-module-network \
/usr/share/puppet/modules.available/puppet-network 500
fi
#DEBHELPER#
exit 0

View File

@ -0,0 +1,13 @@
#!/bin/sh
# see: dh_installdeb(1)
set -e
if [ "${1}" = "remove" ] || [ "${1}" = "disappear" ]; then
update-alternatives --remove puppet-module-network \
/usr/share/puppet/modules.available/puppet-network
fi
#DEBHELPER#
exit 0

View File

@ -0,0 +1,13 @@
#!/bin/sh
# see: dh_installdeb(1)
set -e
if [ "${1}" = "remove" ] || [ "${1}" = "upgrade" || [ "${1}" = "deconfigure" ]; then
update-alternatives --remove puppet-module-network \
/usr/share/puppet/modules.available/puppet-network
fi
#DEBHELPER#
exit 0

View File

@ -0,0 +1,7 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
%:
dh $@

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,10 @@
---
debname: puppet-network
debver: 0.9.1-1
dl_path:
name: puppet-network-0.9.1-1.tar.gz
url: https://codeload.github.com/voxpupuli/puppet-network/tar.gz/10545c7a49b4878aa244424eb14b24e7450dc283
md5sum: f98a5b2ebb111e8c140417a764048a3e
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true