ab0b61439f
- Add missing perl run-dependency
60 lines
1.8 KiB
Makefile
60 lines
1.8 KiB
Makefile
# Created by: Kazumasa Nishizawa <k_nishizawa@anet.ne.jp>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= webstone
|
|
PORTVERSION= 2.5
|
|
PORTREVISION= 3
|
|
CATEGORIES= www benchmarks
|
|
MASTER_SITES= http://crypto.stanford.edu/~nagendra/projects/WebStone/download/
|
|
PKGNAMESUFFIX= -ssl
|
|
DISTNAME= WebStone-SSL-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= World wide web server benchmarking with SSL support
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= perl5 shebangfix tar:tgz
|
|
USE_PERL5= run
|
|
SHEBANG_FILES= bin/*.wpl bin/*.pl
|
|
perl_OLD_CMD= /bin/perl5
|
|
GNU_CONFIGURE= yes
|
|
WRKSRC= ${WRKDIR}/WebStone${PORTVERSION}
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/src
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
USE_OPENSSL= yes
|
|
ALL_TARGET= install
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
CPPFLAGS+= -I${OPENSSLINC}
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i '' -e 's|/bin/perl|${perl_CMD}|' ${WRKSRC}/bin/WebStone-common.pl
|
|
|
|
pre-configure:
|
|
@${RM} -f ${WRKSRC}/src/config.cache
|
|
|
|
do-install:
|
|
@${RMDIR} ${WRKSRC}/bin/runs
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/webstone-ssl/bin
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/webstone-ssl/conf
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/webstone-ssl/lgm
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/webstone-ssl/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lgm/* ${STAGEDIR}${PREFIX}/webstone-ssl/lgm
|
|
${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${PREFIX}/webstone-ssl/conf
|
|
${INSTALL_SCRIPT} ${WRKSRC}/webstone ${STAGEDIR}${PREFIX}/webstone-ssl
|
|
@${MKDIR} ${WRKSRC}/bin/runs
|
|
.for i in webclient webmaster genrand
|
|
${CHMOD} u+w ${STAGEDIR}${PREFIX}/webstone-ssl/bin/${i}
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/webstone-ssl/bin/${i}
|
|
${CHMOD} u-w ${STAGEDIR}${PREFIX}/webstone-ssl/bin/${i}
|
|
.endfor
|
|
.for i in ws20_cgi ws25_cgi
|
|
${CHMOD} u+w ${STAGEDIR}${PREFIX}/webstone-ssl/lgm/${i}
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/webstone-ssl/lgm/${i}
|
|
${CHMOD} u-w ${STAGEDIR}${PREFIX}/webstone-ssl/lgm/${i}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|