Add debian package for utilities/update-motd

Add debian packaging infrastructure for
utilities/update-motd to build a debian package.

Verification:
- build-pkgs
- build-image
- same contents and permissions

Story: 2009101
Task: 43892

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I9c1a09e62dc4a32e9efef12d54b8b49b1737708a
This commit is contained in:
Leonardo Fagundes Luz Serrano
2021-11-08 17:52:23 +00:00
parent beaf3ab35d
commit b9a9f07a66
9 changed files with 114 additions and 0 deletions
@@ -0,0 +1,5 @@
update-motd (1.0-1) unstable; urgency=medium
* Initial release.
-- Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com> Fri, 29 Oct 2021 14:33:14 -0300
@@ -0,0 +1,14 @@
Source: update-motd
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: update-motd
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
cron
Description: dynamic MOTD generation
This package handles dynamic MOTD generation
@@ -0,0 +1,44 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: update-motd
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'.
+37
View File
@@ -0,0 +1,37 @@
#!/usr/bin/make -f
export ROOT = debian/tmp
export SBINDIR = $(ROOT)/usr/sbin
export SYSCONFDIR = $(ROOT)/etc
%:
dh $@
override_dh_install:
install -d $(SBINDIR)
install -m 700 motd-update $(SBINDIR)/motd-update
install -d $(SYSCONFDIR)
install -d $(SYSCONFDIR)/motd.d
install -m 755 motd-header $(SYSCONFDIR)/motd.d/00-header
install -m 755 motd-footer $(SYSCONFDIR)/motd.d/99-footer
install -m 644 motd.head $(SYSCONFDIR)/motd.head
install -d $(SYSCONFDIR)/cron.d
install -m 600 motd-update.cron $(SYSCONFDIR)/cron.d/motd-update
install -m 700 customize-banner $(SBINDIR)/customize-banner
install -m 700 apply_banner_customization $(SBINDIR)/apply_banner_customization
install -m 700 install_banner_customization $(SBINDIR)/install_banner_customization
dh_install
override_dh_fixperms:
dh_fixperms \
-Xmotd-update \
-Xapply_banner_customization \
-Xcustomize-banner \
-Xinstall_banner_customization \
-Xmotd-update
@@ -0,0 +1 @@
3.0 (quilt)
@@ -0,0 +1 @@
etc/motd.d
@@ -0,0 +1,4 @@
etc/cron.d/*
etc/motd.d/*
etc/motd.head
usr/sbin/*
@@ -0,0 +1 @@
update-motd: bad-permissions-for-etc-cron.d-script etc/cron.d/motd-update 0600 != 0644
@@ -0,0 +1,7 @@
---
debname: update-motd
debver: 1.0-1
src_path: files
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true