Initial commit

This commit is contained in:
WatermelonModders
2022-05-31 12:35:46 -04:00
commit fc5cb0c32c
4097 changed files with 447075 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
stud (0.3~0.20111212) unstable; urgency=low
* Initial release.
-- Charlie Root <root@interseek.com> Mon, 12 Dec 2011 13:24:18 +0100
+1
View File
@@ -0,0 +1 @@
7
+26
View File
@@ -0,0 +1,26 @@
Source: stud
Section: universe/net
Priority: optional
Maintainer: Charlie Root <root@example.com>
Build-Depends: debhelper (>= 7.0.50~)
Standards-Version: 3.9.2
Homepage: https://github.com/bumptech/stud
Package: stud
Section: universe/net
Priority: optional
Architecture: any
Depends: libc6 (>= 2.4), libev4 (>= 1:4.04), libssl0.9.8 (>= 0.9.8k-1) | libssl1.0.0 (>= 1.0.0e-1)
# Depends: ${shlibs:Depends}, ${misc:Depends}
Description: The Scalable TLS Unwrapping Daemon
stud is a network proxy that terminates TLS/SSL connections and forwards
the unencrypted traffic to some backend. It's designed to handle 10s of
thousands of connections efficiently on multicore machines.
.
It follows a process-per-core model; a parent process spawns N children who
each accept() on a common socket to distribute connected clients among them.
Within each child, asynchronous socket I/O is conducted across the local
connections using libev and OpenSSL's nonblocking API. By default, stud
has an overhead of ~200KB per connection--it preallocates some buffer space
for data in flight between frontend and backend.
+25
View File
@@ -0,0 +1,25 @@
Copyright 2011 Bump Technologies, Inc. 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 BUMP TECHNOLOGIES, INC. ``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 BUMP TECHNOLOGIES, INC. 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.
The views and conclusions contained in the software and documentation are those of the
authors and should not be interpreted as representing official policies, either expressed
or implied, of Bump Technologies, Inc.
+43
View File
@@ -0,0 +1,43 @@
#!/bin/sh
case $1 in
# Configure this package. If the package must prompt the user for
# information, do it here.
configure)
mkdir -p /var/run/stud
;;
# Back out of an attempt to upgrade this package FROM THIS VERSION
# to version $2. Undo the effects of "prerm upgrade $2".
abort-upgrade)
;;
# Back out of an attempt to remove this package, which was due to
# a conflict with package $3 (version $4). Undo the effects of
# "prerm remove in-favour $3 $4".
abort-remove)
;;
# Back out of an attempt to deconfigure this package, which was
# due to package $6 (version $7) which we depend on being removed
# to make way for package $3 (version $4). Undo the effects of
# "prerm deconfigure in-favour $3 $4 removing $6 $7".
abort-deconfigure)
;;
*)
echo "$0: didn't understand being called with \`$1'" 1>&2
exit 1;
;;
esac
if service stud status >/dev/null 2>&1; then
echo
echo " !!!! WARNING !!!!"
echo
echo "stud is running, you should restart it."
echo
fi
# EOF
+34
View File
@@ -0,0 +1,34 @@
#!/bin/sh
case "$1" in
remove|purge|abort-install|abort-upgrade)
# This package is being removed, but its configuration has not yet
# been purged.
# stud shouldn't start at system startup
# update-rc.d -f stud remove
# remove rundir
rm -rf /var/run/stud >/dev/null 2>&1
# remove config dir
rm -rf /etc/stud >/dev/null 2>&1
;;
disappear)
;;
upgrade)
;;
failed-upgrade)
;;
*) echo "$0: didn't understand being called with \`$1'" 1>&2
exit 1;;
esac
exit 0
# EOF
+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh
case "$1" in
remove|purge|abort-install|abort-upgrade)
# This package is being removed, but its configuration has not yet
# been purged.
# shutdown service
service stud stop
;;
disappear)
;;
upgrade)
;;
failed-upgrade)
;;
*) echo "$0: didn't understand being called with \`$1'" 1>&2
exit 1;;
esac
exit 0
# EOF
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
override_dh_auto_clean:
rm -rf ebtree
make clean
override_dh_auto_configure:
if [ ! -f ebtree-6.0.6.tar.gz ]; then wget http://1wt.eu/tools/ebtree/ebtree-6.0.6.tar.gz; fi
if [ ! -d ebtree ]; then tar zxpf ebtree-6.0.6.tar.gz; mv ebtree-6.0.6 ebtree; fi
override_dh_auto_build:
make USE_SHARED_CACHE=1 PREFIX=/usr
override_dh_auto_install:
dh_testdir
dh_testroot
dh_prep
dh_installdirs
make install DESTDIR=$(CURDIR)/debian/stud PREFIX=/usr
# create stud instance configuration directory
mkdir -p $(CURDIR)/debian/stud/etc/stud
chown -R root:root $(CURDIR)/debian/stud/etc/stud
chmod 700 $(CURDIR)/debian/stud/etc/stud
echo "Run /etc/init.d/stud --sample-config > /etc/stud/something.conf for default instance configuration" >> "$(CURDIR)/debian/stud/etc/stud/README.TXT"
%:
dh $@
# EOF