1999-11-26 19:34:11 +00:00
|
|
|
# New ports collection makefile for: webfs
|
|
|
|
# Date created: 18 October 1999
|
|
|
|
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= webfs
|
2001-05-08 22:34:20 +00:00
|
|
|
PORTVERSION= 1.10
|
2001-01-05 18:23:08 +00:00
|
|
|
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-11-26 19:34:11 +00:00
|
|
|
|
1999-12-24 21:33:47 +00:00
|
|
|
MAINTAINER= jedgar@FreeBSD.org
|
1999-11-26 19:34:11 +00:00
|
|
|
|
2000-11-29 22:39:49 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
|
1999-11-26 19:34:11 +00:00
|
|
|
MAN1= webfsd.1
|
2001-05-08 22:34:20 +00:00
|
|
|
MIMEFILE?= ${PREFIX}/etc/webfsd/mime.types
|
1999-11-26 19:34:11 +00:00
|
|
|
|
2001-01-05 18:23:08 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} <= 400000
|
|
|
|
BROKEN= "Requires FreeBSD 4.x or greater due to ipv6 support"
|
|
|
|
.endif
|
|
|
|
|
1999-11-26 19:34:11 +00:00
|
|
|
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
|
1999-11-26 19:34:11 +00:00
|
|
|
|
|
|
|
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
|
1999-11-27 01:02:39 +00:00
|
|
|
.if !exists(${PREFIX}/etc/webfsd/mime.types)
|
1999-11-26 19:34:11 +00:00
|
|
|
@${MKDIR} ${PREFIX}/etc/webfsd
|
|
|
|
@${ECHO} "# Insert mime types here" > ${PREFIX}/etc/webfsd/mime.types
|
1999-11-27 01:02:39 +00:00
|
|
|
.endif
|
1999-11-26 19:34:11 +00:00
|
|
|
|
2001-01-05 18:23:08 +00:00
|
|
|
.include <bsd.port.post.mk>
|