mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-07 02:06:57 +00:00
845f7aaa98
Approved by: novel (mentor) Feature safe: yes
48 lines
1.0 KiB
Makefile
48 lines
1.0 KiB
Makefile
# New ports collection makefile for: whatweb
|
|
# Date created: 2010-04-11
|
|
# Whom: Niels Heinen
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= whatweb
|
|
PORTVERSION= 0.4.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= security www
|
|
MASTER_SITES= http://www.morningstarsecurity.com/downloads/
|
|
|
|
MAINTAINER= rm@FreeBSD.org
|
|
COMMENT= A tool to fingerprint web site components
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USE_RUBY= yes
|
|
NO_BUILD= yes
|
|
PORTDOCS= README INSTALL CHANGELOG TODO
|
|
MAN1= ${PORTNAME}.1
|
|
MANCOMPRESSED= no
|
|
USE_RUBY_FEATURES= iconv
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e \
|
|
's!/usr/share/whatweb/!${RUBY_SITELIBDIR}/${PORTNAME}!' \
|
|
${WRKSRC}/${PORTNAME}
|
|
|
|
do-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
. for i in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
. endfor
|
|
.endif
|
|
.for DIR in plugins lib plugin-development
|
|
( cd ${WRKSRC}/${DIR} && \
|
|
${COPYTREE_SHARE} . ${RUBY_SITELIBDIR}/${PORTNAME}/${DIR} )
|
|
.endfor
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
|
|
|
|
.include <bsd.port.post.mk>
|