mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
34 lines
870 B
Makefile
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>
|