1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

main/ngrep: fix build

This commit is contained in:
ptrcnull 2025-03-23 19:42:16 +01:00
parent 925f060f77
commit 3f85afa30a
2 changed files with 28 additions and 2 deletions

View file

@ -11,7 +11,9 @@ license="custom"
makedepends="autoconf automake libpcap-dev pcre-dev"
options="!check"
subpackages="$pkgname-dbg $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jpr5/ngrep/archive/V$_pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/jpr5/ngrep/archive/V$_pkgver.tar.gz
inc.patch
"
builddir="$srcdir"/$pkgname-$_pkgver
prepare() {
@ -40,4 +42,7 @@ package() {
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="47ba65878df6b555701c866721a8a935eabdcce636d398284cbfe5f63baf68c62d994a2f373ea4fc8f44fbed3eecee149f2ee48d39c71c04d34e5a088db8c657 ngrep-1.47.tar.gz"
sha512sums="
47ba65878df6b555701c866721a8a935eabdcce636d398284cbfe5f63baf68c62d994a2f373ea4fc8f44fbed3eecee149f2ee48d39c71c04d34e5a088db8c657 ngrep-1.47.tar.gz
0e6e5d5c018f1aebefd764091158d3b5bb0fda0463cc1fc4062690d653422b920be374ce49535459bfc48b2509e4a95903392de482bb8b15ef831cf6c2eb3392 inc.patch
"

21
main/ngrep/inc.patch Normal file
View file

@ -0,0 +1,21 @@
otherwise, building the regex library fails on missing config.h:
gcc -Iregex-0.12 -I/usr/include/pcap -Os -fomit-frame-pointer -g -DSTDC_HEADERS -I. -DHAVE_CONFIG_H -DLINUX -D_BSD_SOURCE=1 -D__FAVOR_BSD=1 -Os -fomit-frame-pointer -c -o regex.o regex.c
regex.c:43:10: fatal error: config.h: No such file or directory
43 | #include "config.h"
| ^~~~~~~~~~
compilation terminated.
--- a/Makefile.in
+++ b/Makefile.in
@@ -6,7 +6,7 @@
CC=@CC@
CPPFLAGS = @DEFS@ -D@OS@ @EXTRA_DEFINES@ @CPPFLAGS@
-CFLAGS = @EXTRA_INCLUDES@ @CFLAGS@
+CFLAGS = @EXTRA_INCLUDES@ @CFLAGS@ -I@abs_srcdir@
LDFLAGS = @EXTRA_LDFLAGS@ @LDFLAGS@
LIBS = @LIBS@ @EXTRA_LIBS@