Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+121
View File
@@ -0,0 +1,121 @@
#
# stud(8), The Scalable TLS Unwrapping Daemon's configuration
#
# NOTE: all config file parameters can be overriden
# from command line!
# Listening address. REQUIRED.
#
# type: string
# syntax: [HOST]:PORT
frontend = "[*]:8443"
# Upstream server address. REQUIRED.
#
# type: string
# syntax: [HOST]:PORT.
backend = "[127.0.0.1]:8000"
# SSL x509 certificate file. REQUIRED.
# List multiple certs to use SNI. Certs are used in the order they
# are listed; the last cert listed will be used if none of the others match
#
# type: string
pem-file = "@STUD_CERTS@"
# SSL protocol.
#
# tls = on
# ssl = off
# List of allowed SSL ciphers.
#
# Run openssl ciphers for list of available ciphers.
# type: string
ciphers = ""
# Enforce server cipher list order
#
# type: boolean
prefer-server-ciphers = off
# Use specified SSL engine
#
# type: string
ssl-engine = ""
# Number of worker processes
#
# type: integer
workers = 1
# Listen backlog size
#
# type: integer
backlog = 100
# TCP socket keepalive interval in seconds
#
# type: integer
keepalive = 3600
# Chroot directory
#
# type: string
chroot = "@STUD_HOME@"
# Set uid after binding a socket
#
# type: string
user = "@STUD_USER@"
# Set gid after binding a socket
#
# type: string
group = "@STUD_GROUP@"
# Quiet execution, report only error messages
#
# type: boolean
quiet = off
# Use syslog for logging
#
# type: boolean
syslog = off
# Syslog facility to use
#
# type: string
syslog-facility = "daemon"
# Run as daemon
#
# type: boolean
daemon = on
# Report client address by writing IP before sending data
#
# NOTE: This option is mutually exclusive with option write-proxy and proxy-proxy.
#
# type: boolean
write-ip = off
# Report client address using SENDPROXY protocol, see
# http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt
# for details.
#
# NOTE: This option is mutually exclusive with option write-ip and proxy-proxy.
#
# type: boolean
write-proxy = off
# Proxy an existing SENDPROXY protocol header through this request.
#
# NOTE: This option is mutually exclusive with option write-ip and write-proxy.
#
# type: boolean
proxy-proxy = off
# EOF
+33
View File
@@ -0,0 +1,33 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: stud.sh,v 1.1 2013/03/16 19:41:36 jym Exp $
#
# PROVIDE: stud
# REQUIRE: LOGIN
. /etc/rc.subr
name="stud"
rcvar=$name
command="@PREFIX@/bin/stud"
command_args="--config=@PKG_SYSCONFDIR@/stud.conf"
required_files="@PKG_SYSCONFDIR@/stud.conf"
required_dirs="$stud_chrootdir"
stud_chrootdir="@STUD_HOME@"
start_precmd="stud_precmd"
stud_precmd()
{
for i in null random urandom; do
if [ ! -c "${stud_chrootdir}/dev/$i" ]; then
rm -f "${stud_chrootdir}/dev/$i"
(cd /dev &&
/bin/pax -rw -pe "$i" "${stud_chrootdir}/dev")
fi
done
}
load_rc_config $name
run_rc_command "$1"