1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/webfs/Makefile

40 lines
1.0 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: webfs
# Date created: 18 October 1999
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
#
# $FreeBSD$
#
PORTNAME= webfs
2001-05-08 22:34:20 +00:00
PORTVERSION= 1.10
CATEGORIES= www ipv6
2001-05-08 22:34:20 +00:00
MASTER_SITES= http://www.bytesex.org/misc/
2000-11-29 22:39:49 +00:00
DISTNAME= ${PORTNAME}_${PORTVERSION}
1999-12-24 21:33:47 +00:00
MAINTAINER= jedgar@FreeBSD.org
2000-11-29 22:39:49 +00:00
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
MAN1= webfsd.1
2001-05-08 22:34:20 +00:00
MIMEFILE?= ${PREFIX}/etc/webfsd/mime.types
.include <bsd.port.pre.mk>
.if ${OSVERSION} <= 400000
BROKEN= "Requires FreeBSD 4.x or greater due to ipv6 support"
.endif
do-configure:
2001-05-08 22:34:20 +00:00
@${PERL} -pi.orig -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/Makefile
# author forgot to bump the revision number
@${PERL} -pi.orig -e 's|1.9|1.10|' ${WRKSRC}/main.c
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${PREFIX}/sbin
2001-05-08 22:34:20 +00:00
@${INSTALL_MAN} ${WRKSRC}/webfsd.man ${PREFIX}/man/man1/webfsd.1
.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.post.mk>