1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/www/mohawk/Makefile
Christian Weisgerber d9029f1552 www/*: Move man pages to share/man
Approved by:	portmgr (blanket)
2024-03-21 09:15:37 +00:00

44 lines
1.0 KiB
Makefile

PORTNAME= mohawk
DISTVERSION= 2.0.21
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= https://fossil.bsdsx.fr/mohawk/tarball/?r=${DISTVERSION}&name=/
MAINTAINER= dsx+mohawk@bsdsx.fr
COMMENT= Simple and lightweight HTTP daemon
WWW= http://fossil.etoilebsd.net/mohawk
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libevent.so:devel/libevent
USES= localbase uidfix
USE_RC_SUBR= mohawk
CFLAGS+= -I${LOCALBASE}/include/event2/compat
MAKE_ARGS= MANDIR="${PREFIX}/share/man/man"
PLIST_FILES= bin/mhtpasswd \
sbin/mohawk \
share/man/man5/mohawk.conf.5.gz \
share/man/man8/mhtpasswd.8.gz \
share/man/man8/mohawk.8.gz \
etc/mohawk.conf.sample
PORTEXAMPLES= *
OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.options.mk>
post-install:
${INSTALL_DATA} ${WRKSRC}/examples/minimal.conf ${STAGEDIR}${PREFIX}/etc/mohawk.conf.sample
${INSTALL_SCRIPT} ${WRKSRC}/mhtpasswd.sh ${STAGEDIR}${PREFIX}/bin/mhtpasswd
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.conf ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>