-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9831750
commit b57c8d8
Showing
7 changed files
with
49 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
PKG_NAME = wireguard-tools | ||
PKG_VERS = 1.0.20200827 | ||
PKG_EXT = tar.xz | ||
PKG_DIST_SITE = https://git.zx2c4.com/$(PKG_NAME)/snapshot | ||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
|
||
REQ_KERNEL = 1 | ||
|
||
HOMEPAGE = https://www.wireguard.com | ||
COMMENT = WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. | ||
LICENSE = GPLv2 | ||
|
||
ENV += WITH_WGQUICK=yes | ||
ENV += WITH_BASHCOMPLETION=no | ||
ENV += WITH_SYSTEMDUNITS=no | ||
ENV += PREFIX=$(STAGING_INSTALL_PREFIX) | ||
|
||
CONFIGURE_TARGET = noop | ||
COMPILE_TARGET = wireguard-compile | ||
INSTALL_TARGET = wireguard-install | ||
|
||
include ../../mk/spksrc.cross-cc.mk | ||
|
||
.PHONY: wireguard-compile wireguard-install | ||
wireguard-compile: | ||
$(RUN) $(MAKE) -C src/ | ||
wireguard-install: | ||
$(RUN) $(MAKE) -C src/ install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bin:bin/wg | ||
rsc:bin/wg-quick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
wireguard-tools-1.0.20200827.tar.xz SHA1 96356ca99fe4fb2abaccb27fc336d6183df1979e | ||
wireguard-tools-1.0.20200827.tar.xz SHA256 51bc85e33a5b3cf353786ae64b0f1216d7a871447f058b6137f793eb0f53b7fd | ||
wireguard-tools-1.0.20200827.tar.xz MD5 70c4c1a0260d89ca27abdadad10f450b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
PKG_NAME = wireguard | ||
PKG_VERS = 0.0.20190406 | ||
PKG_VERS = 1.0.20210124 | ||
PKG_EXT = tar.xz | ||
PKG_DIST_SITE = https://git.zx2c4.com/WireGuard/snapshot | ||
PKG_DIST_NAME = WireGuard-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
PKG_DIST_SITE = https://git.zx2c4.com/wireguard-linux-compat/snapshot | ||
PKG_DIST_NAME = wireguard-linux-compat-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIR = wireguard-linux-compat-$(PKG_VERS) | ||
|
||
REQ_KERNEL = 1 | ||
REQUIRE_KERNEL = 1 | ||
|
||
HOMEPAGE = https://www.wireguard.com | ||
COMMENT = WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. | ||
LICENSE = GPLv2 | ||
|
||
DEPENDS = cross/libmnl | ||
|
||
CONFIGURE_TARGET = nope | ||
ENV += KERNELDIR=$(WORK_DIR)/linux | ||
|
||
CONFIGURE_TARGET = noop | ||
COMPILE_TARGET = wireguard-compile | ||
INSTALL_TARGET = wireguard-install | ||
|
||
include ../../mk/spksrc.cross-cc.mk | ||
|
||
.PHONY: wireguard-compile wireguard-install | ||
wireguard-compile: | ||
$(RUN) && cd $(WORK_DIR)/$(PKG_NAME)-$(PKG_VERS)/src && KERNELDIR=$(KERNEL_DIR) $(MAKE) | ||
$(RUN) DESTDIR=$(STAGING_INSTALL_PREFIX) $(MAKE) -C src/ module | ||
wireguard-install: | ||
install -m 755 -d $(STAGING_INSTALL_PREFIX)/bin | ||
install -m 755 $(WORK_DIR)/$(PKG_NAME)-$(PKG_VERS)/src/tools/wg $(STAGING_INSTALL_PREFIX)/bin | ||
install -m 755 $(WORK_DIR)/$(PKG_NAME)-$(PKG_VERS)/src/tools/wg-quick/linux.bash $(STAGING_INSTALL_PREFIX)/bin/wg-quick | ||
install -m 644 $(WORK_DIR)/$(PKG_NAME)-$(PKG_VERS)/src/wireguard.ko $(STAGING_INSTALL_PREFIX)/ | ||
install -m 644 $(WORK_DIR)/$(PKG_DIR)/src/wireguard.ko $(STAGING_INSTALL_PREFIX)/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
bin:bin/wg | ||
lib:lib/libmnl.a | ||
rsc:lib/libmnl.la | ||
rsc:wireguard.ko | ||
rsc:bin/wg-quick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
WireGuard-0.0.20190406.tar.xz SHA1 3aed7b6cedaf40eaa594d547e3c10f92fe1b9b2e | ||
WireGuard-0.0.20190406.tar.xz SHA256 2f06f3adf70b95e74a7736a22dcf6e9ef623b311a15b7d55b5474e57c3d0415b | ||
WireGuard-0.0.20190406.tar.xz MD5 c11254fe48695e61c145a7e82756ecba | ||
wireguard-linux-compat-1.0.20210124.tar.xz SHA1 c7f894357a0549b925f4471f26f8105b0287b25c | ||
wireguard-linux-compat-1.0.20210124.tar.xz SHA256 dac6e68cd4c3db441499850dfa8a70706384a3295f37fda1b839a50b79faef54 | ||
wireguard-linux-compat-1.0.20210124.tar.xz MD5 45fe2a797dd57ff529f5f09d0754cef8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters