[Pkg-voip-commits] r6536 - in /monast/trunk/debian: ./ patches/
tzafrir-guest at alioth.debian.org
tzafrir-guest at alioth.debian.org
Sun Dec 7 18:12:41 UTC 2008
Author: tzafrir-guest
Date: Sun Dec 7 18:12:41 2008
New Revision: 6536
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=6536
Log:
[svn-inject] Applying Debian modifications to trunk
Added:
monast/trunk/debian/ (with props)
monast/trunk/debian/README.Debian
monast/trunk/debian/TODO.Debian
monast/trunk/debian/changelog
monast/trunk/debian/compat
monast/trunk/debian/control
monast/trunk/debian/copyright
monast/trunk/debian/dirs
monast/trunk/debian/docs
monast/trunk/debian/examples
monast/trunk/debian/init.d
monast/trunk/debian/install
monast/trunk/debian/monast.8
monast/trunk/debian/monast.manager.conf
monast/trunk/debian/monast.manpages
monast/trunk/debian/patches/
monast/trunk/debian/patches/makefile
monast/trunk/debian/patches/monast_script
monast/trunk/debian/patches/pid_file
monast/trunk/debian/patches/series
monast/trunk/debian/postinst
monast/trunk/debian/postrm
monast/trunk/debian/preinst.ex
monast/trunk/debian/prerm.ex
monast/trunk/debian/rules (with props)
monast/trunk/debian/watch
Propchange: monast/trunk/debian/
------------------------------------------------------------------------------
mergeWithUpstream = 1
Added: monast/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/README.Debian?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/README.Debian (added)
+++ monast/trunk/debian/README.Debian Sun Dec 7 18:12:41 2008
@@ -1,0 +1,10 @@
+monast for Debian
+-----------------
+
+This package is far from being in a releasable shape. However it might
+prove to be a useful alternative to the op-panel.
+
+AsteriskManager.py comes from a separate package of the same upstream
+(amapi). While it might be useful for other packages, I figured no point
+in creating a package for that single file. And yes, it replicates
+functionality of py-asterisk.
Added: monast/trunk/debian/TODO.Debian
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/TODO.Debian?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/TODO.Debian (added)
+++ monast/trunk/debian/TODO.Debian Sun Dec 7 18:12:41 2008
@@ -1,0 +1,9 @@
+* Proper PHP packaging.
+* Move lib/config.php to somewhere under php.
+* Embedded libjs-prototype?
+* init.d script is probably too buggy
+* get-orig-source
+* Get the README of pymon/amapi into the docs dir. But why isn't it part
+ of pydoc, anyway?
+* Log rotation
+* A security evaluation
Added: monast/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/changelog?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/changelog (added)
+++ monast/trunk/debian/changelog Sun Dec 7 18:12:41 2008
@@ -1,0 +1,6 @@
+monast (0.7b-1) unstable; urgency=low
+
+ * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com> Sun, 23 Nov 2008 17:23:22 +0200
+
Added: monast/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/compat?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/compat (added)
+++ monast/trunk/debian/compat Sun Dec 7 18:12:41 2008
@@ -1,0 +1,1 @@
+7
Added: monast/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/control?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/control (added)
+++ monast/trunk/debian/control Sun Dec 7 18:12:41 2008
@@ -1,0 +1,13 @@
+Source: monast
+Section: comm
+Priority: extra
+Maintainer: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+Build-Depends: cdbs, debhelper (>= 7), quilt, python-support
+Standards-Version: 3.8.0
+Homepage: http://monast.sourceforge.net
+
+Package: monast
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, adduser
+Description: monitor for the Asterisk PBX
+ A daemon and web interface to control the Asterisk PBX
Added: monast/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/copyright?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/copyright (added)
+++ monast/trunk/debian/copyright Sun Dec 7 18:12:41 2008
@@ -1,0 +1,33 @@
+This package was debianized by Tzafrir Cohen <tzafrir.cohen at xorcom.com> on
+Sun, 23 Nov 2008 17:23:22 +0200.
+
+It was downloaded from http://monast.sourceforge.net
+pymon/amapi is from http://amapi.sourceforge.net
+
+Upstream Author: Diego Aguirre (DagMoller)
+
+Copyright: Copyright (C) 2008 Diego Aguirre
+
+License:
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted under the terms of the BSD License.
+
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+On Debian systems, the complete text of the BSD License can be
+found in `/usr/share/common-licenses/BSD'.
+
+
+The Debian packaging is (C) 2008, Tzafrir Cohen <tzafrir.cohen at xorcom.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
Added: monast/trunk/debian/dirs
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/dirs?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/dirs (added)
+++ monast/trunk/debian/dirs Sun Dec 7 18:12:41 2008
@@ -1,0 +1,1 @@
+var/log/monast
Added: monast/trunk/debian/docs
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/docs?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/docs (added)
+++ monast/trunk/debian/docs Sun Dec 7 18:12:41 2008
@@ -1,0 +1,1 @@
+README
Added: monast/trunk/debian/examples
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/examples?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/examples (added)
+++ monast/trunk/debian/examples Sun Dec 7 18:12:41 2008
@@ -1,0 +1,2 @@
+pymon/*.sample
+debian/monast.manager.conf
Added: monast/trunk/debian/init.d
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/init.d?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/init.d (added)
+++ monast/trunk/debian/init.d Sun Dec 7 18:12:41 2008
@@ -1,0 +1,258 @@
+#!/bin/sh
+#
+# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs at debian.org>
+#
+# This is free software; you may 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,
+# or (at your option) any later version.
+#
+# This 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 with
+# the Debian operating system, in /usr/share/common-licenses/GPL; if
+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+### BEGIN INIT INFO
+# Provides: monast
+# Required-Start: $network $local_fs
+# Required-Stop:
+# Should-Start: $named asterisk
+# Should-Stop: asterisk
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: monast asterisk monitoring daemon
+# Description: monast includes a daeomn that monitors asterisk and
+# a web front-end. This starts the daemon.
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+NAME=monast
+EXECUTABLE=/usr/bin/python
+DAEMON=/usr/sbin/$NAME
+DESC="Monast daemon"
+LOGDIR=/var/log/monast
+
+PIDFILE=/var/run/$NAME/$NAME.pid
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+
+DIETIME=10
+#STARTTIME=2
+
+LOGFILE=$LOGDIR/$NAME.log
+DAEMONUSER=$NAME
+
+DAEMON_OPTS="--pidfile=$PIDFILE --daemon --logfile=$LOGFILE"
+
+# Include defaults if available
+if [ -f /etc/default/$NAME ] ; then
+ . /etc/default/$NAME
+fi
+
+# Use this if you want the user to explicitly set 'RUN' in
+# /etc/default/
+#if [ "x$RUN" != "xyes" ] ; then
+# log_failure_msg "$NAME disabled, please adjust the configuration to your needs "
+# log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
+# exit 1
+#fi
+
+# Check that the user exists (if we set a user)
+# Does the user exist?
+if [ -n "$DAEMONUSER" ] ; then
+ if getent passwd | grep -q "^$DAEMONUSER:"; then
+ # Obtain the uid and gid
+ DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
+ DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
+ else
+ log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
+ exit 1
+ fi
+fi
+
+
+set -e
+
+running_pid() {
+# Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected server
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+# Check if the process is running looking at /proc
+# (works for all users)
+running() {
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=`cat $PIDFILE`
+ running_pid $pid $EXECUTABLE || return 1
+ return 0
+}
+
+# Start the process using the wrapper
+start_server() {
+ # if we are using a daemonuser then change the user id
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --chuid $DAEMONUSER --startas $DAEMON --exec $EXECUTABLE \
+ -- $DAEMON_OPTS
+}
+
+stop_server() {
+# Stop the process using the wrapper
+ # if we are using a daemonuser then look for process that match
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --user $DAEMONUSER --exec $EXECUTABLE
+}
+
+reload_server() {
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=pidofproc $PIDFILE # This is the daemon's pid
+ kill -HUP $pid
+ return $?
+}
+
+force_stop() {
+# Force the process to die killing it manually
+ [ ! -e "$PIDFILE" ] && return
+ if running ; then
+ kill -TERM $pid
+ # Is it really dead?
+ sleep "$DIETIME"s
+ if running ; then
+ kill -KILL $pid
+ sleep "$DIETIME"s
+ if running ; then
+ echo "Cannot kill $NAME (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+}
+
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC " "$NAME"
+ # Check if it's running first
+ if running ; then
+ log_progress_msg "apparently already running"
+ log_end_msg 0
+ exit 0
+ fi
+ if start_server ; then
+ # NOTE: Some servers might die some time after they start,
+ # this code will detect this issue if STARTTIME is set
+ # to a reasonable value
+ [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time
+ if running ; then
+ # It's ok, the server started and is running
+ log_end_msg 0
+ else
+ # It is not running after we did start
+ log_end_msg 1
+ fi
+ else
+ # Either we could not start it
+ log_end_msg 1
+ fi
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ if running ; then
+ # Only stop the server if we see it running
+ errcode=0
+ stop_server || errcode=$?
+ log_end_msg $errcode
+ else
+ # If it's not running don't do anything
+ log_progress_msg "apparently not running"
+ log_end_msg 0
+ exit 0
+ fi
+ ;;
+ force-stop)
+ # First try to stop gracefully the program
+ $0 stop
+ if running; then
+ # If it's still running try to kill it more forcefully
+ log_daemon_msg "Stopping (force) $DESC" "$NAME"
+ errcode=0
+ force_stop || errcode=$?
+ log_end_msg $errcode
+ fi
+ ;;
+ restart|force-reload)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ errcode=0
+ stop_server || errcode=$?
+ # Wait some sensible amount, some server need this
+ [ -n "$DIETIME" ] && sleep $DIETIME
+ start_server || errcode=$?
+ [ -n "$STARTTIME" ] && sleep $STARTTIME
+ running || errcode=$?
+ log_end_msg $errcode
+ ;;
+ status)
+ log_daemon_msg "Checking status of $DESC" "$NAME"
+ if running ; then
+ log_progress_msg "running"
+ log_end_msg 0
+ else
+ log_progress_msg "apparently not running"
+ log_end_msg 1
+ exit 1
+ fi
+ ;;
+ # Use this if the daemon cannot reload
+ reload)
+ log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
+ log_warning_msg "cannot re-read the config file (use restart)."
+ ;;
+ # And this if it cann
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # log_daemon_msg "Reloading $DESC configuration files" "$NAME"
+ # if running ; then
+ # reload_server
+ # if ! running ; then
+ # Process died after we tried to reload
+ # log_progress_msg "died on reload"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ # else
+ # log_progress_msg "server is not running"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ #;;
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
Added: monast/trunk/debian/install
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/install?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/install (added)
+++ monast/trunk/debian/install Sun Dec 7 18:12:41 2008
@@ -1,0 +1,3 @@
+usr/sbin/monast
+usr/share/monast/web/*
+usr/share/monast/python/*
Added: monast/trunk/debian/monast.8
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/monast.8?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/monast.8 (added)
+++ monast/trunk/debian/monast.8 Sun Dec 7 18:12:41 2008
@@ -1,0 +1,68 @@
+.TH MONAST 8 "November 23, 2008"
+.SH NAME
+monast \- asterisk PBX monitoring daemon
+.SH SYNOPSIS
+.B monast
+.RI [ options ]
+
+.SH DESCRIPTION
+.B monast
+is composed of two parts: a daemon that monitors Asterisk through its
+manager interface, and a web interface. This man page documents the
+daemon.
+
+It connects to the Asterisk manager (by default: on the same host, port
+5038). The web interface connects to it on port 5039.
+
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the Info files.
+
+.TP
+.B -c --config=FILE
+Use FILE instead of /etc/monast.conf .
+
+.TP
+.B --debug
+Do display debug-level messages (supressed by default)
+
+.TP
+.B --info
+Do display info-level messages (supressed by default)
+
+.TP
+.B -d --deamon
+Run as a daemon. By default it remains attached to the terminal.
+
+.TP
+.B -l --logfile=FILE
+Use FILE as a log file. The default is /var/log/monast.log .
+
+.TP
+.B -p --pidfile=FILE
+Use FILE as a PID file. The default is /var/run/monast.pid .
+
+.TP
+.B \-h, \-\-help
+Sadly not yet supported :-(
+.TP
+.B \-v, \-\-version
+Sadly not yet supported :-(
+
+.SH FILES
+.TP
+.B /etc/monast.conf
+The configuration for the monast daemon. A sample file is included.
+
+.SH SEE ALSO
+.BR asterisk (8)
+
+http://monast.sourceforge.net/
+
+.SH AUTHOR
+monast was written by <Diego Aguirre>.
+.PP
+This manual page was written by Tzafrir Cohen <tzafrir.cohen at xorcom.com>,
+for the Debian project (but may be used by others).
Added: monast/trunk/debian/monast.manager.conf
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/monast.manager.conf?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/monast.manager.conf (added)
+++ monast/trunk/debian/monast.manager.conf Sun Dec 7 18:12:41 2008
@@ -1,0 +1,10 @@
+; monast asterisk manager settings:
+;
+; Either add this to the end of manager.conf or copy it as
+; /etc/asterisk/manager.d/monast.conf if you #include manager.d/*.conf
+
+[monast]
+secret = mysecret
+; I'm not sure all of those are needed:
+read = system,call,log,verbose,command,agent,user,config
+write = system,call,log,verbose,command,agent,user,config
Added: monast/trunk/debian/monast.manpages
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/monast.manpages?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/monast.manpages (added)
+++ monast/trunk/debian/monast.manpages Sun Dec 7 18:12:41 2008
@@ -1,0 +1,1 @@
+debian/monast.8
Added: monast/trunk/debian/patches/makefile
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/patches/makefile?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/patches/makefile (added)
+++ monast/trunk/debian/patches/makefile Sun Dec 7 18:12:41 2008
@@ -1,0 +1,23 @@
+--- /dev/null
++++ b/Makefile
+@@ -0,0 +1,20 @@
++sbindir = /usr/sbin
++webroot = /usr/share/monast/web
++python_root = /usr/share/monast/python
++
++all:
++
++install:
++ install -d $(DESTDIR)$(webroot)
++ install -m 644 *.php $(DESTDIR)$(webroot)/
++ cp -a css image js lib template $(DESTDIR)$(webroot)/
++ install -d $(DESTDIR)$(sbindir)
++ install pymon/monast $(DESTDIR)$(sbindir)
++ install -d $(DESTDIR)$(python_root)
++ install pymon/monast.py $(DESTDIR)$(python_root)/
++ install -m 644 pymon/amapi/AsteriskManager.py \
++ $(DESTDIR)$(python_root)/
++
++clean:
++
++check:
Added: monast/trunk/debian/patches/monast_script
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/patches/monast_script?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/patches/monast_script (added)
+++ monast/trunk/debian/patches/monast_script Sun Dec 7 18:12:41 2008
@@ -1,0 +1,6 @@
+--- /dev/null
++++ b/pymon/monast
+@@ -0,0 +1,3 @@
++#!/bin/sh
++
++exec /usr/share/monast/python/monast.py "$@"
Added: monast/trunk/debian/patches/pid_file
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/patches/pid_file?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/patches/pid_file (added)
+++ monast/trunk/debian/patches/pid_file Sun Dec 7 18:12:41 2008
@@ -1,0 +1,41 @@
+--- a/pymon/monast.py
++++ b/pymon/monast.py
+@@ -75,7 +75,7 @@ COLORS = {
+ }
+
+ ## deamonize
+-def createDaemon():
++def createDaemon(options):
+ if os.fork() == 0:
+ os.setsid()
+ if os.fork() == 0:
+@@ -88,7 +88,7 @@ def createDaemon():
+
+ pid = os.getpid()
+ print 'MonAst daemonized with pid %s' % pid
+- f = open('/var/run/monast.pid', 'w')
++ f = open(options.pidfile, 'w')
+ f.write('%s' % pid)
+ f.close()
+
+@@ -1730,6 +1730,11 @@ if __name__ == '__main__':
+ default = "/var/log/monast.log",
+ help = "use this log file instead of /var/log/monast.log"
+ )
++ opt.add_option('-p', '--pidfile',
++ dest = "pidfile",
++ default = '/var/run/monast.pid',
++ help = "use this PID file instead of /var/run/monast.pid"
++ )
+
+ (options, args) = opt.parse_args()
+
+@@ -1745,7 +1750,7 @@ if __name__ == '__main__':
+ sys.exit(1)
+
+ if options.daemon:
+- createDaemon()
++ createDaemon(options)
+
+ if options.info:
+ logging.getLogger("").setLevel(logging.INFO)
Added: monast/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/patches/series?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/patches/series (added)
+++ monast/trunk/debian/patches/series Sun Dec 7 18:12:41 2008
@@ -1,0 +1,3 @@
+pid_file
+makefile
+monast_script
Added: monast/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/postinst?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/postinst (added)
+++ monast/trunk/debian/postinst Sun Dec 7 18:12:41 2008
@@ -1,0 +1,45 @@
+#!/bin/sh
+# postinst script for monast
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ if ! getent passwd monast | grep -q monast; then
+ adduser --system --shell /bin/false --home /var/log/monast monast
+ fi
+ chown -R monast: /var/log/monast
+ ;;
+
+ 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
+
+
Added: monast/trunk/debian/postrm
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/postrm?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/postrm (added)
+++ monast/trunk/debian/postrm Sun Dec 7 18:12:41 2008
@@ -1,0 +1,40 @@
+#!/bin/sh
+# postrm script for monast
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge)
+ rm -rf /var/log/monast/*
+ ;;
+ upgrade|remove|failed-upgrade|abort-install|abort-upgrade|disappear) :;;
+ *)
+ echo "postrm 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
+
+
Added: monast/trunk/debian/preinst.ex
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/preinst.ex?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/preinst.ex (added)
+++ monast/trunk/debian/preinst.ex Sun Dec 7 18:12:41 2008
@@ -1,0 +1,37 @@
+#!/bin/sh
+# preinst script for monast
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst 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
+
+
Added: monast/trunk/debian/prerm.ex
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/prerm.ex?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/prerm.ex (added)
+++ monast/trunk/debian/prerm.ex Sun Dec 7 18:12:41 2008
@@ -1,0 +1,40 @@
+#!/bin/sh
+# prerm script for monast
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm 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
+
+
Added: monast/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/rules?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/rules (added)
+++ monast/trunk/debian/rules Sun Dec 7 18:12:41 2008
@@ -1,0 +1,15 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/class/makefile.mk
+
+DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/tmp/
+
+install/monast::
+ chmod a-x $(CURDIR)/debian/tmp/usr/share/monast/web/lib/class.TemplatePower.inc.php
+
+binary-install/monast::
+ dh_pysupport
+
+
Propchange: monast/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
Added: monast/trunk/debian/watch
URL: http://svn.debian.org/wsvn/pkg-voip/monast/trunk/debian/watch?rev=6536&op=file
==============================================================================
--- monast/trunk/debian/watch (added)
+++ monast/trunk/debian/watch Sun Dec 7 18:12:41 2008
@@ -1,0 +1,10 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
+http://sf.net/monast/monast-(.*)\.tar\.gz
More information about the Pkg-voip-commits
mailing list