Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/air/
Date: Mon, 02 Apr 2018 09:13:52
Message-Id: 1522660418.c854b3761b3d0bd56d5087f5967bfb579807652a.pacho@gentoo
1 commit: c854b3761b3d0bd56d5087f5967bfb579807652a
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 2 08:46:29 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 2 09:13:38 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c854b376
7
8 app-forensics/air: Allow more netcat alternatives (#483438)
9
10 Package-Manager: Portage-2.3.27, Repoman-2.3.9
11
12 app-forensics/air/air-2.0.0-r2.ebuild | 51 +++++++++++++++++++++++++++++++++++
13 1 file changed, 51 insertions(+)
14
15 diff --git a/app-forensics/air/air-2.0.0-r2.ebuild b/app-forensics/air/air-2.0.0-r2.ebuild
16 new file mode 100644
17 index 00000000000..733bedeb8e4
18 --- /dev/null
19 +++ b/app-forensics/air/air-2.0.0-r2.ebuild
20 @@ -0,0 +1,51 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +DESCRIPTION="A GUI front-end to dd/dc3dd"
27 +HOMEPAGE="http://air-imager.sourceforge.net/"
28 +SRC_URI="mirror://sourceforge/air-imager/${P}.tar.gz"
29 +
30 +LICENSE="GPL-2"
31 +SLOT="0"
32 +KEYWORDS="~amd64 ~ppc ~x86"
33 +IUSE="crypt"
34 +
35 +# coreutils are needed for /usr/bin/split binary
36 +COMMON_DEPEND="userland_GNU? ( sys-apps/coreutils )"
37 +
38 +DEPEND="${COMMON_DEPEND}
39 + >=dev-perl/Tk-804.27.0
40 + userland_GNU? ( app-arch/sharutils )
41 +"
42 +# TODO: air can utilize dc3dd, but it is not in portage ATM
43 +RDEPEND="${COMMON_DEPEND}
44 + || (
45 + net-analyzer/netcat6
46 + net-analyzer/netcat
47 + net-analyzer/gnu-netcat
48 + )
49 + app-arch/mt-st
50 + crypt? ( net-analyzer/cryptcat )
51 +"
52 +
53 +src_install() {
54 + export PERLTK_VER=`perl -e 'use Tk;print "$Tk::VERSION";'`
55 +
56 + env INTERACTIVE=no INSTALL_DIR="${D}/usr" TEMP_DIR="${T}" \
57 + FINAL_INSTALL_DIR=/usr \
58 + ./install-${P} \
59 + || die "failed to install - please attach ${T}/air-install.log to a bug report at https://bugs.gentoo.org"
60 +
61 + einstalldocs
62 + dodoc "${T}/air-install.log"
63 +
64 + fowners root:users /usr/share/air/logs
65 + fperms ug+rwx /usr/share/air/logs
66 + fperms a+x /usr/bin/air
67 +
68 + mkfifo "${D}usr/share/air/air-fifo" || die "pipe creation failed"
69 + fperms ug+rw /usr/share/air/air-fifo
70 + fowners root:users /usr/share/air/air-fifo
71 +}