diff options
author | David Troy <dave@popvox.com> | 2006-04-01 16:17:55 +0000 |
---|---|---|
committer | David Troy <dave@popvox.com> | 2006-04-01 16:17:55 +0000 |
commit | d3070bed0e76db60c6159b0cfe29463cd38e11ab (patch) | |
tree | c7c8c4c13e615c02739f9add3e7deb446c0a5d31 /debian | |
parent | 5bd78e358392deca5ed3c7150c685f49b31063e7 (diff) | |
download | astmanproxy-d3070bed0e76db60c6159b0cfe29463cd38e11ab.tar.gz astmanproxy-d3070bed0e76db60c6159b0cfe29463cd38e11ab.tar.xz astmanproxy-d3070bed0e76db60c6159b0cfe29463cd38e11ab.zip |
Populating trunk
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/trunk@23 f02b47b9-160a-0410-81a6-dc3441afb0ec
Diffstat (limited to 'debian')
-rw-r--r-- | debian/README.Debian | 6 | ||||
-rw-r--r-- | debian/astmanproxy-default.ex | 10 | ||||
-rw-r--r-- | debian/astmanproxy.1 | 55 | ||||
-rw-r--r-- | debian/astmanproxy.doc-base.EX | 22 | ||||
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/conffiles | 1 | ||||
-rw-r--r-- | debian/control | 12 | ||||
-rw-r--r-- | debian/copyright | 10 | ||||
-rw-r--r-- | debian/dirs | 2 | ||||
-rw-r--r-- | debian/docs | 2 | ||||
-rw-r--r-- | debian/init.d.ex | 74 | ||||
-rw-r--r-- | debian/postinst.ex | 42 | ||||
-rw-r--r-- | debian/postrm.ex | 38 | ||||
-rw-r--r-- | debian/preinst.ex | 38 | ||||
-rw-r--r-- | debian/prerm.ex | 38 | ||||
-rw-r--r-- | debian/rules | 98 | ||||
-rw-r--r-- | debian/watch | 18 |
18 files changed, 473 insertions, 0 deletions
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 +---------------------- + +<possible notes regarding this package - if none, delete this file> + + -- Tzafrir Cohen <tzafrir.cohen@xorcom.com>, 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 <n> 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 <dave@popvox.com>. + +This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> 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: <insert document author here> +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 <tzafrir.cohen@xorcom.com> 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 <tzafrir.cohen@xorcom.com> +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: astmanproxy +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: <insert up to 60 chars description> + <insert long description, indented with spaces> 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 <tzafrir.cohen@xorcom.com> on +Tue, 7 Jun 2005 20:27:34 +0300. + +It was downloaded from <fill in ftp site> + +Copyright Holder: <put author(s) name and email here> + +License: + +<Put the license of the package here> 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 <miquels@cistron.nl>. +# Modified for Debian +# by Ian Murdock <imurdock@gnu.ai.mit.edu>. +# +# 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: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <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) + + ;; + + 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: +# * <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' <r>overwrit>r> <new-version> +# 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: +# * <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 + + 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: +# * <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 + + 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 +# <Webpage URL> <string match> +#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 |