29 lines
728 B
Makefile

# $OpenBSD: Makefile,v 1.17 2014/03/24 07:47:23 jasper Exp $
COMMENT= test wrapper with helpers for testing Apache
MODULES= cpan
DISTNAME= Apache-Test-1.30
REVISION= 2
CATEGORIES= www
MAINTAINER= Simon Bertrang <simon@openbsd.org>
# Apache License 2.0
PERMIT_PACKAGE_CDROM= Yes
# Sets the default, but can be overridden, therefore allow a choice of run dep.
MAKE_ENV+= APACHE_TEST_HTTPD=${LOCALBASE}/sbin/httpd
RUN_DEPENDS= apache-httpd-*|apache-httpd-openbsd-*:www/apache-httpd-openbsd
TEST_DEPENDS += www/p5-libwww
pre-configure:
@perl -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/lib/Apache/TestConfig.pm
post-install:
find ${PREFIX}/${P5SITE} -name '*.orig' -print0 | xargs -r0 rm
.include <bsd.port.mk>