ace-overlay: first commit

This commit is contained in:
ace
2017-10-09 05:27:09 +03:00
commit e2a4aa92ab
15 changed files with 492 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
--- ./configure 2008-09-03 07:56:58.000000000 +0300
+++ ./configure 2008-09-25 21:12:38.321109165 +0300
@@ -11109,8 +11109,10 @@
# Check whether --enable-static-daemon was given.
if test "${enable_static_daemon+set}" = set; then
- enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static
-
+ enableval=$enable_static_daemon
+if test "x$enableval" != "xno"; then
+ LDFLAGS_DAEMON=-static
+fi
fi
@@ -11131,10 +11133,11 @@
# Check whether --enable-icmp was given.
if test "${enable_icmp+set}" = set; then
enableval=$enable_icmp;
+if test "x$enableval" != "xno"; then
cat >>confdefs.h <<_ACEOF
#define ENABLE_ICMP 1
_ACEOF
-
+fi
fi
@@ -11142,10 +11145,11 @@
# Check whether --enable-tcp was given.
if test "${enable_tcp+set}" = set; then
enableval=$enable_tcp;
+if test "x$enableval" != "xno"; then
cat >>confdefs.h <<_ACEOF
#define ENABLE_TCP 1
_ACEOF
-
+fi
fi
@@ -11153,6 +11157,7 @@
# Check whether --enable-dns was given.
if test "${enable_dns+set}" = set; then
enableval=$enable_dns;
+if test "x$enableval" != "xno"; then
if test "${ac_cv_header_gmp_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for gmp.h" >&5
echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6; }
@@ -11361,7 +11366,7 @@
cat >>confdefs.h <<_ACEOF
#define ENABLE_DNS 1
_ACEOF
-
+fi
fi
@@ -11370,10 +11375,11 @@
# Check whether --enable-http-proxy was given.
if test "${enable_http_proxy+set}" = set; then
enableval=$enable_http_proxy;
+if test "x$enableval" != "xno"; then
cat >>confdefs.h <<_ACEOF
#define ENABLE_HTTP_PROXY 1
_ACEOF
-
+fi
fi

View File

@@ -0,0 +1,19 @@
#
# A simple gvpe configuration nothing fancy see gvpe.conf(5) for more info
#
# udp-port = 4000 # the external port to listen on (configure your firewall)
# tcp-port = 119
# mtu = 1400 # minimum MTU of all outgoing interfaces on all hosts
# ifname = vpn0 # the local network device name
# ip-proto = 17 # UDP. Not realy needed
# node = first # just a nickname
# hostname = vpn-server-dns # the DNS name or IP address of the host
# enable-udp=yes
# router-priority=1
# connect=always
# node = second # this node is behind a firewall
# connect = never # so no connection attempts should be made and no hostname here

View File

@@ -0,0 +1,4 @@
# the name of this node you HAVE to set that
# NODENAME="first"

View File

@@ -0,0 +1,32 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
opts="reconnect"
GVPED_PID=/var/run/gvped.pid
depend() {
use logger dns
need net
}
start() {
ebegin "Starting gvpe VPN"
start-stop-daemon --start --exec /usr/sbin/gvpe --pidfile "${GVPED_PID}" \
-- -linfo -L ${NODENAME}
eend $?
}
stop() {
ebegin "Stopping gvpe VPN"
start-stop-daemon --stop --exec /usr/sbin/gvpe --pidfile "${GVPED_PID}"
eend $?
}
reconnect() {
ebegin "Reconnecting gpve VPN"
/usr/bin/gvpectrl --kill=HUP
eend $?
}

5
net-vpn/gvpe/files/if-up Normal file
View File

@@ -0,0 +1,5 @@
#
# You can put something here but if you use the genoo net.XXX scheme the
# net.XXX script will be auto started when evpn starts
#