Add debian package for utilities/namespace-utils

Add debian packaging infrastructure for
utilities/namespace-utils to build a debian package.

Verification:
- build-pkg
- build-image
- same permissions and contents as RPM

Story: 2009101
Task: 43889

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: Ifa3e9b01f5d61299cc2ce378f349709dec7d668f
This commit is contained in:
Leonardo Fagundes Luz Serrano 2021-11-08 16:54:17 +00:00
parent beaf3ab35d
commit 74f135fe50
7 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,5 @@
namespace-utils (1.0-1) unstable; urgency=medium
* Initial release.
-- Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com> Fri, 29 Oct 2021 14:37:27 -0300

View File

@ -0,0 +1,13 @@
Source: namespace-utils
Section: admin
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
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

View File

@ -0,0 +1,44 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: namespace-utils
Upstream-Contact: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
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'.

View File

@ -0,0 +1,2 @@
usr/sbin/bashns
usr/sbin/umount-in-namespace

View File

@ -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

View File

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

View File

@ -0,0 +1,7 @@
---
debname: namespace-utils
debver: 1.0-1
src_path: namespace-utils
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true