summaryrefslogtreecommitdiffstats
path: root/www/webfs/Makefile
blob: fe6c7f01da3bcf9b15af4027a8aa3e7d83e58c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Chris D. Faulhaber <jedgar@fxp.org>
# $FreeBSD$

PORTNAME=	webfs
PORTVERSION=	1.21
CATEGORIES=	www ipv6
MASTER_SITES=	http://dl.bytesex.org/releases/webfs/ \
		http://www.bsd-geek.de/FreeBSD/distfiles/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple http server for static content

RUN_DEPENDS=	${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support

WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
USES=		gmake
MAKEFILE=	GNUmakefile

PLIST_FILES=	sbin/webfsd man/man1/webfsd.1.gz

OPTIONS_DEFINE=		OPENSSL
OPENSSL_MAKE_ENV=	LDLIBS="-lssl -lcrypto" USE_DIET=no

MIMEFILE?=	${LOCALBASE}/etc/mime.types

USE_RC_SUBR=	webfsd

post-patch:
	@${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/GNUmakefile
	@${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/webfsd.man

post-patch-OPENSSL-off:
	@${REINPLACE_CMD} -e '/^USE_SSL.*:=/s/:=.*/:= no/' ${WRKSRC}/GNUmakefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/webfsd.man ${STAGEDIR}${PREFIX}/man/man1/webfsd.1

.include <bsd.port.mk>
OpenPOWER on IntegriCloud