diff options
-rw-r--r-- | testing/cjdns/APKBUILD | 45 | ||||
-rw-r--r-- | testing/cjdns/cjdns.post-install | 5 |
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/cjdns/APKBUILD b/testing/cjdns/APKBUILD new file mode 100644 index 0000000000..328b3c86a8 --- /dev/null +++ b/testing/cjdns/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> + +pkgname=cjdns +pkgver=17.4 +pkgrel=0 +pkgdesc='A routing engine designed for security, scalability, speed and ease of use' +url='https://github.com/cjdelisle/cjdns' +arch=all +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/bin/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" diff --git a/testing/cjdns/cjdns.post-install b/testing/cjdns/cjdns.post-install new file mode 100644 index 0000000000..0e091e941c --- /dev/null +++ b/testing/cjdns/cjdns.post-install @@ -0,0 +1,5 @@ +#!/bin/sh + +umask 007 +[ ! -f /etc/cjdroute.conf ] && \ + cjdroute --genconf > /etc/cjdroute.conf |