diff options
author | Austin English <wizardedit@gentoo.org> | 2016-04-07 23:03:44 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-04-07 23:04:55 -0500 |
commit | 0135da7291c4ad7df83d763db304416ce3d93ad1 (patch) | |
tree | 6a73f1df8db8b2cbd7f6a436eecb76525350fef5 /app-misc/tails-installer | |
parent | www-plugins/chrome-binary-plugins: automated update (diff) | |
download | gentoo-0135da7291c4ad7df83d763db304416ce3d93ad1.tar.gz gentoo-0135da7291c4ad7df83d763db304416ce3d93ad1.tar.bz2 gentoo-0135da7291c4ad7df83d763db304416ce3d93ad1.zip |
app-misc/tails-installer: add tails-installer-4.4.8
Original ebuild by Miguel Angel Marco Buzunariz <mmarco@unizar.es>, with
improvements from Pocho <poncho@spahan.ch>, and some further tweaks and a
version bump by Austin English <wizardedit@gentoo.org>
Package-Manager: portage-2.2.26
Diffstat (limited to 'app-misc/tails-installer')
-rw-r--r-- | app-misc/tails-installer/Manifest | 1 | ||||
-rw-r--r-- | app-misc/tails-installer/files/fix-desktop-file.patch | 28 | ||||
-rw-r--r-- | app-misc/tails-installer/files/sgdisk.patch | 29 | ||||
-rw-r--r-- | app-misc/tails-installer/metadata.xml | 11 | ||||
-rw-r--r-- | app-misc/tails-installer/tails-installer-4.4.8.ebuild | 49 |
5 files changed, 118 insertions, 0 deletions
diff --git a/app-misc/tails-installer/Manifest b/app-misc/tails-installer/Manifest new file mode 100644 index 000000000000..7fb24eda1278 --- /dev/null +++ b/app-misc/tails-installer/Manifest @@ -0,0 +1 @@ +DIST tails-installer-4.4.8.tar.gz 332532 SHA256 09ea129474760bae44f46f208af2348cc65c42524ce62e34f0ac209ce52fe8b1 SHA512 3a15d31d54ae17c12c1ba8346782f26678fbabcdd99582a5b43c75f520001ec01e5cc09b1832d0f7d346852f9eb30114135c92caff8690281469f35f23806a12 WHIRLPOOL b1ff3a988c05e3d1520b7274d8034c508d12aac57f0f470a587ad68f61496d96c65b2c80d2b7efd83831e09274f8de7c9b21f258c1eaaf56f33e845dddf00feb diff --git a/app-misc/tails-installer/files/fix-desktop-file.patch b/app-misc/tails-installer/files/fix-desktop-file.patch new file mode 100644 index 000000000000..ef6b5880d445 --- /dev/null +++ b/app-misc/tails-installer/files/fix-desktop-file.patch @@ -0,0 +1,28 @@ +diff --git a/data/tails-installer-launcher.desktop b/data/tails-installer-launcher.desktop +index b8a3f81..c7c5b2a 100644 +--- a/data/tails-installer-launcher.desktop ++++ b/data/tails-installer-launcher.desktop +@@ -6,8 +6,8 @@ Name[sv]=Tails installerare + Comment=Install, clone, upgrade Tails + Comment[fr]=Installer, cloner, mettre à jour Tails + Comment[sv]=Installera, klona, uppgradera Tails +-Icon=tails-installer.svg ++Icon=tails-installer + Exec=tails-installer-launcher + Terminal=false +-Categories=System;Tails; ++Categories=System; + Keywords=Tails;Install;Upgrade;Update;Copy;Clone;Installer;USB;Installation;Anonymity;Tor;Anonymous;SD;Amnesic;Amnesia; +diff --git a/data/tails-installer.desktop b/data/tails-installer.desktop +index 7d7fd2c..a79b57a 100644 +--- a/data/tails-installer.desktop ++++ b/data/tails-installer.desktop +@@ -2,7 +2,7 @@ + Type=Application + Name=Tails Installer + Comment=Write operating system images to a USB device +-Icon=tails-installer.svg ++Icon=tails-installer + Exec=tails-installer + Terminal=false + Categories=System; diff --git a/app-misc/tails-installer/files/sgdisk.patch b/app-misc/tails-installer/files/sgdisk.patch new file mode 100644 index 000000000000..21339b23ae6c --- /dev/null +++ b/app-misc/tails-installer/files/sgdisk.patch @@ -0,0 +1,29 @@ +--- /tails_installer/creator.py ++++ /tails_installer/creator.py +@@ -220,7 +220,7 @@ + raise NotImplementedError + + def update_system_partition_properties(self): +- cmd = ( [ '/sbin/sgdisk' ] ++ cmd = ( [ '/usr/sbin/sgdisk' ] + + [ '--typecode=1:%s' % ESP_GUID ] + + [ self.drive['parent'] ]) + self.popen(cmd, shell=False) +@@ -235,7 +235,7 @@ + if not device: + device = self.drive['device'] + +- proc = self.popen(['/sbin/sgdisk', '--print', device], shell=False, passive=True) ++ proc = self.popen(['/usr/sbin/sgdisk', '--print', device], shell=False, passive=True) + if proc.returncode: + return False + return True +@@ -249,7 +249,7 @@ + # understand... while we want to make it do this reset + # precisely to fix that unreadable partition table issue. + # Chicken'n'egg, right. +- self.popen(['/sbin/sgdisk', '--zap-all', device], ++ self.popen(['/usr/sbin/sgdisk', '--zap-all', device], + shell=False, passive=True) + + def switch_drive_to_system_partition(self): diff --git a/app-misc/tails-installer/metadata.xml b/app-misc/tails-installer/metadata.xml new file mode 100644 index 000000000000..5d675ba1a31b --- /dev/null +++ b/app-misc/tails-installer/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>wizardedit@gentoo.org</email> + <name>Austin English</name> + </maintainer> + <longdescription> + Tails Installer is a graphical tool to install or upgrade Tails on a USB stick from an ISO image. + </longdescription> +</pkgmetadata> diff --git a/app-misc/tails-installer/tails-installer-4.4.8.ebuild b/app-misc/tails-installer/tails-installer-4.4.8.ebuild new file mode 100644 index 000000000000..a7844f0cdd69 --- /dev/null +++ b/app-misc/tails-installer/tails-installer-4.4.8.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 gnome2-utils + +DESCRIPTION="A graphical tool to install or upgrade Tails on a USB stick from an ISO image" +HOMEPAGE="https://tails.boum.org http://git.tails.boum.org/liveusb-creator" +SRC_URI="http://deb.tails.boum.org/pool/main/t/${PN}/${PN}_${PV}+dfsg.orig.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +PATCHES=( ${FILESDIR}/fix-desktop-file.patch ${FILESDIR}/sgdisk.patch ) + +DEPEND="${PYTHON_DEPS} + dev-python/python-distutils-extra[${PYTHON_USEDEP}]" +RDEPEND="${PYTHON_DEPS} + app-arch/p7zip + dev-libs/glib:2 + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/pygobject[${PYTHON_USEDEP}] + dev-python/urlgrabber[${PYTHON_USEDEP}] + sys-apps/gptfdisk + sys-auth/polkit + sys-boot/syslinux + sys-fs/dosfstools + sys-fs/mtools + sys-fs/udisks:2[introspection] + virtual/cdrtools + x11-libs/gtk+:3[introspection]" + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |