aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2020-07-26 11:57:22 +0200
committerHelge Deller <deller@gmx.de>2020-07-26 11:57:22 +0200
commit28b8167605d22a6cd641a4607e689c9139cae67f (patch)
treec8f18da667dd6bdab37cbd2f508b2977df62cfbd /debian
downloadrbootd-28b8167605d22a6cd641a4607e689c9139cae67f.tar.gz
rbootd: Initial import of rbootd sourcev2.0-11
Source import of the rbootd_2.0-11 debian package. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog151
-rw-r--r--debian/conffiles3
-rw-r--r--debian/control17
-rw-r--r--debian/copyright20
-rw-r--r--debian/default8
-rw-r--r--debian/dirs5
-rw-r--r--debian/postinst28
-rw-r--r--debian/postrm10
-rw-r--r--debian/prerm21
-rw-r--r--debian/rbootd.init.d83
-rwxr-xr-xdebian/rules103
11 files changed, 449 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..74d52e4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,151 @@
+rbootd (2.0-11) unstable; urgency=medium
+
+ * QA upload.
+ * Set Debian QA Group as maintainer. (See #934433)
+ * debian/control:
+ - Bumped Standards-Version to 4.5.0.
+ - Changed Priority from extra to optional.
+
+ -- Paulo Henrique Hebling Correa <contato@p2hc.com.br> Tue, 12 May 2020 22:26:12 -0300
+
+rbootd (2.0-10) unstable; urgency=low
+
+ * New-Maintainer upload (closes: Bug#465907)
+ * Added support for nostrip build option (closes: Bug#437883)
+ * Improved packaging
+ * Let rbootd decide the interface to use (closes: Bug#474709)
+ * Added support for default file with interface setting
+ * Adjusted changelog
+ * Code improvements
+ . Avoid trigraph
+ . Include <time.h> instead of <sys/time.h> for time()
+ . Removed obfuscated C line that was supposed to be dropped in 2.0-4
+
+ -- Martin Schulze <joey@infodrom.org> Mon, 07 Apr 2008 17:20:32 +0200
+
+rbootd (2.0-9) unstable; urgency=low
+
+ * QA upload.
+ * Set maintainer to Debian QA Group
+ * Added LSB formatted dependency info in init.d script (closes: #469713)
+ * Updated standards version
+
+ -- Peter Eisentraut <petere@debian.org> Wed, 02 Apr 2008 11:27:50 +0200
+
+rbootd (2.0-8.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Use invoke-rc.d; closes: #367729.
+ * Remove bashisms from debian/rules; closes: #379635.
+
+ -- Robert S. Edmonds <edmonds@debian.org> Sun, 02 Sep 2007 02:04:31 -0400
+
+rbootd (2.0-8) unstable; urgency=low
+
+ * Removed debian/changelog.{rej,orig}
+ * Corrected PF_SOCKET to PF_PACKET in pcap.c
+
+ -- Alan Bain <afrb2@debian.org> Mon, 19 Sep 2005 22:18:57 +0100
+
+rbootd (2.0-7) unstable; urgency=low
+
+ * Changed to use PF_PACKET socket instead of SOCK_PACKET
+ * updated copyright to point to common-licenses
+ * removed /usr/doc symlink creation
+ * updated debian standards
+
+ -- Alan Bain <afrb2@debian.org> Tue, 13 Sep 2005 23:20:23 +0100
+
+rbootd (2.0-6.1) unstable; urgency=low
+
+ * Non maintainer upload
+ * Rebuilt with new libpcap to remove dependency on libpcap0, which I
+ got removed from unstable by accident. Sorry about this...
+
+ -- Torsten Landschoff <torsten@debian.org> Sat, 10 Aug 2002 11:37:29 +0200
+
+rbootd (2.0-6) unstable; urgency=low
+
+ * Added build-depends on libpcap-dev closing bug #84507
+ * Corrected upstream source files
+
+ -- Alan Bain <afrb2@debian.org> Tue, 3 Jul 2001 16:00:00 +0100
+
+rbootd (2.0-5) unstable; urgency=low
+
+ * Fixed a mistake in the control file
+ * Package (2.0-3) didn't print a warning when upgraded to 2.0-4;
+ this has now been corrected.
+ * README no longer refers to /usr/local/lib
+ * URL in README updated (closing bug #49456)
+ * Package now suggests bootparamd and nfs-server rather than
+ netstd (closing bug #49384)
+
+ -- Alan Bain <afrb2@debian.org> Sat, 4 Nov 1999 20:00:00 +0000
+
+rbootd (2.0-4) unstable; urgency=low
+
+ * Updated the control file to cover PA-RISC workstations
+ * Fixed a potential buffer overrun problem
+ * Incorporated a patch from Peter Maydell removing obfuscated C line
+ * Corrected an error in the manpage
+ * Removed a skeleton file accidentally left in distribution
+ * Removed creation of /usr/local/lib/rbootd directory
+ * postinst now displays a message about the move
+ * Moved documentation to /usr/share directories
+
+ -- Alan Bain <afrb2@debian.org> Tue, 23 Nov 1999 14:05:00 +0000
+
+rbootd (2.0-3.2) unstable; urgency=low
+
+ * Non-maintainer release
+ * (Joey Added rbootd-singlefile.diff from The Puffin Group / PA-RISC
+ porters from the srpm as found at
+ ftp://puffin.external.hp.com/pub/parisc/binaries/SRPMS/rbootd-2.0-2.src.rpm
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de> Mon, 25 Oct 1999 02:41:10 +0200
+
+rbootd (2.0-3.1) unstable; urgency=low
+
+ * Non-maintainer release
+ * Extended changelog
+ * Changed from /usr/local/lib/rbootd to /var/lib/rbootd (closes:
+ Bug#47618)
+ * Added that directory to .deb files
+
+ -- Martin Schulze <joey@finlandia.infodrom.north.de> Sun, 24 Oct 1999 19:23:12 +0200
+
+rbootd (2.0-3) unstable; urgency=low
+
+ * Added README file provided by Peter Maydell which gives
+ useful instructions on how to set up rbootd on a debian
+ system.
+
+ -- Alan Bain <afrb2@cam.ac.uk> Tue, 2 Feb 1999 18:00:00 +0000
+
+rbootd (2.0-2) unstable; urgency=low
+
+ * Changed init script name to rbootd rather than rbootd_init
+ * Moved bootfile location to /usr/local/lib/rboot rather than
+ /export/hp/root (!)
+ * compile options now include -g
+ * strip binary in situ rather than before installing
+ * sequence no is 20 rather than 35
+ * copyright now refers to BSD copyright
+ * capitalisation fixed
+ * manpage paths fixed
+
+ -- Alan Bain <afrb2@cam.ac.uk> Sun, 21 Jun 1998 01:30:00 +0100
+
+rbootd (2.0-1) unstable; urgency=low
+
+ * Created package for first time from files on Peter Maydell's
+ website http://www.chiark.greenend.org.uk/~pmaydell
+ * Created scripts to start and stop rbootd with a null config
+ file to start with.
+
+ -- Alan Bain <afrb2@cam.ac.uk> Mon, 15 Jun 1998 10:00:00 +0100
+
+Local variables:
+mode: debian-changelog
+End:
diff --git a/debian/conffiles b/debian/conffiles
new file mode 100644
index 0000000..2f64592
--- /dev/null
+++ b/debian/conffiles
@@ -0,0 +1,3 @@
+/etc/rbootd.conf
+/etc/default/rbootd
+/etc/init.d/rbootd
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..9ec3f11
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: rbootd
+Section: net
+Priority: optional
+Maintainer: Debian QA Group <packages@qa.debian.org>
+Standards-Version: 4.5.0
+Build-Depends: libpcap-dev
+
+Package: rbootd
+Architecture: any
+Depends: netbase (>=3.00), ${shlibs:Depends}
+Suggests: bootparamd,nfs-server
+Description: Remote Boot Daemon
+ The rbootd daemon is used for booting some HP workstations
+ over the network (such as the 9000/300 and 9000/400 series).
+ It can also boot PA RISC workstations. It handles the first
+ stage of the boot sequence and can be used to start booting
+ Linux, NetBSD or HPUX.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2d4b6ee
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 1988, 1992 The University of Utah and the Center
+ * for Software Science (CSS).
+ * Copyright (c) 1992, 1993
+ * The Regents of the University of California. All rights reserved.
+ * Sections Copyright (c) 1996,1998 Peter Maydell
+ *
+ * This code is derived from software contributed to Berkeley by
+ * the Center for Software Science of the University of Utah Computer
+ * Science Department. CSS requests users of this software to return
+ * to css-dist@cs.utah.edu any improvements that they make and grant
+ * CSS redistribution rights.
+ */
+
+rbootd may be distributed under the terms of the BSD license,
+found on Debian systems in the file /usr/share/common-licenses/BSD.
+
+The source of the Debian package is managed using CVS. It is publically
+available at <http://cvs.infodrom.org/rbootd/?cvsroot=debian> or as
+<:pserver:anonymous@cvs.infodrom.org/var/cvs/debian/rbootd/>.
diff --git a/debian/default b/debian/default
new file mode 100644
index 0000000..04382b6
--- /dev/null
+++ b/debian/default
@@ -0,0 +1,8 @@
+#
+# Top configuration file for rbootd
+#
+
+#
+# To limit listening to a particular interface, mention it below
+#
+# IFACE="eth0"
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..f7b8422
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,5 @@
+usr/sbin
+etc/default
+etc/init.d
+usr/share/man/man8
+usr/share/doc/rbootd
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..afd7243
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# post install script for Debian GNU/Linux rbootd package
+
+set -e
+
+## install startup files
+update-rc.d rbootd defaults >/dev/null
+
+if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d rbootd stop
+ invoke-rc.d rbootd start
+else
+ /etc/init.d/rbootd stop
+ /etc/init.d/rbootd start
+fi
+
+if [ "$1" = "configure" ]; then
+ if [ ! -z $2 ]; then
+ if dpkg --compare-versions $2 le 2.0-3; then
+ echo "This version of rbootd now stores its boot images in /var/lib/rbootd"
+ echo "and not in /usr/local/lib/rbootd. Debian policy prevents the package"
+ echo "from making changes in /usr/local/lib, so you should move all your"
+ echo "boot files from there to /var/lib/rbootd; then run"
+ echo "/etc/init.d/rbootd restart"
+ fi
+ fi
+fi
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..4e6b513
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+# post removal script for the Debian GNU/Linux rbootd package
+
+set -e
+
+if [ $1 = "purge" ]
+then
+ update-rc.d rbootd remove >/dev/null
+fi
+
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 0000000..85d973e
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# pre remove script for Debian GNU/Linux rbootd package
+
+set -e
+
+if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d rbootd stop
+else
+ /etc/init.d/rbootd stop
+fi
+
+## Remove the local files dir if emtpy -- leave alone o/w
+test ! -d /usr/local/lib/rbootd || rmdir /usr/local/lib/rbootd || true
+
+
+## Remove the old doc directory
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/rbootd ]; then
+ rm -f /usr/doc/rbootd
+fi
+
diff --git a/debian/rbootd.init.d b/debian/rbootd.init.d
new file mode 100644
index 0000000..451b65e
--- /dev/null
+++ b/debian/rbootd.init.d
@@ -0,0 +1,83 @@
+#! /bin/sh
+
+### BEGIN INIT INFO
+# Provides: rbootd
+# Required-Start: $remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+### END INIT INFO
+
+# rbootd init file. Modified from Debian skeleton by
+# Alan Bain <afrb2@cam.ac.uk>.
+#
+# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
+# Modified for Debian GNU/Linux
+# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+#
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/rbootd
+NAME=rbootd
+DESC="remote boot daemon"
+
+test -f $DAEMON || exit 0
+
+test ! -r /etc/default/rbootd || . /etc/default/rbootd
+
+if [ -n "$IFACE" ]
+then
+ ARGS="-- -i $IFACE"
+fi
+
+set -e
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
+ --exec $DAEMON $ARGS
+ echo "$NAME."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/$NAME.pid \
+ --exec $DAEMON
+ echo "$NAME."
+ ;;
+ reload|force-reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ echo "Reloading $DESC configuration files."
+ start-stop-daemon --stop --oknodo --signal 1 --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON
+ ;;
+ restart)
+ #
+ # If the "reload" option is implemented, move the "force-reload"
+ # option to the "reload" entry above. If not, "force-reload" is
+ # just the same as "restart".
+ #
+ echo -n "Restarting $DESC: "
+ start-stop-daemon --stop --oknodo --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON
+ sleep 1
+ start-stop-daemon --start --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON $ARGS
+ echo "$NAME."
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..33305cc
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,103 @@
+#!/usr/bin/make -f
+# Sample debian.rules file - for GNU Hello (1.3).
+# Copyright 1994,1995 by Ian Jackson.
+
+# Modified to be rules for rbootd by Alan Bain 1998
+
+# I hereby give you perpetual unlimited permission to copy,
+# modify and relicense this file, provided that you do not remove
+# my name from the file itself. (I assert my moral right of
+# paternity under the Copyright, Designs and Patents Act 1988.)
+# This file may have to be extensively modified
+
+package=rbootd
+
+ARCH := $(shell dpkg --print-architecture)
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+CFLAGS = -g -O2 -Wall $(shell getconf LFS_CFLAGS)
+else
+CFLAGS = -O2 -Wall $(shell getconf LFS_CFLAGS)
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+STRIP = -s
+endif
+
+export BASEDIR=$(shell pwd)/debian/tmp
+
+## Note must use the special makefile to avoid needing BSD make
+
+build:
+ $(checkdir)
+ $(MAKE) -f Makefile.linux CFLAGS="$(CFLAGS)" rbootd
+ touch build
+
+clean:
+ $(checkdir)
+ $(MAKE) -f Makefile.linux clean
+ -rm -f build
+ -rm -rf debian/tmp debian/files* core debian/substvars
+
+binary-indep: checkroot build
+ $(checkdir)
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+# Install and strip rather than strip binary left here
+
+binary-arch: checkroot build
+ $(checkdir)
+ rm -rf debian/tmp
+ install -d debian/tmp
+ cd debian/tmp;install -d `cat ../dirs`
+ install -d ${BASEDIR}/DEBIAN
+ install -o root -g root -m 0755 $(STRIP) rbootd ${BASEDIR}/usr/sbin
+ install -o root -g root -m 0644 debian/default ${BASEDIR}/etc/default/rbootd
+ install -o root -g root -m 0755 debian/rbootd.init.d ${BASEDIR}/etc/init.d/rbootd
+ install -o root -g root -m 0644 etc-rbootd/rbootd.conf ${BASEDIR}/etc
+ install -o root -g root -m 0644 rbootd.8 ${BASEDIR}/usr/share/man/man8
+ @if [ -f ${BASEDIR}/usr/share/man/man8/rbootd.8 ]; then \
+ gzip -9v ${BASEDIR}/usr/share/man/man8/rbootd.8 ; \
+ fi
+
+ install -o root -g root -m 0644 README \
+ ${BASEDIR}/usr/share/doc/rbootd/README
+ @if [ -f ${BASEDIR}/usr/share/doc/rbootd/README ]; then \
+ gzip -9v ${BASEDIR}/usr/share/doc/rbootd/README ;\
+ fi
+ install -o root -g root -m 0644 debian/copyright \
+ ${BASEDIR}/usr/share/doc/rbootd/copyright
+ install -o root -g root -m 0644 debian/changelog \
+ ${BASEDIR}/usr/share/doc/rbootd/changelog.Debian
+
+ @if [ -f ${BASEDIR}/usr/share/doc/rbootd/changelog.Debian ]; then \
+ gzip -9v ${BASEDIR}/usr/share/doc/rbootd/changelog.Debian ; \
+ fi
+ install -o root -g root -m 0644 debian/conffiles \
+ ${BASEDIR}/DEBIAN
+ install -o root -g root -m 0755 debian/postinst debian/prerm debian/postrm \
+ ${BASEDIR}/DEBIAN
+ install -d ${BASEDIR}/var/lib/rbootd
+ dpkg-shlibdeps rbootd
+ dpkg-gencontrol -isp
+ chown -R root.root debian/tmp
+ chmod -R go-ws debian/tmp
+ dpkg --build debian/tmp ..
+
+define checkdir
+ test -f debian/rules
+endef
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+checkroot:
+ $(checkdir)
+ test root = "`whoami`"
+
+.PHONY: binary binary-arch binary-indep clean checkroot