debian/0000755000000000000000000000000012147127406007172 5ustar debian/copyright0000644000000000000000000000216012147127301011116 0ustar 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'. debian/rules0000755000000000000000000000406212147127301010246 0ustar #!/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 debian/changelog0000644000000000000000000000701712147127406011051 0ustar smcroute (0.95-2) unstable; urgency=low * Switch to dpkg-source 3.0 (quilt) format for easier patch maintenance. * Added patch 01_fix_segfault.patch to fix a NULL pointer dereferencing in interface vector initialization (closes: #707793, LP: #1043688). -- Micha Lenk Wed, 22 May 2013 13:41:51 +0200 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 debian/smcroute.dirs0000644000000000000000000000001112147127301011700 0ustar usr/sbin debian/source/0000755000000000000000000000000012147127354010474 5ustar debian/source/format0000644000000000000000000000001412147127354011702 0ustar 3.0 (quilt) debian/smcroute.init0000644000000000000000000000347312147127301011721 0ustar #! /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 debian/startup.sh0000644000000000000000000000021312147127301011216 0ustar #!/bin/sh # This script is executed at startup by /etc/init.d/smcroute # # Add your calls to smcroute to setup your multicast routes here debian/patches/0000755000000000000000000000000012147127354010623 5ustar debian/patches/series0000644000000000000000000000002612147127354012036 0ustar 01_fix_segfault.patch debian/patches/01_fix_segfault.patch0000644000000000000000000000163412147127354014630 0ustar Description: Fixed a segfault caused by dereferencing a NULL pointer Author: Micha Lenk Bug-Debian: http://bugs.debian.org/707793 Bug-Ubuntu: https://launchpad.net/bugs/1043688 Forwarded: not-needed, fixed upstream by more intrusive code changes Last-Update: 2013-05-14 --- smcroute-0.95.orig/src/ifvc.c +++ smcroute-0.95/src/ifvc.c @@ -50,12 +50,13 @@ void buildIfVc() } for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) { + /* Skip interface without internet address */ + if (ifa->ifa_addr == NULL) continue; + int family = ifa->ifa_addr->sa_family; /* Skip non-IPv4 and non-IPv6 interfaces */ if ((family != AF_INET) && (family != AF_INET6)) continue; - /* Skip interface without internet address */ - if (ifa->ifa_addr == NULL) continue; /* Copy data from interface iterator 'ifa' */ strncpy(IfDescEp->Name, ifa->ifa_name, sizeof(IfDescEp->Name)); debian/compat0000644000000000000000000000000212147127301010362 0ustar 5 debian/control0000644000000000000000000000121012147127301010561 0ustar 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. debian/watch0000644000000000000000000000027712147127301010223 0ustar # 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