diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-12-21 14:21:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-12-21 14:22:19 +0000 |
commit | 013d91193b63e80be1f7d6542345a91d0237d0cf (patch) | |
tree | d85bc530ca21c082aaf3a6b1db7c6cf7216757ab /main/net-tools | |
parent | 2bb133986e8fa90e2e76d53369f03861a87a74ef (diff) | |
download | aports-013d91193b63e80be1f7d6542345a91d0237d0cf.tar.bz2 aports-013d91193b63e80be1f7d6542345a91d0237d0cf.tar.xz |
main/net-tools: fix circular dep for mii-tool
Diffstat (limited to 'main/net-tools')
-rw-r--r-- | main/net-tools/APKBUILD | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/main/net-tools/APKBUILD b/main/net-tools/APKBUILD index a17a603f52..69ef84eead 100644 --- a/main/net-tools/APKBUILD +++ b/main/net-tools/APKBUILD @@ -2,7 +2,7 @@ pkgname=net-tools pkgver=1.60_git20140218 _ver=${pkgver%_git*} -pkgrel=0 +pkgrel=1 pkgdesc="Linux networking base tools" url="https://sourceforge.net/projects/net-tools/" arch="all" @@ -17,10 +17,10 @@ source="https://downloads.sourceforge.net/project/net-tools/net-tools-$_ver.tar. musl-fixes.patch " -_builddir="$srcdir"/net-tools-$_ver +builddir="$srcdir"/net-tools-$_ver prepare() { local i - cd "$_builddir" + cd "$builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; @@ -70,17 +70,18 @@ EOF } build() { - cd "$_builddir" + cd "$builddir" make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } mii_tool() { pkgdesc="media-independent interface (MII) tool" + depends= mkdir -p "$subpkgdir"/sbin mv "$pkgdir"/sbin/mii-tool "$subpkgdir"/sbin/ } |