Index: head/devel/viewcvs/Makefile =================================================================== --- head/devel/viewcvs/Makefile (revision 123451) +++ head/devel/viewcvs/Makefile (revision 123452) @@ -1,31 +1,31 @@ # New ports collection makefile for: viewcvs # Date created: Sun 02 Jul 2000 # Whom: will # # $FreeBSD$ # PORTNAME= viewcvs PORTVERSION= 0.9.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Python version of Zeller's cvsweb USE_PYTHON= yes NO_BUILD= yes PKGMESSAGE= ${WRKDIR}/pkg-message INSTDIR?= ${PORTNAME}-${PORTVERSION} PLIST_SUB= INSTDIR=${INSTDIR} do-install: @ cd ${WRKSRC} && INSTDIR=${PREFIX}/${INSTDIR} ${PYTHON_CMD} viewcvs-install post-install: @ ${SED} -e "s:%%INSTDIR%%:${PREFIX}/${INSTDIR}:g" ${MASTERDIR}/pkg-message >${PKGMESSAGE} @ ${CAT} ${PKGMESSAGE} .include Property changes on: head/devel/viewcvs/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.15 \ No newline at end of property +1.16 \ No newline at end of property Index: head/devel/viewcvs/files/patch-CAN-2004-0915 =================================================================== --- head/devel/viewcvs/files/patch-CAN-2004-0915 (nonexistent) +++ head/devel/viewcvs/files/patch-CAN-2004-0915 (revision 123452) @@ -0,0 +1,37 @@ +--- lib/viewcvs.py.orig 2004-10-20 15:03:41.000000000 +0200 ++++ lib/viewcvs.py 2004-10-20 16:37:35.000000000 +0200 +@@ -2455,10 +2455,17 @@ def generate_tarball_header(out, name, s + def generate_tarball(out, relative, directory, tag, stack=[]): + subdirs = [ ] + rcs_files = [ ] ++ if relative == 'CVSROOT' and cfg.options.hide_cvsroot: ++ return ++ + for file, pathname, isdir in get_file_data(directory): + if pathname == _UNREADABLE_MARKER: + continue + if isdir: ++ if file == 'CVSROOT' and relative.find('/') == -1 and cfg.options.hide_cvsroot: ++ continue ++ if relative.find('/') == -1 and cfg.is_forbidden(file): ++ continue + subdirs.append(file) + else: + rcs_files.append(file) +@@ -2583,6 +2590,16 @@ def main(): + '\n') + return + ++ if where == 'CVSROOT' and cfg.options.hide_cvsroot: ++ print "Status: 400" ++ http_header() ++ print ('\n' ++ '\n400 Bad Request\n' ++ '\n' ++ '

Bad Request

\n Listing of CVSROOT is disallowed.

\n' ++ '\n') ++ return ++ + ### look for GZIP binary + + # if we have a directory and the request didn't end in "/", then redirect Property changes on: head/devel/viewcvs/files/patch-CAN-2004-0915 ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/devel/viewvc/Makefile =================================================================== --- head/devel/viewvc/Makefile (revision 123451) +++ head/devel/viewvc/Makefile (revision 123452) @@ -1,31 +1,31 @@ # New ports collection makefile for: viewcvs # Date created: Sun 02 Jul 2000 # Whom: will # # $FreeBSD$ # PORTNAME= viewcvs PORTVERSION= 0.9.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Python version of Zeller's cvsweb USE_PYTHON= yes NO_BUILD= yes PKGMESSAGE= ${WRKDIR}/pkg-message INSTDIR?= ${PORTNAME}-${PORTVERSION} PLIST_SUB= INSTDIR=${INSTDIR} do-install: @ cd ${WRKSRC} && INSTDIR=${PREFIX}/${INSTDIR} ${PYTHON_CMD} viewcvs-install post-install: @ ${SED} -e "s:%%INSTDIR%%:${PREFIX}/${INSTDIR}:g" ${MASTERDIR}/pkg-message >${PKGMESSAGE} @ ${CAT} ${PKGMESSAGE} .include Property changes on: head/devel/viewvc/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.15 \ No newline at end of property +1.16 \ No newline at end of property Index: head/devel/viewvc/files/patch-CAN-2004-0915 =================================================================== --- head/devel/viewvc/files/patch-CAN-2004-0915 (nonexistent) +++ head/devel/viewvc/files/patch-CAN-2004-0915 (revision 123452) @@ -0,0 +1,37 @@ +--- lib/viewcvs.py.orig 2004-10-20 15:03:41.000000000 +0200 ++++ lib/viewcvs.py 2004-10-20 16:37:35.000000000 +0200 +@@ -2455,10 +2455,17 @@ def generate_tarball_header(out, name, s + def generate_tarball(out, relative, directory, tag, stack=[]): + subdirs = [ ] + rcs_files = [ ] ++ if relative == 'CVSROOT' and cfg.options.hide_cvsroot: ++ return ++ + for file, pathname, isdir in get_file_data(directory): + if pathname == _UNREADABLE_MARKER: + continue + if isdir: ++ if file == 'CVSROOT' and relative.find('/') == -1 and cfg.options.hide_cvsroot: ++ continue ++ if relative.find('/') == -1 and cfg.is_forbidden(file): ++ continue + subdirs.append(file) + else: + rcs_files.append(file) +@@ -2583,6 +2590,16 @@ def main(): + '\n') + return + ++ if where == 'CVSROOT' and cfg.options.hide_cvsroot: ++ print "Status: 400" ++ http_header() ++ print ('\n' ++ '\n400 Bad Request\n' ++ '\n' ++ '

Bad Request

\n Listing of CVSROOT is disallowed.

\n' ++ '\n') ++ return ++ + ### look for GZIP binary + + # if we have a directory and the request didn't end in "/", then redirect Property changes on: head/devel/viewvc/files/patch-CAN-2004-0915 ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property