Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Dec 2012 17:03:32 +0000 (UTC)
From:      Beech Rintoul <beech@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308436 - head/security/smurflog
Message-ID:  <201212071703.qB7H3WXn043405@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: beech
Date: Fri Dec  7 17:03:31 2012
New Revision: 308436
URL: http://svnweb.freebsd.org/changeset/ports/308436

Log:
  - Update MASTER_SITES
  - Fix build with clang
  - Support CFLAGS properly
  - Support PLIST_FILES
  Feature safe: yes
  
  PR:		ports/174200
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/security/smurflog/Makefile
  head/security/smurflog/pkg-plist

Modified: head/security/smurflog/Makefile
==============================================================================
--- head/security/smurflog/Makefile	Fri Dec  7 16:48:50 2012	(r308435)
+++ head/security/smurflog/Makefile	Fri Dec  7 17:03:31 2012	(r308436)
@@ -1,22 +1,32 @@
-# Ports collection Makefile for:	smurflog
-# Date created:				7/06/1998
-# Whom:					nectar@FreeBSD.org
-#
+# Created by: nectar@FreeBSD.org
 # $FreeBSD$
-#
 
 PORTNAME=	smurflog
 PORTVERSION=	2.1
+PORTREVISION=	1
 CATEGORIES=	security
-#MASTER_SITES=  None available anymore, so this is stored locally
+MASTER_SITES=	PACKETSTORM/UNIX/loggers
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A program to assist logging of smurf attacks
 
-GNU_CONFIGURE=	YES
+USE_CSTD=	gnu89
+GNU_CONFIGURE=	yes
+
+PORTDOCS=	README
+PLIST_FILES=	sbin/smurflog
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|^CFLAGS=|#CFLAGS=|' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e \
+		'/strip/d' ${WRKSRC}/Makefile.in
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/README.smurflog
-	${INSTALL_PROGRAM} ${WRKSRC}/smurflog ${PREFIX}/sbin/smurflog
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} smurflog ${PREFIX}/sbin)
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} README ${DOCSDIR})
+.endif
 
 .include <bsd.port.mk>

Modified: head/security/smurflog/pkg-plist
==============================================================================
--- head/security/smurflog/pkg-plist	Fri Dec  7 16:48:50 2012	(r308435)
+++ head/security/smurflog/pkg-plist	Fri Dec  7 17:03:31 2012	(r308436)
@@ -1,2 +0,0 @@
-sbin/smurflog
-share/doc/README.smurflog



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