]> git.pld-linux.org Git - packages/cvsweb.git/commitdiff
- configurable to understand CVE links
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 2 Mar 2011 09:08:47 +0000 (09:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cveurl.patch -> 1.1
    cvsweb.spec -> 1.49

cveurl.patch [new file with mode: 0644]
cvsweb.spec

diff --git a/cveurl.patch b/cveurl.patch
new file mode 100644 (file)
index 0000000..cd8d56c
--- /dev/null
@@ -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.
+ #
index 040ae1adf338d36bb82569362abb888535822f28..b3e1fef4ee907e5f4d68525a985342911b5306d5 100644 (file)
@@ -13,6 +13,7 @@ Source1:      %{name}-apache.conf
 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
@@ -70,6 +71,7 @@ Pliki języka Enscript dla CVSweba.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 cp -a cvsweb.conf* samples
 
This page took 0.066417 seconds and 4 git commands to generate.