aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2019-05-21 10:00:31 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2019-05-21 11:01:05 +0000
commiteeb36921f917b1808637bb7cb358d38cbf23f27d (patch)
tree5af63899ec83f6eda5d52b78e12b6d57edaf4be0 /testing
parent1e7a5ca5c227296b3a3e30ea1fb7a68e6fc5bd3f (diff)
downloadaports-eeb36921f917b1808637bb7cb358d38cbf23f27d.tar.bz2
aports-eeb36921f917b1808637bb7cb358d38cbf23f27d.tar.xz
wireguard-rpi: move to community and refactor
build both rpi and rpi2 from same apkbuild Closes: GH-7980
Diffstat (limited to 'testing')
-rw-r--r--testing/wireguard-rpi/APKBUILD67
1 files changed, 0 insertions, 67 deletions
diff --git a/testing/wireguard-rpi/APKBUILD b/testing/wireguard-rpi/APKBUILD
deleted file mode 100644
index 64a554fd09..0000000000
--- a/testing/wireguard-rpi/APKBUILD
+++ /dev/null
@@ -1,67 +0,0 @@
-# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
-# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
-
-# when changing _ver we *must* bump _rel
-# we must also match up _toolsrel with wireguard-tools
-_name=wireguard
-_ver=0.0.20190406
-_rel=0
-_toolsrel=0
-
-_flavor=${FLAVOR:-rpi}
-_kpkg=linux-$_flavor
-_kver=4.19.41
-_krel=0
-
-_kpkgver="$_kver-r$_krel"
-_kabi="$_kver-$_krel-$_flavor"
-
-pkgname=$_name-$_flavor
-pkgver=$_kver
-pkgrel=$(( $_krel + $_rel ))
-
-pkgdesc="Next generation secure network tunnel: kernel modules for $_flavor"
-arch='armhf armv7 aarch64'
-url='https://www.wireguard.com'
-license="GPL-2.0"
-depends="$_kpkg=$_kpkgver"
-makedepends="$_kpkg-dev=$_kpkgver libmnl-dev"
-install_if="wireguard-tools=$_ver-r$_toolsrel $_kpkg=$_kpkgver"
-options="!check"
-source="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$_ver.tar.xz"
-builddir="$srcdir"/WireGuard-$_ver
-
-prepare() {
- default_prepare
- # verify the kernel version
- local _kapkbuild=../../main/linux-$_pkgver/APKBUILD
- if [ -f $_kapkbuild ]; then
- ( . $_kapkbuild
- pkgname=$_name-$_flavor
- [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
- [ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
- return 0
- )
- fi
-}
-
-build() {
- cd "$builddir"
- # only building module: see wireguard-tools for userspace
- unset LDFLAGS
- make -C src/ \
- KERNELDIR=/lib/modules/$_kabi/build \
- module
-}
-
-package() {
- cd "$builddir/src"
-
- local module=
- for module in *.ko; do
- install -v -D -m644 ${module} \
- "$pkgdir/lib/modules/$_kabi/extra/${module}"
- done
-}
-
-sha512sums="e3035030299f5a6ae3ac0c2e35dc2d54745cda8f31185b21c6590f1ddcc9c7a83bf7b71cc71f6d48ed6dc8f2b31f3c704f8fa85685d4113f4c560f7eba7b7d5e WireGuard-0.0.20190406.tar.xz"