version 1.12.20.2, 2016/04/15 19:37:27 |
version 1.13, 2013/07/11 08:32:39 |
|
|
# NO_DYNAMIC_CONTENT /* don't support dynamic content updates */ |
# NO_DYNAMIC_CONTENT /* don't support dynamic content updates */ |
# NO_SSL_SUPPORT /* don't support ssl (https) */ |
# NO_SSL_SUPPORT /* don't support ssl (https) */ |
# DO_HTPASSWD /* support .htpasswd files */ |
# DO_HTPASSWD /* support .htpasswd files */ |
# NO_LUA_SUPPORT /* don't support Lua for dynamic content */ |
|
# |
|
# other system specific defines: |
|
# HAVE_NBUTIL_H /* netbsd compat is in <nbutil.h> |
|
# (don't forget to also enable -lnbutil) |
|
# |
# |
# these are usually set via the "COPTS" variable, or some other method |
# these are usually set via the "COPTS" variable, or some other method |
# for setting CFLAGS relevant to your make, eg |
# for setting CFLAGS relevant to your make, eg |
|
|
MAN= httpd.8 |
MAN= httpd.8 |
BUILDSYMLINKS+=bozohttpd.8 httpd.8 |
BUILDSYMLINKS+=bozohttpd.8 httpd.8 |
SRCS= bozohttpd.c ssl-bozo.c auth-bozo.c cgi-bozo.c daemon-bozo.c \ |
SRCS= bozohttpd.c ssl-bozo.c auth-bozo.c cgi-bozo.c daemon-bozo.c \ |
tilde-luzah-bozo.c dir-index-bozo.c content-bozo.c lua-bozo.c |
tilde-luzah-bozo.c dir-index-bozo.c content-bozo.c |
SRCS+= main.c |
SRCS+= main.c |
|
|
LDADD= -lcrypt -llua -lm |
LDADD= -lcrypt |
DPADD= ${LIBCRYPT} ${LIBLUA} ${LIBM} |
DPADD= ${LIBCRYPT} |
|
|
WARNS?= 4 |
WARNS?= 4 |
|
|
.if defined(.OS.MAKE) |
|
OPSYS= ${.OS.MAKE} |
|
.else |
|
OPSYS:= ${:!uname -s!:S/-//g:S/\///g} |
|
.endif |
|
|
|
.if ${OPSYS} == "QNX" |
|
CPPFLAGS+= -DHAVE_NBUTIL_H |
|
LDADD+= -lnbutil |
|
.endif |
|
|
|
.include <bsd.own.mk> |
.include <bsd.own.mk> |
|
|
.if ${MKCRYPTO} != "no" |
.if ${MKCRYPTO} != "no" |
Line 64 COPTS+= -DNO_SSL_SUPPORT |
|
Line 48 COPTS+= -DNO_SSL_SUPPORT |
|
# Build release things. |
# Build release things. |
# |
# |
NROFF?= nroff |
NROFF?= nroff |
|
|
PREHTMLFROB= sed \ |
PREHTMLFROB= sed \ |
-e 's/&/\&/' \ |
-e 's/&/\&/' \ |
-e 's/</\</' \ |
-e 's/</\</' \ |
|
|
|
|
bozohttpd.8.html: bozohttpd.8 |
bozohttpd.8.html: bozohttpd.8 |
$(PREHTMLFROB) $> | $(NROFF) -mdoc2html | $(HTMLFROB) > $@ |
$(PREHTMLFROB) $> | $(NROFF) -mdoc2html | $(HTMLFROB) > $@ |
|
|
bozohttpd.8.txt: bozohttpd.8 |
bozohttpd.8.txt: bozohttpd.8 |
$(NROFF) -mdoc -Tascii $> | $(TXTFROB) > $@ |
$(NROFF) -mdoc -Tascii $> | $(TXTFROB) > $@ |
|
|
CLEANFILES+= bozohttpd.8.html bozohttpd.8.txt |
CLEANFILES+= bozohttpd.8.html bozohttpd.8.txt |
|
|
# Create a distfile: uses /tmp |
|
BASE=bozohttpd-${BOZOVER} |
|
TAR=${BASE}.tar |
|
export-distfile: |
|
dir=`mktemp -d /tmp/bozo-export-XXXXXX`; \ |
|
cd "$${dir}" || exit; \ |
|
mkdir ${BASE}; \ |
|
( cd ${BASE} || exit; \ |
|
cp -r "${.CURDIR}/." "."; \ |
|
find . -name .CVS | xargs rm -r; \ |
|
); \ |
|
pax -wf ${TAR} ${BASE}; \ |
|
gzip -nc9 ${TAR} > ${TAR}.gz; \ |
|
bzip2 -9 ${TAR}; \ |
|
echo "Exported two files in $${dir}:"; \ |
|
echo ${TAR}.gz; \ |
|
echo ${TAR}.bz2 |
|
|
|
.include <bsd.prog.mk> |
.include <bsd.prog.mk> |