From c42612643a113e3ba75fcc32b473d2bb2493893c Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 28 Jun 2011 12:05:50 +0200 Subject: [PATCH] Add Debian package infrastructure and license. --- .gitignore | 4 ++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 12 ++++++++++++ debian/copyright | 23 +++++++++++++++++++++++ debian/rules | 31 +++++++++++++++++++++++++++++++ wsproxy.c | 29 +++++++++++++++++++++++++++++ 7 files changed, 105 insertions(+) create mode 100644 .gitignore create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..41a85e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +build +debian/files +debian/wsproxy* +wsproxy diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5d5674c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +wsproxy (1.0-1KUMIRELEASE1) unstable; urgency=low + + * Initial release. + + -- Ed Schouten Tue, 28 Jun 2011 12:01:11 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9c41bd1 --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: wsproxy +Section: net +Priority: optional +Maintainer: Ed Schouten +Build-Depends: debhelper (>= 5), build-essential, libssl-dev + +Package: wsproxy +Architecture: any +Depends: ${shlibs:Depends} +Description: WebSockets Proxy + The WebSockets Proxy can tunnel Base64 encoded frames of traffic + transmitted through a WebSockets connection to a TCP connection. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..7d75af8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Copyright (c) 2011 Ed Schouten +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b63d22a --- /dev/null +++ b/debian/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f + +NPDIR=${CURDIR}/debian/wsproxy + +build: + dh_testdir + $(MAKE) + touch build + +clean: + dh_testdir + rm -f build + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_installdirs /usr/sbin + install -m 755 wsproxy ${NPDIR}/usr/sbin + dh_installchangelogs + dh_compress + +binary: build install + dh_testdir -s + dh_strip -s + dh_shlibdeps -s + dh_gencontrol -s + dh_md5sums -s + dh_builddeb -s + +.PHONY: clean install binary diff --git a/wsproxy.c b/wsproxy.c index ad53851..05dcc31 100644 --- a/wsproxy.c +++ b/wsproxy.c @@ -1,3 +1,32 @@ +/*- + * Copyright (c) 2011 Ed Schouten + * All rights reserved. + * + * Portions of this software were developed under sponsorship from Snow + * B.V., the Netherlands. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. + */ + #include #include #include