[or-cvs] r16589: {incognito} Added ForceHTTPS Firefox extension. (in incognito/trunk: arch/x86 portage.overlay/x11-plugins portage.overlay/x11-plugins/forcehttps)

anonym at seul.org anonym at seul.org
Tue Aug 19 12:17:36 UTC 2008


Author: anonym
Date: 2008-08-19 08:17:36 -0400 (Tue, 19 Aug 2008)
New Revision: 16589

Added:
   incognito/trunk/portage.overlay/x11-plugins/forcehttps/
   incognito/trunk/portage.overlay/x11-plugins/forcehttps/Manifest
   incognito/trunk/portage.overlay/x11-plugins/forcehttps/forcehttps-0.4.3.ebuild
Modified:
   incognito/trunk/arch/x86/livecd-stage1.spec
Log:
Added ForceHTTPS Firefox extension.


Modified: incognito/trunk/arch/x86/livecd-stage1.spec
===================================================================
--- incognito/trunk/arch/x86/livecd-stage1.spec	2008-08-19 10:25:13 UTC (rev 16588)
+++ incognito/trunk/arch/x86/livecd-stage1.spec	2008-08-19 12:17:36 UTC (rev 16589)
@@ -256,6 +256,7 @@
 	x11-plugins/enigmail-bin
 	x11-plugins/firefox-quick-locale-switcher
 	x11-plugins/firegpg
+	x11-plugins/forcehttps
 	x11-plugins/pidgin-otr
 	x11-plugins/purple-plugin_pack
 	x11-plugins/refcontrol

Added: incognito/trunk/portage.overlay/x11-plugins/forcehttps/Manifest
===================================================================
--- incognito/trunk/portage.overlay/x11-plugins/forcehttps/Manifest	                        (rev 0)
+++ incognito/trunk/portage.overlay/x11-plugins/forcehttps/Manifest	2008-08-19 12:17:36 UTC (rev 16589)
@@ -0,0 +1,2 @@
+DIST forcehttps-0.4.3.xpi 16274 RMD160 c25ea95cd93359dedf425c2225e5c0de922b8acc SHA1 c52f0cd9431e4006261e6c1aafb47e301ceedd57 SHA256 611f732d9a2542d388a9de8e5fb63ac08541fa80a5b6aa34a8863e83f9b56edd
+EBUILD forcehttps-0.4.3.ebuild 1033 RMD160 4154ed604cab4bf91114e3ee8f4333cbca0c229f SHA1 60ee13c0fd2b05dcf65fd154ca7334a0b59083f4 SHA256 82a6163ee1eb6c86d3ef50c9eca6e1bccd751ff655d854e5d753c4d309529db5

Added: incognito/trunk/portage.overlay/x11-plugins/forcehttps/forcehttps-0.4.3.ebuild
===================================================================
--- incognito/trunk/portage.overlay/x11-plugins/forcehttps/forcehttps-0.4.3.ebuild	                        (rev 0)
+++ incognito/trunk/portage.overlay/x11-plugins/forcehttps/forcehttps-0.4.3.ebuild	2008-08-19 12:17:36 UTC (rev 16589)
@@ -0,0 +1,40 @@
+# Distributed under the terms of the GNU General Public License v2
+
+inherit mozextension multilib
+
+DESCRIPTION="Firefox extension that forces HTTPS whenever available."
+HOMEPAGE="https://crypto.stanford.edu/forcehttps/"
+SRC_URI="https://crypto.stanford.edu/forcehttps/${P}.xpi"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND="|| (
+  >=www-client/mozilla-firefox-bin-1.5.0.7
+  >=www-client/mozilla-firefox-1.5.0.7
+)"
+
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+
+src_unpack() {
+	xpi_unpack "${P}.xpi"
+}
+
+src_install() {
+	declare MOZILLA_FIVE_HOME
+	if has_version '>=www-client/mozilla-firefox-1.5.0.7'; then
+		MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-firefox"
+	elif has_version '>=www-client/mozilla-firefox-bin-1.5.0.7'; then
+		MOZILLA_FIVE_HOME="/opt/firefox"
+	fi
+
+	#xpi_install "${S}"/"${P}"
+	#workaround for a bug (?) in xpi_install?
+	cd "${S}/${P}"
+	insinto "${MOZILLA_FIVE_HOME}/extensions/forcehttps at stanford.edu"
+	doins -r "${S}/${P}"/* || die "failed to copy extension"
+}



More information about the tor-commits mailing list