summaryrefslogtreecommitdiff
path: root/www/webfs/Makefile
blob: 62de6bf3a9fb116a5eafe54c5ee5878724dc373e (plain) (blame)
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
# New ports collection makefile for:	webfs
# Version required:			0.7
# Date created:				18 October 1999
# Whom:					Chris D. Faulhaber <jedgar@fxp.org>
#
# $FreeBSD$
#

DISTNAME=	webfs-0.7
CATEGORIES=	www
MASTER_SITES=	http://www.IN-Berlin.DE/User/kraxel/dl/

MAINTAINER=	jedgar@fxp.org

MAN1=		webfsd.1

do-configure:
	@${CP} ${WRKSRC}/webfsd.man ${WRKSRC}/webfsd.1
	@${PERL} -pi.orig -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' ${WRKSRC}/webfsd.1
	@${PERL} -pi.orig -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' ${WRKSRC}/main.c

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${PREFIX}/sbin
	@${INSTALL_MAN} ${WRKSRC}/webfsd.1 ${PREFIX}/man/man1
.if !exists(${PREFIX}/etc/webfsd/mime.types)
	@${MKDIR} ${PREFIX}/etc/webfsd
	@${ECHO} "# Insert mime types here" > ${PREFIX}/etc/webfsd/mime.types
.endif

.include <bsd.port.mk>