pkgsrc/www/bozohttpd/Makefile
lukem 18db9f8c82 Add SCRIPT_FILENAME to the environment variables provided to CGIs,
as a copy of SCRIPT_NAME with the leading `/' removed.
Note that SCRIPT_FILENAME is  _not_  a CGI/1.1 environment variable per
	http://cgi-spec.golux.com/

If SCRIPT_FILENAME is not set set PHP 4.3.6 as a CGI fails with
	No input file specified.
Apache sets this variable; it appears that many other CGI/1.1 compliant
web servers do not and thus PHP 4.3.6 as a CGI doesn't function with them.
"oh joy."
2004-04-29 12:12:31 +00:00

39 lines
891 B
Makefile

# $NetBSD: Makefile,v 1.43 2004/04/29 12:12:31 lukem Exp $
#
DISTNAME= bozohttpd-20040218
PKGREVISION= 5
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= mrg@eterna.com.au
HOMEPAGE= http://www.eterna.com.au/bozohttpd/
COMMENT= Bozotic HTTP server; small and secure
BUILD_DEFS+= USE_INET6
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= YES
.include "../../mk/bsd.prefs.mk"
.if defined(USE_INET6) && ${USE_INET6} == "YES"
CPPFLAGS+= -DINET6
.endif
CPPFLAGS+= -Wno-error
MAKE_ENV+= BINDIR=${PREFIX}/libexec MANDIR=${PREFIX}/man
INSTALLATION_DIRS= libexec man/cat8 man/man8
.include "../../security/openssl/buildlink3.mk"
pre-build:
cd ${WRKSRC}; for file in bozohttpd.8; do \
${SED} -e "s|/usr/pkg/|${PREFIX}/|g" \
$${file} >> $${file}.fixed; \
${MV} -f $${file}.fixed $${file}; \
done
.include "../../mk/bsd.pkg.mk"