aboutsummaryrefslogtreecommitdiffstats
path: root/security/binwalk/Makefile
blob: 4f5a3af4ff92b00aa6a1067aa50e1dd9ae677c18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $FreeBSD$

PORTNAME=   binwalk
PORTVERSION=    0.5.0
PORTREVISION=   2
CATEGORIES= security
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= fbsd-ports@opsec.eu
COMMENT=    Search binary images for embedded files and executable code

LICENSE=    MIT

LIB_DEPENDS=    curl:${PORTSDIR}/ftp/curl

PLIST_FILES=    bin/binwalk \
        etc/binwalk/extract.conf \
        etc/binwalk/magic.binarch \
        etc/binwalk/magic.bincast \
        etc/binwalk/magic.binwalk
PLIST_DIRS= etc/binwalk

PORTDOCS=   README

GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/docs/README \
        ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>