Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign uptesting/wireguard-grsec / wireguard-vanilla / wireguard-tools #948
Conversation
itoffshore
added some commits
Mar 2, 2017
This comment has been minimized.
This comment has been minimized.
algitbot
commented
Mar 2, 2017
|
Merged in 302e07d, 9b2a721, bb1bb8e by @kaniini. Thanks for your contribution! (This pull request has been closed automatically by GitHub PR Closer. If you think that it’s not resolved yet, please add a comment.) |
algitbot
closed this
Mar 2, 2017
itoffshore
deleted the
itoffshore:wireguard
branch
Mar 2, 2017
zx2c4
reviewed
Mar 2, 2017
|
Thanks for this package contribution! In the future, please give me a mention in any PRs or issues, so I can review before merging. This is wonderful work nonetheless, and I'm quite happy to see this in alpine. This review has a few little nits to cleanup in the next commit. |
| arch='all' | ||
| url='https://www.wireguard.io' | ||
| license="GPLv2" | ||
| makedepends="linux-grsec-dev=$_kpkgver libmnl-dev sparse" |
This comment has been minimized.
This comment has been minimized.
zx2c4
Mar 2, 2017
Contributor
You probably do not need to depend on sparse, unless you're actually doing development. It's not the "test suite" that you think it is.
This comment has been minimized.
This comment has been minimized.
|
|
||
| local module= | ||
| for module in *.ko; do | ||
| install -v -D -m644 ${module} \ |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
itoffshore
Mar 2, 2017
Author
Contributor
module-install tries to install into /lib & does not obey DESTDIR="$pkgdir" passed to make
| for module in *.ko; do | ||
| install -v -D -m644 ${module} \ | ||
| "$pkgdir/lib/modules/$_abi_release/extra/${module}" | ||
| done |
This comment has been minimized.
This comment has been minimized.
zx2c4
Mar 2, 2017
Contributor
Do you need to run depmod after installing kernel modules, or does some higher level alpine layer already do that for you?
This comment has been minimized.
This comment has been minimized.
itoffshore
Mar 2, 2017
Author
Contributor
the kernel modules should install themselves automatically when wireguard-tools is installed - fixing in #954
| return 0 | ||
| # currently failing: attribute 'nocapture': unknown attribute | ||
| # not part of musl libc ? | ||
| make -C src/ \ |
This comment has been minimized.
This comment has been minimized.
zx2c4
Mar 2, 2017
Contributor
Just remove this section. It doesn't do what you want in the first place. It's for development, not for usage by packagers. If this confusion becomes widespread, I'll just remove it from the package I distribute and keep the shortcut locally.
This comment has been minimized.
This comment has been minimized.
| arch='all' | ||
| url='https://www.wireguard.io' | ||
| license="GPLv2" | ||
| makedepends="libmnl-dev sparse" |
This comment has been minimized.
This comment has been minimized.
zx2c4
Mar 2, 2017
Contributor
Sparse has nothing to do with the tools and is not needed. Remove this dependency.
This comment has been minimized.
This comment has been minimized.
itoffshore
Mar 2, 2017
Author
Contributor
it was never a hard dependency to the userspace tools (only a build time depends)
removed in #954
| } | ||
|
|
||
| check() { | ||
| return 0 |
This comment has been minimized.
This comment has been minimized.
zx2c4
Mar 2, 2017
Contributor
This has no business at all of being in the -tools package, and doesn't do what you'd hope it does anyway. Please remove this section.
This comment has been minimized.
This comment has been minimized.
itoffshore
Mar 2, 2017
Author
Contributor
Alpine Linux's apkbuild runs check() on every single package in the repo now. If available it should run the software's built in unit tests.
Have removed make check as requested in #954
This comment has been minimized.
This comment has been minimized.
zx2c4
Mar 3, 2017
Contributor
I'm not sure how this would work for you, but the WireGuard module actually has built-in selftests when built in DEBUG mode. When enabled, either the module inserts and everything is fine, or it fails to insert, which implies the tests have failed (and you get something in dmesg). This probably is too difficult to do in a package though...
| arch='all' | ||
| url='https://www.wireguard.io' | ||
| license="GPLv2" | ||
| makedepends="linux-vanilla-dev=$_kpkgver libmnl-dev sparse" |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
||
| local module= | ||
| for module in *.ko; do | ||
| install -v -D -m644 ${module} \ |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
itoffshore
Mar 2, 2017
Author
Contributor
module-install tries to install into /lib & does not obey DESTDIR="$pkgdir" passed to make
This comment has been minimized.
This comment has been minimized.
zx2c4
Mar 3, 2017
•
Contributor
module-install will respond to INSTALL_MOD_PATH being set, actually. So this is the right way to do it. In the next WireGuard release, I'll investigate wiring DESTDIR up to INSTALL_MOD_PATH, so that these can be unified. Thanks for pointing out the shortcomings to me.
| for module in *.ko; do | ||
| install -v -D -m644 ${module} \ | ||
| "$pkgdir/lib/modules/$_abi_release/extra/${module}" | ||
| done |
This comment has been minimized.
This comment has been minimized.
zx2c4
Mar 2, 2017
Contributor
Do you need to run depmod after installing kernel modules, or does some higher level alpine layer already do that for you?
This comment has been minimized.
This comment has been minimized.
itoffshore
Mar 2, 2017
Author
Contributor
the kernel modules should install themselves automatically when wireguard-tools is installed - fixing in #954
| done | ||
| } | ||
|
|
||
| check() { |
This comment has been minimized.
This comment has been minimized.
zx2c4
Mar 2, 2017
Contributor
Just remove this section. It doesn't do what you want in the first place. It's for development, not for usage by packagers. If this confusion becomes widespread, I'll just remove it from the package I distribute and keep the shortcut locally.
This comment has been minimized.
This comment has been minimized.
itoffshore
Mar 2, 2017
Author
Contributor
Alpine Linux's apkbuild runs check() on every single package in the repo now. If available it should run the software's built in unit tests.
Have removed make check as requested in #954
This was referenced Mar 2, 2017
This comment has been minimized.
This comment has been minimized.
|
@zx2c4 - in summary:
At the moment NB: pinning the
|
This comment has been minimized.
This comment has been minimized.
That tests package is bogus and will never work. It should not ever be distributed as a package by distributions. As written elsewhere, if other people make this same confusion, then I'll just remove that code from the tree.
Awesome! That's super easy. I like the reverse dependency logic of apk; very nice. |
itoffshore commentedMar 2, 2017
WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
state-of-the-art cryptography.
It aims to be faster, simpler, leaner, and more useful than IPSec, while
avoiding the massive headache. It intends to be considerably more performant
than OpenVPN.
WireGuard is designed as a general purpose VPN for running on embedded
interfaces and super computers alike, fit for many different circumstances.
It runs over UDP.
https://www.wireguard.io