diff --git a/utilities/namespace-utils/debian/deb_folder/changelog b/utilities/namespace-utils/debian/deb_folder/changelog new file mode 100644 index 00000000..ed7ef0fc --- /dev/null +++ b/utilities/namespace-utils/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +namespace-utils (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Leonardo Fagundes Luz Serrano Fri, 29 Oct 2021 14:37:27 -0300 diff --git a/utilities/namespace-utils/debian/deb_folder/control b/utilities/namespace-utils/debian/deb_folder/control new file mode 100644 index 00000000..f43b2577 --- /dev/null +++ b/utilities/namespace-utils/debian/deb_folder/control @@ -0,0 +1,13 @@ +Source: namespace-utils +Section: admin +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.1.2 +Homepage: https://www.starlingx.io + +Package: namespace-utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: StarlingX namespace utilities + This package handles StarlingX namespace utilities diff --git a/utilities/namespace-utils/debian/deb_folder/copyright b/utilities/namespace-utils/debian/deb_folder/copyright new file mode 100644 index 00000000..692385c7 --- /dev/null +++ b/utilities/namespace-utils/debian/deb_folder/copyright @@ -0,0 +1,44 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: namespace-utils +Upstream-Contact: StarlingX Developers +Source: https://opendev.org/starlingx/utilities + +Files: * +Copyright: + (c) 2013-2021 Wind River Systems, Inc + (c) Others (See individual files for more details) +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: 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 + . + 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'. diff --git a/utilities/namespace-utils/debian/deb_folder/namespace-utils.install b/utilities/namespace-utils/debian/deb_folder/namespace-utils.install new file mode 100644 index 00000000..d56a4ec4 --- /dev/null +++ b/utilities/namespace-utils/debian/deb_folder/namespace-utils.install @@ -0,0 +1,2 @@ +usr/sbin/bashns +usr/sbin/umount-in-namespace diff --git a/utilities/namespace-utils/debian/deb_folder/rules b/utilities/namespace-utils/debian/deb_folder/rules new file mode 100755 index 00000000..42b263b8 --- /dev/null +++ b/utilities/namespace-utils/debian/deb_folder/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +export ROOT = $(CURDIR)/debian/tmp +export SBINDIR = ${ROOT}/usr/sbin + +%: + dh $@ + +override_dh_auto_build: + gcc -g -o bashns bashns.c + dh_auto_build + +override_dh_install: + install -d -m 755 ${SBINDIR} + install -m 500 -p -D bashns ${SBINDIR} + install -m 500 -p -D umount-in-namespace ${SBINDIR} + + dh_install + +# Prevents dh_fixperms from changing the permissions defined from 500 to 755 +override_dh_fixperms: + dh_fixperms -Xbashns -Xumount-in-namespace diff --git a/utilities/namespace-utils/debian/deb_folder/source/format b/utilities/namespace-utils/debian/deb_folder/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/utilities/namespace-utils/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/utilities/namespace-utils/debian/meta_data.yaml b/utilities/namespace-utils/debian/meta_data.yaml new file mode 100644 index 00000000..722b0968 --- /dev/null +++ b/utilities/namespace-utils/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: namespace-utils +debver: 1.0-1 +src_path: namespace-utils +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true