net-analyzer/twa: initial packaging

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Yury Martynov <email@linxon.ru>
This commit is contained in:
Yury Martynov 2020-07-11 11:39:56 +03:00
parent a3415e4073
commit 12472e3331
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
4 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST twa-1.9.3.tar.gz 14012 BLAKE2B 49fb835ab14aa1c2b2010f4e2cfacfcbd5a164b526f70766574e9caa2bd564be43340751d08f643afdaf9376873a96e339805b64470fbf655dc56d645a9d8c83 SHA512 96a6d6288a0c1cd5caa9c4bb83ac167abde4d1963cbb0e4a426d558d2b20f95e6c3d944dac719baa048d96c0817a056844910e14a99a00eb70c04528eb77d811

View file

@ -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@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
<use>
<flag name="testssl">Install <pkg>net-analyzer/testssl</pkg> to check TLS/SSL cipher</flag>
</use>
</pkgmetadata>

View file

@ -0,0 +1,44 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="A tiny web auditor with strong opinions"
HOMEPAGE="https://trailofbits.github.io/twa https://github.com/trailofbits/twa"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/trailofbits/twa"
else
SRC_URI="https://github.com/trailofbits/twa/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
IUSE="+testssl"
RDEPEND="
app-misc/jq
net-misc/curl
net-analyzer/netcat
sys-apps/gawk
testssl? ( net-analyzer/testssl )"
src_prepare() {
default
# Fix shebang
sed -e 's|^#!/usr/bin/env bash$|#!/bin/bash|' -i twa || die
# Remove the bash version check
sed -e '/Expected GNU Bash 4.0 or later/d' -i twa || die
# Remove the "ensure dependency is installed" checks
sed -e '/^ensure installed .*/d' -i twa || die
}
src_install() {
dobin twa tscore
doman twa.1
}

View file

@ -0,0 +1,44 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="A tiny web auditor with strong opinions"
HOMEPAGE="https://trailofbits.github.io/twa https://github.com/trailofbits/twa"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/trailofbits/twa"
else
SRC_URI="https://github.com/trailofbits/twa/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
IUSE="+testssl"
RDEPEND="
app-misc/jq
net-misc/curl
net-analyzer/netcat
sys-apps/gawk
testssl? ( net-analyzer/testssl )"
src_prepare() {
default
# Fix shebang
sed -e 's|^#!/usr/bin/env bash$|#!/bin/bash|' -i twa || die
# Remove the bash version check
sed -e '/Expected GNU Bash 4.0 or later/d' -i twa || die
# Remove the "ensure dependency is installed" checks
sed -e '/^ensure installed .*/d' -i twa || die
}
src_install() {
dobin twa tscore
doman twa.1
}