From d3070bed0e76db60c6159b0cfe29463cd38e11ab Mon Sep 17 00:00:00 2001 From: David Troy Date: Sat, 1 Apr 2006 16:17:55 +0000 Subject: Populating trunk git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/trunk@23 f02b47b9-160a-0410-81a6-dc3441afb0ec --- debian/README.Debian | 6 +++ debian/astmanproxy-default.ex | 10 +++++ debian/astmanproxy.1 | 55 ++++++++++++++++++++++++ debian/astmanproxy.doc-base.EX | 22 ++++++++++ debian/changelog | 6 +++ debian/compat | 1 + debian/conffiles | 1 + debian/control | 12 ++++++ debian/copyright | 10 +++++ debian/dirs | 2 + debian/docs | 2 + debian/init.d.ex | 74 +++++++++++++++++++++++++++++++ debian/postinst.ex | 42 ++++++++++++++++++ debian/postrm.ex | 38 ++++++++++++++++ debian/preinst.ex | 38 ++++++++++++++++ debian/prerm.ex | 38 ++++++++++++++++ debian/rules | 98 ++++++++++++++++++++++++++++++++++++++++++ debian/watch | 18 ++++++++ 18 files changed, 473 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/astmanproxy-default.ex create mode 100644 debian/astmanproxy.1 create mode 100644 debian/astmanproxy.doc-base.EX create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/conffiles create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/init.d.ex create mode 100644 debian/postinst.ex create mode 100644 debian/postrm.ex create mode 100644 debian/preinst.ex create mode 100644 debian/prerm.ex create mode 100644 debian/rules create mode 100644 debian/watch diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..a5d7f45 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +astmanproxy for Debian +---------------------- + + + + -- Tzafrir Cohen , Tue, 7 Jun 2005 20:27:34 +0300 diff --git a/debian/astmanproxy-default.ex b/debian/astmanproxy-default.ex new file mode 100644 index 0000000..6c539de --- /dev/null +++ b/debian/astmanproxy-default.ex @@ -0,0 +1,10 @@ +# Defaults for astmanproxy initscript +# sourced by /etc/init.d/astmanproxy +# installed at /etc/default/astmanproxy by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Additional options that are passed to the Daemon. +DAEMON_OPTS="" diff --git a/debian/astmanproxy.1 b/debian/astmanproxy.1 new file mode 100644 index 0000000..b5a47d8 --- /dev/null +++ b/debian/astmanproxy.1 @@ -0,0 +1,55 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH ASTMANPROXY 1 "June 7, 2005" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +astmanproxy \- An asterisk manager interface proxy +.SH SYNOPSIS +.B astmanproxy +.RI [ -d ] + +.B astmanproxy +.RI -h + +.SH DESCRIPTION +.B astmanproxy +is a proxy between the manager interface of +.B asterisk(8) +and other clients. + +The program may do some \fBinteresting\fR \fIthings\fR, but someone else +needs to write its man page (hint: very simple) + +.SH OPTIONS +.B -d +.RS +Debug mode +.RE + +.B -h +.RS +Display help message and exit. +.RE + +.SH SEE ALSO +.BR asterisk (8) + +any reference page? + +.SH AUTHOR +astmanproxy was written by David C. Troy . + +This manual page was written by Tzafrir Cohen diff --git a/debian/astmanproxy.doc-base.EX b/debian/astmanproxy.doc-base.EX new file mode 100644 index 0000000..279381e --- /dev/null +++ b/debian/astmanproxy.doc-base.EX @@ -0,0 +1,22 @@ +Document: astmanproxy +Title: Debian astmanproxy Manual +Author: +Abstract: This manual describes what astmanproxy is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/astmanproxy/astmanproxy.sgml.gz + +Format: postscript +Files: /usr/share/doc/astmanproxy/astmanproxy.ps.gz + +Format: text +Files: /usr/share/doc/astmanproxy/astmanproxy.text.gz + +Format: HTML +Index: /usr/share/doc/astmanproxy/html/index.html +Files: /usr/share/doc/astmanproxy/html/*.html + + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e8deb96 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +astmanproxy (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Tzafrir Cohen Tue, 7 Jun 2005 20:27:34 +0300 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/conffiles b/debian/conffiles new file mode 100644 index 0000000..17d440b --- /dev/null +++ b/debian/conffiles @@ -0,0 +1 @@ +/etc/asterisk/astmanproxy.conf diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..af4c21e --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: astmanproxy +Section: unknown +Priority: optional +Maintainer: Tzafrir Cohen +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: astmanproxy +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9f53581 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Tzafrir Cohen on +Tue, 7 Jun 2005 20:27:34 +0300. + +It was downloaded from + +Copyright Holder: + +License: + + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..ca882bb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..4242a3d --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +VERSIONS diff --git a/debian/init.d.ex b/debian/init.d.ex new file mode 100644 index 0000000..b1155e8 --- /dev/null +++ b/debian/init.d.ex @@ -0,0 +1,74 @@ +#! /bin/sh +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian +# by Ian Murdock . +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/astmanproxy +NAME=astmanproxy +DESC=astmanproxy + +test -x $DAEMON || exit 0 + +# Include astmanproxy defaults if available +if [ -f /etc/default/astmanproxy ] ; then + . /etc/default/astmanproxy +fi + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + #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. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + 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: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/debian/postinst.ex b/debian/postinst.ex new file mode 100644 index 0000000..cb971f4 --- /dev/null +++ b/debian/postinst.ex @@ -0,0 +1,42 @@ +#! /bin/sh +# postinst script for astmanproxy +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + + ;; + + 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 + + diff --git a/debian/postrm.ex b/debian/postrm.ex new file mode 100644 index 0000000..8d38558 --- /dev/null +++ b/debian/postrm.ex @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for astmanproxy +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|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 diff --git a/debian/preinst.ex b/debian/preinst.ex new file mode 100644 index 0000000..8f49b09 --- /dev/null +++ b/debian/preinst.ex @@ -0,0 +1,38 @@ +#! /bin/sh +# preinst script for astmanproxy +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# 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 + + diff --git a/debian/prerm.ex b/debian/prerm.ex new file mode 100644 index 0000000..61aa598 --- /dev/null +++ b/debian/prerm.ex @@ -0,0 +1,38 @@ +#! /bin/sh +# prerm script for astmanproxy +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# 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 + + diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..b791344 --- /dev/null +++ b/debian/rules @@ -0,0 +1,98 @@ +#!/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 + +MAKE += PREFIX=/usr + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/astmanproxy.sgml > astmanproxy.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/astmanproxy. + $(MAKE) install DESTDIR=$(CURDIR)/debian/astmanproxy + + +# 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 + dh_installdocs + dh_installexamples astmanproxy.conf +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman debian/astmanproxy.1 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + 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 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..07dfb37 --- /dev/null +++ b/debian/watch @@ -0,0 +1,18 @@ +# 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 2 file +version=2 + +http://www.popvox.com/astmanproxy/ astmanproxy-([0-9]*[0-9a-zA-Z.-]*).tgz +# Uncomment to examine a Webpage +# +#http://www.example.com/downloads.php astmanproxy-(.*)\.tar\.gz + +# Uncomment to examine a Webserver directory +#http://www.example.com/pub/astmanproxy-(.*)\.tar\.gz + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/astmanproxy-(.*)\.tar\.gz debian uupdate -- cgit