--- rhnsd-5.0.4.orig/debian/changelog +++ rhnsd-5.0.4/debian/changelog @@ -0,0 +1,33 @@ +rhnsd (5.0.4-3) unstable; urgency=medium + + * [e5e07ddb] Add NMU that went missing. + + -- Bernd Zeimetz Thu, 16 Oct 2014 10:56:27 +0200 + +rhnsd (5.0.4-2) unstable; urgency=medium + + * [c8f696e3] Switching Maintainer/Uploaders + + -- Bernd Zeimetz Mon, 06 Oct 2014 21:31:53 +0200 + +rhnsd (5.0.4-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Mark rhnsd as linux-any. The rhn-client-tools package is no longer + available on !linux-any due to the removal of hal. + + -- Michael Biebl Sat, 17 May 2014 14:07:25 +0200 + +rhnsd (5.0.4-1) unstable; urgency=medium + + * [0f07ed76] Adding watch file. + * [6a7e6640] Merge tag 'upstream/5.0.4' + Upstream version 5.0.4 + + -- Bernd Zeimetz Sun, 27 Apr 2014 00:28:58 +0200 + +rhnsd (4.9.15-1) unstable; urgency=low + + * Initial release. + + -- Bernd Zeimetz Sun, 17 Jun 2012 13:50:04 +0200 --- rhnsd-5.0.4.orig/debian/compat +++ rhnsd-5.0.4/debian/compat @@ -0,0 +1 @@ +7 --- rhnsd-5.0.4.orig/debian/control +++ rhnsd-5.0.4/debian/control @@ -0,0 +1,17 @@ +Source: rhnsd +Section: admin +Priority: extra +Uploaders: Miroslav Suchý +Maintainer: Bernd Zeimetz +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.9.3 +Homepage: https://fedorahosted.org/spacewalk +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/spacewalk/rhnsd.git +Vcs-Git: git://anonscm.debian.org/collab-maint/spacewalk/rhnsd.git + +Package: rhnsd +Architecture: linux-any +Depends: ${shlibs:Depends}, ${misc:Depends}, rhn-client-tools +Description: Red Hat Update Agent + periodically runs rhn_check which will check for and execute queued + actions on Red Hat Network or Spacewalk servers. --- rhnsd-5.0.4.orig/debian/copyright +++ rhnsd-5.0.4/debian/copyright @@ -0,0 +1,34 @@ +rhnsd was downloaded from +https://fedorahosted.org/releases/s/p/spacewalk/ + + +Current Authors +--------------- + +Cristian Gafton + +Copyright +---------- + Copyright (c) 1999-2012 Red Hat, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + . + See /usr/share/common-licenses/GPL-2, or + for the terms of the latest version + of the GNU General Public License. + +The Debian packaging is + Copyright 2012 Bernd Zeimetz +and licensed under the same license as rhnsd, see above + --- rhnsd-5.0.4.orig/debian/rhnsd.init +++ rhnsd-5.0.4/debian/rhnsd.init @@ -0,0 +1,143 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: rhnsd +# Required-Start: $local_fs $network $remote_fs $named $time +# Required-Stop: $local_fs $network $remote_fs $named +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts the Red Hat Network Daemon +# Description: This is a daemon which handles the task of connecting +# periodically to the Red Hat Network servers to +# check for updates, notifications and perform system +# monitoring tasks according to the service level that +# this server is subscribed for. +### END INIT INFO + +# Author: Miroslav Suchy + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="Red Hat Network Daemon" +NAME=rhnsd +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.2-14) to ensure that this file is present +# and status_of_proc is working. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # rhnsd should delete pidfile on exit, but play safe side here + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + reload|force-reload) + log_daemon_msg "Reloading $DESC" "$NAME" + do_reload + log_end_msg $? + ;; + restart) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|status|restart|reload|force-reload}" >&2 + exit 3 + ;; +esac + +: --- rhnsd-5.0.4.orig/debian/rules +++ rhnsd-5.0.4/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +PACKAGENAME=$(strip $(shell dh_listpackages | head -1)) + +params=-f Makefile.rhnsd PLATFORM=deb PREFIX=$(CURDIR)/debian/$(PACKAGENAME) + + +override_dh_auto_clean: + $(MAKE) $(params) clean +override_dh_auto_build: + dh_auto_build -- $(params) +override_dh_auto_install: + $(MAKE) $(params) install + rm -rf $(CURDIR)/debian/$(PACKAGENAME)/etc/rc.d +override_dh_auto_test: + # nothing to test. + +%: + dh $@ + + --- rhnsd-5.0.4.orig/debian/watch +++ rhnsd-5.0.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://fedorahosted.org/releases/s/p/spacewalk/rhnsd-(.*)\.tar\.gz