summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2019-09-03 17:36:44 (GMT)
committerChristian Pointner <equinox@anytun.org>2019-09-03 17:36:44 (GMT)
commit2c7838def2a1338443fd73835ac01019398b219b (patch)
tree929aadab9ad0e1b099610bfcc35277b0b6d0a9a5
parentc5d5d824c507a0f0e6f1f7fe1ca75425966b9245 (diff)
move to go modulesHEADmaster
-rw-r--r--.gitignore2
-rw-r--r--Makefile51
-rw-r--r--cmd/anygone/Makefile (renamed from app/Makefile)0
-rw-r--r--cmd/anygone/anygone.go (renamed from app/anygone.go)0
-rw-r--r--cmd/anygone/conf.go (renamed from app/conf.go)0
-rw-r--r--go.mod11
-rw-r--r--go.sum10
7 files changed, 73 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 56f7a36..5a81d5a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-/app/anygone
+/anygone
coverage.out
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ddb58e1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,51 @@
+##
+## Copyright (c) 2017 anygone contributors (see AUTHORS file)
+## All rights reserved.
+##
+## Redistribution and use in source and binary forms, with or without
+## modification, are permitted provided that the following conditions are met:
+##
+## * Redistributions of source code must retain the above copyright notice, this
+## list of conditions and the following disclaimer.
+##
+## * Redistributions in binary form must reproduce the above copyright notice,
+## this list of conditions and the following disclaimer in the documentation
+## and/or other materials provided with the distribution.
+##
+## * Neither the name of anygone nor the names of its
+## contributors may be used to endorse or promote products derived from
+## this software without specific prior written permission.
+##
+## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+## DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+## SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+## CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+##
+
+GOCMD := go
+ifdef GOROOT
+GOCMD = $(GOROOT)/bin/go
+endif
+
+EXECUTEABLE := anygone
+
+all: build
+.PHONY: vet format build clean
+
+vet:
+ $(GOCMD) vet ./...
+
+format:
+ $(GOCMD) fmt ./...
+
+build:
+ $(GOCMD) build -o $(EXECUTEABLE) ./cmd/anygone
+
+clean:
+ rm -f $(EXECUTEABLE)
diff --git a/app/Makefile b/cmd/anygone/Makefile
index 92cb899..92cb899 100644
--- a/app/Makefile
+++ b/cmd/anygone/Makefile
diff --git a/app/anygone.go b/cmd/anygone/anygone.go
index ce1734c..ce1734c 100644
--- a/app/anygone.go
+++ b/cmd/anygone/anygone.go
diff --git a/app/conf.go b/cmd/anygone/conf.go
index 5066808..5066808 100644
--- a/app/conf.go
+++ b/cmd/anygone/conf.go
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..0f78508
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,11 @@
+module go.anytun.org/anygone
+
+go 1.12
+
+require (
+ github.com/lab11/go-tuntap v0.0.0-20180910222439-496040da82ee
+ github.com/spf13/pflag v1.0.3
+ github.com/vishvananda/netlink v1.0.0
+ github.com/vishvananda/netns v0.0.0-20190625233234-7109fa855b0f // indirect
+ golang.org/x/sys v0.0.0-20190902133755-9109b7679e13 // indirect
+)
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..c8d99eb
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,10 @@
+github.com/lab11/go-tuntap v0.0.0-20180910222439-496040da82ee h1:hJNNA40qYu836xKUyNb/uIY9R5W00X1V68E1fnhm2Jc=
+github.com/lab11/go-tuntap v0.0.0-20180910222439-496040da82ee/go.mod h1:2BpaPxCwbjMQdh1wZVf32VakuZh8dcOy3f4pOkXPYaQ=
+github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
+github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
+github.com/vishvananda/netlink v1.0.0 h1:bqNY2lgheFIu1meHUFSH3d7vG93AFyqg3oGbJCOJgSM=
+github.com/vishvananda/netlink v1.0.0/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk=
+github.com/vishvananda/netns v0.0.0-20190625233234-7109fa855b0f h1:nBX3nTcmxEtHSERBJaIo1Qa26VwRaopnZmfDQUXsF4I=
+github.com/vishvananda/netns v0.0.0-20190625233234-7109fa855b0f/go.mod h1:ZjcWmFBXmLKZu9Nxj3WKYEafiSqer2rnvPr0en9UNpI=
+golang.org/x/sys v0.0.0-20190902133755-9109b7679e13 h1:tdsQdquKbTNMsSZLqnLELJGzCANp9oXhu6zFBW6ODx4=
+golang.org/x/sys v0.0.0-20190902133755-9109b7679e13/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=