ports/120458: [PATCH] www/autoindex2: update to 2.2.4
Beat Gaetzi
beat at chruetertee.ch
Sat Feb 9 09:50:01 UTC 2008
>Number: 120458
>Category: ports
>Synopsis: [PATCH] www/autoindex2: update to 2.2.4
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 09 09:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Beat Gätzi
>Release: FreeBSD 6.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD daedalus.network.local 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Fri Jan 25 10:02:00 CET 2008 root at daedalus.network.local:/usr/obj/usr/src/sys/BEASTIE i386
>Description:
update autoindex2 to 2.2.4
according to the change log this fixes some XSS and DOS bugs:
- http://autoindex.sourceforge.net/change_log.html
>How-To-Repeat:
>Fix:
--- autoindex2.patch begins here ---
diff -Naur autoindex2.orig/Makefile autoindex2/Makefile
--- autoindex2.orig/Makefile 2007-03-04 10:26:04.000000000 +0100
+++ autoindex2/Makefile 2008-02-09 10:28:22.000000000 +0100
@@ -6,7 +6,7 @@
#
PORTNAME= AutoIndex
-PORTVERSION= 2.2.1
+PORTVERSION= 2.2.4
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= autoindex
@@ -14,7 +14,7 @@
MAINTAINER= danger at FreeBSD.org
COMMENT= PHP 5.x script that makes a table that lists the files in a directory
-WRKSRC= ${WRKDIR}/${PORTNAME}
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_PHP= session
DEFAULT_PHP_VER= 5
@@ -38,7 +38,8 @@
@${MKDIR} ${PREFIX}/${INSTALLDIR}
@${CP} -R ${WRKSRC}/* ${PREFIX}/${INSTALLDIR}
@${CP} -p ${WRKSRC}/.htpasswd.autoindex ${PREFIX}/${INSTALLDIR}/.htpasswd.autoindex-dist
- @${CHMOD} 666 ${PREFIX}/${INSTALLDIR}/config.php
+ @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${INSTALLDIR}
+ @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${INSTALLDIR}/config.php
@${ECHO_CMD} ""
post-install:
diff -Naur autoindex2.orig/distinfo autoindex2/distinfo
--- autoindex2.orig/distinfo 2007-03-04 10:26:04.000000000 +0100
+++ autoindex2/distinfo 2008-02-07 22:20:47.000000000 +0100
@@ -1,3 +1,3 @@
-MD5 (AutoIndex-2.2.1.tar.gz) = 1c6179083a967e8b53a5e36815cb0d5b
-SHA256 (AutoIndex-2.2.1.tar.gz) = af2101ddd24ec091cd3f9e57903dc30b9e3dfcdfe860445337adaf99fe4c197c
-SIZE (AutoIndex-2.2.1.tar.gz) = 118684
+MD5 (AutoIndex-2.2.4.tar.gz) = 3c8b88c595f39d05ab9e048258b7ee20
+SHA256 (AutoIndex-2.2.4.tar.gz) = 3b54ae9b56c33d9724aaa8bb0fe4677e2e9e37cf036d01da7bb5fb70a035e1ec
+SIZE (AutoIndex-2.2.4.tar.gz) = 156153
diff -Naur autoindex2.orig/pkg-plist autoindex2/pkg-plist
--- autoindex2.orig/pkg-plist 2007-03-04 10:26:04.000000000 +0100
+++ autoindex2/pkg-plist 2008-02-09 10:30:46.000000000 +0100
@@ -123,6 +123,36 @@
%%INSTALLDIR%%/index_icons/osx/uu.png
%%INSTALLDIR%%/index_icons/osx/web.png
%%INSTALLDIR%%/index_icons/osx/xls.png
+%%INSTALLDIR%%/index_icons/winvista/back.png
+%%INSTALLDIR%%/index_icons/winvista/binary.png
+%%INSTALLDIR%%/index_icons/winvista/binhex.png
+%%INSTALLDIR%%/index_icons/winvista/cd.png
+%%INSTALLDIR%%/index_icons/winvista/comp.png
+%%INSTALLDIR%%/index_icons/winvista/compressed.png
+%%INSTALLDIR%%/index_icons/winvista/dir.png
+%%INSTALLDIR%%/index_icons/winvista/dll.png
+%%INSTALLDIR%%/index_icons/winvista/doc.png
+%%INSTALLDIR%%/index_icons/winvista/generic.png
+%%INSTALLDIR%%/index_icons/winvista/image.png
+%%INSTALLDIR%%/index_icons/winvista/java.png
+%%INSTALLDIR%%/index_icons/winvista/js.png
+%%INSTALLDIR%%/index_icons/winvista/key.png
+%%INSTALLDIR%%/index_icons/winvista/login.png
+%%INSTALLDIR%%/index_icons/winvista/mov.png
+%%INSTALLDIR%%/index_icons/winvista/movie.png
+%%INSTALLDIR%%/index_icons/winvista/new.png
+%%INSTALLDIR%%/index_icons/winvista/pdf.png
+%%INSTALLDIR%%/index_icons/winvista/php.png
+%%INSTALLDIR%%/index_icons/winvista/ppt.png
+%%INSTALLDIR%%/index_icons/winvista/ps.png
+%%INSTALLDIR%%/index_icons/winvista/search.png
+%%INSTALLDIR%%/index_icons/winvista/sound.png
+%%INSTALLDIR%%/index_icons/winvista/tar.png
+%%INSTALLDIR%%/index_icons/winvista/text.png
+%%INSTALLDIR%%/index_icons/winvista/unknown.png
+%%INSTALLDIR%%/index_icons/winvista/uu.png
+%%INSTALLDIR%%/index_icons/winvista/web.png
+%%INSTALLDIR%%/index_icons/winvista/xls.png
%%INSTALLDIR%%/index_icons/winxp/back.png
%%INSTALLDIR%%/index_icons/winxp/binary.png
%%INSTALLDIR%%/index_icons/winxp/binhex.png
@@ -198,10 +228,11 @@
@dirrm %%INSTALLDIR%%/index_icons/kde
@dirrm %%INSTALLDIR%%/index_icons/osx
@dirrm %%INSTALLDIR%%/index_icons/winxp
+ at dirrm %%INSTALLDIR%%/index_icons/winvista
@dirrm %%INSTALLDIR%%/index_icons
@dirrm %%INSTALLDIR%%/languages
@dirrm %%INSTALLDIR%%/templates/default
@dirrm %%INSTALLDIR%%/templates/simple_image_gallery
@dirrm %%INSTALLDIR%%/templates
- at dirrm %%INSTALLDIR%%
+ at dirrmtry %%INSTALLDIR%%
@dirrmtry www/data
--- autoindex2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list