blob: 6f0b761099da5d6ee9f5ad3133812906936788c9 (
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
|
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=cjdns
pkgver=17.4
pkgrel=1
pkgdesc='A routing engine designed for security, scalability, speed and ease of use'
url='https://github.com/cjdelisle/cjdns'
arch='x86_64 armhf'
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"
CJDNS_RELEASE_VERSION="${pkgver}" bash 'do'
}
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="e74f25941879e807086a8b70771fcf60 cjdns-17.4.tar.gz"
sha256sums="2f30aa4d2cc96a6c1f00e873df19b7b213cca1af716d74a091f59aa98b5758c4 cjdns-17.4.tar.gz"
sha512sums="16f13d39b09b8388a2814e234c1f866d87c6699d215cce78885258224c9a5969720e436f960b8b160d47eb403622d81947234323c8b4734a9cc68de247b314de cjdns-17.4.tar.gz"
|