Convert fm-mgr to new debian packaging system
Story: 2009101 Task: 43369 Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com> Change-Id: I6631aeb142ce2c9ccfb78cdc8e340c98b9115ce0
This commit is contained in:
parent
0b4c0c89de
commit
760ddbf28e
|
@ -0,0 +1 @@
|
||||||
|
fm-mgr
|
|
@ -1,14 +0,0 @@
|
||||||
Source: fm-mgr
|
|
||||||
Priority: optional
|
|
||||||
Maintainer: StarlingX team <starlingx-discuss@lists.starlingx.io>
|
|
||||||
Build-Depends: debhelper (>=9),
|
|
||||||
uuid-dev,
|
|
||||||
libsystemd-dev,
|
|
||||||
fm-common-dev
|
|
||||||
Standards-Version: 3.9.6
|
|
||||||
|
|
||||||
Package: fm-mgr
|
|
||||||
Architecture: any
|
|
||||||
Pre-Depends: ${misc:Depends},
|
|
||||||
${shlibs:Depends}
|
|
||||||
Description: This package contains StarlingX fm-mgr project.
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
fm-mgr (1.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- Tracey Bogue <tracey.bogue@windriver.com> Fri, 17 Sep 2021 14:52:21 +0000
|
|
@ -0,0 +1,15 @@
|
||||||
|
Source: fm-mgr
|
||||||
|
Priority: optional
|
||||||
|
Section: libs
|
||||||
|
Maintainer: StarlingX team <starlingx-discuss@lists.starlingx.io>
|
||||||
|
Build-Depends: debhelper-compat (= 13)
|
||||||
|
Build-Depends-Indep: uuid-dev, libsystemd-dev, fm-common-dev
|
||||||
|
Standards-Version: 4.5.1
|
||||||
|
Rules-Requires-Root: no
|
||||||
|
|
||||||
|
Package: fm-mgr
|
||||||
|
Section: libs
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Description: StarlingX Fault Manager
|
||||||
|
This package contains StarlingX fm-mgr project.
|
|
@ -0,0 +1,42 @@
|
||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: fm-mgr
|
||||||
|
Source: https://opendev.org/starlingx/fault
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: (c) 2013-2021 Wind River Systems, Inc
|
||||||
|
Copyright: 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'.
|
|
@ -0,0 +1,4 @@
|
||||||
|
usr/bin/fmManager
|
||||||
|
etc/init.d/fminit
|
||||||
|
etc/logrotate.d/fm.logrotate
|
||||||
|
lib/systemd/system/fminit.service
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
#export DH_VERBOSE = 1
|
||||||
|
|
||||||
|
export ROOT=debian/tmp
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
make DESTDIR=${ROOT} \
|
||||||
|
BINDIR=/usr/bin \
|
||||||
|
LIBDIR=/usr/lib \
|
||||||
|
SYSCONFDIR=/etc \
|
||||||
|
install
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (quilt)
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
debname: fm-mgr
|
||||||
|
debver: 1.0
|
||||||
|
src_path: sources
|
||||||
|
revision:
|
||||||
|
dist: $STX_DIST
|
||||||
|
PKG_GITREVCOUNT: true
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/make -f
|
|
||||||
|
|
||||||
%:
|
|
||||||
dh $@
|
|
||||||
|
|
||||||
override_dh_usrlocal:
|
|
|
@ -12,7 +12,7 @@ MINOR ?= 0
|
||||||
DESTDIR ?= /
|
DESTDIR ?= /
|
||||||
BINDIR ?= /usr/local/bin
|
BINDIR ?= /usr/local/bin
|
||||||
SYSCONFDIR ?= /etc
|
SYSCONFDIR ?= /etc
|
||||||
UNITDIR ?= /usr/lib/systemd/system
|
UNITDIR ?= /lib/systemd/system
|
||||||
|
|
||||||
|
|
||||||
build: fmManager
|
build: fmManager
|
||||||
|
@ -27,7 +27,7 @@ clean:
|
||||||
@rm -f $(OBJS)
|
@rm -f $(OBJS)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
mkdir -p $(DESTDIR)/usr/lib/systemd/system
|
mkdir -p $(DESTDIR)/lib/systemd/system
|
||||||
install -m 755 -d $(DESTDIR)$(SYSCONFDIR)
|
install -m 755 -d $(DESTDIR)$(SYSCONFDIR)
|
||||||
install -m 755 -d $(DESTDIR)$(SYSCONFDIR)/init.d
|
install -m 755 -d $(DESTDIR)$(SYSCONFDIR)/init.d
|
||||||
install -m 755 -d $(DESTDIR)$(SYSCONFDIR)/logrotate.d
|
install -m 755 -d $(DESTDIR)$(SYSCONFDIR)/logrotate.d
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
#
|
#
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: fminit
|
# Provides: fminit
|
||||||
# Required-Start:
|
# Required-Start: $local_fs
|
||||||
# Required-Stop:
|
# Required-Stop: $local_fs
|
||||||
# Default-Start: 3 5
|
# Default-Start: 3 5
|
||||||
# Default-Stop: 0 1 2 6
|
# Default-Stop: 0 1 2 6
|
||||||
# Short-Description: Fault Manager
|
# Short-Description: Fault Manager
|
||||||
|
@ -104,7 +104,7 @@ case "$1" in
|
||||||
$0 restart
|
$0 restart
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
force-reload | *)
|
||||||
echo "usage: $0 { start | stop | status | restart | condrestart | status }"
|
echo "usage: $0 { start | stop | status | restart | condrestart | status }"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue