mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
main/tcpdump: rebuild to fix install_if for -doc subpackage
Also cleanup the APKBUILD a bit.
This commit is contained in:
parent
4b38f2cbe9
commit
61da2bb44b
@ -1,7 +1,7 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=tcpdump
|
||||
pkgver=4.7.4
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="A tool for network monitoring and data acquisition"
|
||||
url="http://www.tcpdump.org"
|
||||
arch="all"
|
||||
@ -11,28 +11,28 @@ makedepends="libpcap-dev openssl-dev perl"
|
||||
subpackages="$pkgname-doc"
|
||||
source="http://www.$pkgname.org/release/$pkgname-$pkgver.tar.gz"
|
||||
|
||||
_builddir="$srcdir"/$pkgname-$pkgver
|
||||
|
||||
builddir="$srcdir"/$pkgname-$pkgver
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
update_config_sub || return 1
|
||||
}
|
||||
|
||||
build () {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--localstatedir=/var \
|
||||
--enable-ipv6 \
|
||||
|| return 1
|
||||
make || return 1
|
||||
# make check || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
rm -f "$pkgdir"/usr/sbin/tcpdump.4*
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user