re-add in debian folder, may require editing
This commit is contained in:
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
golang-github-eyedeekay-sam3 (0.0~git20190223.af5a3f3-1) UNRELEASED; urgency=medium
|
||||
|
||||
* Initial release (Closes: TODO)
|
||||
|
||||
-- idk <hankhill19580@gmail.com> Sat, 23 Feb 2019 13:51:59 -0500
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
11
|
69
debian/control
vendored
Normal file
69
debian/control
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
Source: golang-github-eyedeekay-sam3
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
|
||||
Uploaders: idk <hankhill19580@gmail.com>
|
||||
Build-Depends: debhelper (>= 11),
|
||||
dh-golang,
|
||||
golang-any
|
||||
Standards-Version: 4.2.1
|
||||
Homepage: https://github.com/eyedeekay/sam3
|
||||
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-eyedeekay-sam3
|
||||
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-eyedeekay-sam3.git
|
||||
XS-Go-Import-Path: github.com/eyedeekay/sam3
|
||||
Testsuite: autopkgtest-pkg-go
|
||||
|
||||
Package: golang-github-eyedeekay-sam3-dev
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}
|
||||
Description: Go library for the I2P SAMv3.0 bridge, used to build anonymous/pseudonymous end-to-end encrypted sockets.
|
||||
README go library for the I2P SAMv3.0
|
||||
(https://geti2p.net/en/docs/api/samv3) bridge, used to build
|
||||
anonymous/pseudonymous end-to-end encrypted sockets.
|
||||
.
|
||||
This library is much better than ccondom (that use BOB), much more
|
||||
stable and much easier to maintain. Support/TODO What works: •
|
||||
Utils • Resolving domain names to I2P destinations• .b32.i2p
|
||||
hashes• Generating keys/i2p destinations• Streaming • DialI2P()
|
||||
- Connecting to stuff in I2P• Listen()/Accept() - Handling incomming
|
||||
connections• Implements net.Conn and net.Listener• Datagrams •
|
||||
Implements net.PacketConn• Raw datagrams • Like datagrams, but without
|
||||
addresses Does not work: • Everything works! :D• Probably needs
|
||||
some real-world testingDocumentation• Latest version-documentation:
|
||||
• set your GOPATH• Enter godoc -http=:8081 into your terminal and
|
||||
hit enter.• Goto http://localhost:8081, click packages, and navigate
|
||||
to sam3Examples ```go package main
|
||||
.
|
||||
import (
|
||||
"github.com/majestrate/i2p-tools/sam3" "fmt"
|
||||
)
|
||||
.
|
||||
const yoursam = "127.0.0.1:7656" // sam bridge
|
||||
.
|
||||
func client(server I2PAddr) {
|
||||
sam, _ := NewSAM(yoursam) keys, _ := sam.NewKeys() stream,
|
||||
_ := sam.NewStreamSession("clientTun", keys, Options_Small)
|
||||
fmt.Println("Client: Connecting to " + server.Base32()) conn, _ :=
|
||||
stream.DialI2P(server) conn.Write([]byte("Hello world!")) return
|
||||
}
|
||||
.
|
||||
func main() {
|
||||
sam, _ := NewSAM(yoursam) keys, _ := sam.NewKeys() go
|
||||
client(keys.Addr()) stream, _ := sam.NewStreamSession("serverTun",
|
||||
keys, Options_Medium) listener, _ := stream.Listen() conn, _ :=
|
||||
listener.Accept() buf := make([]byte, 4096) n, _ := conn.Read(buf)
|
||||
fmt.Println("Server received: " + string(buf[:n]))
|
||||
} ```
|
||||
.
|
||||
The above will write to the terminal:
|
||||
.
|
||||
text Client: Connecting to
|
||||
zjnvfh4hs3et5vtz35ogwzrws26zvwkcad5uo5esecvg4qpk5b4a.b32.i2p Server
|
||||
received: Hello world!
|
||||
.
|
||||
.
|
||||
Error handling was omitted in the above code for readability. Testing•
|
||||
go test runs the whole suite (takes 90+ sec to perform!)• go test
|
||||
-short runs the shorter variant, does not connect to anythingLicense
|
||||
Public domain. Author• Kalle Vedin kalle.vedin@fripost.org• Unknown
|
||||
Name (majestrate)
|
17
debian/copyright
vendored
Normal file
17
debian/copyright
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: sam3
|
||||
Source: https://github.com/eyedeekay/sam3
|
||||
Files-Excluded:
|
||||
Godeps/_workspace
|
||||
|
||||
Files: *
|
||||
Copyright: 2016 idk
|
||||
License: TODO
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2019 idk <hankhill19580@gmail.com>
|
||||
License: TODO
|
||||
Comment: Debian packaging is licensed under the same terms as upstream
|
||||
|
||||
License: TODO
|
||||
TODO
|
2
debian/gbp.conf
vendored
Normal file
2
debian/gbp.conf
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
[DEFAULT]
|
||||
pristine-tar = True
|
4
debian/rules
vendored
Executable file
4
debian/rules
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@ --buildsystem=golang --with=golang
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
4
debian/watch
vendored
Normal file
4
debian/watch
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
version=4
|
||||
opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/golang-github-eyedeekay-sam3-\$1\.tar\.gz/,\
|
||||
uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/ \
|
||||
https://github.com/eyedeekay/sam3/tags .*/v?(\d\S*)\.tar\.gz
|
Reference in New Issue
Block a user