Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2012 09:29:39 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306429 - in head/security/zombiezapper: . files
Message-ID:  <201210260929.q9Q9TdTx068040@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Fri Oct 26 09:29:39 2012
New Revision: 306429
URL: http://svn.freebsd.org/changeset/ports/306429

Log:
  - Update MASTER_SITES
  - Remove DEPRECATED/EXPIRATION_DATE as port fetches now
  - Use PORTDOCS macro and PLIST_FILES instead of 4 line pkg-plist
  - Convert to new options framework
  - Trim Makefile header
  - Remove dead WWW from pkg-descr
  - Rename patch-aa to patch-zz.c
  
  PR:		ports/172065
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Approved by:	makc, avilla (mentors, implicit)
  Feature safe:	yes

Added:
     - copied unchanged from r306415, head/security/zombiezapper/files/patch-aa
Directory Properties:
  head/security/zombiezapper/files/patch-zz.c   (props changed)
Deleted:
  head/security/zombiezapper/files/patch-aa
  head/security/zombiezapper/pkg-plist
Modified:
  head/security/zombiezapper/Makefile   (contents, props changed)
  head/security/zombiezapper/pkg-descr   (contents, props changed)

Modified: head/security/zombiezapper/Makefile
==============================================================================
--- head/security/zombiezapper/Makefile	Fri Oct 26 08:46:40 2012	(r306428)
+++ head/security/zombiezapper/Makefile	Fri Oct 26 09:29:39 2012	(r306429)
@@ -1,38 +1,38 @@
-# Ports collection makefile for:  zombiezapper
-# Date created:			  19 Feb 2000
-# Whom:				  Kris Kennaway <kris@FreeBSD.org>
-#
+# Created by: Kris Kennaway <kris@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	zombiezapper
 PORTVERSION=	1.2
 PORTREVISION=	2
 CATEGORIES=	security
-MASTER_SITES=	http://razor.bindview.com/tools/files/
+MASTER_SITES=	PACKETSTORM/distributed/zombie
 DISTNAME=	zombie-${PORTVERSION}
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Send a terminate command to Trinoo/TFN/Stacheldracht DDoS agents
 
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2012-10-20
-
 BUILD_DEPENDS=	${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
 
 LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet10-config
 
+CPPFLAGS+=	$$(${LIBNET_CONFIG} --cflags --defines)
+LDFLAGS+=	$$(${LIBNET_CONFIG} --libs)
+
+PORTDOCS=	USAGE tekpaper.txt
+PLIST_FILES=	bin/zz
+
+.include <bsd.port.options.mk>
+
 do-build:
 	cd ${WRKSRC} && \
-	${CC} ${CFLAGS} -o zz zz.c `${LIBNET_CONFIG} --cflags` `${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --libs`
+		${CC} ${CFLAGS} ${CPPFLAGS} -o zz zz.c ${LDFLAGS}
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/zz ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${PREFIX}/share/doc/zz/
-	${INSTALL_DATA} ${WRKSRC}/USAGE ${PREFIX}/share/doc/zz/
-	${INSTALL_DATA} ${WRKSRC}/tekpaper.txt ${PREFIX}/share/doc/zz/
+	${INSTALL_PROGRAM} ${WRKSRC}/zz ${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

Copied: head/security/zombiezapper/files/patch-zz.c (from r306415, head/security/zombiezapper/files/patch-aa)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/zombiezapper/files/patch-zz.c	Fri Oct 26 09:29:39 2012	(r306429, copy of r306415, head/security/zombiezapper/files/patch-aa)
@@ -0,0 +1,11 @@
+--- zz.c.orig	Wed Mar  5 13:16:37 2003
++++ zz.c	Wed Mar  5 13:16:42 2003
+@@ -104,7 +104,7 @@
+   union
+   {
+     struct in_addr addr;
+-    ulong temp_ip;
++    u_long temp_ip;
+   } ip;
+   
+   for (i = 0; i < 256; i++)

Modified: head/security/zombiezapper/pkg-descr
==============================================================================
--- head/security/zombiezapper/pkg-descr	Fri Oct 26 08:46:40 2012	(r306428)
+++ head/security/zombiezapper/pkg-descr	Fri Oct 26 09:29:39 2012	(r306429)
@@ -8,5 +8,3 @@ advantage of telling the daemon to stop 
 the daemon, allowing you to take a little more time in tracking down
 where they are, and more importantly, how they got there in the first
 place.
-
-WWW: http://razor.bindview.com/tools/ZombieZapper_form.shtml



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210260929.q9Q9TdTx068040>