Squashed 'third_party/rawrtc/usrsctp/' content from commit bd1a92db3

Change-Id: If227cd6edd3243ac26044056b7427ae5bca71ef8
git-subtree-dir: third_party/rawrtc/usrsctp
git-subtree-split: bd1a92db338ba1e57453637959a127032bb566ff
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9a7c3ce
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libusrsctp (1.0.0~td113-1ppa1) xenial; urgency=high
+
+  * Initial release.
+
+ -- Thomas Dreibholz <dreibh@iem.uni-due.de>  Wed, 01 Feb 2017 08:08:08 +0800
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..6d226e8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,40 @@
+Source: libusrsctp
+Maintainer: Michael Tüxen <tuexen@fh-muenster.de>
+Section: net
+Priority: optional
+Build-Depends: cmake,
+               debhelper (>= 9),
+               libfile-fcntllock-perl
+Standards-Version: 3.9.8
+Vcs-Browser: https://github.com/sctplib/usrsctp
+Vcs-Git: https://github.com/sctplib/usrsctp.git
+Homepage: https://github.com/sctplib/usrsctp
+
+Package: libusrsctp1
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: Portable SCTP Userland Stack
+ This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.
+ .
+ This package contains the shared library for the Portable SCTP Userland Stack.
+
+Package: libusrsctp-dev
+Architecture: any
+Depends: libusrsctp1 (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: Portable SCTP Userland Stack (Development Files)
+ This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.
+ .
+ This package contains the development files for the Portable SCTP Userland Stack.
+
+Package: libusrsctp-examples
+Architecture: any
+Depends: libusrsctp1 (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: Portable SCTP Userland Stack (Examples)
+ This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.
+ .
+ This package contains the examples for the Portable SCTP Userland Stack.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..dae1b00
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: usrsctp
+Source: https://github.com/sctplab/usrsctp
+
+Files: *
+Copyright:
+ (C) Copyright (C) 2015 Randall Stewart
+ (C) Copyright (C) 2015 Michael Tuexen
+License: BSD-3-clause
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+ .
+ * 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.
+ .
+ * Neither the name of usrsctp nor the names of its
+   contributors may be used to endorse or promote products derived from
+   this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT HOLDER 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/libusrsctp-dev.examples b/debian/libusrsctp-dev.examples
new file mode 100644
index 0000000..6643c08
--- /dev/null
+++ b/debian/libusrsctp-dev.examples
@@ -0,0 +1 @@
+programs/*.c
diff --git a/debian/libusrsctp-dev.install b/debian/libusrsctp-dev.install
new file mode 100644
index 0000000..1afa501
--- /dev/null
+++ b/debian/libusrsctp-dev.install
@@ -0,0 +1,3 @@
+usr/include/usrsctp.h
+usr/lib/libusrsctp*.a
+usr/lib/libusrsctp*.so
diff --git a/debian/libusrsctp-examples.install b/debian/libusrsctp-examples.install
new file mode 100644
index 0000000..23438b3
--- /dev/null
+++ b/debian/libusrsctp-examples.install
@@ -0,0 +1,14 @@
+usr/lib/libusrsctp/client
+usr/lib/libusrsctp/datachan_serv
+usr/lib/libusrsctp/daytime_server
+usr/lib/libusrsctp/discard_server
+usr/lib/libusrsctp/echo_server
+usr/lib/libusrsctp/ekr_client
+usr/lib/libusrsctp/ekr_loop
+usr/lib/libusrsctp/ekr_peer
+usr/lib/libusrsctp/ekr_server
+usr/lib/libusrsctp/http_client
+usr/lib/libusrsctp/http_client_upcall
+usr/lib/libusrsctp/rtcweb
+usr/lib/libusrsctp/test_libmgmt
+usr/lib/libusrsctp/tsctp
diff --git a/debian/libusrsctp1.install b/debian/libusrsctp1.install
new file mode 100644
index 0000000..b25f47a
--- /dev/null
+++ b/debian/libusrsctp1.install
@@ -0,0 +1 @@
+usr/lib/libusrsctp.so.*
diff --git a/debian/rules b/debian/rules
new file mode 100644
index 0000000..9c44efe
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+	dh $@ --buildsystem cmake --parallel
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)