From 44548f62cf82f1126ecc0cd17506f44907cacbb8 Mon Sep 17 00:00:00 2001 From: Dan Voiculeasa Date: Fri, 17 Sep 2021 12:17:26 +0300 Subject: [PATCH] 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 Change-Id: Id94e43f1a556c83e4ffd429e0937a80258728b02 --- .../debian/deb_folder/changelog | 5 +++ .../puppet-network/debian/deb_folder/control | 19 ++++++++++++ .../debian/deb_folder/copyright | 31 +++++++++++++++++++ .../debian/deb_folder/puppet-network.install | 6 ++++ .../debian/deb_folder/puppet-network.postinst | 13 ++++++++ .../debian/deb_folder/puppet-network.postrm | 13 ++++++++ .../debian/deb_folder/puppet-network.prerm | 13 ++++++++ .../puppet-network/debian/deb_folder/rules | 7 +++++ .../debian/deb_folder/source/format | 1 + .../puppet-network/debian/meta_data.yaml | 10 ++++++ 10 files changed, 118 insertions(+) create mode 100644 config/puppet-modules/puppet-network/debian/deb_folder/changelog create mode 100644 config/puppet-modules/puppet-network/debian/deb_folder/control create mode 100644 config/puppet-modules/puppet-network/debian/deb_folder/copyright create mode 100644 config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.install create mode 100644 config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.postinst create mode 100644 config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.postrm create mode 100644 config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.prerm create mode 100755 config/puppet-modules/puppet-network/debian/deb_folder/rules create mode 100644 config/puppet-modules/puppet-network/debian/deb_folder/source/format create mode 100644 config/puppet-modules/puppet-network/debian/meta_data.yaml diff --git a/config/puppet-modules/puppet-network/debian/deb_folder/changelog b/config/puppet-modules/puppet-network/debian/deb_folder/changelog new file mode 100644 index 000000000..f10309ac6 --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +puppet-network (0.9.1-1) unstable; urgency=medium + + * Initial release + + -- Dan Voiculeasa Wed, 08 Sep 2021 11:50:43 +0000 diff --git a/config/puppet-modules/puppet-network/debian/deb_folder/control b/config/puppet-modules/puppet-network/debian/deb_folder/control new file mode 100644 index 000000000..ef5001c1f --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/deb_folder/control @@ -0,0 +1,19 @@ +Source: puppet-network +Section: admin +Priority: optional +Maintainer: StarlingX Developers +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 diff --git a/config/puppet-modules/puppet-network/debian/deb_folder/copyright b/config/puppet-modules/puppet-network/debian/deb_folder/copyright new file mode 100644 index 000000000..e84a47369 --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/deb_folder/copyright @@ -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 +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'. diff --git a/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.install b/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.install new file mode 100644 index 000000000..5a6f5281b --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.install @@ -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 diff --git a/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.postinst b/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.postinst new file mode 100644 index 000000000..f33651837 --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.postinst @@ -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 diff --git a/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.postrm b/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.postrm new file mode 100644 index 000000000..4fca33b18 --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.postrm @@ -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 diff --git a/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.prerm b/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.prerm new file mode 100644 index 000000000..34e6be5d0 --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/deb_folder/puppet-network.prerm @@ -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 diff --git a/config/puppet-modules/puppet-network/debian/deb_folder/rules b/config/puppet-modules/puppet-network/debian/deb_folder/rules new file mode 100755 index 000000000..f00dbc24f --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/deb_folder/rules @@ -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 $@ diff --git a/config/puppet-modules/puppet-network/debian/deb_folder/source/format b/config/puppet-modules/puppet-network/debian/deb_folder/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/config/puppet-modules/puppet-network/debian/meta_data.yaml b/config/puppet-modules/puppet-network/debian/meta_data.yaml new file mode 100644 index 000000000..6dde500c1 --- /dev/null +++ b/config/puppet-modules/puppet-network/debian/meta_data.yaml @@ -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