diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-01-21 08:19:11 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2020-01-21 09:46:03 +0000 |
commit | 062a09c7a0f6a00a111287462ad1d6dd93fe67ef (patch) | |
tree | 709aa7e8e929f6d04482f109daead0303c845764 /unmaintained | |
parent | 27a8fe38c7b36c997b538316edbcac97f4bfaf8f (diff) | |
download | alpine_aports-062a09c7a0f6a00a111287462ad1d6dd93fe67ef.tar.bz2 alpine_aports-062a09c7a0f6a00a111287462ad1d6dd93fe67ef.tar.xz alpine_aports-062a09c7a0f6a00a111287462ad1d6dd93fe67ef.zip |
unmaintained/cjdns: move from main
Requires python2
Upstream issue: https://github.com/hyperboria/bugs/issues/194
Diffstat (limited to 'unmaintained')
-rw-r--r-- | unmaintained/cjdns/APKBUILD | 51 | ||||
-rw-r--r-- | unmaintained/cjdns/cjdns.post-install | 5 | ||||
-rw-r--r-- | unmaintained/cjdns/no-march-flag.patch | 13 |
3 files changed, 69 insertions, 0 deletions
diff --git a/unmaintained/cjdns/APKBUILD b/unmaintained/cjdns/APKBUILD new file mode 100644 index 0000000000..894b6e5605 --- /dev/null +++ b/unmaintained/cjdns/APKBUILD | |||
@@ -0,0 +1,51 @@ | |||
1 | # Maintainer: kpcyrd <git@rxv.cc> | ||
2 | # Contributor: kpcyrd <git@rxv.cc> | ||
3 | # Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> | ||
4 | |||
5 | pkgname=cjdns | ||
6 | pkgver=20.4 | ||
7 | pkgrel=0 | ||
8 | pkgdesc="A routing engine designed for security, scalability, speed and ease of use" | ||
9 | url="https://github.com/cjdelisle/cjdns" | ||
10 | arch="all !x86 !s390x" | ||
11 | license="GPL-3.0-or-later" | ||
12 | makedepends="nodejs python2 linux-headers libseccomp-dev" | ||
13 | install="$pkgname.post-install" | ||
14 | subpackages="$pkgname-doc $pkgname-openrc" | ||
15 | source="$pkgname-$pkgver.tar.gz::https://github.com/cjdelisle/cjdns/archive/cjdns-v$pkgver.tar.gz | ||
16 | no-march-flag.patch" | ||
17 | |||
18 | builddir="$srcdir/$pkgname-$pkgname-v$pkgver" | ||
19 | |||
20 | build() { | ||
21 | cd "$builddir" | ||
22 | export CJDNS_RELEASE_VERSION="$pkgver" | ||
23 | node ./node_build/make.js | ||
24 | } | ||
25 | |||
26 | check() { | ||
27 | cd "$builddir" | ||
28 | ./cjdroute --help >/dev/null | ||
29 | } | ||
30 | |||
31 | package() { | ||
32 | cd "$builddir" | ||
33 | install -Dm755 cjdroute "$pkgdir/usr/sbin/cjdroute" | ||
34 | install -Dm755 contrib/openrc/cjdns "$pkgdir/etc/init.d/cjdns" | ||
35 | install -Dm644 doc/man/cjdroute.conf.5 \ | ||
36 | "$pkgdir/usr/share/man/man5/cjdroute.conf.5" | ||
37 | install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" | ||
38 | install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" \ | ||
39 | doc/admin-api.md \ | ||
40 | doc/configure.md \ | ||
41 | doc/djc_layer_model.md \ | ||
42 | doc/nat-gateway.md \ | ||
43 | doc/network-services.md \ | ||
44 | doc/non-root-user.md \ | ||
45 | doc/security_specification.md \ | ||
46 | doc/shorewall_and_vpn_gateway_howto.md \ | ||
47 | doc/tunnel.md | ||
48 | } | ||
49 | |||
50 | sha512sums="5a6bd36b2edd07fa883efa4b14dd8a7ba0189bf43404e27ab6ae3b0c2f1e63ce738c52b34416f51f93c9752f6654ea95eac2c71897d2a1e19f4a6d1ca3bad46d cjdns-20.4.tar.gz | ||
51 | 0c487a46609b75408d83cee954fc49f47997f0e9ee2bb8f64c3edc7e67273e5e90b4b2028847e09faa4bd1310b82f1a86fa7d0d0c42f18510cc9dcd4bccb8808 no-march-flag.patch" | ||
diff --git a/unmaintained/cjdns/cjdns.post-install b/unmaintained/cjdns/cjdns.post-install new file mode 100644 index 0000000000..0e091e941c --- /dev/null +++ b/unmaintained/cjdns/cjdns.post-install | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | umask 007 | ||
4 | [ ! -f /etc/cjdroute.conf ] && \ | ||
5 | cjdroute --genconf > /etc/cjdroute.conf | ||
diff --git a/unmaintained/cjdns/no-march-flag.patch b/unmaintained/cjdns/no-march-flag.patch new file mode 100644 index 0000000000..aaec16c2ed --- /dev/null +++ b/unmaintained/cjdns/no-march-flag.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | diff --git a/node_build/make.js b/node_build/make.js | ||
2 | index b3ae15d..b86e07f 100644 | ||
3 | --- a/node_build/make.js | ||
4 | +++ b/node_build/make.js | ||
5 | @@ -29,7 +29,7 @@ var GCC = process.env['CC']; | ||
6 | var CFLAGS = process.env['CFLAGS']; | ||
7 | var LDFLAGS = process.env['LDFLAGS']; | ||
8 | |||
9 | -var NO_MARCH_FLAG = ['arm', 'ppc', 'ppc64']; | ||
10 | +var NO_MARCH_FLAG = ['arm', 'arm64', 'mips', 'mips64', 'mips64el', 'mipsel', 'ppc', 'ppc64']; | ||
11 | |||
12 | if (GCC) { | ||
13 | // Already specified. | ||