1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/security/0d1n/Makefile
Robert Clausecker ffba4d2517 security/0d1n: fix build
- convert static REINPLACE_CMD to patch files as per policy
 - remove remaining <alloca.h> uses
 - patch getopt_long use on targets where char is unsigned
 - work around missing __GNUC_PREREQ macro
 - fix other missing includes
 - update pkg-plist to what the maintainer intended to pack
 - patch /opt/0d1n to ${DATADIR} in the relevant files
 - note that project is dual licensed (upstream has since
   removed the GPLv3 license)
 - define LICENSE_FILE_{GPLv3,BSD3CLAUSE}

PR:		269717
Fixes:		88dd085ff7
Approved by:	portmgr (build fix blanket)
Approved by:	flo (mentor)
Differential Revision: https://reviews.freebsd.org/D38725
2023-02-24 09:50:04 +01:00

43 lines
1.1 KiB
Makefile

PORTNAME= 0d1n
DISTVERSION= 3.8
PORTREVISION= 1
CATEGORIES= security
MAINTAINER= zackj901@yandex.com
COMMENT= Open source web HTTP fuzzing tool and bruteforcer
WWW= https://github.com/CoolerVoid/0d1n
LICENSE= BSD3CLAUSE GPLv3
LICENSE_COMB= dual
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE
LICENSE_FILE_GPLv3= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libcurl.so:ftp/curl
USE_GITHUB= yes
GH_ACCOUNT= CoolerVoid
GH_TAGNAME= OdinV38
OPTIONS_DEFINE= DOCS
pre-configure:
${REINPLACE_CMD} -e 's,/opt/0d1n,${DATADIR},g' \
${WRKSRC}/src/headers/file_ops.h \
${WRKSRC}/src/file_ops.c \
${WRKSRC}/src/opt_extract.c \
${WRKSRC}/src/results.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}/view
${MKDIR} ${STAGEDIR}${DATADIR}/view/response_sources
${MKDIR} ${STAGEDIR}${DATADIR}/payloads
(cd ${WRKSRC} && ${COPYTREE_SHARE} templates ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} payloads ${STAGEDIR}${DATADIR})
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>