Author: glen Date: Wed Mar 2 09:08:52 2011 GMT Module: packages Tag: HEAD ---- Log message: - configurable to understand CVE links
---- Files affected: packages/cvsweb: cvsweb.spec (1.48 -> 1.49) , cveurl.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/cvsweb/cvsweb.spec diff -u packages/cvsweb/cvsweb.spec:1.48 packages/cvsweb/cvsweb.spec:1.49 --- packages/cvsweb/cvsweb.spec:1.48 Tue Jan 8 21:42:08 2008 +++ packages/cvsweb/cvsweb.spec Wed Mar 2 10:08:47 2011 @@ -14,6 +14,7 @@ URL: http://www.freebsd.org/projects/cvsweb.html Patch0: %{name}-config.patch Patch1: %{name}-emptyscript.patch +Patch2: cveurl.patch BuildRequires: rpmbuild(macros) >= 1.268 Requires: diffutils # for %{_prefix}/lib/cgi-bin @@ -71,6 +72,7 @@ %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 cp -a cvsweb.conf* samples @@ -183,6 +185,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.49 2011/03/02 09:08:47 glen +- configurable to understand CVE links + Revision 1.48 2008/01/08 20:42:08 qboosh - sorted Rs ================================================================ Index: packages/cvsweb/cveurl.patch diff -u /dev/null packages/cvsweb/cveurl.patch:1.1 --- /dev/null Wed Mar 2 10:08:52 2011 +++ packages/cvsweb/cveurl.patch Wed Mar 2 10:08:47 2011 @@ -0,0 +1,41 @@ +--- cvsweb-3.0.6/cvsweb.cgi 2011-03-02 11:04:52.956814108 +0200 +--- cvsweb-3.0.6/cvsweb.cgi 2011-03-02 11:04:47.426931825 +0200 +@@ -67,7 +67,7 @@ + %alltags %fileinfo %tags @branchnames %nameprinted + %symrev %revsym @allrevisions %date %author @revdisplayorder + @revisions %state %difflines %log %branchpoint @revorder $keywordsubstitution +- $prcgi @prcategories $re_prcategories $prkeyword $re_prkeyword $mancgi ++ $prcgi @prcategories $re_prcategories $prkeyword $re_prkeyword $mancgi $cveurl + $doCheckout $scriptname $scriptwhere + $where $Browser $nofilelinks $maycompress @stickyvars %funcline_regexp + $is_links $is_lynx $is_w3m $is_msie $is_mozilla3 $is_textbased +@@ -1569,6 +1584,17 @@ + }egx; + } $_; + } ++ ++ # CVE urls ++ if (defined($cveurl)) { ++ $_ = htmlify_sub { ++ s{ ++ (\bCVE-\d{4}-\d{4}\b) ++ }{ ++ &link($1, sprintf($cveurl, $1)) ++ }egox; ++ } $_; ++ } + } + + return $_; +--- cvsweb-3.0.6/cvsweb.conf~ 2011-03-02 11:06:29.000000000 +0200 ++++ cvsweb-3.0.6/cvsweb.conf 2011-03-02 11:08:14.986810727 +0200 +@@ -82,6 +82,9 @@ + # 'Yet another one' => 'http://192.168.0.2/cgi-bin/cvsweb.cgi/', + #); + ++# CVE Links ++#$cveurl = "https://cve.mitre.org/cgi-bin/cvename.cgi?name=%s"; ++ + # Bug tracking system linking options ("PR" means Problem Report, as in GNATS) + # This will be done only for views for which $allow_*_extra below is true. + # ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cvsweb/cvsweb.spec?r1=1.48&r2=1.49&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit