I know I have to package the libraries too but I will soon.
This commit is contained in:
40
Makefile
40
Makefile
@ -1,7 +1,8 @@
|
||||
|
||||
GOPATH = $(PWD)/.go
|
||||
GOPATH=$(HOME)/go
|
||||
|
||||
appname = ephsite
|
||||
packagename = sam-forwarder
|
||||
eephttpd = eephttpd
|
||||
samcatd = samcatd
|
||||
network = si
|
||||
@ -9,6 +10,16 @@ samhost = sam-host
|
||||
samport = 7656
|
||||
args = -r
|
||||
|
||||
PREFIX := /
|
||||
VAR := var/
|
||||
RUN := run/
|
||||
LIB := lib/
|
||||
LOG := log/
|
||||
ETC := etc/
|
||||
USR := usr/
|
||||
LOCAL := local/
|
||||
VERSION := 0.1
|
||||
|
||||
WEB_INTERFACE = -tags "webface netgo"
|
||||
|
||||
echo:
|
||||
@ -16,6 +27,8 @@ echo:
|
||||
find . -path ./.go -prune -o -name "*.go" -exec gofmt -w {} \;
|
||||
find . -path ./.go -prune -o -name "*.i2pkeys" -exec rm {} \;
|
||||
find . -path ./.go -prune -o -name "*.go" -exec cat {} \; | nl
|
||||
find ./debian -type f -exec sed -i 's|lair repo key|eyedeekay|g' {} \;
|
||||
find ./debian -type f -exec sed -i 's|eyedeekay@safe-mail.net|hankhill19580@gmail.com|g' {} \;
|
||||
|
||||
test: test-ntcp test-ssu test-config test-manager
|
||||
|
||||
@ -72,6 +85,16 @@ webdep:
|
||||
|
||||
build: clean bin/$(appname)
|
||||
|
||||
install: bin/$(appname) bin/$(samcatd) bin/$(samcatd)-web
|
||||
install -m755 ./bin/$(appname) $(PREFIX)$(USR)$(LOCAL)/bin/
|
||||
install -m755 ./bin/$(samcatd) $(PREFIX)$(USR)$(LOCAL)/bin/
|
||||
install -m755 ./bin/$(samcatd)-web $(PREFIX)$(USR)$(LOCAL)/bin/
|
||||
install -m644 ./etc/init.d/samcatd $(PREFIX)$(ETC)/init.d
|
||||
install -m644 ./etc/samcatd/tunnels.ini $(PREFIX)$(ETC)/samcatd/
|
||||
install -m644 ./etc/sam-forwarder/tunnels.ini $(PREFIX)$(ETC)/sam-forwarder/
|
||||
install -m644 ./etc/i2pvpn/i2pvpn.ini $(PREFIX)$(ETC)/i2pvpn/
|
||||
install -m644 ./etc/i2pvpn/i2pvpnclient.ini $(PREFIX)$(ETC)/i2pvpn/
|
||||
|
||||
bin/$(appname):
|
||||
mkdir -p bin
|
||||
cd main && go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o ../bin/$(appname)
|
||||
@ -102,7 +125,7 @@ bin/$(samcatd)-web:
|
||||
|
||||
all: daemon build server
|
||||
|
||||
clean-all: clean clean-server
|
||||
clean-all: clean clean-server clean-daemon clean-daemon-web
|
||||
|
||||
clean:
|
||||
rm -f bin/$(appname)
|
||||
@ -120,7 +143,7 @@ noopts: clean
|
||||
mkdir -p bin
|
||||
cd main && go build -o ../bin/$(appname)
|
||||
|
||||
install:
|
||||
install-forwarder:
|
||||
install -m755 bin/ephsite /usr/local/bin/ephsite
|
||||
|
||||
install-server:
|
||||
@ -253,5 +276,14 @@ GOPHERJS=$(GOPATH)/bin/gopherjs
|
||||
js:
|
||||
mkdir -p bin
|
||||
$(GOPHERJS) build -v --tags netgo \
|
||||
-o ./bin/$(samcatd).js \
|
||||
-o ./javascript/$(samcatd).js \
|
||||
./daemon/*.go
|
||||
|
||||
cleantar:
|
||||
rm -f ../$(packagename)_$(VERSION).orig.tar.xz
|
||||
|
||||
tar:
|
||||
tar --exclude .git \
|
||||
--exclude .go \
|
||||
--exclude bin \
|
||||
-cJvf ../$(packagename)_$(VERSION).orig.tar.xz .
|
||||
|
@ -127,12 +127,12 @@ Donate
|
||||
BTC:159M8MEUwhTzE9RXmcZxtigKaEjgfwRbHt
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQEzBAEBCgAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAlxNM2MACgkQ11wDs5te
|
||||
FOGJRAf+Py2OGrMaDq1OiyApyg3/50A+sfgji9sHPWRbS1Go5jKMtpVkDNKcJz03
|
||||
xsIJEmXe4ZQ8yQHxfgynTTHUg7b5TBJQw4dk5V+kZjIZjLzLDSOapU4j+gVcXpKJ
|
||||
tSTA/JFFtjeXOq/0lHC3KwLa+RLNHLUKIoQHWMkIdmNJoEdg0YDNtcuZcAZJxwp2
|
||||
WjDEBKnlACUVUNYEafpgohwBb3VLlBCWZ29gPqP+70hhoBNKKwyn+896XtscmrdD
|
||||
wiCsKOafsOATO0zopUL6Icocswh8uwuiih0JZCaCuR8RVhAviP/XLKXFORWubsez
|
||||
687rN7iBEz41uDmJ34CHEmM2J0TXew==
|
||||
=nDia
|
||||
iQEzBAEBCgAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAlxNQywACgkQ11wDs5te
|
||||
FOFPJggAqU5vcYfIivUX5aZyRZ4qEXJQ3T9vrlEVC46S6oKUzJI+AZEYzAAY2Bul
|
||||
qz0bA/Jpa/iA2uqLDKSsDQNMw8ytruBRlbB75j8ya+jdNTfsnu6S5eitVWD0y5iQ
|
||||
3iXXd7J88GpAePSNiNxx/QnPM0TA8pAANhRxIHUseSEBqigmdTrY/Nw8ehzqH4vR
|
||||
B0OINqE5M/jqhu7Nwu7/677ptuDE4FHvHRxkun1JBqFVS4/s8/RnsTxDhHLy6GRK
|
||||
UjdLOSUScI74DFQ9mVzxm8qGklomixbqXbcuDmiSXxLCcBgFWR2RPG09Shi4J8La
|
||||
9tBWN2IAeCqiX9l2SLhQTud2AO4WcQ==
|
||||
=sGca
|
||||
-----END PGP SIGNATURE-----
|
||||
|
2
debian/README.Debian
vendored
2
debian/README.Debian
vendored
@ -3,4 +3,4 @@ sam-forwarder for Debian
|
||||
|
||||
<possible notes regarding this package - if none, delete this file>
|
||||
|
||||
-- lair repo key <eyedeekay@safe-mail.net> Wed, 14 Nov 2018 06:07:55 -0500
|
||||
-- eyedeekay <hankhill19580@gmail.com> Wed, 14 Nov 2018 06:07:55 -0500
|
||||
|
2
debian/README.source
vendored
2
debian/README.source
vendored
@ -6,5 +6,5 @@ manual section 4.14. You WILL either need to modify or delete this file>
|
||||
|
||||
|
||||
|
||||
-- lair repo key <eyedeekay@safe-mail.net> Wed, 14 Nov 2018 06:07:55 -0500
|
||||
-- eyedeekay <hankhill19580@gmail.com> Wed, 14 Nov 2018 06:07:55 -0500
|
||||
|
||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -2,4 +2,4 @@ sam-forwarder (0.1-1) unstable; urgency=medium
|
||||
|
||||
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
||||
|
||||
-- lair repo key <eyedeekay@safe-mail.net> Wed, 14 Nov 2018 06:07:55 -0500
|
||||
-- eyedeekay <hankhill19580@gmail.com> Wed, 14 Nov 2018 06:07:55 -0500
|
||||
|
14
debian/control
vendored
14
debian/control
vendored
@ -1,15 +1,17 @@
|
||||
Source: sam-forwarder
|
||||
Section: unknown
|
||||
Priority: optional
|
||||
Maintainer: lair repo key <eyedeekay@safe-mail.net>
|
||||
Maintainer: eyedeekay <hankhill19580@gmail.com>
|
||||
Build-Depends: debhelper (>= 11)
|
||||
Standards-Version: 4.1.3
|
||||
Homepage: <insert the upstream URL, if relevant>
|
||||
#Vcs-Browser: https://salsa.debian.org/debian/sam-forwarder
|
||||
#Vcs-Git: https://salsa.debian.org/debian/sam-forwarder.git
|
||||
Homepage: https://github.com/eyedeekay/sam-forwarder
|
||||
Vcs-Browser: https://github.com/eyedeekay/sam-forwarder
|
||||
Vcs-Git: https://github.com/eyedeekay/sam-forwarder.git
|
||||
|
||||
Package: sam-forwarder
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: <insert up to 60 chars description>
|
||||
<insert long description, indented with spaces>
|
||||
Description: Out-of-router i2ptunnel-like application.
|
||||
sam-forwarder is a socat-inspired suite of tunneling tools for the i2p network.
|
||||
It provides the same features as i2ptunnel, but does so using a router-agnostic
|
||||
SAM application which accepts i2pd-like ini files and command-line parameters.
|
||||
|
2
debian/copyright
vendored
2
debian/copyright
vendored
@ -8,7 +8,7 @@ Copyright: <years> <put author's name and email here>
|
||||
License: MIT
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2018 lair repo key <eyedeekay@safe-mail.net>
|
||||
Copyright: 2018 eyedeekay <hankhill19580@gmail.com>
|
||||
License: MIT
|
||||
|
||||
License: MIT
|
||||
|
2
debian/manpage.1.ex
vendored
2
debian/manpage.1.ex
vendored
@ -1,5 +1,5 @@
|
||||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" (C) Copyright 2018 lair repo key <eyedeekay@safe-mail.net>,
|
||||
.\" (C) Copyright 2018 eyedeekay <hankhill19580@gmail.com>,
|
||||
.\"
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
|
4
debian/manpage.sgml.ex
vendored
4
debian/manpage.sgml.ex
vendored
@ -24,8 +24,8 @@ manpage.1: manpage.sgml
|
||||
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
|
||||
allowed: see man(7), man(1). -->
|
||||
<!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
|
||||
<!ENTITY dhemail "<email>eyedeekay@safe-mail.net</email>">
|
||||
<!ENTITY dhusername "lair repo key">
|
||||
<!ENTITY dhemail "<email>hankhill19580@gmail.com</email>">
|
||||
<!ENTITY dhusername "eyedeekay">
|
||||
<!ENTITY dhucpackage "<refentrytitle>Sam-forwarder</refentrytitle>">
|
||||
<!ENTITY dhpackage "sam-forwarder">
|
||||
|
||||
|
4
debian/manpage.xml.ex
vendored
4
debian/manpage.xml.ex
vendored
@ -48,8 +48,8 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||
<!ENTITY dhfirstname "FIRSTNAME">
|
||||
<!ENTITY dhsurname "SURNAME">
|
||||
<!-- dhusername could also be set to "&dhfirstname; &dhsurname;". -->
|
||||
<!ENTITY dhusername "lair repo key">
|
||||
<!ENTITY dhemail "eyedeekay@safe-mail.net">
|
||||
<!ENTITY dhusername "eyedeekay">
|
||||
<!ENTITY dhemail "hankhill19580@gmail.com">
|
||||
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
|
||||
allowed: see man(7), man(1) and
|
||||
http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
|
||||
|
Reference in New Issue
Block a user