summaryrefslogtreecommitdiff
path: root/harmony/iproute2/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'harmony/iproute2/APKBUILD')
-rw-r--r--harmony/iproute2/APKBUILD59
1 files changed, 0 insertions, 59 deletions
diff --git a/harmony/iproute2/APKBUILD b/harmony/iproute2/APKBUILD
deleted file mode 100644
index 755d5e21a..000000000
--- a/harmony/iproute2/APKBUILD
+++ /dev/null
@@ -1,59 +0,0 @@
-# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-pkgname=iproute2
-pkgver=4.13.0
-pkgrel=0
-pkgdesc="IP Routing Utilities"
-url="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
-arch="all"
-license="GPL2"
-depends=""
-install="$pkgname.post-install"
-makedepends="bison flex bash libelf-dev"
-options="!check"
-subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
-source="http://kernel.org/pub/linux/utils/net/iproute2/iproute2-$pkgver.tar.xz
- musl-fixes.patch"
-builddir="$srcdir"/$pkgname-$pkgver
-patch_args="-p0"
-
-prepare() {
- default_prepare
- cd "$builddir"
-
- sed -i '/^TARGETS=/s: arpd : :' misc/Makefile
- sed -i 's:/usr/local:/usr:' tc/m_ipt.c include/iptables.h
- sed -i -e 's:=/share:=/usr/share:' \
- -e 's:-Werror::' Makefile
-}
-
-build() {
- cd "$builddir"
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --localstatedir=/var
- make CCOPTS="-D_GNU_SOURCE $CFLAGS" LIBDIR=/lib
-}
-
-package() {
- cd "$builddir"
- make -j1 DESTDIR="$pkgdir" install
-}
-
-bashcomp() {
- depends=""
- pkgdesc="Bash completions for $pkgname"
- install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
-
- mkdir -p "$subpkgdir"/usr/share/
- mv "$pkgdir"/usr/share/bash-completion \
- "$subpkgdir"/usr/share
-
- rmdir -p "$pkgdir"/usr/share 2>/dev/null || true
-}
-
-sha512sums="f96d2839aec1f439bfac504c8e3881c063dacbf4c67b15f0e3da9882d2fa013cba33c23602de3eab624e0eecbb911a13967d60bddcdf097f47a580a5a77b5e3a iproute2-4.13.0.tar.xz
-03f41867cc728d3fbf372ef00d8e90debd03671cff052f5e75dcfbeffbdb6e2c4b10d16e0737cdf473b063b710e8e2938a8f64cfa1be93da2c7878ce6ca51583 musl-fixes.patch"