summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/net-tools/APKBUILD35
1 files changed, 16 insertions, 19 deletions
diff --git a/system/net-tools/APKBUILD b/system/net-tools/APKBUILD
index 6e2e9fdf4..bbe35e72d 100644
--- a/system/net-tools/APKBUILD
+++ b/system/net-tools/APKBUILD
@@ -1,34 +1,31 @@
-# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=net-tools
pkgver=1.60_git20140218
_ver=${pkgver%_git*}
-pkgrel=2
+pkgrel=3
pkgdesc="Linux networking base tools"
url="https://sourceforge.net/projects/net-tools/"
arch="all"
-license="GPL-2.0"
+license="GPL-2.0+"
depends="mii-tool"
depends_dev=""
-makedepends="$depends_dev bash linux-headers"
-options="!check"
+# we need gettext for 'msgfmt'
+makedepends="$depends_dev bash linux-headers bluez-dev"
+options="!check" # there is no testsuite for this package
install=""
-subpackages="$pkgname-doc $pkgname-dbg mii-tool:mii_tool"
-source="https://downloads.sourceforge.net/project/net-tools/net-tools-$_ver.tar.bz2
+subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg mii-tool:mii_tool"
+source="https://downloads.sourceforge.net/project/$pkgname/$pkgname-$_ver.tar.bz2
git.patch
musl-fixes.patch
"
-builddir="$srcdir"/net-tools-$_ver
+builddir="$srcdir"/$pkgname-$_ver
prepare() {
- local i
cd "$builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare
cat > config.make <<EOF
-# I18N=0
+I18N=1
HAVE_AFUNIX=1
HAVE_AFINET=1
HAVE_AFINET6=1
@@ -41,7 +38,7 @@ HAVE_AFNETROM=1
# HAVE_AFECONET=0
# HAVE_AFDECnet=0
# HAVE_AFASH=0
-# HAVE_AFBLUETOOTH=0
+HAVE_AFBLUETOOTH=1
HAVE_HWETHER=1
# HAVE_HWARC=0
HAVE_HWSLIP=1
@@ -59,7 +56,7 @@ HAVE_HWNETROM=1
# HAVE_HWHIPPI=0
# HAVE_HWASH=0
# HAVE_HWHDLCLAPB=0
-# HAVE_HWIRDA=0
+HAVE_HWIRDA=1
# HAVE_HWEC=0
# HAVE_HWEUI64=0
# HAVE_HWIB=0
@@ -72,12 +69,12 @@ EOF
build() {
cd "$builddir"
- make || return 1
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
mii_tool() {