svn commit: r416195 - in head/net/spoofer: . files

Philippe Audeoud jadawin at FreeBSD.org
Tue May 31 12:37:35 UTC 2016


Author: jadawin
Date: Tue May 31 12:37:33 2016
New Revision: 416195
URL: https://svnweb.freebsd.org/changeset/ports/416195

Log:
  - Update to 1.0.1
  - Add GUI support as an option, enabled by default
  
  PR:		209755
  Submitted by:	mjl at luckie.org.nz

Added:
  head/net/spoofer/files/
  head/net/spoofer/files/spoofer.in   (contents, props changed)
  head/net/spoofer/pkg-plist   (contents, props changed)
Modified:
  head/net/spoofer/Makefile
  head/net/spoofer/distinfo
  head/net/spoofer/pkg-descr

Modified: head/net/spoofer/Makefile
==============================================================================
--- head/net/spoofer/Makefile	Tue May 31 12:09:49 2016	(r416194)
+++ head/net/spoofer/Makefile	Tue May 31 12:37:33 2016	(r416195)
@@ -1,23 +1,37 @@
 # Created by: Andrew Pantyukhin <infofarmer at FreeBSD.org>
 # $FreeBSD$
 
-PORTNAME=	spoofer
-PORTVERSION=	0.8e
-CATEGORIES=	net
-MASTER_SITES=	http://spoofer.caida.org/
+PORTNAME=		spoofer
+PORTVERSION=		1.0.1
+CATEGORIES=		net
+MASTER_SITES=		http://www.caida.org/projects/spoofer/downloads/
 
-MAINTAINER=	jadawin at FreeBSD.org
-COMMENT=	Spoofer Project testing software
+MAINTAINER=		jadawin at FreeBSD.org
+COMMENT=		Spoofer Project testing software
 
-PLIST_FILES=	bin/spoofer
-PORTDOCS=	README
+LICENSE=		GPLv3
 
-HAS_CONFIGURE=	yes
+BUILD_DEPENDS=		protoc:devel/protobuf
+LIB_DEPENDS=		libprotobuf-lite.so:devel/protobuf
 
-OPTIONS_DEFINE=	DOCS
+PORTDOCS=		README
 
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/prober/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--disable-development
+
+OPTIONS_DEFINE=		DOCS GUI
+OPTIONS_DEFAULT=	GUI
+OPTIONS_SUB=		yes
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGUI}
+USE_QT5=		buildtools_build qmake_build core network gui widgets
+USE_GL+=		gl
+USE_RC_SUBR=		${PORTNAME}
+.else
+CONFIGURE_ARGS+=	--disable-manager
+.endif
 
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}

Modified: head/net/spoofer/distinfo
==============================================================================
--- head/net/spoofer/distinfo	Tue May 31 12:09:49 2016	(r416194)
+++ head/net/spoofer/distinfo	Tue May 31 12:37:33 2016	(r416195)
@@ -1,2 +1,3 @@
-SHA256 (spoofer-0.8e.tar.gz) = 2bd653531399a24a3da60c75627a2ca6bc6fce9a5266ea3e6be7f83ff224741b
-SIZE (spoofer-0.8e.tar.gz) = 253702
+TIMESTAMP = 1464210224
+SHA256 (spoofer-1.0.1.tar.gz) = a70997223f075c1b3834a6bde8fdb7d8179b0dd49b960e915e1ffb1392711e2d
+SIZE (spoofer-1.0.1.tar.gz) = 361056

Added: head/net/spoofer/files/spoofer.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/spoofer/files/spoofer.in	Tue May 31 12:37:33 2016	(r416195)
@@ -0,0 +1,31 @@
+# $FreeBSD$
+#!/bin/sh
+#
+# PROVIDE: spoofer
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable spoofer:
+#
+# spoofer_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=spoofer
+rcvar=spoofer_enable
+
+command="%%PREFIX%%/bin/spoofer-scheduler"
+command_args="-D"
+
+load_rc_config $name
+
+: ${spoofer_enable="NO"}
+: ${spoofer_flags="-s 1"}
+
+spoofer_stop()
+{
+    %%PREFIX%%/bin/spoofer-cli shutdown
+}
+
+run_rc_command "$1"

Modified: head/net/spoofer/pkg-descr
==============================================================================
--- head/net/spoofer/pkg-descr	Tue May 31 12:09:49 2016	(r416194)
+++ head/net/spoofer/pkg-descr	Tue May 31 12:37:33 2016	(r416195)
@@ -1,4 +1,4 @@
-Spoofer helps ANA Spoofer Project better understand the current state of
+Spoofer helps the CAIDA Spoofer Project better understand the current state of
 filtering in the Internet. It attempts to send a series of spoofed UDP packets
 to a central server which logs and summarizes the results.
 

Added: head/net/spoofer/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/spoofer/pkg-plist	Tue May 31 12:37:33 2016	(r416195)
@@ -0,0 +1,4 @@
+%%GUI%%bin/spoofer-cli
+%%GUI%%bin/spoofer-gui
+bin/spoofer-prober
+%%GUI%%bin/spoofer-scheduler


More information about the svn-ports-head mailing list