Skip to content

Commit d7b284c

Browse files
committed
Add debian metadata
Including Cyril's change to add opal-utils package. Signed-off-by: Jeremy Kerr <[email protected]>
1 parent 5f444f5 commit d7b284c

19 files changed

+354
-0
lines changed

debian/README.source

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
skiboot for Debian
2+
------------------
3+
4+
This package contains support utilities for the skiboot firmware, for OPAL
5+
Power machined.
6+
7+
-- Jeremy Kerr <[email protected]> Sat, 28 Feb 2015 09:20:34 +0800
8+

debian/changelog

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
skiboot (5.1.0-beta1-10-gad5f80a-1) unstable; urgency=medium
2+
3+
* Add debian metadata
4+
5+
-- Jeremy Kerr <[email protected]> Tue, 10 Mar 2015 15:25:48 +0800

debian/compat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Source: skiboot
2+
Section: admin
3+
Priority: optional
4+
Maintainer: Jeremy Kerr <[email protected]>
5+
Build-Depends: debhelper (>= 8.0.0)
6+
Standards-Version: 3.9.4
7+
Homepage: http://github.com/open-power/skiboot/
8+
#Vcs-Git: git://git.debian.org/collab-maint/skiboot.git
9+
#Vcs-Browser: http://git.debian.org/?p=collab-maint/skiboot.git;a=summary
10+
11+
Package: opal-prd
12+
Architecture: any
13+
Depends: ${shlibs:Depends}, ${misc:Depends}
14+
Description: OPAL Processor Recovery Diagnostics daemon
15+
.
16+
This package provides a daemon to load and run the OpenPower firmware's
17+
Processor Recovery Diagnostics binary. This is responsible for runtime
18+
maintenance of Power hardware.
19+
20+
Package: opal-utils
21+
Architecture: any
22+
Depends: ${shlibs:Depends}, ${misc:Depends}
23+
Description: OPAL firmware utilities
24+
.
25+
This package contains the 'gard' utility, to read, parse and clear hardware
26+
gard partitions on OpenPower platforms.

