/[packages]/cauldron/firefox-ext-noscript/current/SPECS/firefox-ext-noscript.spec
ViewVC logotype

Contents of /cauldron/firefox-ext-noscript/current/SPECS/firefox-ext-noscript.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30