2011-04-15 08:00:05 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mohawk
|
2014-11-13 11:18:59 +01:00
|
|
|
PORTVERSION= 2.0.17
|
2011-04-15 08:00:05 +02:00
|
|
|
CATEGORIES= www ipv6
|
2014-04-14 14:53:51 +02:00
|
|
|
MASTER_SITES= http://fossil.bsdsx.fr/mohawk/tarball/ \
|
|
|
|
http://fossil.etoilebsd.net/mohawk/tarball/
|
2015-05-11 20:34:57 +02:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz?uuid=${PORTVERSION}
|
2011-04-15 08:00:05 +02:00
|
|
|
|
2014-04-07 10:20:45 +02:00
|
|
|
MAINTAINER= mohawk@bsdsx.fr
|
2011-04-15 08:00:05 +02:00
|
|
|
COMMENT= Simple and lightweight HTTP daemon
|
|
|
|
|
2013-12-15 11:02:58 +01:00
|
|
|
LICENSE= BSD2CLAUSE
|
2011-04-15 08:00:05 +02:00
|
|
|
|
2014-07-24 15:32:58 +02:00
|
|
|
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
|
2012-08-29 21:28:46 +02:00
|
|
|
|
2011-04-15 08:00:05 +02:00
|
|
|
PLIST_FILES+= bin/mhtpasswd \
|
2013-12-15 09:53:07 +01:00
|
|
|
man/man5/mohawk.conf.5.gz \
|
|
|
|
man/man8/mhtpasswd.8.gz \
|
|
|
|
man/man8/mohawk.8.gz \
|
2011-04-15 08:00:05 +02:00
|
|
|
sbin/mohawk \
|
|
|
|
etc/mohawk.conf.sample
|
|
|
|
|
2012-06-24 22:49:34 +02:00
|
|
|
PORTEXAMPLES= *
|
2011-04-15 08:00:05 +02:00
|
|
|
USE_RC_SUBR= mohawk
|
|
|
|
|
2014-08-28 13:25:46 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include/event2/compat -I${LOCALBASE}/include
|
2011-04-15 08:00:05 +02:00
|
|
|
|
2014-02-21 14:39:57 +01:00
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2014-08-31 14:24:05 +02:00
|
|
|
USES= uidfix
|
|
|
|
|
2013-06-06 13:04:18 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2011-04-15 08:00:05 +02:00
|
|
|
post-install:
|
2013-11-11 16:03:39 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/minimal.conf ${STAGEDIR}${PREFIX}/etc/mohawk.conf.sample
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mhtpasswd.sh ${STAGEDIR}${PREFIX}/bin/mhtpasswd
|
2013-06-06 13:04:18 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2013-11-11 16:03:39 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.conf ${STAGEDIR}${EXAMPLESDIR}
|
2012-08-29 21:28:46 +02:00
|
|
|
.endif
|
2011-04-15 08:00:05 +02:00
|
|
|
|
2013-04-22 19:58:03 +02:00
|
|
|
.include <bsd.port.mk>
|