blob: fa195e7c30ae87609839ec20edfdd1b93c19ba6b (
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
47
48
49
50
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: Łukasz Jendrysik <scadu@yandex.com>
pkgname=cjdns
pkgver=19.1
pkgrel=1
pkgdesc="A routing engine designed for security, scalability, speed and ease of use"
url="https://github.com/cjdelisle/cjdns"
arch="all !x86 !s390x"
license="GPL3"
makedepends="bash nodejs python2 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
musl.patch"
builddir="$srcdir/$pkgname-$pkgname-v$pkgver"
build() {
cd "$builddir"
export CJDNS_RELEASE_VERSION="${pkgver}"
bash 'do' || return 1
}
check() {
cd "$builddir"
./cjdroute --help >/dev/null
}
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
}
sha512sums="9c29bf1d136237bd60e125718bdd2c6d7f5a651d51af50aea3173eed1626a402dac5a2a72f9fb129fc9af24c3b67472a1dfe7b2b6a09bb28d01a120fc667b206 cjdns-19.1.tar.gz
76bdfd6aa8feda1ba52cf579e8df87f5afd9db497a31654e7d0c76fbbc4635d89f1652a17bcc8650ec4d392e1736f892de53705eaf93a8e6061b145ef1033226 musl.patch"
|