summaryrefslogtreecommitdiff
path: root/system/net-tools
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-06-22 03:30:12 +0000
committerDan Theisen <djt@hxx.in>2018-06-22 03:47:20 +0000
commit7fb5c57c9a7573a1aeb881d5a3a6f0437292fa11 (patch)
treeb78633e0ad66f1b8cb6c6ff45096ba188b3f052f /system/net-tools
parent6b7e354f6a0c72eea36e778db0d8e6b3fb67961b (diff)
downloadpackages-7fb5c57c9a7573a1aeb881d5a3a6f0437292fa11.tar.gz
packages-7fb5c57c9a7573a1aeb881d5a3a6f0437292fa11.tar.bz2
packages-7fb5c57c9a7573a1aeb881d5a3a6f0437292fa11.tar.xz
packages-7fb5c57c9a7573a1aeb881d5a3a6f0437292fa11.zip
system/net-tools: [PD] enable features, fix maintainer, modernize
Diffstat (limited to 'system/net-tools')
-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() {