Add Debian package infrastructure and license.
This commit is contained in:
parent
52b07abe21
commit
c42612643a
|
|
@ -0,0 +1,4 @@
|
||||||
|
build
|
||||||
|
debian/files
|
||||||
|
debian/wsproxy*
|
||||||
|
wsproxy
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
wsproxy (1.0-1KUMIRELEASE1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- Ed Schouten <ed@kumina.nl> Tue, 28 Jun 2011 12:01:11 +0200
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
7
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
Source: wsproxy
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Ed Schouten <ed@kumina.nl>
|
||||||
|
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.
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
Copyright (c) 2011 Ed Schouten <ed@kumina.nl>
|
||||||
|
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.
|
||||||
|
|
@ -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
|
||||||
29
wsproxy.c
29
wsproxy.c
|
|
@ -1,3 +1,32 @@
|
||||||
|
/*-
|
||||||
|
* Copyright (c) 2011 Ed Schouten <ed@kumina.nl>
|
||||||
|
* 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 <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue