diff options
author | Jeroen Roovers <jer@gentoo.org> | 2016-10-31 08:41:40 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2016-10-31 08:41:40 +0100 |
commit | 38a2afc7ae87155bfd6c25fb8c370e1117d13cf4 (patch) | |
tree | c13dae45b97ce431b4335a584144338061d7a482 /net-misc/openvpn/files | |
parent | dev-db/mysql: Stable for HPPA (bug #597538). (diff) | |
download | gentoo-38a2afc7ae87155bfd6c25fb8c370e1117d13cf4.tar.gz gentoo-38a2afc7ae87155bfd6c25fb8c370e1117d13cf4.tar.bz2 gentoo-38a2afc7ae87155bfd6c25fb8c370e1117d13cf4.zip |
net-misc/openvpn: Old.
Package-Manager: portage-2.3.2
Diffstat (limited to 'net-misc/openvpn/files')
-rw-r--r-- | net-misc/openvpn/files/65openvpn | 1 | ||||
-rw-r--r-- | net-misc/openvpn/files/openvpn.init | 63 | ||||
-rw-r--r-- | net-misc/openvpn/files/openvpn.service | 12 |
3 files changed, 0 insertions, 76 deletions
diff --git a/net-misc/openvpn/files/65openvpn b/net-misc/openvpn/files/65openvpn deleted file mode 100644 index 4ddb03430302..000000000000 --- a/net-misc/openvpn/files/65openvpn +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PROTECT="/usr/share/openvpn/easy-rsa" diff --git a/net-misc/openvpn/files/openvpn.init b/net-misc/openvpn/files/openvpn.init deleted file mode 100644 index 1569394852a5..000000000000 --- a/net-misc/openvpn/files/openvpn.init +++ /dev/null @@ -1,63 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -VPNDIR="/etc/openvpn" -VPN="${SVCNAME#*.}" -if [ -n "${VPN}" ] && [ "${SVCNAME}" != "openvpn" ]; then - VPNPID="/var/run/openvpn.${VPN}.pid" -else - VPNPID="/var/run/openvpn.pid" -fi -VPNCONF="${VPNDIR}/${VPN}.conf" - -depend() { - need localmount net - before netmount - after bootmisc -} - -checktundevice() { - if [ ! -e /dev/net/tun ]; then - if ! modprobe tun ; then - eerror "TUN/TAP support is not available in this kernel" - return 1 - fi - fi - if [ -h /dev/net/tun ] && [ -c /dev/misc/net/tun ]; then - ebegin "Detected broken /dev/net/tun symlink, fixing..." - rm -f /dev/net/tun - ln -s /dev/misc/net/tun /dev/net/tun - eend $? - fi -} - -start() { - ebegin "Starting ${SVCNAME}" - - checktundevice || return 1 - - if [ ! -e "${VPNCONF}" ]; then - eend 1 "${VPNCONF} does not exist" - return 1 - fi - - local args="" - # If the config file does not specify the cd option, we do - # But if we specify it, we override the config option which we do not want - if ! grep -q "^[ ]*cd[ ].*" "${VPNCONF}" ; then - args="${args} --cd ${VPNDIR}" - fi - - start-stop-daemon --start --exec /usr/sbin/openvpn --pidfile "${VPNPID}" \ - -- --config "${VPNCONF}" --writepid "${VPNPID}" --daemon ${args} - eend $? "Check your logs to see why startup failed" -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --exec /usr/sbin/openvpn --pidfile "${VPNPID}" - eend $? -} - -# vim: ts=4 diff --git a/net-misc/openvpn/files/openvpn.service b/net-misc/openvpn/files/openvpn.service deleted file mode 100644 index 358dcb791a3c..000000000000 --- a/net-misc/openvpn/files/openvpn.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I -After=syslog.target network.target - -[Service] -PrivateTmp=true -Type=forking -PIDFile=/var/run/openvpn/%i.pid -ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf - -[Install] -WantedBy=multi-user.target |