freebsd-ports/www/mohawk/Makefile
Frederic Culot 2282dc8a52 - Update to 2.0.8
PR:		ports/182381
Submitted by:	mohawk@bsdsx.fr (maintainer)
2013-09-27 12:27:55 +00:00

44 lines
1,015 B
Makefile

# $FreeBSD$
PORTNAME= mohawk
PORTVERSION= 2.0.8
CATEGORIES= www ipv6
MASTER_SITES= http://fossil.etoilebsd.net/mohawk/tarball/ \
http://fossil.bsdsx.fr/mohawk/tarball/
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz?uuid=${PORTVERSION}
MAINTAINER= mohawk@bsdsx.fr
COMMENT= Simple and lightweight HTTP daemon
LICENSE= BSD
LIB_DEPENDS= event-2.0:${PORTSDIR}/devel/libevent2
PLIST_FILES+= bin/mhtpasswd \
sbin/mohawk \
etc/mohawk.conf.sample
PORTEXAMPLES= *
USE_RC_SUBR= mohawk
MANCOMPRESSED= yes
MAN5= mohawk.conf.5
MAN8= mhtpasswd.8 \
mohawk.8
CFLAGS+= -I${LOCALBASE}/include/event2/compat -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib/event2
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
${INSTALL_DATA} ${WRKSRC}/examples/minimal.conf ${PREFIX}/etc/mohawk.conf.sample
${INSTALL_SCRIPT} ${WRKSRC}/mhtpasswd.sh ${PREFIX}/bin/mhtpasswd
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.conf ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>