Skip to content

Commit

Permalink
net/pkt-gen: Update to 2023.04.22 and add man pages
Browse files Browse the repository at this point in the history
PR:		271004
Reported by:	Jose Luis Duran <jlduran@gmail.com>
Event:		Oslo Hackathon at Modirum
  • Loading branch information
ocochard committed Oct 5, 2023
1 parent 85653ba commit 8bf9546
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 29 deletions.
13 changes: 9 additions & 4 deletions net/pkt-gen/Makefile
@@ -1,6 +1,5 @@
PORTNAME= pkt-gen
PORTVERSION= g2023.03.22
PORTREVISION= 1
PORTVERSION= g2023.04.22
CATEGORIES= net

MAINTAINER= olivier@FreeBSD.org
Expand All @@ -13,7 +12,7 @@ USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= luigirizzo
GH_PROJECT= netmap
GH_TAGNAME= 0a53f85
GH_TAGNAME= eea4f11
MAKEFILE= GNUmakefile

OPTIONS_DEFINE= PCAP
Expand All @@ -22,7 +21,9 @@ OPTIONS_DEFAULT= PCAP
PCAP_MAKE_ARGS= WITH_PCAP=1

PLIST_FILES= bin/pkt-gen \
bin/nmreplay
bin/nmreplay \
share/man/man8/nmreplay.8.gz \
share/man/man8/pkt-gen.8.gz

do-build:
cd ${WRKSRC}/libnetmap && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} ${MAKE_FLAGS} ${MAKEFILE}
Expand All @@ -34,5 +35,9 @@ do-install:
${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/apps/nmreplay/nmreplay \
${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/apps/pkt-gen/pkt-gen.8 \
${STAGEDIR}${PREFIX}/share/man/man8
${INSTALL_MAN} ${WRKSRC}/apps/nmreplay/nmreplay.8 \
${STAGEDIR}${PREFIX}/share/man/man8

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions net/pkt-gen/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1679702302
SHA256 (luigirizzo-netmap-g2023.03.22-0a53f85_GH0.tar.gz) = 11af9db132407c39828b7dbf4906e01eedf8f70bac9dc178bd3d6a90aace8292
SIZE (luigirizzo-netmap-g2023.03.22-0a53f85_GH0.tar.gz) = 758416
TIMESTAMP = 1682172247
SHA256 (luigirizzo-netmap-g2023.04.22-eea4f11_GH0.tar.gz) = 2713a07c8a6f1b4ff51c2a20c7b73637a97b78363ccf9741dc20f7737235ba27
SIZE (luigirizzo-netmap-g2023.04.22-eea4f11_GH0.tar.gz) = 759487
5 changes: 2 additions & 3 deletions net/pkt-gen/files/patch-apps_nmreplay_GNUmakefile
@@ -1,11 +1,10 @@
--- apps/nmreplay/GNUmakefile.orig 2022-02-11 07:45:02 UTC
--- apps/nmreplay/GNUmakefile.orig 2023-04-22 12:00:00 UTC
+++ apps/nmreplay/GNUmakefile
@@ -10,7 +10,8 @@ VPATH = $(SRCDIR)/apps/nmreplay
@@ -10,7 +10,7 @@ VPATH = $(SRCDIR)/apps/nmreplay

NO_MAN=
CFLAGS = -O2 # -pipe -g
-CFLAGS += -Werror -Wall -Wunused-function
+CFLAGS += -Wall -Wunused-function
+CFLAGS += -Wall -Wunused-function
CFLAGS += -I $(SRCDIR)/sys -I $(SRCDIR)/apps/include -I $(SRCDIR)/libnetmap
CFLAGS += -Wextra
Expand Down
5 changes: 2 additions & 3 deletions net/pkt-gen/files/patch-apps_pkt-gen_GNUmakefile
@@ -1,11 +1,10 @@
--- apps/pkt-gen/GNUmakefile.orig 2022-02-11 07:45:02 UTC
--- apps/pkt-gen/GNUmakefile.orig 2023-04-22 12:00:00 UTC
+++ apps/pkt-gen/GNUmakefile
@@ -10,7 +10,8 @@ VPATH = $(SRCDIR)/apps/pkt-gen
@@ -10,7 +10,7 @@ VPATH = $(SRCDIR)/apps/pkt-gen

NO_MAN=
CFLAGS = -O2 -pipe
-CFLAGS += -Werror -Wall -Wunused-function
+CFLAGS += -Wall -Wunused-function
+CFLAGS += -Wall -Wunused-function
CFLAGS += -I $(SRCDIR)/sys -I $(SRCDIR)/apps/include -I $(SRCDIR)/libnetmap
CFLAGS += -Wextra -Wno-address-of-packed-member
Expand Down
13 changes: 0 additions & 13 deletions net/pkt-gen/files/patch-apps_pkt-gen_pkt-gen.c

This file was deleted.

5 changes: 2 additions & 3 deletions net/pkt-gen/files/patch-libnetmap_GNUmakefile
@@ -1,10 +1,9 @@
--- libnetmap/GNUmakefile.orig 2022-02-11 07:45:02 UTC
--- libnetmap/GNUmakefile.orig 2023-04-22 12:00:00 UTC
+++ libnetmap/GNUmakefile
@@ -1,6 +1,7 @@
@@ -1,6 +1,6 @@
SRCDIR ?= ../
PREFIX ?= usr/local
-CFLAGS=-O2 -pipe -Wall -Werror
+CFLAGS=-O2 -pipe -Wall
+CFLAGS=-O2 -pipe -Wall
CFLAGS +=-g
CFLAGS += -I $(SRCDIR)/sys
Expand Down

0 comments on commit 8bf9546

Please sign in to comment.