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
|
2000-11-29 22:39:49 +00:00
|
|
|
PORTVERSION= 1.6
|
1999-11-26 19:34:11 +00:00
|
|
|
CATEGORIES= www
|
2000-11-29 22:39:49 +00:00
|
|
|
MASTER_SITES= http://www.strusel007.de/linux/misc/
|
|
|
|
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
|
|
|
|
|
|
|
|
do-configure:
|
1999-11-27 01:02:39 +00:00
|
|
|
@${CP} ${WRKSRC}/webfsd.man ${WRKSRC}/webfsd.1
|
2000-11-29 22:39:49 +00:00
|
|
|
.for file in webfsd.1 main.c Makefile
|
|
|
|
@${PERL} -pi.orig -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' ${WRKSRC}/${file}
|
|
|
|
.endfor
|
1999-11-26 19:34:11 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/webfsd ${PREFIX}/sbin
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/webfsd.1 ${PREFIX}/man/man1
|
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
|
|
|
|
|
|
|
.include <bsd.port.mk>
|