diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-16 14:51:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-16 14:58:04 +0000 |
commit | cf26a40dcff09436df84223e6a7260a431b9e58f (patch) | |
tree | 56f201c1aee3c5de3052058cb30f9706fa0a32a3 | |
parent | 803c53c8d042b8336057858461b271421eff3b14 (diff) | |
download | alpine_aports-cf26a40dcff09436df84223e6a7260a431b9e58f.tar.bz2 alpine_aports-cf26a40dcff09436df84223e6a7260a431b9e58f.tar.xz alpine_aports-cf26a40dcff09436df84223e6a7260a431b9e58f.zip |
core/iproute2: upgrade to 2.6.29.1. move to /sbin
-rw-r--r-- | core/iproute2/APKBUILD | 20 | ||||
-rw-r--r-- | core/iproute2/iproute2.post-deinstall | 4 | ||||
-rw-r--r-- | core/iproute2/iproute2.post-install | 6 |
3 files changed, 21 insertions, 9 deletions
diff --git a/core/iproute2/APKBUILD b/core/iproute2/APKBUILD index 12cc37327a..522e0c4263 100644 --- a/core/iproute2/APKBUILD +++ b/core/iproute2/APKBUILD | |||
@@ -1,27 +1,29 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=iproute2 | 2 | pkgname=iproute2 |
3 | pkgver=2.6.28 | 3 | pkgver=2.6.29.1 |
4 | _realver=2.6.29-1 | ||
4 | pkgrel=0 | 5 | pkgrel=0 |
5 | pkgdesc="IP Routing Utilities" | 6 | pkgdesc="IP Routing Utilities" |
6 | url="http://www.linux-foundation.org/en/Net:Iproute2" | 7 | url="http://www.linux-foundation.org/en/Net:Iproute2" |
7 | license="GPL2" | 8 | license="GPL2" |
8 | depends="uclibc" | 9 | depends= |
10 | install="$pkgname.post-install $pkgname.post-deinstall" | ||
9 | makedepends="bison flex" | 11 | makedepends="bison flex" |
10 | subpackages="$pkgname-doc" | 12 | subpackages="$pkgname-doc" |
11 | source="http://devresources.linux-foundation.org/dev/$pkgname/download/$pkgname-$pkgver.tar.bz2" | 13 | source="http://devresources.linux-foundation.org/dev/iproute2/download/$pkgname-$_realver.tar.bz2 |
14 | $install" | ||
12 | 15 | ||
13 | build() { | 16 | build() { |
14 | cd "$srcdir"/$pkgname-$pkgver | 17 | cd "$srcdir"/$pkgname-$_realver |
15 | 18 | ||
16 | sed -i '/^TARGETS=/s: arpd : :' misc/Makefile | 19 | sed -i '/^TARGETS=/s: arpd : :' misc/Makefile |
17 | sed -i 's:/usr/local:/usr:' tc/m_ipt.c include/iptables.h || return 1 | 20 | sed -i 's:/usr/local:/usr:' tc/m_ipt.c include/iptables.h || return 1 |
18 | sed -i 's:=/share:=/usr/share:' Makefile || return 1 | 21 | sed -i 's:=/share:=/usr/share:' Makefile || return 1 |
19 | sed -i 's:=/sbin:=/usr/sbin:' Makefile || return 1 | ||
20 | sed -i 's:/lib/tc:/usr/lib/tc:' netem/Makefile || return 1 | ||
21 | |||
22 | 22 | ||
23 | ./configure || return 1 | 23 | ./configure || return 1 |
24 | make CCOPTS="-D_GNU_SOURCE $CFLAGS" LIBDIR=/usr/lib || return 1 | 24 | make CCOPTS="-D_GNU_SOURCE $CFLAGS" LIBDIR=/lib || return 1 |
25 | make DESTDIR="$pkgdir" install | 25 | make DESTDIR="$pkgdir" install |
26 | } | 26 | } |
27 | md5sums="595f9b17320f69e8d30d2fa80f1bca14 iproute2-2.6.28.tar.bz2" | 27 | md5sums="c1bc258a6c345905e79935ac7a3cc582 iproute2-2.6.29-1.tar.bz2 |
28 | da1571ff1c0241c5c7f333a48d908927 iproute2.post-install | ||
29 | ed8271a16ef48a769c50c3b529411018 iproute2.post-deinstall" | ||
diff --git a/core/iproute2/iproute2.post-deinstall b/core/iproute2/iproute2.post-deinstall new file mode 100644 index 0000000000..dd117e5d80 --- /dev/null +++ b/core/iproute2/iproute2.post-deinstall | |||
@@ -0,0 +1,4 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | busybox --install -s | ||
4 | |||
diff --git a/core/iproute2/iproute2.post-install b/core/iproute2/iproute2.post-install new file mode 100644 index 0000000000..36d567ea21 --- /dev/null +++ b/core/iproute2/iproute2.post-install | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ "$(readlink /bin/ip)" = "/bin/busybox" ]; then | ||
4 | rm -f /bin/ip | ||
5 | fi | ||
6 | exit 0 | ||