aboutsummaryrefslogtreecommitdiff
path: root/www/webfs
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-27 01:02:39 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-27 01:02:39 +0000
commit69ea10891db784dcfa575d612f5ede0e7cb90e0f (patch)
treef46a371b59875471107f68cf065e02c5e451c6cc /www/webfs
parent9a0cfda5d392aa570e3421c4631d8783e5fc483b (diff)
downloadports-69ea10891db784dcfa575d612f5ede0e7cb90e0f.tar.gz
ports-69ea10891db784dcfa575d612f5ede0e7cb90e0f.zip
Notes
Diffstat (limited to 'www/webfs')
-rw-r--r--www/webfs/Makefile14
-rw-r--r--www/webfs/distinfo2
2 files changed, 8 insertions, 8 deletions
diff --git a/www/webfs/Makefile b/www/webfs/Makefile
index 6bd2195f71f4..62de6bf3a9fb 100644
--- a/www/webfs/Makefile
+++ b/www/webfs/Makefile
@@ -1,12 +1,12 @@
# New ports collection makefile for: webfs
-# Version required: 0.6
+# Version required: 0.7
# Date created: 18 October 1999
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
#
# $FreeBSD$
#
-DISTNAME= webfs-0.6
+DISTNAME= webfs-0.7
CATEGORIES= www
MASTER_SITES= http://www.IN-Berlin.DE/User/kraxel/dl/
@@ -15,16 +15,16 @@ MAINTAINER= jedgar@fxp.org
MAN1= webfsd.1
do-configure:
- @${SED} -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' \
- < ${WRKSRC}/webfsd.man > ${WRKSRC}/webfsd.1
- @${MV} ${WRKSRC}/main.c ${WRKSRC}/main.c.orig
- @${SED} -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' \
- < ${WRKSRC}/main.c.orig > ${WRKSRC}/main.c
+ @${CP} ${WRKSRC}/webfsd.man ${WRKSRC}/webfsd.1
+ @${PERL} -pi.orig -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' ${WRKSRC}/webfsd.1
+ @${PERL} -pi.orig -e 's|/etc/mime.types|${PREFIX}/etc/webfsd/mime.types|' ${WRKSRC}/main.c
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>
diff --git a/www/webfs/distinfo b/www/webfs/distinfo
index 6a4a2f55ae1d..93f3192c26d2 100644
--- a/www/webfs/distinfo
+++ b/www/webfs/distinfo
@@ -1 +1 @@
-MD5 (webfs-0.6.tar.gz) = b3bffd6cfd8a24d5bfb7e68eca0a165f
+MD5 (webfs-0.7.tar.gz) = 0b2b270bdd8e063bb50fe982a48fa0ed