openvpn: dropped port

This commit is contained in:
Tim Biermann 2021-07-28 16:19:04 +02:00
parent 3ce4757dbc
commit b5da7c6918
Signed by: tb
GPG Key ID: 42F8B4E30B673606
5 changed files with 0 additions and 124 deletions

View File

@ -1,20 +0,0 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/openvpn
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/openvpn-msg.h
-rw-r--r-- root/root usr/include/openvpn-plugin.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/openvpn/
drwxr-xr-x root/root usr/lib/openvpn/plugins/
-rwxr-xr-x root/root usr/lib/openvpn/plugins/openvpn-plugin-auth-pam.la
-rwxr-xr-x root/root usr/lib/openvpn/plugins/openvpn-plugin-auth-pam.so
-rwxr-xr-x root/root usr/lib/openvpn/plugins/openvpn-plugin-down-root.la
-rwxr-xr-x root/root usr/lib/openvpn/plugins/openvpn-plugin-down-root.so
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/openvpn
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man8/
-rwxr-xr-x root/root usr/share/man/man8/openvpn.8.gz

View File

@ -1,6 +0,0 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF32PBxu4qUbz46MqnKT+P6VgStkhsuFVAmAQHlu/u10IPUcmnY1k0d4bWJNNUAPtguPTDady0M6M2bCeWsKLqFgw=
SHA256 (Pkgfile) = c427879179cb78fd1f4dc4b764827cb315b315d2d9db7af1b2b7e687c683e379
SHA256 (.footprint) = 170756e4dffb0471fea2c8ed127a2b71ec800df87424a1c5205d83aa30bce329
SHA256 (openvpn-2.5.3.tar.xz) = fb6a9943c603a1951ca13e9267653f8dd650c02f84bccd2b9d20f06a4c9c9a7e
SHA256 (openvpn) = 8f0b3932f074600cab2db334b33a7528ddcb4d1380e546f7d8103708413e89b0

View File

@ -1,26 +0,0 @@
# Description: A Secure TCP/UDP Tunneling Daemon
# URL: https://www.openvpn.net
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: linux-pam lzo
name=openvpn
version=2.5.3
release=1
source=(https://swupdate.openvpn.net/community/releases/$name-$version.tar.xz
openvpn)
build() {
cd $name-$version
sed -i '/^CONFIGURE_DEFINES=/s/set/env/g' configure.ac
autoreconf --force --install
./configure --prefix=/usr \
--enable-iproute2
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
install -D -m 755 doc/openvpn.8 $PKG/usr/share/man/man8/openvpn.8
install -D -m 755 $SRC/openvpn $PKG/etc/rc.d/openvpn
}

View File

@ -1,7 +0,0 @@
REQUIREMENTS
Enable Universal TUN/TAP device driver support in your kernel.
CONFIG_TUN=y
If you compiled device driver as a loadable kernel module (CONFIG_TUN=m)
then do not forget to add 'modprobe tun' to rc.modules to not do this
after each reboot.

View File

@ -1,65 +0,0 @@
#!/bin/sh
#
# /etc/rc.d/openvpn: start/stop openvpn daemon
#
CONFDIR=/etc/openvpn
RUNDIR=/var/run
# optional arguments to openvpn
OPTARGS="--fast-io"
usage() {
echo "Usage: $0 [start|stop|restart] <config-name>"
exit 0
}
# require a config name to be specified
if [ -z "$2" ]
then
usage
fi
CONF=${CONFDIR}/${2}.conf
PID=${RUNDIR}/openvpn.${2}.pid
# check for the existence of the specified config
if [ ! -f ${CONF} ]
then
echo "Can't find config file ${CONF}! Exiting."
exit 1
fi
case $1 in
start)
# check for an existing PID; this tunnel may already be running
if [ -f ${PID} ]
then
echo "VPN '${2}' appears to be running already. If not, remove the stale PID file '${PID}'. Exiting."
exit 2
fi
# start the specified VPN config
echo "Starting VPN '${2}'..."
/usr/sbin/openvpn --config ${CONF} --writepid ${PID} --daemon ovpn-${2} ${OPTARGS}
;;
stop)
# check for an existing PID; this tunnel should already be running
if [ ! -f ${PID} ]
then
echo "VPN '${2}' doesn't appear to be running. Exiting."
exit 3
fi
# stop the specified VPN config
echo "Stopping VPN '${2}'..."
kill `cat ${PID}`
rm -f ${PID}
;;
restart)
${0} stop ${2}; sleep 3; ${0} start ${2}
;;
*)
usage
;;
esac
# End of file