40 lines
904 B
Makefile
40 lines
904 B
Makefile
# $OpenBSD: Makefile,v 1.36 2013/04/26 09:15:24 sthen Exp $
|
|
|
|
COMMENT= secure webserver
|
|
DISTNAME= hiawatha-9.1
|
|
CATEGORIES= www net
|
|
|
|
HOMEPAGE= http://www.hiawatha-webserver.org/
|
|
|
|
# GPLv2 only
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}files/
|
|
|
|
MODULES= devel/cmake
|
|
|
|
WANTLIB += c pthread xml2 z xslt
|
|
|
|
LIB_DEPENDS= textproc/libxslt
|
|
|
|
CONFIGURE_ARGS= -DWEBROOT_DIR="/var/hiawatha" \
|
|
-DWORK_DIR="/var/db/hiawatha" \
|
|
-DCONFIG_DIR="${SYSCONFDIR}/hiawatha" \
|
|
-DLOG_DIR="/var/log/hiawatha" \
|
|
-DCMAKE_INSTALL_MANDIR="${PREFIX}/man" \
|
|
-DENABLE_XSLT=ON
|
|
|
|
NO_TEST= Yes
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/config/hiawatha.conf.in \
|
|
${WRKSRC}/config/cgi-wrapper.conf \
|
|
${WRKSRC}/man/hiawatha.1.in
|
|
|
|
post-install:
|
|
mv ${DESTDIR}/etc/hiawatha/ ${PREFIX}/share/examples/hiawatha/
|
|
mv ${DESTDIR}/var/hiawatha/index.html ${PREFIX}/share/examples/hiawatha/
|
|
rm -r ${PREFIX}/var/
|
|
|
|
.include <bsd.port.mk>
|