From owner-svn-ports-head@FreeBSD.ORG Thu Dec 19 19:37:02 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A8251297; Thu, 19 Dec 2013 19:37:02 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 798B3119E; Thu, 19 Dec 2013 19:37:02 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBJJb289073248; Thu, 19 Dec 2013 19:37:02 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBJJb2fT073247; Thu, 19 Dec 2013 19:37:02 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201312191937.rBJJb2fT073247@svn.freebsd.org> From: Pawel Pekala Date: Thu, 19 Dec 2013 19:37:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336951 - in head/security/fl0p: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Dec 2013 19:37:02 -0000 Author: pawel Date: Thu Dec 19 19:37:01 2013 New Revision: 336951 URL: http://svnweb.freebsd.org/changeset/ports/336951 Log: - Support CC/CFLAGS properly - Add LICENSE - Switch to PLIST_FILES - Support staging PR: ports/184830 Submitted by: KATO Tsuguru Deleted: head/security/fl0p/files/ head/security/fl0p/pkg-plist Modified: head/security/fl0p/Makefile (contents, props changed) Modified: head/security/fl0p/Makefile ============================================================================== --- head/security/fl0p/Makefile Thu Dec 19 19:30:16 2013 (r336950) +++ head/security/fl0p/Makefile Thu Dec 19 19:37:01 2013 (r336951) @@ -11,22 +11,33 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Passive L7 flow fingerprinting tool -WRKSRC= ${WRKDIR}/fl0p/ +LICENSE= LGPL21 + +WRKSRC= ${WRKDIR}/${PORTNAME} + +PORTDOCS= ChangeLog CREDITS README TODO +PLIST_FILES= bin/fl0p %%DATADIR%%/fl0p.fp +PLIST_DIRS= %%DATADIR%% -NO_STAGE= yes post-patch: - ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/config.h + @${REINPLACE_CMD} -e \ + 's|"/etc/fl0p"|"${DATADIR}"|' ${WRKSRC}/config.h + @${REINPLACE_CMD} -e \ + 's|^GMAKE_OK|#GMAKE_OK|' ${WRKSRC}/Build + @${REINPLACE_CMD} -e \ + '/^CC/s|\([[:blank:]]\)=|\1?=| ; \ + /^CFLAGS/s|\([[:blank:]]\)=|\1+=| ; \ + s|-g -ggdb|| ; \ + s|-I.*|$$(CPPFLAGS)| ; \ + /^all:/s|strip||' ${WRKSRC}/mk/Linux do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/fl0p ${PREFIX}/bin - ${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/fl0p.fp ${DATADIR}/ -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/doc/README ${DOCSDIR}/ - ${INSTALL_MAN} ${WRKSRC}/doc/ChangeLog ${DOCSDIR}/ - ${INSTALL_MAN} ${WRKSRC}/doc/TODO ${DOCSDIR}/ - ${INSTALL_MAN} ${WRKSRC}/doc/CREDITS ${DOCSDIR}/ -.endif + (cd ${WRKSRC} && ${INSTALL_PROGRAM} fl0p ${STAGEDIR}${PREFIX}/bin) + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${INSTALL_DATA} fl0p.fp ${STAGEDIR}${DATADIR}) + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for i in ${PORTDOCS} + (cd ${WRKSRC}/doc && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) +.endfor .include