Commit Graph

6641 Commits

Author SHA1 Message Date
Jeff Becker
6d00c3ecd2
update windows parts
* document need for ninja-build package
* update contrib/windows.sh, remove -DCROSS_COMPILE option, set -e and set +x
2021-02-09 11:05:02 -05:00
Jeff Becker
fdc3de6f9c
redo readme structure:
* add notes about debian packages (fixes #1521)
* reorder sections to have better flow
* add notes about win/mac release location
2021-02-09 11:04:22 -05:00
Jeff
5c1f66b8c0
Merge pull request #1531 from komachi/update-apparmor
Update AppArmor profile
2021-02-06 08:00:52 -05:00
Anton Nesterov
da2c979936 update apparmor profile:
add nameservice abstraction
give profile a name
allow to read conf, tmp files, etc.
remove /lib/@{multiarch}/ld-*.so mr, already covered by abstractions/base
allow local additions
2021-02-05 20:16:57 +00:00
Jeff
c5a423d3f8
Merge pull request #1529 from majestrate/nodedb-refactor-2021-02-02
NodeDB refactor
2021-02-03 16:42:12 -05:00
Jeff Becker
1f1db29816
GetIf -> GetRandom 2021-02-03 16:38:31 -05:00
Jeff Becker
f24cdb305b
clean up calls to NodeDB::GetIf to be cleaner and more concise 2021-02-03 14:49:33 -05:00
Jeff Becker
c8aba0af31
make llarp::NodeDB::GetIf always randmize location 2021-02-03 14:49:00 -05:00
Jeff Becker
d55705362a
use good routers 2021-02-03 13:50:12 -05:00
Jeff Becker
b6dbbb4bef
consolidate pathbuilder logic
* deduplicate code for path hops selection
2021-02-03 13:44:43 -05:00
Jeff Becker
242e56507c
proper lokimq -> oxenmq refactor 2021-02-03 13:12:21 -05:00
Jeff Becker
1e58715e0b
fix pybind layer 2021-02-02 13:16:34 -05:00
Jeff Becker
d112a50096
minidump fix 2021-02-02 13:16:18 -05:00
Jeff Becker
922f4fb724
fix iteration bug 2021-02-02 13:15:51 -05:00
Jeff Becker
df4ea34a56
nodedb refactor
* bump zmq static dep
* lokimq -> oxenmq
* llarp_nodedb -> llarp::NodeDB
* remove all crufty api parts of NodeDB
* make NodeDB rc selection api not suck
* make path builder api not suck
* propagate all above changes so that unit tests work and it all compiles
2021-02-02 09:35:40 -05:00
Jeff Becker
811b2a3fbf
bump submodule 2021-02-02 08:14:32 -05:00
Jeff
5e2ba55c41
Merge pull request #1527 from jahway603/dev
fixed broken documentation link
2021-01-30 08:41:06 -05:00
jahway603
6eab03567a fixed broken documentation link 2021-01-30 02:52:43 -05:00
Jeff
899e0878eb
Merge pull request #1514 from jagerman/downgrade-required-libuv-version
Downgrade required libuv version to 1.18
2021-01-25 16:17:25 -05:00
Jason Rhinelander
3d0c9a90a8 Link against libdl for libuv 2021-01-25 15:52:15 -04:00
Jason Rhinelander
231674e5a5 Remove CMAKE_CROSSCOMPILE
We set CMAKE_CROSSCOMPILE in a few places, but that is just a typo for
CMAKE_CROSSCOMPILING.  However we don't need to set it at all: cmake
does so automatically whenever CMAKE_SYSTEM_NAME is set (which is why
our cross compiling actually works currently.)
2021-01-25 13:06:59 -04:00
Jason Rhinelander
60a267a136 Add automake+libtool for libuv static build 2021-01-25 12:58:20 -04:00
Jason Rhinelander
ab4013f00d Downgrade required libuv version to 1.18
(1.18 is the version found in bionic).
2021-01-25 12:52:48 -04:00
Jason Rhinelander
b3d2177e73
Fix build server name & path (#1516)
builds.lokinet.dev -> oxen.rocks
/loki-project/ -> /oxen-io/
2021-01-19 07:39:53 -05:00
Jeff
5f0f4e0c70
prevent crash by removing duplicate logic (#1515)
when a path expires or fails or something causes its lifecycle to end we have cleanup
logic that handles clean up for it. this removes a code path that was crashing that
is duplicated elsewhere and is thus probably safe to bin. yolo.
2021-01-19 07:39:22 -05:00
Jeff
0ed8942dc6
libuv cmake fixups (#1511)
* fix up cmake parts for libuv
* make libuv use external project via StaticBuild.cmake
* remove libuv submodule
2021-01-16 19:11:28 -05:00
Yevhen Stasiv
70ceeb10a6
Update readme.md (#1512)
Added missing instruction for FreeBSD install
2021-01-14 21:57:29 -05:00
Jason Rhinelander
d6231521d5
Merge pull request #1509 from majestrate/unbreak-build-2021-01-12
unbreak the build
2021-01-12 17:15:19 -04:00
Jeff Becker
f8c0195cfc
add ulimit -n 1024 to mac ci stuff because lol apple 2021-01-12 09:46:44 -05:00
Jeff Becker
82b3ec19e8
unbreak the build
* remove llarp/ev/pipe.cpp from cmake
* fix typo in llarp/ev/ev_libuv.cpp
2021-01-12 08:37:45 -05:00
Jeff
49b9ad7197
tun code refactor (#1495)
* partial tun code refactor

* take out the trash

* move vpn platform code into llarp/vpn/platform.cpp

* fix hive build

* fix win32

* fix memory leak on win32

* reduce cpu use

* make macos compile

* win32 patches:

* use wepoll for zmq
* use all cores on windows iocp read loop

* fix zmq patch for windows

* clean up cmake for win32

* add uninstall before reinstall option to win32 installer

* more ipv6 stuff

* make it compile

* fix up route poker

* remove an unneeded code block in macos wtf

* always use call to system

* fix route poker behavior on macos

* disable ipv6 on windows for now

* cpu perf improvement:

* colease calls to Router::PumpLL to 1 per event loop wakeup

* set up THEN add addresses

* emulate proactor event loop on win32

* remove excessively verbose error message

* fix issue #1499

* exclude uv_poll from win32 so that it can start up

* update logtag to include directory

* create minidump on windows if there was a crash

* make windows happy

* use dmp suffix on minidump files

* typo fix

* address feedback from jason
* use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR
* quote $@ in apply-patches in case path has spaces in it

* address feedback from tom

* remove llarp/ev/pipe
* add comments for clairification
* make event loop queue size constant named
2021-01-11 18:13:22 -05:00
Dimitris Apostolou
029b6db364
Fix macOS instructions (#1506) 2021-01-09 14:49:31 -05:00
Jason Rhinelander
7ad1030736
Add full-static-deps armhf build (+upload) (#1505)
* Add armhf static build + upload

* openssl build fix for static armhf build

Without this it tries building for arm64.

* Disable LTO for armhf static build

* Fix static lib check for arm
2021-01-04 16:17:29 -05:00
Jason Rhinelander
f9be8b6b73
Bump version & gui build (#1501) 2020-12-16 12:26:15 -05:00
Jeff Becker
7ee9d0281c
add llarp.endpoint rpc command with kill option to kill all active convotags given
a list of or a single remote service address.
2020-11-28 07:15:55 -05:00
Jeff Becker
1cb4203eff
Merge branch 'stable' into dev 2020-11-23 14:48:35 -05:00
Jeff
1eb5c6deed
resolve merge conflicts for 0.8.2 (#1493)
* Update gui win32 package url (#1466)

* Dev to stable (#1471)

* Install less stuff on windows CI

mingw-w64 is a metapackage that pulls in 4 different compilers
{i686,x86_64}×{-posix,-win32} but we only need x86_64-posix, so just
install that package.

* Update gui win32 package url (#1466) (#1468)

Co-authored-by: Jeff <jeff@i2p.rocks>

* stop lokinet before uninstalling service (#1469)

* stop lokinet before uninstalling service

* kill gui in uninstaller

* add helper script for building windows installers because i forgot how to most of the time.

* Update win32 gui download with smaller svg icon

Co-authored-by: Jeff <jeff@i2p.rocks>

Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
2020-11-23 14:45:30 -05:00
Jeff Becker
0d79117674
Merge branch 'dev' into stable 2020-11-23 14:36:37 -05:00
Jeff Becker
c24f6a6d2b
Merge branch 'stable' into dev 2020-11-23 14:36:20 -05:00
Jeff
6407733c8e
* make llarp.halt rpc call actually return a reply (#1488)
* add --kill flag to lokinet-vpn that calls llarp.halt
* make macos uninstaller kill lokinet via lokinet-vpn --kill
2020-11-20 12:37:30 -05:00
Jason Rhinelander
f1b074bb95
Merge pull request #1487 from jagerman/revert-uninstaller-subdir
Revert "Build mac uninstaller as subproject instead of externalprojec…
2020-11-18 18:15:56 -04:00
Jeff
b18546086a
make macos uninstaller actually kill and uninstall lokinet (#1484)
* macos fluff

* make uninstaller work, the uninstall script needs to be called with /usr/bin/sudo to work because god know why it needs that even though it's already root.
* add logrotation
* make the uninstall script kill all the things

* revert

* use correct regular expression

* remove logrotate configs rename logrotate config file name to be more descriptive
2020-11-18 17:06:48 -05:00
Jason Rhinelander
bc62e9dd2d Revert "Build mac uninstaller as subproject instead of externalproject (#1485)"
This reverts commit e62f04c601.
2020-11-18 17:54:29 -04:00
Jason Rhinelander
e62f04c601
Build mac uninstaller as subproject instead of externalproject (#1485)
This makes it easier to build/rebuild via a target, and is a bit
cleaner.
2020-11-18 12:49:16 -05:00
Jason Rhinelander
a753e96d8d
Version bump (#1483)
* Bump version to 0.8.2

* Let cmake set PROJECT_NAME

`project(x ...)` already sets PROJECT_NAME (and CMAKE_PROKECT_NAME if
this is the top-level build) to `x`; the logic here seemed sort of
backwards.

* Get rid of uninstaller entitlement

We don't seem to need it anymore with Qt 5.15.1.

* Bump windows lokinet-gui build
2020-11-18 06:08:56 -05:00
Jason Rhinelander
225c991edd
Merge pull request #1478 from majestrate/macos-packaging-fixes-2020-11-13
reset dns in uninstall script
2020-11-17 20:10:23 -04:00
Jason Rhinelander
deae302571 macos: pass our pre-built static libs into the gui sub-build
Avoids the mac build needing to build lokimq & libzmq twice (once in
lokinet, then again in the gui)
2020-11-17 19:22:19 -04:00
Jason Rhinelander
8dd5bd6899 Update to lokimq 1.2.2 for segfault-at-shutdown fix 2020-11-17 19:22:19 -04:00
Jason Rhinelander
1c0e4dc4e7 Move all patches into contrib/patches 2020-11-17 19:22:19 -04:00
Jason Rhinelander
f9144a7bb3 Patch to avoid IP_DONTFRAG bug in latest xcode with broken Big Sur SDK 2020-11-17 19:22:19 -04:00