--- smcroute-0.95.orig/debian/startup.sh +++ smcroute-0.95/debian/startup.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# This script is executed at startup by /etc/init.d/smcroute +# +# Add your calls to smcroute to setup your multicast routes here + --- smcroute-0.95.orig/debian/compat +++ smcroute-0.95/debian/compat @@ -0,0 +1 @@ +5 --- smcroute-0.95.orig/debian/rules +++ smcroute-0.95/debian/rules @@ -0,0 +1,85 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + cd src; ./configure --prefix=/usr + touch configure-stamp + +build-indep: build-stamp +build-arch: build-stamp +build-stamp: configure + dh_testdir + + # Add here commands to compile the package. + $(MAKE) -C src all CFLAGS="$(CFLAGS)" + + touch build-stamp + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f src/Makefile ] || $(MAKE) -C src clean + rm -vf src/config.h src/config.log src/config.status src/Makefile configure-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/smcroute. + cp src/smcroute $(CURDIR)/debian/smcroute/usr/sbin + cp src/mcsender $(CURDIR)/debian/smcroute/usr/sbin + mkdir -p $(CURDIR)/debian/smcroute/etc/smcroute + cp debian/startup.sh $(CURDIR)/debian/smcroute/etc/smcroute + chmod +x $(CURDIR)/debian/smcroute/etc/smcroute/startup.sh + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installinit + dh_installman doc/smcroute.8 doc/mcsender.8 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: configure build build-arch build-indep clean binary-indep binary-arch binary install --- smcroute-0.95.orig/debian/watch +++ smcroute-0.95/debian/watch @@ -0,0 +1,7 @@ +# use uscan(1) +version=3 + +# Full-site-with-pattern [Version [Action]] +http://alioth.debian.org/frs/?group_id=30986 \ + https://alioth.debian.org/frs/download.php/.*/smcroute-(.*)\.tar\.gz + --- smcroute-0.95.orig/debian/control +++ smcroute-0.95/debian/control @@ -0,0 +1,17 @@ +Source: smcroute +Section: net +Priority: extra +Maintainer: Micha Lenk +Uploaders: Julien BLACHE +Build-Depends: debhelper (>= 5) +Standards-Version: 3.9.2 +Homepage: https://alioth.debian.org/projects/smcroute/ + +Package: smcroute +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: static multicast router daemon + SMCRoute is a command line tool to manipulate the multicast routes of the + Linux kernel. It can be used as an alternative to dynamic multicast routers + like pimd or xorp in situations where static multicast routes should be + maintained and/or no proper IGMP signaling exists. --- smcroute-0.95.orig/debian/smcroute.dirs +++ smcroute-0.95/debian/smcroute.dirs @@ -0,0 +1 @@ +usr/sbin --- smcroute-0.95.orig/debian/copyright +++ smcroute-0.95/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Julien BLACHE on +Thu, 1 Jun 2006 11:56:04 +0200. + +It was downloaded from: + +Copyright Holders: + Copyright (C) 2001-2005 Carsten Schill + Copyright (C) 2006 Julien BLACHE + +License: + + This package 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; either version 2 of the License, or + (at your option) any later version. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- smcroute-0.95.orig/debian/smcroute.init +++ smcroute-0.95/debian/smcroute.init @@ -0,0 +1,72 @@ +#! /bin/sh +# +### BEGIN INIT INFO +# Provides: smcroute +# Required-Start: $syslog $local_fs $network $remote_fs +# Required-Stop: $syslog $local_fs $network $remote_fs +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Static multicast router daemon +# Description: SMCRoute is a tool to manipulate the multicast routes +# of the Linux kernel. It can be used as an alternative +# to dynamic multicast routers like mrouted in situation +# where static multicast routes should be maintained +# and/or no proper IGMP signaling exists. +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/smcroute +DAEMON_OPTS=-d +NAME=smcroute +DESC="static multicast router daemon" + +test -x $DAEMON || exit 0 + +# Include smcroute defaults if available +if [ -f /etc/default/smcroute ] ; then + . /etc/default/smcroute +fi + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet \ + --exec $DAEMON -- $DAEMON_OPTS + if [ -x /etc/smcroute/startup.sh ]; then + /etc/smcroute/startup.sh + fi + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + $DAEMON -k || true + echo "$NAME." + ;; + restart|force-reload) + # + # 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: " + $DAEMON -k || true + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + if [ -x /etc/smcroute/startup.sh ]; then + /etc/smcroute/startup.sh + fi + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- smcroute-0.95.orig/debian/changelog +++ smcroute-0.95/debian/changelog @@ -0,0 +1,102 @@ +smcroute (0.95-1) unstable; urgency=low + + * New upstream version, added support for FreeBSD + * debian/control: + - Changed priority from 'optional' to 'extra' (see #609864). + - Bump Standards-Version to 3.9.2 (no changes). + - Swapped Maintainer and Uploader. + + Fixed Lintian errors/warnings: + * debian/smcroute.init: Added LSB dependencies on $remote_fs. + * debian/rules: Added recommended build-arch and build-indep targets. + + -- Micha Lenk Mon, 08 Aug 2011 20:08:48 +0200 + +smcroute (0.94.1-1) unstable; urgency=low + + * New upstream release + + fixed IPv6 related startup problem of smcroute (closes: #564881). + * Added debian/watch file with new download location (closes: #554164). + + -- Micha Lenk Wed, 13 Jan 2010 12:17:30 +0100 + +smcroute (0.94-1) unstable; urgency=low + + * New upstream release, supports IPv6 now (closes: #551209). + * Adapted debian/rules to new build system. + * Dropped debian specific manpage for mcsender and install the one now + provided by upstream. + * debian/control: + + Added myself to Uploaders + + Added Homepage field + + Bump Standards-Version to 3.8.3 (no changes). + + -- Micha Lenk Mon, 02 Nov 2009 09:54:51 +0100 + +smcroute (0.93d-4) unstable; urgency=low + + * debian/control: + + Bump Standards-Version to 3.7.3 (no changes). + + -- Julien BLACHE Sat, 01 Mar 2008 16:39:57 +0100 + +smcroute (0.93d-3) unstable; urgency=low + + * debian/control: + + Do not mention the obsolete mrouted package in the long description, + instead tell about pimd and xorp (closes: #439263). + + -- Julien BLACHE Thu, 23 Aug 2007 20:20:39 +0200 + +smcroute (0.93d-2) unstable; urgency=low + + * debian/rules: + + Do not ignore errors from make clean. + * debian/compat, debian/control: + + Upgrade to DH_COMPAT 5. + * debian/smcroute.init: + + Add LSB header. + + -- Julien BLACHE Thu, 02 Aug 2007 18:48:42 +0200 + +smcroute (0.93d-1) unstable; urgency=low + + * New upstream release. + + Patches dropped, merged upstream. + * debian/control: + + Drop dpatch build-dependency. + * debian/copyright: + + Update the copyright holders. + + -- Julien BLACHE Sun, 9 Jul 2006 18:51:45 +0200 + +smcroute (0.92-3) unstable; urgency=low + + * Switch to dpatch. + * debian/control: + + Build-Depends on dpatch. + * debian/rules: + + Use dpatch. + * debian/patches/01_build_fixes.dpatch: + + Added; various build fixes (missing includes, namespace clashes, ...). + * debian/patches/02_daemon_init.dpatch: + + Added; call init functions in the parent so we can return an error code + to the initscript when something goes wrong. + + -- Julien BLACHE Sun, 4 Jun 2006 11:41:29 +0200 + +smcroute (0.92-2) unstable; urgency=low + + * src/smcroute.c, src/syslog.c: + + Fixed smcroute so that an error code is returned if the daemon fails to + start, instead of always returning 0. That way, the initscript can now + fail. + + -- Julien BLACHE Sun, 4 Jun 2006 10:34:02 +0200 + +smcroute (0.92-1) unstable; urgency=low + + * Initial release (closes: #369785). + + -- Julien BLACHE Thu, 1 Jun 2006 13:09:15 +0200 +