freebsd-ports/www/mohawk/Makefile
Mathieu Arnold 88bfe4bd43 Cleanup DIST* variables.
When appropriate:
- Try to use DISTVERSION{SUF,PRE}FIX
- Replace PORTNAME-PORTVERSION by DISTNAME
- Convert MASTER_SITES to use macros
- Other light cleanup

With hat:	portmgr
Sponsored by:	Absolight
2015-05-11 18:34:57 +00:00

43 lines
1 KiB
Makefile

# $FreeBSD$
PORTNAME= mohawk
PORTVERSION= 2.0.17
CATEGORIES= www ipv6
MASTER_SITES= http://fossil.bsdsx.fr/mohawk/tarball/ \
http://fossil.etoilebsd.net/mohawk/tarball/
DISTFILES= ${DISTNAME}.tar.gz?uuid=${PORTVERSION}
MAINTAINER= mohawk@bsdsx.fr
COMMENT= Simple and lightweight HTTP daemon
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
PLIST_FILES+= bin/mhtpasswd \
man/man5/mohawk.conf.5.gz \
man/man8/mhtpasswd.8.gz \
man/man8/mohawk.8.gz \
sbin/mohawk \
etc/mohawk.conf.sample
PORTEXAMPLES= *
USE_RC_SUBR= mohawk
CFLAGS+= -I${LOCALBASE}/include/event2/compat -I${LOCALBASE}/include
OPTIONS_DEFINE= EXAMPLES
USES= uidfix
.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>