summaryrefslogtreecommitdiffstats
path: root/www/fnord
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-10-14 14:17:40 +0000
committerflz <flz@FreeBSD.org>2005-10-14 14:17:40 +0000
commitfab954547bc998cd13e3e44fcd99a09b231b37f8 (patch)
treedb9800885ef25463303eb6a33c049263f4d0fc06 /www/fnord
parentce7461677ec057d8c9945b0230d9c81fd99d2cc7 (diff)
downloadFreeBSD-ports-fab954547bc998cd13e3e44fcd99a09b231b37f8.zip
FreeBSD-ports-fab954547bc998cd13e3e44fcd99a09b231b37f8.tar.gz
- Don't strip binary.
- Silent sed invocation. - Add a patch to fix directory listing (at least on amd64).
Diffstat (limited to 'www/fnord')
-rw-r--r--www/fnord/Makefile4
-rw-r--r--www/fnord/files/patch-httpd.c18
2 files changed, 21 insertions, 1 deletions
diff --git a/www/fnord/Makefile b/www/fnord/Makefile
index 781867b..24e2eac 100644
--- a/www/fnord/Makefile
+++ b/www/fnord/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fnord
PORTVERSION= 1.10
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.fefe.de/fnord/
@@ -76,8 +77,9 @@ SED_SCRIPT+= -e "s|^/\* \(\#define OLD_STYLE_REDIRECT\).*|\1|"
.endif
post-patch:
- [ -z '${SED_SCRIPT}' ] || \
+ @[ -z '${SED_SCRIPT}' ] || \
${REINPLACE_CMD} ${SED_SCRIPT} ${WRKSRC}/httpd.c
+ @${REINPLACE_CMD} -e "/strip/d" ${WRKSRC}/Makefile
do-build:
cd ${WRKSRC}; ${GMAKE} DIET=""
diff --git a/www/fnord/files/patch-httpd.c b/www/fnord/files/patch-httpd.c
new file mode 100644
index 0000000..b933587
--- /dev/null
+++ b/www/fnord/files/patch-httpd.c
@@ -0,0 +1,18 @@
+--- httpd.orig Fri Oct 14 14:44:45 2005
++++ httpd.c Fri Oct 14 14:47:03 2005
+@@ -963,13 +963,12 @@
+ }
+ static void handledirlist(const char*origurl) {
+ DIR*dir;
+- unsigned int nl=str_len(origurl);
++ unsigned int nl;
+ const char*nurl=origurl;
+ url=(char*)origurl;
+ while (nurl[0]=='/') ++nurl;
+- if (nurl<=origurl) return;
++ if (nurl==origurl) return;
+ nl=str_len(nurl);
+- if (nurl[nl-1]!='/') return;
+ if (!stat(nl?nurl:".",&st) && (S_ISDIR(st.st_mode)) && ((st.st_mode&S_IRWXO)==5)) {
+ if (nl) chdir(nurl);
+ if (dir=opendir(".")) {
OpenPOWER on IntegriCloud