diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-07-25 21:20:08 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-07-25 21:20:08 +0200 |
commit | dc261cc04036eb515feb5963a3a200e121fc589d (patch) | |
tree | 3bf1e34c0f67c274db54597ba4a62d3ae29e23e1 /testing/frr | |
parent | 693e5b185fa7dcaeca67a070ff4f6e138542ddae (diff) | |
download | aports-dc261cc04036eb515feb5963a3a200e121fc589d.tar.bz2 aports-dc261cc04036eb515feb5963a3a200e121fc589d.tar.xz |
Revert "testing/frr: new aport for free range routing, a fork of quagga"
This reverts commit 6c21984c5b86ca03c72a88927f8c1de0c420e25f.
This aport violates many policy and conventions for writing apkbuilds,
see comments on
https://github.com/alpinelinux/aports/commit/6c21984c5b86ca03c72a88927f8c1de0c420e25f.
Diffstat (limited to 'testing/frr')
-rw-r--r-- | testing/frr/APKBUILD | 67 | ||||
-rwxr-xr-x | testing/frr/frr | 19 | ||||
-rwxr-xr-x | testing/frr/frr.post-deinstall | 6 | ||||
-rwxr-xr-x | testing/frr/frr.pre-deinstall | 4 | ||||
-rwxr-xr-x | testing/frr/frr.pre-install | 10 | ||||
-rw-r--r-- | testing/frr/make-check-bypass-isisd-tlv.patch | 49 |
6 files changed, 0 insertions, 155 deletions
diff --git a/testing/frr/APKBUILD b/testing/frr/APKBUILD deleted file mode 100644 index 374c242744..0000000000 --- a/testing/frr/APKBUILD +++ /dev/null @@ -1,67 +0,0 @@ -# Maintainer: Arthur Jones <arthur.jones@riverbed.com> -pkgname=frr -pkgver=5.0.1 -pkgrel=0 -pkgdesc="FRRouting is a fork of quagga" -pkgusers="frr" -pkggroups="frr" -url="https://frrouting.org/" -arch="x86_64" -license="GPL-2.0-only and LGPL-2.1-only" -depends="json-c c-ares iproute2 python py-ipaddr bash" -makedepends="ncurses-dev net-snmp-dev gawk texinfo perl - acct autoconf automake bash bison bsd-compat-headers - c-ares-dev cryptsetup-libs device-mapper-libs flex - json-c-dev kmod lddtree libacl libblkid libburn libedit - libisoburn libisofs libltdl libtool libuuid linux-headers lzo m4 mkinitfs - mtools pcre perl python2-dev readline-dev - squashfs-tools texinfo xorriso py-sphinx" -checkdepends="pytest py-setuptools" -install="$pkgname.pre-install $pkgname.pre-deinstall $pkgname.post-deinstall" -subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg $pkgname-openrc" -source="https://github.com/FRRouting/frr/archive/$pkgname-$pkgver.tar.gz - make-check-bypass-isisd-tlv.patch - frr - " -builddir="$srcdir"/$pkgname-$pkgname-$pkgver - -_sbindir=/usr/lib/frr -_sysconfdir=/etc/frr -_libdir=/usr/lib -_localstatedir=/var/run/frr - -build() { - cd "$builddir" - ./bootstrap.sh - ./configure \ - --prefix=/usr \ - --sbindir=$_sbindir \ - --sysconfdir=$_sysconfdir \ - --libdir=$_libdir \ - --localstatedir=$_localstatedir \ - --enable-systemd=no \ - --enable-vtysh \ - --enable-multipath=64 \ - --enable-vty-group=frrvty \ - --enable-user=${pkgusers%% *} \ - --enable-group=${pkggroups%% *} - make -} - -check() { - cd "$builddir" - - make -j 1 check -} - -package() { - cd "$builddir" - make DESTDIR="$pkgdir" install - - install -Dm644 "$builddir"/tools/etc/frr/daemons "$pkgdir"$_sysconfdir - install -Dm644 "$builddir"/tools/etc/frr/daemons.conf "$pkgdir"$_sysconfdir - install -Dm755 "$srcdir"/frr "$pkgdir"/etc/init.d/frr -} -sha512sums="e2a3a4e21998f8c85b59fc971190d0b5340bbcd88356a637740ad8e564275b0df14da78b72a24a99a58435725cded1b9089814fc926a7a4080bd3a8762973548 frr-5.0.1.tar.gz -3c679b857018d82443abd34823e712a8657a597b4210730d260e9796516982a137234354422cb439989985367531d600e205d3fb791cdb7b212425bb704c2016 make-check-bypass-isisd-tlv.patch -c8c568c97925191a66d51921a93f86b87b1f47180900528deb96cb91c3a2ee3b8e0874e6397ed7d1406f396d6f1e5afb847155feec74d3f00bb3329dd7d9f0b0 frr" diff --git a/testing/frr/frr b/testing/frr/frr deleted file mode 100755 index 1721628577..0000000000 --- a/testing/frr/frr +++ /dev/null @@ -1,19 +0,0 @@ -#!/sbin/openrc-run - -description="FRRouting" - -start() { - exec /usr/lib/frr/frr start -} - -stop() { - exec /usr/lib/frr/frr stop -} - -restart() { - exec /usr/lib/frr/frr restart -} - -status() { - exec /usr/lib/frr/frr status -} diff --git a/testing/frr/frr.post-deinstall b/testing/frr/frr.post-deinstall deleted file mode 100755 index 8f5d3dc40c..0000000000 --- a/testing/frr/frr.post-deinstall +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -getent passwd frr > /dev/null && deluser frr -getent group frrvty > /dev/null && delgroup frrvty -getent group frr > /dev/null && delgroup frr -exit 0 diff --git a/testing/frr/frr.pre-deinstall b/testing/frr/frr.pre-deinstall deleted file mode 100755 index 72cf73bc1c..0000000000 --- a/testing/frr/frr.pre-deinstall +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -/etc/init.d/frr stop -exit 0 diff --git a/testing/frr/frr.pre-install b/testing/frr/frr.pre-install deleted file mode 100755 index da608cdcbd..0000000000 --- a/testing/frr/frr.pre-install +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -for g in frr frrvty; do - ! getent group $g > /dev/null && addgroup -S $g -done - -! getent passwd frr > /dev/null && \ - adduser -S -D -h /var/run/frr -s /sbin/nologin -G frr -g frr frr - -adduser frr frrvty diff --git a/testing/frr/make-check-bypass-isisd-tlv.patch b/testing/frr/make-check-bypass-isisd-tlv.patch deleted file mode 100644 index b7a73b353f..0000000000 --- a/testing/frr/make-check-bypass-isisd-tlv.patch +++ /dev/null @@ -1,49 +0,0 @@ -commit f404be7c728ca3433bb4aeaeac5e3c450941de35 -Author: Arthur Jones <arthur.jones@riverbed.com> -Date: Wed Jun 6 07:47:17 2018 -0700 - - tests/isisd: bypass test_fuzz_isis_tlv when inet_ntop is broken - - On Alpine Linux edge, musl does not seem to be RFC 5952 4.2.2 - compliant (how to print a single :0: in the IPv6 address). Let's - skip that test, as we get false negatives when running against - that version of musl. - - Credit for the idea for the fix and how to fix it is due to - chris@opensourcerouting.org. - - Testing done: - - make check on alpine linux passes now - - Issue: https://github.com/FRRouting/frr/issues/2375 - Signed-off-by: Arthur Jones <arthur.jones@riverbed.com> - -diff --git a/tests/isisd/test_fuzz_isis_tlv.py b/tests/isisd/test_fuzz_isis_tlv.py -index bf700bfee..d96e3c4fe 100644 ---- a/tests/isisd/test_fuzz_isis_tlv.py -+++ b/tests/isisd/test_fuzz_isis_tlv.py -@@ -2,10 +2,21 @@ import frrtest - - import pytest - import platform -+import socket - --if platform.uname()[0] == 'SunOS': -+ -+## -+# on musl, ntop compresses a single :0: -> :: which is against RFC -+## -+def inet_ntop_broken(): -+ addr = '1:2:3:4:0:6:7:8' -+ return socket.inet_ntop(socket.AF_INET6, -+ socket.inet_pton(socket.AF_INET6, addr)) != addr -+ -+ -+if platform.uname()[0] == 'SunOS' or inet_ntop_broken(): - class TestFuzzIsisTLV: -- @pytest.mark.skipif(True, reason='Test unsupported on SunOS') -+ @pytest.mark.skipif(True, reason='Test unsupported') - def test_exit_cleanly(self): - pass - else: |