From f282f0aed66e9c8e49dcd400ba9702ccbb4dff46 Mon Sep 17 00:00:00 2001 From: Mark Janssen Date: Wed, 20 Nov 2002 13:10:36 +0000 Subject: [PATCH] Debian files git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@44 bc163920-b10d-0410-b2c5-a5491ca2ceef --- debian/changelog | 13 +++++++ debian/control | 16 ++++++++ debian/copyright | 10 +++++ debian/dirs | 2 + debian/docs | 2 + debian/manpage.1.ex | 60 +++++++++++++++++++++++++++++ debian/postinst.ex | 48 +++++++++++++++++++++++ debian/postrm.ex | 38 ++++++++++++++++++ debian/preinst.ex | 44 +++++++++++++++++++++ debian/prerm.ex | 39 +++++++++++++++++++ debian/rules | 94 +++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 366 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/manpage.1.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 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..880b7b9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,13 @@ +proxytunnel (1.1-2) unstable; urgency=low + + * Some more cleaning up build-environment + * Added Suggests: ssh + + -- Mark Janssen Wed, 4 Sep 2002 14:46:20 +0200 + +proxytunnel (1.1-1) unstable; urgency=low + + * Initial Release. + + -- Mark Janssen Wed, 4 Sep 2002 13:55:15 +0200 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..dfb610d --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: proxytunnel +Section: net +Priority: optional +Maintainer: Mark Janssen +Build-Depends: debhelper (>> 3.0.0) +Standards-Version: 3.5.2 + +Package: proxytunnel +Architecture: any +Depends: ${shlibs:Depends} +Suggests: ssh +Description: Create tcp tunnels trough HTTPS proxies, for using with SSH + Proxytunnel is a program that connects stdin and stdout + to an origin server somewhere in the Internet through an industry + standard HTTPS proxy. I originally wrote this program to be used + as an extension to SSH, to be able to SSH to my box at home. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d63c6b1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Mark Janssen on +Wed, 4 Sep 2002 13:55:15 +0200. + +It was downloaded from http://proxytunnel.sourceforge.net + +Upstream Author(s): Mark Janssen and Jos Visser + +Copyright: + +Proxytunnel is (C) Copyright 2001, 2002 Mark Janssen and Jos Visser 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..9d64b76 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +LICENSE.txt +README diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex new file mode 100644 index 0000000..edbb166 --- /dev/null +++ b/debian/manpage.1.ex @@ -0,0 +1,60 @@ +.\" 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 PROXYTUNNEL SECTION "September 4, 2002" +.\" 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 +proxytunnel \- program to do something +.SH SYNOPSIS +.B proxytunnel +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B proxytunnel +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +Instead, it has documentation in the GNU Info format; see below. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBproxytunnel\fP is a program that... +.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 \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Mark Janssen , +for the Debian GNU/Linux system (but may be used by others). diff --git a/debian/postinst.ex b/debian/postinst.ex new file mode 100644 index 0000000..a371d32 --- /dev/null +++ b/debian/postinst.ex @@ -0,0 +1,48 @@ +#! /bin/sh +# postinst script for proxytunnel +# +# 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 +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +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..b46afc5 --- /dev/null +++ b/debian/postrm.ex @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for proxytunnel +# +# 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..da5b9b7 --- /dev/null +++ b/debian/preinst.ex @@ -0,0 +1,44 @@ +#! /bin/sh +# preinst script for proxytunnel +# +# 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) +# if [ "$1" = "upgrade" ] +# then +# start-stop-daemon --stop --quiet --oknodo \ +# --pidfile /var/run/proxytunnel.pid \ +# --exec /usr/sbin/proxytunnel 2>/dev/null || true +# fi + ;; + + 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..4ab3a09 --- /dev/null +++ b/debian/prerm.ex @@ -0,0 +1,39 @@ +#! /bin/sh +# prerm script for proxytunnel +# +# 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) +# install-info --quiet --remove /usr/info/proxytunnel.info.gz + ;; + 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 100755 index 0000000..d3dfbaa --- /dev/null +++ b/debian/rules @@ -0,0 +1,94 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=3 + + + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +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) + #/usr/bin/docbook-to-man debian/proxytunnel.sgml > proxytunnel.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/proxytunnel. + $(MAKE) install DESTDIR=$(CURDIR)/debian/proxytunnel + + +# 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_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs CHANGES + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure