mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 15:12:02 +01:00
This makes it possible to provide armv7 as additional architecture in Alpine, next to armhf. See the discussion in this ML thread: <https://lists.alpinelinux.org/alpine-devel/6271.html> It's done by adding armv7 next to armhf in the arch line and also !armv7 where the arch line said !armhf. The following script was used:
46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
pkgname=ndpi
|
|
_pkgreal=nDPI
|
|
pkgver=2.2
|
|
pkgrel=1
|
|
pkgdesc="Open Source Deep Packet Inspection Software Toolkit"
|
|
url="https://github.com/ntop/nDPI"
|
|
# armhf test fail without apparent cause
|
|
# s390x test hangs
|
|
arch="all !armhf !armv7 !s390x"
|
|
license="GPL-3.0"
|
|
makedepends="autoconf automake libpcap-dev libtool"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/ntop/nDPI/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgreal-$pkgver
|
|
|
|
prepare() {
|
|
cd "$builddir"
|
|
default_prepare
|
|
./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
# fails on those two
|
|
rm tests/pcap/nintendo.pcap
|
|
rm tests/pcap/skype-conference-call.pcap
|
|
make check
|
|
}
|
|
|
|
sha512sums="ee1e0a1cc87a3971408877bd5d3154f6bd5d4ddcd2437c8e03e5d8a5093da2b1cbfefad1e28e77145af4286eecbd341ef90f94aa5c7f36a98e3625e9948e96d6 ndpi-2.2.tar.gz"
|