bpfmon: update to 2.60.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From 30d5f5d95de1630cda8b99661dc2b9b329689b36 Mon Sep 17 00:00:00 2001
|
||||
From: Duncan Overbruck <mail@duncano.de>
|
||||
Date: Sat, 1 Aug 2026 15:19:55 +0200
|
||||
Subject: [PATCH] Separate DESTDIR from PREFIX
|
||||
|
||||
---
|
||||
Makefile | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index f6e1ef8..ae6c207 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -64,7 +64,7 @@ MYCFLAGS=$(DEBUG) $(CPPFLAGS) $(CFLAGS) $(YASCC) $(PCACC) $(CCOPT)
|
||||
MYLIBS:=$(LIBS) $(YASLD) $(PCALD)
|
||||
MYLDFLAGS:=$(LDFLAGS) -fPIE -pie
|
||||
|
||||
-PREFIX?=$(DESTDIR)/usr
|
||||
+PREFIX?=/usr
|
||||
BINDIR?=$(PREFIX)/sbin
|
||||
STRIP?=strip
|
||||
INSTALL?=install
|
||||
@@ -85,8 +85,8 @@ clean:
|
||||
rm -f bpfmon bpfmon.o psort psort.o
|
||||
|
||||
install: bpfmon
|
||||
- $(INSTALL) -D -m 0755 $< $(BINDIR)/$<
|
||||
- $(INSTALL) -D -m 0644 bpfmon.8 $(PREFIX)/share/man/man8/bpfmon.8
|
||||
+ $(INSTALL) -D -m 0755 $< $(DESTDIR)/$(BINDIR)/$<
|
||||
+ $(INSTALL) -D -m 0644 bpfmon.8 $(DESTDIR)/$(PREFIX)/share/man/man8/bpfmon.8
|
||||
$(STRIP) $(BINDIR)/$<
|
||||
|
||||
mkotar:
|
||||
--
|
||||
2.55.0
|
||||
|
||||
+3
-10
@@ -1,8 +1,9 @@
|
||||
# Template file for 'bpfmon'
|
||||
pkgname=bpfmon
|
||||
version=2.53
|
||||
version=2.60
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
make_install_args="BINDIR=/usr/bin"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libpcap-devel yascreen-devel"
|
||||
short_desc="BPF based visual packet rate monitor"
|
||||
@@ -11,12 +12,4 @@ license="GPL-2.0-or-later"
|
||||
homepage="https://github.com/bbonev/bpfmon"
|
||||
changelog="https://github.com/bbonev/bpfmon/releases"
|
||||
distfiles="https://github.com/bbonev/bpfmon/releases/download/v${version}/bpfmon-${version}.tar.xz"
|
||||
checksum=f73508a40b093caea8ac20431c19b1e89627311bbd8ff49063ec987378a46a7c
|
||||
|
||||
post_extract() {
|
||||
vsed -e 's;$(PREFIX)/sbin;$(PREFIX)/bin;g' -i Makefile
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vman bpfmon.8
|
||||
}
|
||||
checksum=cf970afb6426e7f035be369948656fa91a048dce5ce306e2219483b48b82415a
|
||||
|
||||
Reference in New Issue
Block a user