mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
- Support staging
- Strip binary
This commit is contained in:
parent
41b359f9e6
commit
2feb355c8f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343373
@ -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>
|
||||
|
19
security/binwalk/files/patch-Makefile.in
Normal file
19
security/binwalk/files/patch-Makefile.in
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user