aboutsummaryrefslogtreecommitdiffstats
path: root/security/libwhisker/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/libwhisker/Makefile')
-rw-r--r--security/libwhisker/Makefile44
1 files changed, 14 insertions, 30 deletions
diff --git a/security/libwhisker/Makefile b/security/libwhisker/Makefile
index cd98d42aebc9..c6e2073628fd 100644
--- a/security/libwhisker/Makefile
+++ b/security/libwhisker/Makefile
@@ -10,7 +10,6 @@ PORTVERSION= 1.8
PORTREVISION= 1
CATEGORIES= security perl5
MASTER_SITES= http://www.wiretrip.net/rfp/${PORTNAME}/
-DISTNAME= ${PORTNAME}-current
MAINTAINER= ports@FreeBSD.org
COMMENT= Perl module to create HTTP test scripts
@@ -20,40 +19,25 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
USE_PERL5= yes
-DOC1= README CHANGES KNOWNBUGS
-DOCS= docs/OPTIMIZE docs/evil.htm docs/whisker_hash.txt
-IMGS= imgs/logo-builton.gif imgs/logo-name.gif imgs/logo-plain.gif
-SCRIPTS= scripts/func2html.pl scripts/prox.pl
+PLIST_FILES= ${SITE_PERL_REL}/LW.pm
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+do-configure:
+ @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PERL5} Makefile.pl lib
do-install:
- @cd ${WRKSRC} && ${PERL} ${WRKSRC}/Makefile.pl lib
- @${MKDIR} ${SITE_PERL}/${PORTNAME} && ${CHMOD} 755 ${SITE_PERL}/${PORTNAME}
- ${INSTALL_SCRIPT} ${WRKSRC}/LW.pm ${SITE_PERL}/${PORTNAME}/LW.pm
+ @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PERL5} Makefile.pl ${INSTALL_TARGET}
post-install:
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR} \
- && ${CHMOD} 755 ${DOCSDIR}
- @${MKDIR} ${DOCSDIR}/docs \
- && ${CHMOD} 755 ${DOCSDIR}/docs
- @${MKDIR} ${DOCSDIR}/imgs \
- && ${CHMOD} 755 ${DOCSDIR}/imgs
- @${MKDIR} ${DOCSDIR}/scripts \
- && ${CHMOD} 755 ${DOCSDIR}/scripts
-.for i in ${DOC1}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
-.for i in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/docs/
-.endfor
-.for i in ${IMGS}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/imgs/
-.endfor
-.for i in ${SCRIPTS}
- ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${DOCSDIR}/scripts/
-.endfor
- ${INSTALL_SCRIPT} ${WRKSRC}/api_demo.pl ${DOCSDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/simple.pl ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}/docs ${DOCSDIR}/imgs ${DOCSDIR}/scripts
+ cd ${WRKSRC} && ${INSTALL_DATA} README CHANGES KNOWNBUGS ${DOCSDIR}
+ cd ${WRKSRC}/docs/ && ${INSTALL_DATA} * ${DOCSDIR}/docs
+ cd ${WRKSRC}/imgs/ && ${INSTALL_DATA} * ${DOCSDIR}/imgs
+ cd ${WRKSRC}/scripts/ && ${INSTALL_SCRIPT} * ${DOCSDIR}/scripts
.endif
.include <bsd.port.mk>