debian/copyright

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: skiboot
3+
Source: <url://example.com>
4+
5+
Files: *
6+
Copyright: <years> <put author's name and email here>
7+
<years> <likewise for another author>
8+
License: <special license>
9+
<Put the license of the package here indented by 1 space>
10+
<This follows the format of Description: lines in control file>
11+
.
12+
<Including paragraphs>
13+
14+
# If you want to use GPL v2 or later for the /debian/* files use
15+
# the following clauses, or change it to suit. Delete these two lines
16+
Files: debian/*
17+
Copyright: 2015 Jeremy Kerr <[email protected]>
18+
License: GPL-2+
19+
This package is free software; you can redistribute it and/or modify
20+
it under the terms of the GNU General Public License as published by
21+
the Free Software Foundation; either version 2 of the License, or
22+
(at your option) any later version.
23+
.
24+
This package is distributed in the hope that it will be useful,
25+
but WITHOUT ANY WARRANTY; without even the implied warranty of
26+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27+
GNU General Public License for more details.
28+
.
29+
You should have received a copy of the GNU General Public License
30+
along with this program. If not, see <http://www.gnu.org/licenses/>
31+
.
32+
On Debian systems, the complete text of the GNU General
33+
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
34+
35+
# Please also look if there are files or directories which have a
36+
# different copyright/license attached and list them here.
37+
# Please avoid to pick license terms that are more restrictive than the
38+
# packaged work, as it may make Debian's contributions unacceptable upstream.

debian/manpage.1.ex

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
.\" Hey, EMACS: -*- nroff -*-
2+
.\" (C) Copyright 2015 Jeremy Kerr <[email protected]>,
3+
.\"
4+
.\" First parameter, NAME, should be all caps
5+
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
6+
.\" other parameters are allowed: see man(7), man(1)
7+
.TH SKIBOOT SECTION "February 28, 2015"
8+
.\" Please adjust this date whenever revising the manpage.
9+
.\"
10+
.\" Some roff macros, for reference:
11+
.\" .nh disable hyphenation
12+
.\" .hy enable hyphenation
13+
.\" .ad l left justify
14+
.\" .ad b justify to both left and right margins
15+
.\" .nf disable filling
16+
.\" .fi enable filling
17+
.\" .br insert line break
18+
.\" .sp <n> insert n+1 empty lines
19+
.\" for manpage-specific macros, see man(7)
20+
.SH NAME
21+
skiboot \- program to do something
22+
.SH SYNOPSIS
23+
.B skiboot
24+
.RI [ options ] " files" ...
25+
.br
26+
.B bar
27+
.RI [ options ] " files" ...
28+
.SH DESCRIPTION
29+
This manual page documents briefly the
30+
.B skiboot
31+
and
32+
.B bar
33+
commands.
34+
.PP
35+
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
36+
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
37+
.\" respectively.
38+
\fBskiboot\fP is a program that...
39+
.SH OPTIONS
40+
These programs follow the usual GNU command line syntax, with long
41+
options starting with two dashes (`-').
42+
A summary of options is included below.
43+
For a complete description, see the Info files.
44+
.TP
45+
.B \-h, \-\-help
46+
Show summary of options.
47+
.TP
48+
.B \-v, \-\-version
49+
Show version of program.
50+
.SH SEE ALSO
51+
.BR bar (1),
52+
.BR baz (1).
53+
.br
54+
The programs are documented fully by
55+
.IR "The Rise and Fall of a Fooish Bar" ,
56+
available via the Info system.

debian/opal-prd.default

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Defaults for skiboot initscript
2+
# sourced by /etc/init.d/skiboot
3+
# installed at /etc/default/skiboot by the maintainer scripts
4+
5+
#
6+
# This is a POSIX shell fragment
7+
#
8+
9+
PNOR_DEVICE=/dev/mtd0
10+
11+
# Additional options that are passed to the Daemon.
12+
DAEMON_OPTS=""
13+
14+
# Set to true to have the PRD daemon started on boot
15+
OPAL_PRD_ENABLED=false

debian/opal-prd.docs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README

debian/opal-prd.init

+134
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
#!/bin/sh
2+
### BEGIN INIT INFO
3+
# Provides: opal-prd
4+
# Required-Start: $local_fs $network $remote_fs $syslog
5+
# Required-Stop: $local_fs $network $remote_fs $syslog
6+
# Default-Start: 2 3 4 5
7+
# Default-Stop: 0 1 6
8+
# Short-Description: Run the skiboot opal-prd daemon
9+
# Description: The opal-prd daemon provides hardware error recovery
10+
# support for OPAL-based POWER systems.
11+
### END INIT INFO
12+
13+
# Author: Jeremy Kerr <[email protected]>
14+
15+
# Do NOT "set -e"
16+
17+
# PATH should only include /usr/* if it runs after the mountnfs.sh script
18+
PATH=/sbin:/usr/sbin:/bin:/usr/bin
19+
DESC="opal-prd"
20+
NAME=opal-prd
21+
DAEMON=/usr/sbin/opal-prd
22+
DAEMON_ARGS=""
23+
PIDFILE=/var/run/$NAME.pid
24+
SCRIPTNAME=/etc/init.d/$NAME
25+
26+
# Exit if the package is not installed
27+
[ -x "$DAEMON" ] || exit 0
28+
29+
# Read configuration variable file if it is present
30+
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
31+
32+
# Load the VERBOSE setting and other rcS variables
33+
. /lib/init/vars.sh
34+
35+
# Define LSB log_* functions.
36+
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
37+
# and status_of_proc is working.
38+
. /lib/lsb/init-functions
39+
40+
if [ "$PNOR_DEVICE" ]
41+
then
42+
PNOR_OPTS="--pnor $PNOR_DEVICE"
43+
fi
44+
45+
[ "$OPAL_PRD_ENABLED" = "true" -o "$OPAL_PRD_ENABLED" = "1" ] || exit 0
46+
47+
#
48+
# Function that starts the daemon/service
49+
#
50+
do_start()
51+
{
52+
# Return
53+
# 0 if daemon has been started
54+
# 1 if daemon was already running
55+
# 2 if daemon could not be started
56+
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
57+
|| return 1
58+
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
59+
$PNOR_OPTS $DAEMON_ARGS \
60+
|| return 2
61+
}
62+
63+
#
64+
# Function that stops the daemon/service
65+
#
66+
do_stop()
67+
{
68+
# Return
69+
# 0 if daemon has been stopped
70+
# 1 if daemon was already stopped
71+
# 2 if daemon could not be stopped
72+
# other if a failure occurred
73+
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
74+
RETVAL="$?"
75+
[ "$RETVAL" = 2 ] && return 2
76+
# Many daemons don't delete their pidfiles when they exit.
77+
rm -f $PIDFILE
78+
return "$RETVAL"
79+
}
80+
81+
case "$1" in
82+
start)
83+
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
84+
do_start
85+
case "$?" in
86+
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
87+
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
88+
esac
89+
;;
90+
stop)
91+
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
92+
do_stop
93+
case "$?" in
94+
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
95+
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
96+
esac
97+
;;
98+
status)
99+
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
100+
;;
101+
#reload|force-reload)
102+
#
103+
# If do_reload() is not implemented then leave this commented out
104+
# and leave 'force-reload' as an alias for 'restart'.
105+
#
106+
#log_daemon_msg "Reloading $DESC" "$NAME"
107+
#do_reload
108+
#log_end_msg $?
109+
#;;
110+
restart|force-reload)
111+
log_daemon_msg "Restarting $DESC" "$NAME"
112+
do_stop
113+
case "$?" in
114+
0|1)
115+
do_start
116+
case "$?" in
117+
0) log_end_msg 0 ;;
118+
1) log_end_msg 1 ;; # Old process is still running
119+
*) log_end_msg 1 ;; # Failed to start
120+
esac
121+
;;
122+
*)
123+
# Failed to stop
124+
log_end_msg 1
125+
;;
126+
esac
127+
;;
128+
*)
129+
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
130+
exit 3
131+
;;
132+
esac
133+
134+
:

debian/opal-prd.install

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
debian/opal-prd.socket lib/systemd/system/
2+
debian/opal-prd.service lib/systemd/system/
3+
usr/sbin/opal-prd usr/sbin/

debian/opal-prd.service

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=OPAL PRD daemon
3+
Requires=opal-prd.socket
4+
5+
[Service]
6+
StandardInput=socket
7+
ExecStart=/usr/sbin/opal-prd
8+
9+
[Install]
10+
WantedBy=multi-user.target

debian/opal-prd.socket

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Unit]
2+
Description=OPAL PRD Listen Socket
3+
4+
[Socket]
5+
ListenStream=/run/opal-prd-control
6+
7+
[Install]
8+
WantedBy=sockets.target

debian/opal-prd.upstart

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# opal-prd - OPAL Processor Recovery Diagnostics daemon
2+
3+
description "OPAL PRD daemon"
4+
5+
start on runlevel [2345]
6+
stop on runlevel [!2345]
7+
8+
respawn
9+
10+
exec opal-prd --pnor /dev/mtd0

debian/opal-utils.docs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README

debian/opal-utils.install

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/sbin/opal-gard usr/sbin/

debian/patches/series

Whitespace-only changes.

debian/rules

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
4+
# Uncomment this to turn on verbose mode.
5+
export DH_VERBOSE=1
6+
7+
%:
8+
dh $@
9+
10+
override_dh_auto_build:
11+
make -C external/opal-prd/
12+
make -C external/gard/
13+
14+
override_dh_auto_install:
15+
make -C external/opal-prd/ prefix=/usr DESTDIR=../../debian/tmp/ install
16+
make -C external/gard/ prefix=/usr DESTDIR=../../debian/tmp/ install

debian/skiboot.doc-base.EX

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Document: skiboot
2+
Title: Debian skiboot Manual
3+
Author: <insert document author here>
4+
Abstract: This manual describes what skiboot is
5+
and how it can be used to
6+
manage online manuals on Debian systems.
7+
Section: unknown
8+
9+
Format: debiandoc-sgml
10+
Files: /usr/share/doc/skiboot/skiboot.sgml.gz
11+
12+
Format: postscript
13+
Files: /usr/share/doc/skiboot/skiboot.ps.gz
14+
15+
Format: text
16+
Files: /usr/share/doc/skiboot/skiboot.text.gz
17+
18+
Format: HTML
19+
Index: /usr/share/doc/skiboot/html/index.html
20+
Files: /usr/share/doc/skiboot/html/*.html

debian/source/format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

0 commit comments

Comments
 (0)