# Maintainer: Bartłomiej Piotrowski 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"