1 |
tv |
137396 |
%define pre %nil |
2 |
tv |
45603 |
Summary: Firefox extension that protects against XSS and Clickjacking attacks |
3 |
|
|
Name: firefox-ext-noscript |
4 |
fwang |
149237 |
Version: 2.1.3 |
5 |
tv |
62100 |
Release: %mkrel 1 |
6 |
tv |
45603 |
License: MPL |
7 |
|
|
Group: Networking/WWW |
8 |
|
|
URL: https://addons.mozilla.org/en-US/firefox/addon/722/ |
9 |
fwang |
149237 |
Source: https://secure.informaction.com/download/releases/noscript-%{version}-fn+sm+fx.xpi |
10 |
tv |
45603 |
Requires: firefox >= %{firefox_epoch}:%{firefox_version} |
11 |
|
|
BuildRequires: firefox-devel |
12 |
|
|
Buildarch: noarch |
13 |
|
|
|
14 |
|
|
%description |
15 |
|
|
The best security you can get in a web browser! |
16 |
|
|
Allow active content to run only from sites you trust, and protect yourself |
17 |
|
|
against XSS and Clickjacking attacks. |
18 |
|
|
|
19 |
tv |
53866 |
This tool provides extra protection to your Firefox. |
20 |
tv |
45603 |
It allows JavaScript, Java and other executable content to run only from |
21 |
|
|
trusted domains of your choice, e.g. your home-banking web site, guarding your |
22 |
|
|
"trust boundaries" against cross-site scripting attacks (XSS), cross-zone DNS |
23 |
|
|
rebinding / CSRF attacks (router hacking), and Clickjacking attempts, thanks to |
24 |
|
|
its unique ClearClick technology. |
25 |
|
|
|
26 |
|
|
Such a preemptive approach prevents exploitation of security vulnerabilities |
27 |
|
|
(known and even unknown!) with no loss of functionality... |
28 |
|
|
Experts do agree: Firefox is really safer with NoScript ;-) |
29 |
|
|
|
30 |
|
|
%prep |
31 |
|
|
%setup -q -c -n %{name}-%{version} |
32 |
|
|
|
33 |
|
|
%install |
34 |
|
|
rm -rf %{buildroot} |
35 |
|
|
mkdir -p %{buildroot}%{firefox_extdir} |
36 |
|
|
|
37 |
|
|
hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)" |
38 |
|
|
if [ -z "$hash" ]; then |
39 |
|
|
hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)" |
40 |
|
|
fi |
41 |
|
|
if [ -z "$hash" ]; then |
42 |
|
|
echo "Failed to find plugin hash." |
43 |
|
|
exit 1 |
44 |
|
|
fi |
45 |
|
|
extdir="%{firefox_extdir}/" |
46 |
|
|
mkdir -p "%{buildroot}$extdir" |
47 |
|
|
cp -af %SOURCE0 "%{buildroot}$extdir/$hash.xpi" |
48 |
|
|
|
49 |
|
|
%clean |
50 |
|
|
rm -rf %{buildroot} |
51 |
|
|
|
52 |
|
|
%files |
53 |
|
|
%defattr(0644,root,root,0755) |
54 |
|
|
%{firefox_extdir} |