mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
7e52725f2a
Requiem mors pacem pkg-comment, And be calm ports tree. E Nomini Patri, E Fili, E Spiritu Sancti.
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# New ports collection makefile for: webfs
|
|
# Date created: 18 October 1999
|
|
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= webfs
|
|
PORTVERSION= 1.16
|
|
CATEGORIES= www ipv6
|
|
MASTER_SITES= http://bytesex.org/misc/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= jedgar@FreeBSD.org
|
|
COMMENT= A simple http server for static content
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
|
|
USE_REINPLACE= yes
|
|
|
|
MAN1= webfsd.1
|
|
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:
|
|
@${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e 's|/etc/mime.types|${MIMEFILE}|' ${WRKSRC}/webfsd.man
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${PREFIX}/sbin
|
|
@${INSTALL_MAN} ${WRKSRC}/webfsd.man ${PREFIX}/man/man1/webfsd.1
|
|
.if !exists(${PREFIX}/etc/webfsd/mime.types)
|
|
@${MKDIR} ${PREFIX}/etc/webfsd
|
|
@${ECHO_CMD} "# Insert mime types here" > ${PREFIX}/etc/webfsd/mime.types
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|