aboutsummaryrefslogtreecommitdiff
path: root/www/thttpd
diff options
context:
space:
mode:
authorAnders Nordby <anders@FreeBSD.org>2007-06-14 21:10:44 +0000
committerAnders Nordby <anders@FreeBSD.org>2007-06-14 21:10:44 +0000
commit0d9f2e67e0a97f7b036c87e1606f98d29417c2c4 (patch)
tree77a9d42efa7cd3134dace43307738eb88d6660f3 /www/thttpd
parent8d0b1d1c57a7836ca504297baa673b58bfa27be4 (diff)
Notes
Diffstat (limited to 'www/thttpd')
-rw-r--r--www/thttpd/Makefile14
-rw-r--r--www/thttpd/pkg-plist2
2 files changed, 12 insertions, 4 deletions
diff --git a/www/thttpd/Makefile b/www/thttpd/Makefile
index be73cc06d375..fe95661eb52d 100644
--- a/www/thttpd/Makefile
+++ b/www/thttpd/Makefile
@@ -27,11 +27,19 @@ SUB_FILES= pkg-message thttpd.conf.sample
SUB_LIST= WWWOWN=${WWWOWN}
PORTDOCS= notes.html
-MAN1= makeweb.1 htpasswd.1
+MAN1= makeweb.1 thttpdpasswd.1
MAN8= thttpd.8 redirect.8 ssi.8 syslogtocern.8
.include <bsd.port.pre.mk>
+post-patch:
+.for f in extras/htpasswd.1 extras/htpasswd.c thttpd.8 extras/Makefile.in
+ ${REINPLACE_CMD} -e \
+ 's|htpasswd|thttpdpasswd|g;s|\.thttpdpasswd|.htpasswd|g' ${WRKSRC}/${f}
+.endfor
+ ${MV} ${WRKSRC}/extras/htpasswd.1 ${WRKSRC}/extras/thttpdpasswd.1
+ ${MV} ${WRKSRC}/extras/htpasswd.c ${WRKSRC}/extras/thttpdpasswd.c
+
.if ${OSVERSION} > 502101
post-configure:
@cd ${WRKSRC} && ${PATCH} < ${PATCHDIR}/extra-patch-config.h
@@ -49,10 +57,10 @@ do-install:
@${INSTALL_MAN} ${WRKSRC}/cgi-src/redirect.8 ${PREFIX}/man/man8
@${INSTALL_MAN} ${WRKSRC}/cgi-src/ssi.8 ${PREFIX}/man/man8
@${INSTALL_PROGRAM} ${WRKSRC}/extras/makeweb ${PREFIX}/bin/
- @${INSTALL_PROGRAM} ${WRKSRC}/extras/htpasswd ${PREFIX}/bin/
+ @${INSTALL_PROGRAM} ${WRKSRC}/extras/thttpdpasswd ${PREFIX}/bin/
@${INSTALL_SCRIPT} ${WRKSRC}/extras/syslogtocern ${PREFIX}/bin/
@${INSTALL_MAN} ${WRKSRC}/extras/makeweb.1 ${PREFIX}/man/man1
- @${INSTALL_MAN} ${WRKSRC}/extras/htpasswd.1 ${PREFIX}/man/man1
+ @${INSTALL_MAN} ${WRKSRC}/extras/thttpdpasswd.1 ${PREFIX}/man/man1
@${INSTALL_MAN} ${WRKSRC}/extras/syslogtocern.8 ${PREFIX}/man/man8
@${INSTALL_DATA} ${WRKDIR}/thttpd.conf.sample ${PREFIX}/etc/thttpd.conf.sample
.if !defined(NOPORTDOCS)
diff --git a/www/thttpd/pkg-plist b/www/thttpd/pkg-plist
index 60661d0b4c83..84a9a68b375d 100644
--- a/www/thttpd/pkg-plist
+++ b/www/thttpd/pkg-plist
@@ -1,4 +1,4 @@
-bin/htpasswd
+bin/thttpdpasswd
bin/makeweb
bin/syslogtocern
etc/thttpd.conf.sample