summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/build1
-rw-r--r--package/command-cp3
-rw-r--r--package/command-ln4
-rw-r--r--package/commands-base7
-rw-r--r--package/commands-sslperl1
-rw-r--r--package/commands-sys1
-rwxr-xr-xpackage/compile88
-rw-r--r--package/files164
-rwxr-xr-xpackage/install5
-rwxr-xr-xpackage/man125
-rw-r--r--package/path1
-rwxr-xr-xpackage/report10
-rwxr-xr-xpackage/rts76
-rwxr-xr-xpackage/run2
-rwxr-xr-xpackage/upgrade109
-rw-r--r--package/version1
16 files changed, 598 insertions, 0 deletions
diff --git a/package/build b/package/build
new file mode 100644
index 0000000..bac2ceb
--- /dev/null
+++ b/package/build
@@ -0,0 +1 @@
+20231204180637
diff --git a/package/command-cp b/package/command-cp
new file mode 100644
index 0000000..1083552
--- /dev/null
+++ b/package/command-cp
@@ -0,0 +1,3 @@
+
+Directories to copy commands into, one per line.
+The first empty line terminates the list.
diff --git a/package/command-ln b/package/command-ln
new file mode 100644
index 0000000..3a56315
--- /dev/null
+++ b/package/command-ln
@@ -0,0 +1,4 @@
+/usr/local/bin
+
+Directories to soft link commands into, one per line.
+The first empty line terminates the list.
diff --git a/package/commands-base b/package/commands-base
new file mode 100644
index 0000000..a1d0820
--- /dev/null
+++ b/package/commands-base
@@ -0,0 +1,7 @@
+sslclient
+sslserver
+https@
+sslcat
+sslconnect
+sslprint
+sslhandle
diff --git a/package/commands-sslperl b/package/commands-sslperl
new file mode 100644
index 0000000..68065ca
--- /dev/null
+++ b/package/commands-sslperl
@@ -0,0 +1 @@
+sslperl
diff --git a/package/commands-sys b/package/commands-sys
new file mode 100644
index 0000000..fa5d3e9
--- /dev/null
+++ b/package/commands-sys
@@ -0,0 +1 @@
+sysdeps
diff --git a/package/compile b/package/compile
new file mode 100755
index 0000000..9deb12c
--- /dev/null
+++ b/package/compile
@@ -0,0 +1,88 @@
+#!/bin/sh
+shout() { echo "compile: $@" >&2; }
+barf() { shout "fatal: $@"; exit 111; }
+safe() { "$@" || barf "cannot $@"; }
+umask 022
+[ -d package ] || barf "no package directory"
+[ -d src ] || barf "no src directory"
+
+here=`env - PATH=$PATH pwd`
+
+safe mkdir -p compile command
+[ -h compile/src ] || safe ln -s $here/src compile/src
+
+for i in `ls src`
+do
+ [ -h compile/$i ] || safe ln -s src/$i compile/$i
+done
+
+for i in `sed -e '/^it-/!d' -e 's/^it-//' < compile/it=d`
+do
+ all="$all $i"
+done
+other="`grep -v '^it-' compile/it=d`"
+usage() { shout "usage: package/rts [ [-]$all ]"; exit 100; }
+targets=""
+if [ $# -eq 0 ]
+then
+ targets="$all"
+else
+ if [ "$1" = "-" ]
+ then
+ shift
+ suppress=":"
+ for i in ${1+"$@"}
+ do
+ case "$all " in
+ *\ $i\ *)
+ ;;
+ *)
+ usage
+ ;;
+ esac
+ suppress="$suppress$i:"
+ done
+ for i in $all
+ do
+ case "$suppress" in
+ *:$i:*)
+ ;;
+ *)
+ targets="$targets $i"
+ ;;
+ esac
+ done
+ else
+ for i in ${1+"$@"}
+ do
+ case "$all " in
+ *\ $i\ *)
+ ;;
+ *)
+ usage
+ ;;
+ esac
+ targets="$targets $i"
+ done
+ fi
+fi
+
+[ "X$all" != "X" ] && [ "X$targets" = "X" ] && usage
+
+commands=
+for i in $targets
+do
+ commands="$commands `cat package/commands-$i`"
+done
+
+safe cd compile
+safe make $other `echo "$targets" | sed -e 's/ / it-/g'`
+safe cd $here
+
+for i in $commands
+do
+ safe rm -f command/$i'{new}'
+ safe cp -p compile/$i command/$i'{new}'
+ safe mv -f command/$i'{new}' command/$i
+done
+
diff --git a/package/files b/package/files
new file mode 100644
index 0000000..e867db0
--- /dev/null
+++ b/package/files
@@ -0,0 +1,164 @@
+conf-cadir
+conf-cafile
+conf-cc
+conf-ccafile
+conf-ccperl
+conf-certchainfile
+conf-certfile
+conf-ciphers
+conf-dhfile
+conf-home
+conf-keyfile
+conf-ld
+conf-ldperl
+conf-man
+conf-perl
+conf-qlibs
+conf-rsa
+conf-ssl
+conf-ssllib
+INSTALL
+README.md
+doc
+doc/CHAIN-SSL
+doc/CHANGES
+doc/LICENSE
+doc/README.rts
+doc/UCSPI-SSL
+doc/TLS_1_3
+doc/TLSVERSION_CIPHERSUITES
+doc/TODO
+etc
+etc/README.certs.md
+etc/127.0.0.1_cert.pem
+etc/127.0.0.1_key.pem
+etc/127.0.0.1_key.pem.plain
+etc/127.0.0.1.pw
+etc/::1_cert.pem
+etc/::1_key.pem
+etc/::1_key.pem.plain
+etc/::1.pw
+etc/chain4.pem
+etc/chain6.pem
+etc/dh2048.pem
+etc/localhost_cert.pem
+etc/localhost_key.pem
+etc/localhost_key.pem.plain
+etc/localhost.pw
+etc/rootCA_cert.pem
+man
+man/Makefile
+man/Makefile.mandoc
+man/TARGETS
+man/https@.1
+man/sslcat.1
+man/sslclient.1
+man/sslconnect.1
+man/sslhandle.1
+man/sslserver.1
+man/ucspi-tls.2
+package
+package/command-cp
+package/command-ln
+package/commands-base
+package/commands-sys
+package/commands-sslperl
+package/build
+package/compile
+package/files
+package/install
+package/man
+package/path
+package/report
+package/rts
+package/run
+package/upgrade
+package/version
+src
+src/Makefile
+src/TARGETS
+src/auto-str.c
+src/auto_cadir.h
+src/auto_cafile.h
+src/auto_ccafile.h
+src/auto_certchainfile.h
+src/auto_certfile.h
+src/auto_ciphers.h
+src/auto_dhfile.h
+src/auto_keyfile.h
+src/chkshsgr.c
+src/choose.sh
+src/coe.c
+src/coe.h
+src/exp.base
+src/exp.it
+src/exp.sslperl
+src/exit.h
+src/find-systype.sh
+src/fork.h1
+src/fork.h2
+src/hassgact.h1
+src/hassgact.h2
+src/hassgprm.h1
+src/hassgprm.h2
+src/hasshsgr.h1
+src/hasshsgr.h2
+src/haswaitp.h1
+src/haswaitp.h2
+src/https@.sh
+src/ip_bit.h
+src/ip4_bit.c
+src/ip6_bit.c
+src/it-base=d
+src/it-sslperl=d
+src/it-sys=d
+src/it=d
+src/print-ar.sh
+src/print-cc.sh
+src/print-ccperl.sh
+src/print-dl.sh
+src/print-ld.sh
+src/print-ldperl.sh
+src/print-perlembed.sh
+src/remoteinfo.c
+src/remoteinfo.h
+src/rts.base
+src/rts.it
+src/rts.sslperl
+src/rules.c
+src/rules.h
+src/select.h1
+src/select.h2
+src/ssl_ca.c
+src/ssl_cca.c
+src/ssl_certkey.c
+src/ssl_chainfile.c
+src/ssl_ciphers.c
+src/ssl_context.c
+src/ssl_env.c
+src/ssl_error.c
+src/ssl_io.c
+src/ssl_new.c
+src/ssl_params.c
+src/ssl_timeout.c
+src/ssl_verify.c
+src/sslcat.sh
+src/sslclient.c
+src/sslconnect.sh
+src/sslhandle.c
+src/sslperl.c
+src/sslprint.c
+src/sslserver.c
+src/trycpp.c
+src/trylsock.c
+src/trysgact.c
+src/trysgprm.c
+src/tryshsgr.c
+src/tryssl.c
+src/trysysel.c
+src/tryvfork.c
+src/ucspissl.c
+src/ucspissl.h
+src/warn-auto.sh
+src/warn-shsgr
+src/x86cpuid.c
diff --git a/package/install b/package/install
new file mode 100755
index 0000000..58a2f08
--- /dev/null
+++ b/package/install
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+package/compile ${1+"$@"}
+package/upgrade ${1+"$@"}
+package/man ${1+"$@"}
+package/run ${1+"$@"}
diff --git a/package/man b/package/man
new file mode 100755
index 0000000..6213c77
--- /dev/null
+++ b/package/man
@@ -0,0 +1,125 @@
+#!/bin/sh
+shout() { echo "$0: $@" >&2; }
+barf() { shout "fatal: $@"; exit 111; }
+safe() { "$@" || barf "cannot $@"; }
+
+here=`env - PATH=$PATH pwd`
+me=`echo $here | awk -F/ '{print $NF}'`
+unix=`uname -a | cut -d' ' -f1 | tr [a-z] [A-Z]`
+mandir=""
+usemanpath=0
+usemandoc=0
+
+if [ `which manpath` 2>/dev/null ]
+then
+ usemanpath=1
+fi
+
+if [ `which mandoc` 2>/dev/null ]
+then
+ usemandoc=1
+ shout "Using mandoc facility for man files."
+fi
+
+safe umask 022
+[ -d man ] || barf "no man directory"
+
+if [ -f conf-man ]
+then
+ mandir=`head -1 conf-man`
+ if [ -d "$mandir" ]
+ then
+ shout "Setting manual man-dir: $mandir."
+ else
+ if [ $usemanpath -eq 0 ]
+ then
+ barf "`manpath` not available; use conf-man instead."
+ fi
+ mandir=`manpath | awk -F: '{print $1}'`
+ if [ -d "$mandir" ]
+ then
+ shout "Setting manpath man-dir: $mandir."
+ else
+ barf "can't determine man-path directory."
+ fi
+ fi
+else
+ barf "can't determine man-path directory."
+ exit 1
+fi
+
+cd man
+if [ $usemandoc -eq 1 ]
+then
+ safe make -f Makefile.mandoc
+else
+ safe make
+fi
+
+if [ $usemandoc -eq 0 ]
+then
+ shout "Installing ${me} compressed man-files in ${mandir}."
+else
+ shout "Installing ${me} un-compressed man-files in ${mandir}."
+fi
+
+for i in `ls *[1-8]`
+do
+ all="$all $i"
+done
+
+for manfile in $all
+do
+ dir="man`echo $manfile | awk -F. '{print $NF}'`"
+ [ -d $mandir/$dir ] || safe mkdir $mandir/$dir
+ if [ $usemandoc -eq 0 ]
+ then
+ safe gzip $manfile && \
+ cp "$manfile.gz" "$mandir/$dir/$manfile.gz"
+ else
+ safe cp "$manfile" "$mandir/$dir/$manfile"
+ fi
+done
+
+## nroff: Required for old catman systems only
+
+if [ $usemandoc -eq 0 ]
+then
+ shout "Installing ${me} nroff'ed man-files in ${mandir}/catX."
+
+ all=""
+ for i in `ls *0`
+ do
+ all="$all $i"
+ done
+
+ for manfile in $all
+ do
+ catname=`echo $manfile | awk -F. '{print $1}'`
+ catfiles=`ls -1 ${catname}* | grep -v '.0' | grep -v '.9'`
+
+ for catfile in $catfiles
+ do
+ dir="$mandir/cat`echo $catfile | awk -F. '{print $(NF-1)}'`"
+ safe mkdir -p $dir
+ safe cp "$manfile" "$dir/$manfile"
+ done
+ done
+else
+ if [ `which makewhatis` 2>/dev/null ]
+ then
+ makewhatis $mandir
+ shout "Installing ${me} mandoc files in db (makewhatis)."
+ elif [ `which catman` 2>/dev/null ]
+ then
+ catman $mandir
+ shout "Installing ${me} mandoc files in db (catman)."
+ else
+ man -w $mandir
+ shout "Installing ${me} mandoc files in db (man -w)."
+ fi
+fi
+
+cd ..
+
+exit 0
diff --git a/package/path b/package/path
new file mode 100644
index 0000000..feda59c
--- /dev/null
+++ b/package/path
@@ -0,0 +1 @@
+host/superscript.com/net
diff --git a/package/report b/package/report
new file mode 100755
index 0000000..1d3ec0a
--- /dev/null
+++ b/package/report
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+test -d compile || ( echo 'Wrong working directory.'; exit 1 )
+here=`env - PATH=$PATH pwd`
+( echo ucspi-ssl-`head -1 package/version`
+ echo $here
+ if test -r compile/sysdeps
+ then
+ cat compile/sysdeps
+ fi
+) | mail feh@fehcom.de
diff --git a/package/rts b/package/rts
new file mode 100755
index 0000000..b585d1a
--- /dev/null
+++ b/package/rts
@@ -0,0 +1,76 @@
+#!/bin/sh
+shout() { echo "rts: $@" >&2; }
+barf() { shout "fatal: $@"; exit 111; }
+safe() { "$@" || barf "cannot $@"; }
+
+umask 022
+[ -d package ] || barf "no package directory"
+[ -d src ] || barf "no src directory"
+[ -d compile ] || barf "no compile directory"
+[ -d etc ] || barf "no etc directory"
+
+for i in `sed -e '/^it-/!d' -e 's/^it-//' < compile/it=d`
+do
+ all="$all $i"
+done
+usage() { shout "usage: package/rts [ [-]$all ]"; exit 100; }
+
+targets=""
+if [ $# -eq 0 ]
+then
+ targets="$all"
+else
+ if [ "$1" = "-" ]
+ then
+ shift
+ suppress=":"
+ for i in ${1+"$@"}
+ do
+ case "$all " in
+ *\ $i\ *)
+ ;;
+ *)
+ usage
+ ;;
+ esac
+ suppress="$suppress$i:"
+ done
+ for i in $all
+ do
+ case "$suppress" in
+ *:$i:*)
+ ;;
+ *)
+ targets="$targets $i"
+ ;;
+ esac
+ done
+ else
+ for i in ${1+"$@"}
+ do
+ case "$all " in
+ *\ $i\ *)
+ ;;
+ *)
+ usage
+ ;;
+ esac
+ targets="$targets $i"
+ done
+ fi
+fi
+
+[ "X$all" != "X" ] && [ "X$targets" = "X" ] && usage
+
+export here=`env - PATH=$PATH pwd`
+safe cd compile
+PATH="$here/compile:/command:$PATH"
+export PATH
+. $here/compile/rts.it > $here/compile/out.it 2>&1
+cat -v $here/compile/out.it | diff - $here/compile/exp.it
+for i in $targets
+do
+ export here
+ . $here/compile/rts.$i 2>&1 | cat -v > $here/compile/out.$i
+ diff $here/compile/out.$i $here/compile/exp.$i
+done
diff --git a/package/run b/package/run
new file mode 100755
index 0000000..f11f4e1
--- /dev/null
+++ b/package/run
@@ -0,0 +1,2 @@
+#!/bin/sh -e
+exit 0
diff --git a/package/upgrade b/package/upgrade
new file mode 100755
index 0000000..cc3ead0
--- /dev/null
+++ b/package/upgrade
@@ -0,0 +1,109 @@
+#!/bin/sh
+shout() { echo "upgrade: $@" >&2; }
+barf() { shout "fatal: $@"; exit 111; }
+safe() { "$@" || barf "cannot $@"; }
+
+umask 022
+[ -d package ] || barf "no package directory"
+[ -d src ] || barf "no src directory"
+
+for i in `sed -e '/^it-/!d' -e 's/^it-//' < compile/it=d`
+do
+ all="$all $i"
+done
+usage() { shout "usage: package/upgrade [ [-]$all ]"; exit 100; }
+targets=""
+if [ $# -eq 0 ]
+then
+ for i in $all
+ do
+ targets="$all"
+ done
+else
+ if [ "$1" = "-" ]
+ then
+ shift
+ suppress=":"
+ for i in ${1+"$@"}
+ do
+ case "$all " in
+ *\ $i\ *)
+ ;;
+ *)
+ usage
+ ;;
+ esac
+ suppress="$suppress$i:"
+ done
+ for i in $all
+ do
+ case "$suppress" in
+ *:$i:*)
+ ;;
+ *)
+ targets="$targets $i"
+ ;;
+ esac
+ done
+ else
+ for i in ${1+"$@"}
+ do
+ case "$all " in
+ *\ $i\ *)
+ ;;
+ *)
+ usage
+ ;;
+ esac
+ targets="$targets $i"
+ done
+ fi
+fi
+
+[ "X$targets" = "X" ] && barf "no targets"
+
+version="`head -1 package/version`"
+here="`pwd`"
+command="`echo $here | sed -e 's/-'$version'$//'`/command"
+package="`basename $here | sed -e 's/-'$version'$//'`"
+echo "symlink $package -> $package-$version"
+safe rm -f $package
+safe ln -s $package-$version $package
+safe mv -f $package ..
+
+commands=
+for i in $targets
+do
+ commands="$commands `cat package/commands-$i`"
+done
+
+if [ -r package/command-cp ]
+then
+ for i in `sed -e '/^$/q' < package/command-cp`
+ do
+ echo "copying commands into $i"
+ safe mkdir -p $i
+ for j in $commands
+ do
+ safe rm -f $i/$j'{new}'
+ safe cp -p command/$j $i/$j'{new}'
+ safe mv -f $i/$j'{new}' $i/$j
+ done
+ done
+fi
+
+if [ -r package/command-ln ]
+then
+ for i in `sed -e '/^$/q' < package/command-ln`
+ do
+ echo "linking commands into $i"
+ safe mkdir -p $i
+ for j in $commands
+ do
+ safe rm -f $i/$j'{new}'
+ safe ln -s $command/$j $i/$j'{new}'
+ safe mv -f $i/$j'{new}' $i/$j
+ done
+ done
+fi
+
diff --git a/package/version b/package/version
new file mode 100644
index 0000000..54dbed4
--- /dev/null
+++ b/package/version
@@ -0,0 +1 @@
+0.12.10