--- flamethrower-0.1.8.orig/HOWTO +++ flamethrower-0.1.8/HOWTO @@ -2,7 +2,8 @@ in the SystemImager manual. A stand-alone "Flamethrower HOWTO" will be along shortly. -You can find the Official SystemImager manual here: http://www.systemimager.org/ +You can find the Official SystemImager manual at: http://www.systemimager.org, +or in the systemimager-doc package. Cheers, -Brian --- flamethrower-0.1.8.orig/README +++ flamethrower-0.1.8/README @@ -3,7 +3,7 @@ # # Copyright (C) 2003 Brian Elliott Finley # -# $Id: README 32 2003-07-01 03:54:42Z dannf $ +# $Id: README 60 2006-04-18 23:07:43Z dannf $ # What it is: @@ -16,7 +16,7 @@ Notable characteristics: - 1) Works with entire directory heirarchies of files, not just single files. + 1) Works with entire directory hierarchies of files, not just single files. 2) Uses a server configuration file that takes module entries that are similar to those used by rsyncd.conf. --- flamethrower-0.1.8.orig/etc/flamethrower.conf +++ flamethrower-0.1.8/etc/flamethrower.conf @@ -1,9 +1,14 @@ +############################################################################### +### IF YOU ARE TRYING TO CONFIGURE FLAMETHROWER FOR USE WITH SYSTEMIMAGER ### +### YOU ARE LOOKING AT THE WRONG FILE - USE THE CONFIG IN /etc/systemimager ### +############################################################################### + # # "Flamethrower" # # Copyright (C) 2003 Bald Guy Software # -# $Id: flamethrower.conf 56 2006-01-24 02:08:52Z bli $ +# $Id: flamethrower.conf 59 2006-04-18 23:05:44Z dannf $ # # NOTE: For additional details on many of these settings, see # "man udp-sender". --- flamethrower-0.1.8.orig/etc/init.d/flamethrower-server +++ flamethrower-0.1.8/etc/init.d/flamethrower-server @@ -16,13 +16,12 @@ # Support for LSB compliant init system: ### BEGIN INIT INFO # Provides: flamethrowerd -# Required-Start: $network $syslog -# Required-Stop: -# Default-Start: 3 5 -# Default-Stop: 0 1 2 6 +# Required-Start: $remote_fs $syslog $network +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 # Short-Description: Daemon for multicast file distribution # Description: Daemon for multicast file distribution -# ### END INIT INFO kill_em_all() { --- flamethrower-0.1.8.orig/debian/compat +++ flamethrower-0.1.8/debian/compat @@ -0,0 +1 @@ +5 --- flamethrower-0.1.8.orig/debian/changelog +++ flamethrower-0.1.8/debian/changelog @@ -0,0 +1,48 @@ +flamethrower (0.1.8-3) unstable; urgency=low + + * Fix runlevels in LSB section of initscript and add dependency + on syslog (Closes: #542283). Thanks to Petter Reinholdtsen for + his work here. + * Fix build failure caused by change in MakeMaker + * Update Standards-Version to 3.8.3 + * Use debhelper 5 & add ${misc:Depends} + + -- dann frazier Wed, 19 Aug 2009 16:01:03 -0600 + +flamethrower (0.1.8-2) unstable; urgency=low + + * Fix /tmp symlink attack vector. Closes: #506350 (CVE-2008-5141) + * Rebuilding with current toolchain would cause executables to + be installed in /usr/local/bin. Fix this by supplying an + appropriate SITEPREFIX. + * Don't package /usr/lib/flamethrower/auto subtree + * Lintian cleanup: + - Remove bogus (empty) line in lsb section of initscript + - Use $(CURDIR) instead of $(PWD) in rules file, suggested by lintian + - Don't ignore clean errors from make + - Update Standards-Version to 3.8.0 + - Swap binary-arch/binary-indep rules + - List debhelper under Build-Depends instead of Build-Depends-Indep + + -- dann frazier Fri, 21 Nov 2008 10:46:08 -0700 + +flamethrower (0.1.8-1) unstable; urgency=low + + * New upstream release + * Fix typo in description. Closes: #363414 + * Update Standard-Version to 3.6.2.2 + + -- dann frazier Tue, 18 Apr 2006 17:11:22 -0600 + +flamethrower (0.1.6-2) unstable; urgency=low + + * add dependency on libappconfig-perl. Closes: #233212 + * make non-native + + -- dann frazier Tue, 17 Feb 2004 09:50:30 -0700 + +flamethrower (0.1.6-1) unstable; urgency=low + + * Initial release + + -- dann frazier Tue, 18 Nov 2003 22:00:02 -0700 --- flamethrower-0.1.8.orig/debian/postinst +++ flamethrower-0.1.8/debian/postinst @@ -0,0 +1,43 @@ +#!/bin/sh +# postinst script for flamethrower +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + # part of fix for 542283 + if [ "$2" != "" ] && dpkg --compare-versions "$2" lt 0.1.8-3; then + update-rc.d -f flamethrower remove >/dev/null + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- flamethrower-0.1.8.orig/debian/docs +++ flamethrower-0.1.8/debian/docs @@ -0,0 +1,3 @@ +README +HOWTO +CREDITS --- flamethrower-0.1.8.orig/debian/control +++ flamethrower-0.1.8/debian/control @@ -0,0 +1,27 @@ +Source: flamethrower +Section: admin +Priority: optional +Maintainer: dann frazier +Build-Depends: debhelper (>> 5) +Standards-Version: 3.8.3 + +Package: flamethrower +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, udpcast, libappconfig-perl +Description: Multicast file distribution utility + Flamethrower is intended to be an easy to use multicast file distribution + system. It was created to add multicast install capabilities to + SystemImager, but was designed to be fully functional as a stand-alone + package. + . + Notable characteristics: + 1) Works with entire directory hierarchies of files, not just single files. + 2) Uses a server configuration file that takes module entries that are + similar to those used by rsyncd.conf. + 3) Flamethrower is an on-demand system. The multicast of a module is + initiated when a client connects, but waits MIN_WAIT (conf file) for + other clients to connect. If other clients try to connect after a + cast has been initiated, they simply wait until that cast has finished, + and catch the next one when it begins. + 4) The udpcast package is used as the multicast transport, and offers a + gob and a half of tuning parameters. --- flamethrower-0.1.8.orig/debian/rules +++ flamethrower-0.1.8/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PREFIX = $(tmp)/usr +pkg = flamethrower +tmp = $(CURDIR)/debian/$(pkg) + +configure: configure-stamp +configure-stamp: + dh_testdir + perl Makefile.PL + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + rm -f build-stamp configure-stamp + [ ! -f Makefile ] || $(MAKE) realclean + -rm debian/flamethrower.init + dh_clean + +install: build + dh_testdir + -dh_testroot + dh_installdirs + $(MAKE) install PREFIX="$(PREFIX)" CONFDIR="$(tmp)" SITEPREFIX="$(PREFIX)" INSTALLSITEARCH="$(PREFIX)" + + # upstream installs this as executable + chmod 644 $(tmp)/usr/lib/flamethrower/*.pm + + # this directory tree is empty + rm -rf $(tmp)/usr/perllocal.pod + rm -rf $(tmp)/usr/auto + + # let debhelper install this for us + rm -rf $(tmp)/etc/init.d + cp etc/init.d/flamethrower-server debian/$(pkg).init + + mkdir -p $(tmp)/var/state/flamethrower + mkdir -p $(tmp)/var/lib/flamethrower + mkdir -p $(tmp)/var/log/flamethrower + +# Build architecture-independent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdebconf + dh_perl + dh_installdocs + dh_installchangelogs #CHANGELOG + dh_installinit + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- flamethrower-0.1.8.orig/debian/copyright +++ flamethrower-0.1.8/debian/copyright @@ -0,0 +1,12 @@ +This package was debianized by dann frazier on +Tue, 18 Nov 2003 21:55:23 -0700. + +It was downloaded from http://sf.net/projects/systemimager + +Upstream Maintainer: Brian Finley + +Flamethrower is available under the terms of the GNU General Public License, +Version 2. + +On Debian GNU/Linux Systems, the full text of the GPL can be found in: + /usr/share/common-licenses/GPL-2 --- flamethrower-0.1.8.orig/bin/flamethrower +++ flamethrower-0.1.8/bin/flamethrower @@ -9,6 +9,7 @@ use strict; use File::Path; +use File::Temp; use Getopt::Long; use lib "/usr/lib/flamethrower"; @@ -23,7 +24,7 @@ my $version_number = "INS_VERSION"; my $conf_file = '/etc/flamethrower/flamethrower.conf'; my $transport = "udp-receiver"; -my $tmp_dir = "/tmp/.flamethrower.$$"; +my $tmp_dir = File::Temp::tempdir(); my $version_info = <<"EOF"; @@ -283,13 +284,16 @@ # my $udp_cmd; my $tar_cmd; + my $tar_fh; + my $tar_file; + ($tar_fh, $tar_file) = File::Temp::tempfile(); if($verbose) { - $udp_cmd = "udp-receiver $udp_receiver_options --file /tmp/multicast.tar.$$"; - $tar_cmd = "tar $tar_opts -C $dir -f /tmp/multicast.tar.$$"; + $udp_cmd = "udp-receiver $udp_receiver_options --file $tar_file"; + $tar_cmd = "tar $tar_opts -C $dir -f $tar_file"; } else { - $udp_cmd = "udp-receiver $udp_receiver_options --file /tmp/multicast.tar.$$ 2>/dev/null"; - $tar_cmd = "tar $tar_opts -C $dir -f /tmp/multicast.tar.$$"; + $udp_cmd = "udp-receiver $udp_receiver_options --file $tar_file 2>/dev/null"; + $tar_cmd = "tar $tar_opts -C $dir -f $tar_file"; } print "$udp_cmd\n" if($verbose); @@ -298,7 +302,8 @@ print "$tar_cmd\n" if($verbose); !system($tar_cmd) or die("FAILED: $tar_cmd"); - unlink("/tmp/multicast.tar.$$"); + close $tar_fh; + unlink("$tar_file"); } --- flamethrower-0.1.8.orig/bin/flamethrowerd +++ flamethrower-0.1.8/bin/flamethrowerd @@ -5,7 +5,7 @@ # Copyright (C) 2003 Bald Guy Software # Brian Elliott Finley # -# $Id: flamethrowerd 45 2003-11-17 00:12:55Z brianfinley $ +# $Id: flamethrowerd 59 2006-04-18 23:05:44Z dannf $ # $0 = "flamethrowerd"; @@ -343,7 +343,7 @@ # Create our directory directory, if necessary. my $dir = $ft_config->get("flamethrower_directory_dir"); if ( ! -e $dir ) { - mkdir("$dir", 0755) or die("Couddn't mkdir $dir!"); + mkdir("$dir", 0755) or die("Couldn't mkdir $dir!"); } unlink <$dir/*>;