summaryrefslogtreecommitdiff
path: root/libexec/httpd
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2021-02-28 02:39:15 +0000
committermrg <mrg@NetBSD.org>2021-02-28 02:39:15 +0000
commitea3b8cd6b5bed81ce1719748621472d5b8ddb658 (patch)
tree136f72e019dad21f505c2e31bf5218414e5b603a /libexec/httpd
parent2ecefd60512138c7544757f23ecee4ca033dacab (diff)
give BOZOVER a default so exporting a distfile is easy.
Diffstat (limited to 'libexec/httpd')
-rw-r--r--libexec/httpd/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/libexec/httpd/Makefile b/libexec/httpd/Makefile
index 05c7700bcda..bb1b0f14bc3 100644
--- a/libexec/httpd/Makefile
+++ b/libexec/httpd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2020/07/11 08:10:52 jruoho Exp $
+# $NetBSD: Makefile,v 1.30 2021/02/28 02:39:15 mrg Exp $
#
# $eterna: Makefile,v 1.30 2010/07/11 00:34:27 mrg Exp $
#
@@ -81,6 +81,12 @@ CLEANFILES+= bozohttpd.8.html bozohttpd.8.txt
check:
cd ${.CURDIR}/testsuite && ${MAKE} check
+.if empty(BOZOVER)
+BOZOVER!= sed -n \
+ -e s/\"$$// -e \
+ 's/\#define[ ]*SERVER_SOFTWARE[ ]*\"bozohttpd\///p' bozohttpd.c
+.endif
+
# Create a distfile: uses /tmp
BASE=bozohttpd-${BOZOVER}
TAR=${BASE}.tar