--- stone-2.3.e.orig/Makefile +++ stone-2.3.e/Makefile @@ -97,7 +97,7 @@ $(MAKE) FLAGS="-DNT_SERVICE $(FLAGS)" LIBS="$(LIBS) $(SVC_LIBS) -ladvapi32 -luser32 -lshell32 -lkernel32" $(TARGET) linux: - $(MAKE) FLAGS="-O -Wall -DCPP='\"/usr/bin/cpp -traditional\"' -DPTHREAD -DUNIX_DAEMON -DPRCTL -DSO_ORIGINAL_DST=80 -DUSE_EPOLL $(FLAGS)" LIBS="-lpthread $(LIBS)" stone + $(MAKE) FLAGS="-O -Wall -DCPP='\"/usr/bin/cpp -traditional\"' -DPTHREAD -DUNIX_DAEMON -DPRCTL -DSO_ORIGINAL_DST=80 -DUSE_EPOLL -D_GNU_SOURCE $(FLAGS)" LIBS="-lpthread $(LIBS)" stone linux-pop: $(MAKE) TARGET=linux pop_stone --- stone-2.3.e.orig/stone.1 +++ stone-2.3.e/stone.1 @@ -0,0 +1,178 @@ +.\" Roff format skeleton provided by Taketo Kabe +.TH stone 1 "Version 2.0" +.SH NAME +stone \- a simple TCP/IP packet repeater +.SH SYNOPSYS +\fBstone \fP[\fB-d\fP] [\fB-n\fP] [\fB-u\fP \fImax\fP] [\fB-f\fP \fIn\fP] +[\fB-l\fP] [\fB-z\fP \fISSL\fP] +\fIst\fP [\fB--\fP \fIst\fP] ... +.SH OPTIONS +.IP \fB-d\fP +Increase the debug level. +.IP \fB-z\fP +SSL encryption. +.IP \fB-n\fP +IP addresses and service port numbers are shown instead of host +names and service names. +.IP "\fB-u\fP \fImax\fP" +\fImax\fP is integer. The program will memorize \fImax\fP sources +simultaneously where UDP packets are sent. +.IP "\fB-f\fP \fIn\fP" +\fIn\fP is integer. The program will spawn \fIn\fP +child processes. +.IP \fB-l\fP +Sends error messages to the syslog instead of stderr. +.IP \fIst\fP +is one of the followings; Multiple \fIst\fP can be +designated, separated by \fB--\fP. +.RS +.PD 0 +.IP (1) +\fIhost\fP:\fIport\fP \fIsport\fP [\fIxhost\fP ...] +.IP (2) +\fIhost\fP:\fIport\fP \fIshost\fP:\fIsport\fP [\fIxhost\fP ...] +.IP (3) +\fIdisplay\fP [\fIxhost\fP ...] +.IP (4) +\fBproxy\fP \fIsport\fP [\fIxhost\fP ...] +.IP (5) +\fIhost\fP\fB:\fP\fIport\fP\fB/http\fP \fIrequest\fP [\fIhosts\fP ...] +.IP (6) +\fIhost\fP\fB:\fP\fIport\fP\fB/proxy\fP \fIheader\fP [\fIhosts\fP...] +.PD +.RE +.PP +The program repeats the connection on port \fIsport\fP to the +other machine \fIhost\fP port \fIport\fP. If the machine, on +which the program runs, has two or more interfaces, type (2) can +be used to repeat the connection on the specified interface +\fIshost\fP. +.TP +\fIdisplay\fP [\fIxhost\fP ...] +Abbreviating notation. The program repeats the +connection on display number \fIdisplay\fP to the X server +designated by the environment variable \fBDISPLAY\fP. +.TP +\fBproxy\fP \fIsport\fP [\fIxhost\fP ...] +Http Proxy. Specify the machine, on which the +program runs, and port \fIsport\fP in the http proxy settings of +your WWW browser. +.TP +\fIhost\fP\fB:\fP\fIport\fP\fB/http\fP \fIrequest\fP [\fIhosts\fP ...] +Repeats packets over http request. \fIrequest\fP is +the request specified in HTTP 1.0. +\fIhost\fP\fB:\fP\fIport\fP\fB/proxy\fP \fIheader\fP [\fIhosts\fP...] +.TP +\fIhost\fP\fB:\fP\fIport\fP\fB/proxy\fP \fIheader\fP [\fIhosts\fP...] +Type (6) repeats http request with \fIheader\fP in the top of +request headers. +.PP +.IP \fIxhost\fP +Only machines \fIxhost\fP can connect to the program. +.IP \fIxhost\fB/\fImask\fR +Only machines on specified +networks are permitted to connect to the program. In the case +of class C network 192.168.1.0, for example, use +\fB192.168.1.0/255.255.255.0\fP. +.IP \fIsport\fB/udp\fR +Repeats UDP packets instead of TCP packets. +.IP \fIport\fB/ssl\fR +Repeats packets with encryption. +.IP \fIsport\fB/ssl\fR +Repeats packets with decryption. +.IP \fIsport\fB/http\fR +Repeats packets over http. + +.SH DESCRIPTION +Stone is a TCP/IP packet repeater in the application layer. It +repeats TCP and UDP packets from inside to outside of a firewall, or +from outside to inside. + +Stone has following features: +.TP +1. Stone supports Win32. +Formerly, UNIX machines are used as firewalls, but recently +WindowsNT machines are used, too. You can easily run Stone on +WindowsNT and Windows95. Of course, available on Linux, +FreeBSD, BSD/OS, SunOS, Solaris, HP-UX and so on. +.TP +2. Simple. +Stone's source code is only 2000 lines long (written in C +language), so you can minimize the risk of security +holes. +.TP +3. Stone supports SSLeay. +Using SSLeay developed by Eric Young, Stone can encrypt/decrypt +packets. +.TP +4. Stone is a http proxy. +Stone can also be a tiny http proxy. + +.SH EXAMPLES +.PD 0 +.IP \fIouter\fP\^: 10 +a machine in the outside of the firewall +.IP \fIinner\fP\^: +a machine in the inside of the firewall +.IP \fIfwall\fP\^: +the firewall on which the stone is executed +.PD +.TP 5 +\fBstone 7 \fIouter\fR +Repeats the X protocol to the machine designated by the +environmental variable \fBDISPLAY\fP. Run X clients under +\fBDISPLAY=inner:7\fP on \fIouter\fP\^. +.TP +\fBstone \fIouter\fB:telnet 10023\fR +.nf +Repeats the telnet protocol to \fIouter\fP\^. +Run \fBtelnet \fIfwall\fB 10023\fR on \fIinner\fP\^. +.TP +\fBstone \fIouter\fB:domain/udp domain/udp\fR +Repeats the DNS query to \fIouter\fP\^. +Run \fBnslookup - \fIfwall\fR on \fIinner\fP\^. +.TP +\fBstone \fIouter\fB:ntp/udp ntp/udp\fR +Repeats the NTP to \fIouter\fP\^. +Run \fBntpdate \fIfwall\fP on \fIinner\fP\^. +.TP +\fBstone localhost:http 443/ssl\fR +Make WWW server that supports https. +Access \fBhttps://\fIfwall\fB/\fR using a WWW browser. +.TP +\fBstone localhost:telnet 10023/ssl\fR +Make telnet server that supports SSL. +Run \fBSSLtelnet -z ssl \fIfwall\fB 10023\fR on \fIinner\fI\^. +.TP +\fBstone proxy 8080\fR +http proxy. +.PP +Where \fIfwall\fP is a http proxy (port 8080): +.TP +\fBstone \fIfwall\fB:8080/http 10023 'POST http://\fIouter\fB:8023 HTTP/1.0'\fR +.br +.ns +.TP +\fBstone localhost:telnet 8023/http +Run stones on \fIinner\fP and \fIouter\fP respectively. +Repeats packets over http. +.TP +\fBstone \fIfwall\fB:8080/proxy 9080 \'Proxy-Authorization: Basic \fIc2VuZ29rdTpoaXJvYWtp\fB\'\fR +for browser that does not support proxy authorization. +.fi + +.SH COPYRIGHT +All rights about this program \fBstone\fP are reserved by the +original author, Hiroaki Sengoku. The program is free software; +you can redistribute it and/or modify it under the terms of the +GNU General Public License (GPL). +.SH "NO WARRANTY" +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY. + +.SH AUTHOR +.nf +Hiroaki Sengoku +sengoku@gcd.org +http://www.gcd.org/sengoku/ +.fi --- stone-2.3.e.orig/stone.1.ja +++ stone-2.3.e/stone.1.ja @@ -0,0 +1,178 @@ +.\" Roff format skeleton provided by Taketo Kabe +.TH stone 1 "Version 2.0" +.SH NAME +stone \- Simple TCP/UDP Packet Repeater +.SH SYNOPSYS +\fBstone\fP [\fB-d\fP] [\fB-n\fP] [\fB-u\fB \fImax\fI] [\fB-f\fP \fIn\fP] +[\fB-l\fP] [\fB-z\fP \fISSL\fP] +\fIst\fP [\fB--\fP \fIst\fP]... +.SH OPTIONS +.IP \fB-d\fP +デバッグレベルを増加させます。 +.IP \fB-z\fP +SSL 暗号化のオプションです。 +.IP \fB-n\fP +ホスト名やサービス名の代わりに IP アドレスやサービス番号を表示します。 +.IP \fB-u\fP +同時に記憶できる UDP パケットの発信元の最大数を指定します。 +デフォルトは 10 です。 +.IP \fB-f\fP +子プロセスの数を指定します。デフォルトは子プロセス無しです。 +.IP \fB-l\fP +エラーメッセージ等を syslog へ出力します。 + +.IP \fIst\fP +次のいずれかです。\fIst\fP は「\fB--\fP」で区切ることにより、 +複数個指定できます。 +.RS +.PD 0 +.IP (1) +\fIhost\fP:\fIport\fP \fIsport\fP [\fIxhost\fP ...] +.IP (2) +\fIhost\fP:\fIport\fP \fIshost\fP:\fIsport\fP [\fIxhost\fP ...] +.IP (3) +\fIdisplay\fP [\fIxhost\fP ...] +.IP (4) +\fBproxy\fP \fIsport\fP [\fIxhost\fP ...] +.IP (5) +\fIhost\fP\fB:\fP\fIport\fP\fB/http\fP \fIrequest\fP [\fIhosts\fP ...] +.IP (6) +\fIhost\fP\fB:\fP\fIport\fP\fB/proxy\fP \fIheader\fP [\fIhosts\fP...] +.PD +.RE + +stone を実行しているマシンのポート \fIsport\fP への接続を、他のマシ +ン \fIhost\fP のポート \fIport\fP へ中継します。インタフェースを複数持つ +マシンでは、(2) のようにインタフェースのアドレス \fIshost\fP を指定 +することにより、特定のインタフェースへの接続のみを転送することが +できます。 + +.TP +\fIdisplay\fP [\fIxhost\fP ...] +X プロトコル中継のための省略記法です。ディスプレイ番号 +\fIdisplay\fP への接続を、環境変数 DISPLAY で指定した X サーバへ転送 +します。 +.TP +\fBproxy\fP \fIsport\fP [\fIxhost\fP ...] +http proxy です。WWW ブラウザの http proxy の設定で、 +stone を実行しているマシンおよびポート \fIsport\fP を指定します。 +.TP +\fIhost\fP:\fIport\fP\fB/http\fP \fIrequest\fP [\fIhosts\fP ...] +http リクエストにのせてパケットを中継します。\fIrequest\fP +は HTTP 1.0 で規定されるリクエストです。 +.TP +\fIhost\fP\fB:\fP\fIport\fP\fB/proxy\fP \fIheader\fP [\fIhosts\fP...] +http リクエストヘッダの先頭に \fIheader\fP を追加して中継し +ます。 +.PP +\fIxhost\fP を列挙することにより、stone へ接続可能なマシンを制限する +ことができます。マシン名、あるいはその IP アドレスを空白で区切っ +て指定すると、そのマシンからの接続のみを中継します。 + +\fIxhost\fP に「\fB/\fP\fImask\fP」を付けると、特定のネットワークのマシンから +の接続を許可することができます。例えば、クラス C のネットワーク +192.168.1.0 の場合は、「\fB192.168.1.0/255.255.255.0\fP」と指定します。 + +\fIsport\fP に「\fB/udp\fP」を付けると、TCP パケットを中継する代わりに、 +UDP パケットを中継します。 + +\fIport\fP に「\fB/ssl\fP」を付けると、パケットを SSL で暗号化して中継します。 + +\fIsport\fP に「\fB/ssl\fP」を付けると、SSL で暗号化されたパケットを復号化 +して中継します。 + +\fIsport\fP に「\fB/http\fP」を付けると、http リクエスト上のパケットを中継 +します。 + +.SH DESCRIPTION +stone は、アプリケーションレベルの TCP & UDP パケットリピーターです。 +ファイアウォールの内から外へ、あるいは外から内へ、TCP パケットあるいは +UDP パケットを中継します。 +.PP +stone には以下のような特徴があります。 +.IP "1. Win32 に対応している" +以前は UNIX マシンで構成されることが多かったファイアウォールです +が、最近は WindowsNT が使われるケースが増えてきました。stone は +WindowsNT あるいは Windows95 上で手軽に実行することができます。 +もちろん、Linux, FreeBSD, BSD/OS, SunOS, Solaris, HP-UX などの +UNIX マシンでも使うことができます。 +.IP "2. 単純" +わずか 2000 行 (C 言語) ですので、セキュリティホールが生じる可能 +性を最小限にできます。 +.IP "3. SSLeay 対応" +Eric Young 氏の SSLeay を使うことにより、暗号化/復号化してパケッ +トを中継できます。 +.IP "4. http proxy" +簡易型 http proxy としても使うことができます。 + +.SH EXAMPLE +.PD 0 +.IP \fIouter\fP\^: 10 +ファイアウォールの外側にあるマシン +.IP \fIinner\fP\^: +ファイアウォールの内側にあるマシン +.IP \fIfwall\fP\^: +ファイアウォール. このマシン上で stone を実行 +.PD +.PP +.TP +\fBstone 7 \fIouter\fR +.nf +DISPLAY で指定した X server へ X プロトコルを中継 +\fIouter\fP で \fBDISPLAY=\fP\fIinner\fP\fB:7\fP と設定して X クライアントを実行 +.TP +\fBstone \fIouter\fB:telnet 10023\fR +\fIouter\fP へ telnet プロトコルを中継 +\fIinner\fP で telnet fwall 10023 を実行 +.TP +\fBstone \fIouter\fB:domain/udp domain/udp\fR +DNS 問い合わせを \fIouter\fP へ中継 +\fIinner\fP で \fBnslookup -\fP \fIfwall\fP を実行 +.TP +\fBstone \fIouter\fB:ntp/udp ntp/udp\fR +\fIouter\fP へ NTP を中継 +\fIinner\fP で \fBntpdate \fIfwall\fR を実行 +.TP +\fBstone localhost:http 443/ssl\fR +WWW サーバを https 対応にする +WWW ブラウザで \fBhttps://\fIfwall\fB/\fR をアクセス +.TP +\fBstone localhost:telnet 10023/ssl\fR +telnet を SSL 化 +\fIinner\fP で \fBSSLtelnet -z ssl \fIfwall\fB 10023\fR を実行 +.TP +\fBstone proxy 8080\fR +http proxy +.fi +.PP +\fIfwall\fP が http proxy (port 8080) である時: +.TP +\fBstone \fIfwall\fB:8080/http 10023 'POST http://\fIouter\fB:8023 HTTP/1.0'\fR +.br +.ns +.TP +\fBstone localhost:telnet 8023/http +.nf +\fIinner\fP と \fIouter\fP でそれぞれ stone を実行 +http 上でパケットを中継 +.TP +\fBstone \fIfwall\fB:8080/proxy 9080 \'Proxy-Authorization: Basic \fIc2VuZ29rdTpoaXJvYWtp\fB\'\fR +proxy 認証に対応していないブラウザ用 +.fi +.SH COPYRIGHT +この stone に関する全ての著作権は、原著作者である仙石浩明が所有 +します。この stone は、GNU General Public License (GPL) に準ずる +フリーソフトウェアです。個人的に使用する場合は、改変・複製に制限 +はありません。配布する場合は GPL に従って下さい。 + +.SH DISCLAIMER +この stone は無保証です。この stone を使って生じたいかなる損害に +対しても、原著作者は責任を負いません。詳しくは GPL を参照して下 +さい。 + +.SH AUTHOR +.nf +仙石 浩明 +sengoku@gcd.org +http://www.gcd.org/sengoku/ +.fi --- stone-2.3.e.orig/debian/changelog +++ stone-2.3.e/debian/changelog @@ -0,0 +1,109 @@ +stone (2.3.e-2build1) oneiric; urgency=low + + * Rebuild for OpenSSL 1.0.0. + + -- Colin Watson Tue, 17 May 2011 11:53:30 +0100 + +stone (2.3.e-2) unstable; urgency=low + + [ Jean-Baptiste Lallement (#564498) ] + * debian/postinst: + - Fix incorrect use of command expansion which prevent + installation of the package with dash (closes: #564498) + - Display the right path to the certificate when it already exists + + [ Takuo Kitame ] + * fix lintian errors. + + -- Takuo Kitame Wed, 13 Jan 2010 17:32:34 +0900 + +stone (2.3.e-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Makefile: Added -D_GNU_SOURCE option to compile. (Closes: #517574) + + -- Miguel Ruiz Sun, 20 Sep 2009 20:13:16 -0400 + +stone (2.3.e-1) unstable; urgency=low + + * New upstream release + * This upload is not NMU. + + -- Takuo KITAME Thu, 05 Feb 2009 12:22:04 +0900 + +stone (2.3.c-2) unstable; urgency=low + + * fix again FTBFS on GNU/kFreeBSD (closes: #374771) + + -- Takuo KITAME Mon, 6 Nov 2006 20:24:18 +0900 + +stone (2.3.c-1) unstable; urgency=low + + * New upstream release (closes: #390988) + * fix FTBFS on GNU/kFreeBSD (closes: #374771) + + -- Takuo Kitame Mon, 6 Nov 2006 14:22:28 +0900 + +stone (2.3-1) unstable; urgency=low + + * New upstream release (closes: #372959) + + -- Takuo KITAME Wed, 21 Jun 2006 13:18:34 +0900 + +stone (2.2e-2) unstable; urgency=low + + * build against libssl0.9.8 + + -- Takuo KITAME Mon, 31 Oct 2005 23:39:02 +0900 + +stone (2.2e-1) unstable; urgency=low + + * New upstream release (closes: #225280) + + -- Takuo KITAME Tue, 17 May 2005 12:47:47 +0900 + +stone (2.2-1) unstable; urgency=low + + * New upstream release (closes: #196743) + * Depends on openssl (closes: #190542) + + -- Takuo KITAME Fri, 19 Dec 2003 14:06:42 +0900 + +stone (2.1.r-4) unstable; urgency=low + + * install /etc/certs/stone.pem + + -- Takuo KITAME Tue, 8 Apr 2003 15:34:02 +0900 + +stone (2.1.r-3) unstable; urgency=low + + * SSL support include. + * Fix description (closes: #170348) + + -- Takuo KITAME Mon, 25 Nov 2002 15:02:29 +0900 + +stone (2.1.r-2) unstable; urgency=low + + * Change maintainer address to @debian.org + + -- Takuo KITAME Fri, 8 Nov 2002 17:54:18 +0900 + +stone (2.1.r-1) unstable; urgency=low + + * New upstream release + + -- Takuo KITAME Sat, 27 Apr 2002 12:03:01 +0900 + +stone (2.1-1) unstable; urgency=low + + * New upstream release + + -- Takuo KITAME Wed, 3 Nov 1999 15:48:16 +0900 + +stone (2.0.q-1) unstable; urgency=low + + * Initial Release. + + -- Takuo KITAME Tue, 12 Oct 1999 00:59:42 +0900 + + --- stone-2.3.e.orig/debian/rules +++ stone-2.3.e/debian/rules @@ -0,0 +1,69 @@ +#!/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 + + +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + +ifeq (kfreebsd,$(DEB_HOST_ARCH_OS)) + EXTRA_FLAGS=-UPRCTL -UUSE_EPOLL +else + EXTRA_FLAGS="" +endif + +build: build-stamp +build-stamp: + dh_testdir + + $(MAKE) linux-ssl SSL_FLAGS="-DUSE_SSL -I/usr/include/openssl $(EXTRA_FLAGS)" \ + SSL_LIBS="-L/usr/lib/ssl/lib -lssl -lcrypto" \ + POP_FLAGS= POP_LIBS= + + cp -a stone.1.ja stone.ja.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f *-stamp + + $(MAKE) clean + rm -f stone.ja.1 + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install -m 755 -o root stone $(CURDIR)/debian/stone/usr/bin/stone + +# 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_installdocs + dh_installchangelogs + dh_installman stone.1 stone.ja.1 + dh_lintian + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- stone-2.3.e.orig/debian/compat +++ stone-2.3.e/debian/compat @@ -0,0 +1 @@ +5 --- stone-2.3.e.orig/debian/lintian-overrides +++ stone-2.3.e/debian/lintian-overrides @@ -0,0 +1,3 @@ +# Author has mentioned that Specific permission is granted for the GPLed code +# in this distribition to be linked to OpenSSL without invoking GPL clause 2(b). +stone: possible-gpl-code-linked-with-openssl --- stone-2.3.e.orig/debian/control +++ stone-2.3.e/debian/control @@ -0,0 +1,19 @@ +Source: stone +Section: net +Priority: optional +Maintainer: Takuo Kitame +Build-Depends: debhelper (>= 6.0.7~), libssl-dev +Standards-Version: 3.8.3 + +Package: stone +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, openssl +Conflicts: stone-ssl +Replaces: stone-ssl +Description: TCP/IP packet repeater in the application layer + It repeats TCP and UDP packets from inside to outside of a firewall, or from + outside to inside. + Stone supports SSL. stone can encrypt/decrypt packets with OpenSSL library. + Stone can also be a tiny http proxy. + POP -> APOP conversion. With stone and a mailer that does not support APOP, + you can access to an APOP server. --- stone-2.3.e.orig/debian/dirs +++ stone-2.3.e/debian/dirs @@ -0,0 +1 @@ +usr/bin --- stone-2.3.e.orig/debian/copyright +++ stone-2.3.e/debian/copyright @@ -0,0 +1,50 @@ +This package was debianized by Takuro KITAME on +Wed, 19 May 1999 13:12:10 +0900. + +It was downloaded from http://sourceforge.jp/projects/stone/ + +Upstream Author: Hiroaki Sengoku + +Copyright: + +License is GPL2. It's explained by COPYING file. +see /usr/share/common-licenses/GPL + +And, + Specific permission is granted for the GPLed code in this distribition + to be linked to OpenSSL without invoking GPL clause 2(b). + +/* + * stone.c simple repeater + * Copyright(c)1995-2001 by Hiroaki Sengoku + * Version 1.0 Jan 28, 1995 + * Version 1.1 Jun 7, 1995 + * Version 1.2 Aug 20, 1995 + * Version 1.3 Feb 16, 1996 relay UDP + * Version 1.5 Nov 15, 1996 for Win32 + * Version 1.6 Jul 5, 1997 for SSL + * Version 1.7 Aug 20, 1997 return packet of UDP + * Version 1.8 Oct 18, 1997 pseudo parallel using SIGALRM + * Version 2.0 Nov 3, 1997 http proxy & over http + * Version 2.1 Nov 14, 1998 respawn & pop + * Version 2.2 Posix Thread, XferBufMax + * + * This program 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; either version 2, or (at your option) + * any later version. + * + * This program 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 + * your Debian GNU/Linux system, in /usr/share/common-licenses/GPL, or with + * the Debian GNU/Linux bash source package as the file COPYING. If not, + * write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. + * + */ + + --- stone-2.3.e.orig/debian/postinst +++ stone-2.3.e/debian/postinst @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +cd /etc/ssl/certs +PATH=$PATH:/usr/bin/ssl +if [ -f stone.pem ] +then + echo "You already have `pwd`/stone.pem" +else + xHOSTNAME=`hostname -s` + xDOMAINNAME=`hostname -d` + openssl req -new -x509 -nodes -out stone.pem -keyout stone.pem > /dev/null 2>&1 <<+ +. +. +. +$xDOMAIN_NAME +$xHOST_NAME +stone +root@$xHOST_NAME.$xDOMAIN_NAME ++ +# req -new -x509 -nodes -out stone.pem -keyout stone.pem + ln -sf stone.pem `openssl x509 -noout -hash < stone.pem`.0 + chmod 644 stone.pem + +fi + +#DEBHELPER# --- stone-2.3.e.orig/debian/docs +++ stone-2.3.e/debian/docs @@ -0,0 +1,2 @@ +README.en.txt +README.txt --- stone-2.3.e.orig/debian/postrm +++ stone-2.3.e/debian/postrm @@ -0,0 +1,18 @@ +#!/bin/sh -e + +case "$1" in +abort-install | remove | abort-upgrade | upgrade | failed-upgrade | disappear) + ;; +purge) + cd /etc/ssl/certs + PATH=$PATH:/usr/bin/ssl + rm -f `openssl x509 -noout -hash < stone.pem`.0 + rm -f stone.pem + ;; +*) + echo "$0: incorrect arguments: $*" >&2 + exit 1 + ;; +esac + +#DEBHELPER#