From 2b9f8c28c7e3608b2a557909f4ccee529c90fe8a Mon Sep 17 00:00:00 2001 From: Charles Short Date: Mon, 16 Aug 2021 11:36:29 -0400 Subject: [PATCH] Add debian packaging directory for workerconfig Add debian packaging directory to build workerconfig for Debian. Story: 2009101 Task: 43021 Signed-off-by: Charles Short Change-Id: I3f6bac8a60f1fe77efb54f2e549df3dd716eb7ce --- workerconfig/debian/deb_folder/changelog | 5 +++ workerconfig/debian/deb_folder/control | 13 ++++++ workerconfig/debian/deb_folder/copyright | 41 +++++++++++++++++++ workerconfig/debian/deb_folder/rules | 16 ++++++++ workerconfig/debian/deb_folder/source/format | 1 + .../deb_folder/workerconfig-standalone.dirs | 3 ++ .../workerconfig-standalone.install | 3 ++ workerconfig/debian/meta_data.yaml | 7 ++++ 8 files changed, 89 insertions(+) create mode 100644 workerconfig/debian/deb_folder/changelog create mode 100644 workerconfig/debian/deb_folder/control create mode 100644 workerconfig/debian/deb_folder/copyright create mode 100755 workerconfig/debian/deb_folder/rules create mode 100644 workerconfig/debian/deb_folder/source/format create mode 100644 workerconfig/debian/deb_folder/workerconfig-standalone.dirs create mode 100644 workerconfig/debian/deb_folder/workerconfig-standalone.install create mode 100644 workerconfig/debian/meta_data.yaml diff --git a/workerconfig/debian/deb_folder/changelog b/workerconfig/debian/deb_folder/changelog new file mode 100644 index 0000000000..6947e5365e --- /dev/null +++ b/workerconfig/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +workerconfig (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Chuck Short Sun, 08 Aug 2021 06:05:31 -0400 diff --git a/workerconfig/debian/deb_folder/control b/workerconfig/debian/deb_folder/control new file mode 100644 index 0000000000..fabec75a6a --- /dev/null +++ b/workerconfig/debian/deb_folder/control @@ -0,0 +1,13 @@ +Source: workerconfig +Section: admin +Priority: optional +Maintainer: Starlingx Developers +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.4.1 +Homepage: https://www.starlingx.io + +Package: workerconfig-standalone +Architecture: all +Depends: ${misc:Depends} +Description: Initial worker node configuration + StarlingX daemon to configure worker nodes. diff --git a/workerconfig/debian/deb_folder/copyright b/workerconfig/debian/deb_folder/copyright new file mode 100644 index 0000000000..13743b0f72 --- /dev/null +++ b/workerconfig/debian/deb_folder/copyright @@ -0,0 +1,41 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: workerconfig +Upstream-Contact: starlingx-discuss@lists.openstack.org +Source: https://opendev.org/starlingx/config + +Files: * +Copyright: (c) 2013-2019 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 + . + 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'. + + +Files: debian/* +Copyright: 2021 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 + . + 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/workerconfig/debian/deb_folder/rules b/workerconfig/debian/deb_folder/rules new file mode 100755 index 0000000000..7047d2fadf --- /dev/null +++ b/workerconfig/debian/deb_folder/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +%: + dh $@ + +override_dh_auto_build: + : # No build required + +override_dh_auto_install: + $(MAKE) INITDDIR=`pwd`/debian/tmp/etc/init.d \ + GOENABLEDDIR=`pwd`/debian/tmp/etc/goenabled.d \ + SYSTEMDDIR=`pwd`/debian/tmp/lib/systemd install + +override_dh_installsystemd: + dh_installsystemd -pworkerconfig-standalone diff --git a/workerconfig/debian/deb_folder/source/format b/workerconfig/debian/deb_folder/source/format new file mode 100644 index 0000000000..163aaf8d82 --- /dev/null +++ b/workerconfig/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/workerconfig/debian/deb_folder/workerconfig-standalone.dirs b/workerconfig/debian/deb_folder/workerconfig-standalone.dirs new file mode 100644 index 0000000000..1ef23fd167 --- /dev/null +++ b/workerconfig/debian/deb_folder/workerconfig-standalone.dirs @@ -0,0 +1,3 @@ +etc/init.d +etc/goenabled.d +lib/systemd/system/config diff --git a/workerconfig/debian/deb_folder/workerconfig-standalone.install b/workerconfig/debian/deb_folder/workerconfig-standalone.install new file mode 100644 index 0000000000..20045bdbad --- /dev/null +++ b/workerconfig/debian/deb_folder/workerconfig-standalone.install @@ -0,0 +1,3 @@ +etc/init.d/worker_config +etc/goenabled.d/config_goenabled_check.sh +lib/systemd/config/workerconfig-standalone.service lib/systemd/system/workerconfig.service diff --git a/workerconfig/debian/meta_data.yaml b/workerconfig/debian/meta_data.yaml new file mode 100644 index 0000000000..aad3fe995d --- /dev/null +++ b/workerconfig/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: workerconfig +debver: 1.0 +src_path: workerconfig +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true