2012-11-28 21:31:09 +01:00
|
|
|
# Created by: Martin Matuska <mm@FreeBSD.org>
|
2011-06-15 18:01:06 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= httest
|
2017-01-18 15:15:49 +01:00
|
|
|
PORTVERSION= 2.4.19
|
2011-06-15 18:01:06 +02:00
|
|
|
CATEGORIES= www
|
2012-04-08 08:35:31 +02:00
|
|
|
MASTER_SITES= SF/htt/htt${PORTVERSION:R}/${PORTNAME}-${PORTVERSION}
|
2011-06-15 18:01:06 +02:00
|
|
|
|
2012-11-28 21:31:09 +01:00
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
2011-06-15 18:01:06 +02:00
|
|
|
COMMENT= HTTP Test Tool
|
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2012-03-09 15:46:58 +01:00
|
|
|
|
2016-09-24 16:22:21 +02:00
|
|
|
BUILD_DEPENDS= help2man:misc/help2man
|
2016-08-08 17:22:34 +02:00
|
|
|
LIB_DEPENDS= libexpat.so:textproc/expat2 \
|
|
|
|
libgdbm.so:databases/gdbm \
|
|
|
|
libpcre.so:devel/pcre \
|
|
|
|
libapr-1.so:devel/apr1
|
2011-06-15 18:01:06 +02:00
|
|
|
|
2012-06-16 22:34:40 +02:00
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
|
2012-06-14 03:31:13 +02:00
|
|
|
CONFIGURE_ARGS= --enable-lua-module \
|
|
|
|
--with-apr="${LOCALBASE}/bin" \
|
2011-06-15 18:01:06 +02:00
|
|
|
--with-apr-util="${LOCALBASE}/bin" \
|
2012-04-08 08:35:31 +02:00
|
|
|
--with-lua="${LUA_LIBDIR}" \
|
2012-06-14 03:31:13 +02:00
|
|
|
--with-pcre="${LOCALBASE}/bin" \
|
|
|
|
--with-ssl="${OPENSSLLIB}"
|
2012-04-08 08:35:31 +02:00
|
|
|
CPPFLAGS+= -I${LUA_INCDIR}
|
2012-06-14 03:31:13 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2016-09-12 04:30:43 +02:00
|
|
|
USES= iconv lua libtool bdb ssl
|
2013-06-30 14:50:38 +02:00
|
|
|
USE_LDCONFIG= yes
|
2011-06-15 18:01:06 +02:00
|
|
|
|
2012-04-20 03:11:50 +02:00
|
|
|
PORTEXAMPLES= *
|
2012-04-08 08:35:31 +02:00
|
|
|
|
2015-02-10 14:05:51 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
2016-12-31 14:14:46 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2012-04-08 08:35:31 +02:00
|
|
|
post-patch:
|
2014-01-10 09:33:27 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|`$$APR_CONFIG --cflags`||; s|-llua|-llua-${LUA_VER}|g' ${WRKSRC}/configure
|
2012-06-14 03:31:13 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/generate_modules_c.sh
|
2016-09-24 16:22:21 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|<pcre/pcre.h>|<pcre.h>|' ${WRKSRC}/src/httest.c ${WRKSRC}/src/regex.c \
|
|
|
|
${WRKSRC}/src/body.c ${WRKSRC}/src/module.h ${WRKSRC}/src/worker.c
|
2012-04-08 08:35:31 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-03-18 15:26:57 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2013-10-26 09:52:07 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.htt ${STAGEDIR}${EXAMPLESDIR}
|
2011-06-15 18:01:06 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|