svn commit: r433972 - in head/sysutils: . pcapfix pcapfix/files

Joseph Mingrone jrm at FreeBSD.org
Mon Feb 13 01:19:54 UTC 2017


Author: jrm
Date: Mon Feb 13 01:19:52 2017
New Revision: 433972
URL: https://svnweb.freebsd.org/changeset/ports/433972

Log:
  New port: sysutils/pcapfix: tool to repair damaged pcap and pcapng files.
  
  http://f00l.de/pcapfix/
  
  PR:		217052
  Submitted by:	vidar at karlsen.tech (maintainer)
  Approved by:	swills (mentor)
  Differential Revision:	https://reviews.freebsd.org/D9561

Added:
  head/sysutils/pcapfix/
  head/sysutils/pcapfix/Makefile   (contents, props changed)
  head/sysutils/pcapfix/distinfo   (contents, props changed)
  head/sysutils/pcapfix/files/
  head/sysutils/pcapfix/files/patch-Makefile   (contents, props changed)
  head/sysutils/pcapfix/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Mon Feb 13 00:15:15 2017	(r433971)
+++ head/sysutils/Makefile	Mon Feb 13 01:19:52 2017	(r433972)
@@ -766,6 +766,7 @@
     SUBDIR += pax-utils
     SUBDIR += pbi-manager
     SUBDIR += pbimaker
+    SUBDIR += pcapfix
     SUBDIR += pcbsd-appweb
     SUBDIR += pcbsd-libsh
     SUBDIR += pcbsd-syscache

Added: head/sysutils/pcapfix/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/pcapfix/Makefile	Mon Feb 13 01:19:52 2017	(r433972)
@@ -0,0 +1,24 @@
+# Created by: Vidar Karlsen <vidar at karlsen.tech>
+# $FreeBSD$
+
+PORTNAME=	pcapfix
+PORTVERSION=	1.1.0
+CATEGORIES=	sysutils
+
+MAINTAINER=	vidar at karlsen.tech
+COMMENT=	Tool to repair damaged or corrupted pcap and pcapng files
+
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Rup0rt
+GH_TAGNAME=	v1.1.0
+
+PLIST_FILES=	bin/pcapfix man/man1/pcapfix.1.gz
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
+
+.include <bsd.port.mk>

Added: head/sysutils/pcapfix/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/pcapfix/distinfo	Mon Feb 13 01:19:52 2017	(r433972)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1486934418
+SHA256 (Rup0rt-pcapfix-1.1.0-v1.1.0_GH0.tar.gz) = c77cad858e85dd4509aa5a6a8019f8aba389aa95ae1edfbf7d7ea4c02bbfb238
+SIZE (Rup0rt-pcapfix-1.1.0-v1.1.0_GH0.tar.gz) = 40302

Added: head/sysutils/pcapfix/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/pcapfix/files/patch-Makefile	Mon Feb 13 01:19:52 2017	(r433972)
@@ -0,0 +1,24 @@
+--- Makefile.orig	2014-08-31 08:08:24 UTC
++++ Makefile
+@@ -10,13 +10,13 @@ CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEB
+ LDFLAGS += -Wl,-z,relro
+ 
+ all: pcap pcapng
+-	gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) pcapfix.c pcap.o pcapng.o -o pcapfix
++	${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) pcapfix.c pcap.o pcapng.o -o pcapfix
+ 
+ pcap: pcap.c
+-	gcc $(CPPFLAGS) $(CFLAGS) -c pcap.c -o pcap.o
++	${CC} $(CPPFLAGS) $(CFLAGS) -c pcap.c -o pcap.o
+ 
+ pcapng: pcapng.c
+-	gcc $(CPPFLAGS) $(CFLAGS) -c pcapng.c -o pcapng.o
++	${CC} $(CPPFLAGS) $(CFLAGS) -c pcapng.c -o pcapng.o
+ 
+ install:
+ 	install -pDm755 pcapfix $(DESTDIR)$(BINDIR)/pcapfix
+@@ -29,4 +29,3 @@ uninstall:
+ clean:
+ 	rm -f *.o
+ 	rm -f pcapfix
+-	

Added: head/sysutils/pcapfix/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/pcapfix/pkg-descr	Mon Feb 13 01:19:52 2017	(r433972)
@@ -0,0 +1,3 @@
+Pcapfix is a tool to repair your damaged or corrupted pcap and pcapng files.
+
+WWW: http://f00l.de/pcapfix/


More information about the svn-ports-all mailing list