Skip to content

Commit

Permalink
app-misc/tails-installer: add tails-installer-4.4.8
Browse files Browse the repository at this point in the history
Original ebuild by Miguel Angel Marco Buzunariz <[email protected]>, with
improvements from Pocho <[email protected]>, and some further tweaks and a
version bump by Austin English <[email protected]>

Package-Manager: portage-2.2.26
  • Loading branch information
austin987 committed Apr 8, 2016
1 parent c038e6c commit 0135da7
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-misc/tails-installer/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST tails-installer-4.4.8.tar.gz 332532 SHA256 09ea129474760bae44f46f208af2348cc65c42524ce62e34f0ac209ce52fe8b1 SHA512 3a15d31d54ae17c12c1ba8346782f26678fbabcdd99582a5b43c75f520001ec01e5cc09b1832d0f7d346852f9eb30114135c92caff8690281469f35f23806a12 WHIRLPOOL b1ff3a988c05e3d1520b7274d8034c508d12aac57f0f470a587ad68f61496d96c65b2c80d2b7efd83831e09274f8de7c9b21f258c1eaaf56f33e845dddf00feb
28 changes: 28 additions & 0 deletions app-misc/tails-installer/files/fix-desktop-file.patch
Original file line number Diff line number Diff line change
@@ -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;
29 changes: 29 additions & 0 deletions app-misc/tails-installer/files/sgdisk.patch
Original file line number Diff line number Diff line change
@@ -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):
11 changes: 11 additions & 0 deletions app-misc/tails-installer/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</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>
49 changes: 49 additions & 0 deletions app-misc/tails-installer/tails-installer-4.4.8.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 0135da7

Please sign in to comment.