1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/www/webfs/Makefile
Chris D. Faulhaber a60709c0ac Update port to 1.6
2000-11-29 22:39:49 +00:00

34 lines
870 B
Makefile

# New ports collection makefile for: webfs
# Date created: 18 October 1999
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
#
# $FreeBSD$
#
PORTNAME= webfs
PORTVERSION= 1.6
CATEGORIES= www
MASTER_SITES= http://www.strusel007.de/linux/misc/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= jedgar@FreeBSD.org
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
MAN1= webfsd.1
do-configure:
@${CP} ${WRKSRC}/webfsd.man ${WRKSRC}/webfsd.1
.for file in webfsd.1 main.c Makefile
@${PERL} -pi.orig -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' ${WRKSRC}/${file}
.endfor
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>