Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2014 18:07:08 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343373 - in head/security/binwalk: . files
Message-ID:  <201402081807.s18I78Au007799@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Sat Feb  8 18:07:08 2014
New Revision: 343373
URL: http://svnweb.freebsd.org/changeset/ports/343373
QAT: https://qat.redports.org/buildarchive/r343373/

Log:
  - Support staging
  - Strip binary

Added:
  head/security/binwalk/files/patch-Makefile.in   (contents, props changed)
Modified:
  head/security/binwalk/Makefile

Modified: head/security/binwalk/Makefile
==============================================================================
--- head/security/binwalk/Makefile	Sat Feb  8 18:00:06 2014	(r343372)
+++ head/security/binwalk/Makefile	Sat Feb  8 18:07:08 2014	(r343373)
@@ -2,7 +2,7 @@
 
 PORTNAME=	binwalk
 PORTVERSION=	0.5.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 MASTER_SITES=	GOOGLE_CODE
 
@@ -28,13 +28,14 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 
 WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 .include <bsd.port.options.mk>
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/docs/README ${DOCSDIR}
-.endif
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/docs/README \
+		${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Added: head/security/binwalk/files/patch-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/binwalk/files/patch-Makefile.in	Sat Feb  8 18:07:08 2014	(r343373)
@@ -0,0 +1,19 @@
+--- ./Makefile.in.orig	2014-02-08 19:01:44.646322607 +0100
++++ ./Makefile.in	2014-02-08 19:02:14.258306650 +0100
+@@ -47,11 +47,11 @@
+ 	cat $(MAGICFILES) > $(MAGIC).binwalk
+ 
+ install:
+-	mkdir -p $(ETC)
+-	mkdir -p $(BIN)
+-	cp $(MAGIC).bin* $(ETC)
+-	cp $(EXTRACT_FILE) $(ETC)
+-	cp binwalk $(BIN)/binwalk
++	mkdir -p $(DESTDIR)$(ETC)
++	mkdir -p $(DESTDIR)$(BIN)
++	cp $(MAGIC).bin* $(DESTDIR)$(ETC)
++	cp $(EXTRACT_FILE) $(DESTDIR)$(ETC)
++	cp binwalk $(DESTDIR)$(BIN)/binwalk
+ 
+ uninstall:
+ 	rm -rf $(ETC)



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