debian/0000755000000000000000000000000012135752736007201 5ustar debian/fishpolld.init0000755000000000000000000000774611761644315012070 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: fishpolld # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: fishpolld's initscript # Description: Daemon that allows remote script's execution when triggered from the network ### END INIT INFO # Author: Andrea Veri # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin NAME=fishpolld DAEMON=/usr/sbin/$NAME 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 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # 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) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # #log_daemon_msg "Reloading $DESC" "$NAME" #do_reload #log_end_msg $? #;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # 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|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/fishpoke.10000644000000000000000000000153311761642752011075 0ustar .TH "fishpoke" 1 "May 25 2012" .SH NAME fishpoke \- trigger a poll immediately instead of waiting for the configured polling interval. .SH SYNOPSIS .nf .B fishpoke HOST[:PORT] TOPIC [SUBJECT...] .fi .br .B .SH DESCRIPTION The fishpoke program is used to trigger a poll immediately instead of waiting for the configured polling interval. This man page refers to the client for the Fishpolld server. .SH OPTIONS .TP .B \-h, \--help Shows this help message. .SH EXTRAS More information can be found by browsing the README file shipped with the package. .SH AUTHORS This manual page was written by Andrea Veri for the Debian GNU/Linux distribution. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. debian/compat0000644000000000000000000000000211761642720010372 0ustar 8 debian/changelog0000644000000000000000000000163512135752736011060 0ustar fishpoll (0.1.7-1) unstable; urgency=low * New upstream release. -- Andrea Veri Wed, 24 Apr 2013 14:53:27 +0200 fishpoll (0.1.6-4) unstable; urgency=low * Add the missing fishpoke/fishpolld manpages. * Remove fishpolld.init's DESC field. -- Andrea Veri Thu, 31 May 2012 12:12:19 +0200 fishpoll (0.1.6-3) unstable; urgency=low * Moved etc/fishpoll.d under fishpolld * Bump Standards-Version to 3.9.3 * Added DM-Upload-Allowed flag -- Fabrizio Regalli Mon, 27 Feb 2012 09:51:32 +0100 fishpoll (0.1.6-2) unstable; urgency=low * debian/control: - Arch set to all, we don't have any arch-dependent files to build. -- Andrea Veri Fri, 17 Feb 2012 14:29:08 +0100 fishpoll (0.1.6-1) unstable; urgency=low * Initial release. (Closes: #659159) -- Fabrizio Regalli Thu, 09 Feb 2012 17:05:40 +0100 debian/rules0000755000000000000000000000045311761642720010256 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PACKAGE = $(firstword $(shell dh_listpackages)) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ --with python2 override_dh_auto_build: $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr DESTDIR=$(CURDIR)/debian/tmp debian/fishpoke.dirs0000644000000000000000000000001011761642720011656 0ustar usr/bin debian/copyright0000644000000000000000000000222011761642720011123 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 Upstream-Name: Fishpoll Upstream-Contact: Owen Taylor Source: http://git.fishsoup.net/cgit/fishpoll/ Files: * Copyright: 2008, Owen Taylor License: GPL-2 Files: debian/* Copyright: 2011, Fabrizio Regalli License: GPL-2 License: GPL-2 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; version 2 dated June, 1991. . 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 full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/fishpolld.10000644000000000000000000000205711761642756011257 0ustar .TH "fishpolld" 1 "May 25 2012" .SH NAME fishpolld \- daemon that allows remote script's execution when triggered from the network .SH SYNOPSIS .nf .B fishpolld [OPTIONS] .fi .br .B .SH DESCRIPTION Fishpoll is meant to deal with a common situation. You have a data source (a version control repository, a database, etc). You have something built from that data source (a web site, say). When the data source changes, you want them to rebuild against the latest commits. .SH OPTIONS .B \-h, \--help Shows this help message. .TP .B \-d, \--debug Do not daemonize and log to stdout. .TP .B \--pid-file=PID_FILE Location to write PID of daemon. .TP .B \--handler-dir=HANDLER_DIR Directory to look for handlers in. .TP .B \--listen=HOST[:PORT] Address to listen on. .SH AUTHORS This manual page was written by Andrea Veri for the Debian GNU/Linux distribution. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. debian/patches/0000755000000000000000000000000011761642720010623 5ustar debian/patches/series0000644000000000000000000000003511761642720012036 0ustar 01-remove-line-Makefile.diff debian/patches/01-remove-line-Makefile.diff0000644000000000000000000000055711761642720015637 0ustar Description: removed last Makefile line for renaming init.d script manually Author: Fabrizio Regalli Forwarded: not-needed --- a/Makefile +++ b/Makefile @@ -5,4 +5,3 @@ install -m 0755 fishpoke $(DESTDIR)/usr/bin/fishpoke install -m 0755 fishpolld $(DESTDIR)/usr/sbin/fishpolld - install -m 0755 fishpoll.init $(DESTDIR)/etc/init.d/fishpoll debian/fishpoke.docs0000644000000000000000000000000711761642720011653 0ustar README debian/conf/0000755000000000000000000000000011761642720010121 5ustar debian/conf/fishpoke_file_sample0000644000000000000000000000072711761642720014222 0ustar #!/bin/bash # Fishpoll's example file: git hook for updating a specific folder remotely # On the remote server where the $FOLDER is hosted: PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" FOLDER="/srv/http/www.example.com/workdir" if [ -d "${FOLDER}" ]; then cd "${FOLDER}" else echo "Unable to access theme directory. Failing. \n" exit 1 fi # git pull # Where the GIT repository is hosted: fishpoke server-name fishpoll_file_sample debian/fishpolld.install0000644000000000000000000000002311761642720012543 0ustar fishpolld usr/sbin debian/fishpoke.manpages0000644000000000000000000000002211761642765012524 0ustar debian/fishpoke.1 debian/fishpoke.examples0000644000000000000000000000004111761642720012537 0ustar debian/conf/fishpoke_file_sample debian/source/0000755000000000000000000000000011761642720010474 5ustar debian/source/format0000644000000000000000000000001411761642720011702 0ustar 3.0 (quilt) debian/fishpolld.dirs0000644000000000000000000000004311761642720012040 0ustar usr/sbin etc/init.d etc/fishpoll.d debian/fishpolld.manpages0000644000000000000000000000002311761642761012675 0ustar debian/fishpolld.1 debian/control0000644000000000000000000000215111761642720010576 0ustar Source: fishpoll Section: net Priority: optional Maintainer: Fabrizio Regalli Uploaders: Andrea Veri Build-Depends: debhelper (>= 8), python (>= 2.4) Standards-Version: 3.9.3 DM-Upload-Allowed: yes Homepage: http://git.fishsoup.net/cgit/fishpoll/ Vcs-Git: git://git.debian.org/collab-maint/fishpoll.git Vcs-Browser: http://git.debian.org/?p=collab-maint/fishpoll.git Package: fishpoke Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python (>= 2.4) Description: client for the Fishpoll server The fishpoke program is used to trigger a poll immediately instead of waiting for the configured polling interval. Package: fishpolld Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python (>= 2.4) Description: daemon that allows remote script's execution when triggered from the network Fishpoll is meant to deal with a common situation. You have a data source (a version control repository, a database, etc). You have something built from that data source (a web site, say). When the data source changes, you want them to rebuild against the latest commits. debian/fishpoke.install0000644000000000000000000000002111761642720012365 0ustar fishpoke usr/bin