blob: 0f437ae1d522de481255efc6cd575b8c8a65ac54 (
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
35
36
37
38
39
40
41
42
43
44
45
46
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: Łukasz Jendrysik <scadu@yandex.com>
pkgname=cjdns
pkgver=18
pkgrel=0
pkgdesc="A routing engine designed for security, scalability, speed and ease of use"
url="https://github.com/cjdelisle/cjdns"
arch="all !x86"
license="GPL3"
depends=
makedepends="bash nodejs-lts python linux-headers libseccomp-dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/cjdelisle/${pkgname}/archive/cjdns-v${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-v$pkgver"
build() {
cd "$builddir"
export CJDNS_RELEASE_VERSION="${pkgver}"
bash 'do' || return 1
}
package() {
cd "$builddir"
install -Dm755 cjdroute "$pkgdir/usr/sbin/cjdroute"
install -Dm755 contrib/openrc/cjdns "$pkgdir/etc/init.d/cjdns"
install -Dm644 doc/man/cjdroute.conf.5 \
"${pkgdir}/usr/share/man/man5/cjdroute.conf.5"
install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
doc/admin-api.md \
doc/configure.md \
doc/djc_layer_model.md \
doc/nat-gateway.md \
doc/network-services.md \
doc/non-root-user.md \
doc/security_specification.md \
doc/shorewall_and_vpn_gateway_howto.md \
doc/tunnel.md
}
md5sums="9f6600d9ed0d87d4e17fbc9155ff0368 cjdns-18.tar.gz"
sha256sums="57e5fe05b9775daf16f23c16c24035a4e380a3c9461faa2e1bc9de0bc6b147ab cjdns-18.tar.gz"
sha512sums="3b7ed50c81ed51f8deea3999aa0b820f78de53da3d3937c13f572e35bb7c2a6f963d3779c2f0b7b4afc64e6a45ae98c4a6958a0c31d43d4309a47ae3ccbb709b cjdns-18.tar.gz"
|