summaryrefslogtreecommitdiff
path: root/testing/peervpn/APKBUILD
blob: 98874eaf42ad894b34603640f6eedc073c539cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Markus Juenemann <markus@juenemann.net>
# Maintainer: Markus Juenemann <markus@juenemann.net>
pkgname=peervpn
pkgver=0.044
pkgrel=4
pkgdesc="PeerVPN builds virtual ethernet networks between multiple computers"
options="!check" # No testsuite
url="https://peervpn.net"
arch="all"
license="GPL-3.0-or-later"
makedepends="openssl-dev zlib-dev linux-headers"
subpackages="$pkgname-openrc"
source="
	http://${pkgname}.net/files/${pkgname}-${pkgver//./-}.tar.gz
	peervpn.initd
	openssl-1.1.patch
	"

# peervpn has a strange versioning scheme.
builddir="$srcdir/$pkgname-${pkgver//./-}"

build() {
	make
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/sbin/$pkgname
	install -Dm600 $pkgname.conf "$pkgdir"/etc/$pkgname.conf
	install -Dm755 ${srcdir}/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="7c9dcfd1822ef4d9c5954589b041f7165df93bb81a35fc8b741702aad738bd846718822bb47ba8ac0c23ece1c5f9170334a688c3670cc8bd199733e49aaf5067  peervpn-0-044.tar.gz
50b40a4139499d384d0826a7449b19cd3fbe5869841461cd97e8a125518c3744a1a8c70445656c1a60dae4e2e4e3eb2331bf6b687c8886cb0075ed8ab45310bc  peervpn.initd
6f0608433bd01fce72ac916f311cafb111b0cef491a8b075ad9b54501957e74aa2746a4b526b358ccfe737b6db259c633e8cc1f10c8310b5bb7923d165db7eca  openssl-1.1.patch"