Merge "Debian: Add build structure for openvswitch-config"

This commit is contained in:
Zuul 2023-02-17 21:11:59 +00:00 committed by Gerrit Code Review
commit f7897ccb44
10 changed files with 146 additions and 0 deletions

View File

@ -66,6 +66,9 @@ openldap-config
#openssh-config
openssh-config
#openvswitch-config
openvswitch-config
#pam-config
pam-config

View File

@ -21,6 +21,7 @@ nfs-utils-config
ntp-config
openldap-config
openssh-config
openvswitch-config
pam-config
python-siteconfig
rabbitmq-server-config

View File

@ -0,0 +1,5 @@
openvswitch-config (1.0.0-1) unstable; urgency=medium
* Initial release.
-- Thales Elero Cervi <ThalesElero.Cervi@windriver.com> Fri, 03 Feb 2023 10:00:00 -0400

View File

@ -0,0 +1,14 @@
Source: openvswitch-config
Section: admin
Priority: optional
Maintainer: Wind River <info@windriver.com>
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.5.1
Package: openvswitch-config
Section: admin
Depends:
openvswitch-switch | openvswitch-switch-dpdk
${misc:Depends}
Architecture: any
Description: StarlingX openvswitch configuration file

View File

@ -0,0 +1,42 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: openvswitch-config
Source: https://opendev.org/starlingx/config-files
Files: *
Copyright: (c) 2019 Intel Corporation
(c) 2023 Wind River Systems, Inc
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
.
https://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'.
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2023 Wind River Systems, Inc
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
.
https://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,2 @@
etc/openvswitch/*.pmon.conf
usr/share/starlingx/etc_logrotate.d_openvswitch

View File

@ -0,0 +1,41 @@
#!/bin/sh
# postinst script for openvswitch-config
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
cp -f /usr/share/starlingx/etc_logrotate.d_openvswitch /etc/logrotate.d/openvswitch-switch
chmod 0644 /etc/logrotate.d/openvswitch-switch
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

View File

@ -0,0 +1,28 @@
#!/usr/bin/make -f
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2023 Wind River Systems, Inc
#
# export DH_VERBOSE = 1
export APP_NAME=openvswitch-config
export PBR_VERSION=1.0.0-1
export ROOT=debian/tmp
export SRC_DIR=files
export SYSCONF_DIR=$(ROOT)/etc
export SYSCONF_OVS=$(SYSCONF_DIR)/openvswitch
export DATA_DIR=$(ROOT)/usr/share
export DATA_STX=$(DATA_DIR)/starlingx
%:
dh $@
override_dh_auto_install:
install -d -m 0755 $(SYSCONF_OVS)
install -m 0644 $(SRC_DIR)/ovsdb-server.pmon.conf $(SYSCONF_OVS)
install -m 0644 $(SRC_DIR)/ovs-vswitchd.pmon.conf $(SYSCONF_OVS)
install -d $(DATA_STX)
install -m 0640 $(SRC_DIR)/etc_logrotate.d_openvswitch $(DATA_STX)

View File

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

View File

@ -0,0 +1,9 @@
---
debname: openvswitch-config
debver: 1.0.0
src_path: ${MY_REPO}/stx/config-files/openvswitch-config
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true
SRC_GITREVCOUNT:
SRC_BASE_SRCREV: 400d88272da416b49fe555e319e076804234dd5d