Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2014 15:13:06 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361546 - head/security/rats
Message-ID:  <201407111513.s6BFD6LG029017@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Jul 11 15:13:05 2014
New Revision: 361546
URL: http://svnweb.freebsd.org/changeset/ports/361546
QAT: https://qat.redports.org/buildarchive/r361546/

Log:
  - Add staging support
  - Convert to new LIB_DEPENDS format, options framework

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

Modified: head/security/rats/Makefile
==============================================================================
--- head/security/rats/Makefile	Fri Jul 11 15:05:39 2014	(r361545)
+++ head/security/rats/Makefile	Fri Jul 11 15:13:05 2014	(r361546)
@@ -5,12 +5,12 @@ PORTNAME=	rats
 PORTVERSION=	2.3
 CATEGORIES=	security devel
 MASTER_SITES=	https://www.fortify.com/downloads2/public/ \
-				http://redundancy.redundancy.org/mirror/
+		http://redundancy.redundancy.org/mirror/
 
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Source code auditing tool
 
-LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2
+LIB_DEPENDS=	libexpat.so:${PORTSDIR}/textproc/expat2
 
 GNU_CONFIGURE=	yes
 USES=		gmake
@@ -20,12 +20,14 @@ CONFIGURE_ARGS+=--with-expat-lib=${LOCAL
 
 ALL_TARGET=	${PORTNAME}
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	@${REINPLACE_CMD} -E '/^CFLAGS/! s,(BIN|LIB|MAN|SHARE)DIR),DESTDIR)$$(&,g' \
+		${WRKSRC}/Makefile.in
+
 post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
-MAN1=		rats.1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/security/rats/pkg-plist
==============================================================================
--- head/security/rats/pkg-plist	Fri Jul 11 15:05:39 2014	(r361545)
+++ head/security/rats/pkg-plist	Fri Jul 11 15:13:05 2014	(r361546)
@@ -1,4 +1,5 @@
 bin/rats
+man/man1/rats.1.gz
 %%DATADIR%%/rats-c.xml
 %%DATADIR%%/rats-openssl.xml
 %%DATADIR%%/rats-perl.xml



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