seclists: 2018.3 bump

This commit is contained in:
blshkv 2018-10-17 00:18:50 +08:00
parent 13f62e5cf1
commit 89fdfddad5
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
5 changed files with 32 additions and 172 deletions

View file

@ -1 +1,2 @@
DIST seclists-2018.2.tar.gz 211871095 BLAKE2B 6653a0cb95c7d3aa72dab2d77735b1a114fcabbc278b78b9d45149fc7b0b3be5bf6bde99f136942eb5e6def030715668b8af217147b34f60841519fa6d78ace1 SHA512 0ba4711619504b5cdd5303689fb60f957ba4094e93a8b36d210543f8891a03e133e8baa444c4a28787a825718e709aba596da0da39a6eaee9ab8c384eab60b8e
DIST seclists-2018.3.tar.gz 211890554 BLAKE2B 2de791a9545f81365fcc9393ce45fc07abd553060b749b167029cbdf812fae31b01c5ffb8f41378418f6c6dbc269061e7fa87f7f3f472db9eb61389ec44b7c72 SHA512 c12c721362909f119266c3efd2a6820d1084a356c6e579301cda4fffc7f35fafb67cb81860d7801b2f5e42fc1706428a53a6139e92761de927009aca0aa57da6

View file

@ -9,12 +9,12 @@ SRC_URI="https://github.com/danielmiessler/SecLists/archive/${PV}.tar.gz -> ${P}
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
S="${WORKDIR}/SecLists-${PV}"
src_install(){
insinto /usr/share/seclists
doins -r *
insinto /usr/share/dict/seclists
doins -r *
}

View file

@ -0,0 +1,26 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A collection of multiple types of lists used during security assessments"
HOMEPAGE="https://github.com/danielmiessler/SecLists"
SRC_URI="https://github.com/danielmiessler/SecLists/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
S="${WORKDIR}/SecLists-${PV}"
src_prepare(){
#https://github.com/danielmiessler/SecLists/issues/226
rm ./Payloads/File-Names/max-length/*
eapply_user
}
src_install(){
insinto /usr/share/dict/seclists
doins -r *
}

View file

@ -1,169 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
JAVA_PKG_BSFIX_NAME="build.xml build-unix.xml"
inherit autotools java-pkg-opt-2 java-ant-2
DESCRIPTION="A collection of file system and media management forensic analysis tools"
HOMEPAGE="https://www.sleuthkit.org/sleuthkit/"
# TODO: sqlite-jdbc does not exist in the tree, we bundle it for now
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz
java? ( http://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.8.11/sqlite-jdbc-3.8.11.jar )"
LICENSE="BSD CPL-1.0 GPL-2+ IBM java? ( Apache-2.0 )"
SLOT="0/13" # subslot = major soname version
KEYWORDS="amd64 ~hppa ~ppc x86"
IUSE="aff doc ewf java static-libs test +threads zlib"
DEPEND="
dev-db/sqlite:3
dev-lang/perl:*
aff? ( app-forensics/afflib )
ewf? ( app-forensics/libewf:= )
java? (
>=virtual/jdk-1.8:*
>=dev-java/c3p0-0.9.5:0
>=dev-java/jdbc-postgresql-9.4:0
)
zlib? ( sys-libs/zlib )
"
RDEPEND="${DEPEND}
java? ( >=virtual/jre-1.8:= )
"
DEPEND="${DEPEND}
doc? ( app-doc/doxygen )
test? ( >=dev-util/cppunit-1.2.1 )
"
PATCHES=(
"${FILESDIR}"/${PN}-4.1.0-tools-shared-libs.patch
"${FILESDIR}"/${PN}-4.5.0-libewf.patch
)
TSK_JAR_DIR="${S}/bindings/java/lib"
src_unpack() {
local f
unpack ${P}.tar.gz
# Copy the jar files that don't exist in the tree yet
if use java; then
mkdir "${TSK_JAR_DIR}" || die
for f in ${A}; do
if [[ ${f} =~ .jar$ ]]; then
cp "${DISTDIR}"/"${f}" "${TSK_JAR_DIR}" || die
fi
done
fi
}
src_prepare() {
if use java; then
pushd "${S}"/bindings/java &>/dev/null || die
# Prevent "make install" from installing
# jar files under /usr/share/java
# We'll use the java eclasses for this
sed -e '/^jar_DATA/ d;' -i Makefile.am || die
# Disable dependency retrieval using ivy
# We will handle it ourselves
sed -e '/name="compile"/ s/, retrieve-deps//' \
-e '/name="dist-/ s/, init-ivy//g' \
-i build.xml || die
java-pkg-opt-2_src_prepare
popd &>/dev/null || die
fi
# Override the doxygen output directories
if use doc; then
sed -e "/^OUTPUT_DIRECTORY/ s|=.*$|= ${T}/doc|" \
-i tsk/docs/Doxyfile \
-i bindings/java/doxygen/Doxyfile || die
fi
# It's safe to call this even after java-pkg-opt-2_src_prepare
# because future calls to eapply_user do nothing and return 0
default
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_enable java)
$(use_enable static-libs static)
$(use_enable threads multithreading)
$(use_with aff afflib)
$(use_with ewf libewf)
$(use_with zlib)
)
if use java; then
pushd "${S}"/bindings/java &>/dev/null || die
java-ant-2_src_configure
popd &>/dev/null || die
fi
econf "${myeconfargs[@]}"
}
src_compile() {
# Create symlinks of jars for the required dependencies
if use java; then
pushd "${S}"/bindings/java &>/dev/null || die
java-pkg_jar-from --into "${TSK_JAR_DIR}" c3p0
java-pkg_jar-from --into "${TSK_JAR_DIR}" jdbc-postgresql
popd &>/dev/null || die
fi
# Create the doc output dirs if requested
if use doc; then
mkdir -p "${T}"/doc/{api-docs,jni-docs} || die
fi
emake all $(usex doc api-docs "")
}
src_install() {
local f
if use java; then
pushd "${S}"/bindings/java &>/dev/null || die
java-pkg_dojar dist/Tsk_DataModel.jar
# Install the bundled jar files
pushd "${TSK_JAR_DIR}" &>/dev/null || die
for f in *; do
# Skip the symlinks java-pkg_jar-from created
[[ -f ${f} ]] || continue
# Strip the version numbers as per eclass recommendation
[[ ${f} =~ -([0-9].)+.jar$ ]] || continue
java-pkg_newjar "${f}" "${f/${BASH_REMATCH[0]}/.jar}"
done
popd &>/dev/null || die
popd &>/dev/null || die
fi
default
# It unconditionally builds both api and jni docs
# We install conditionally based on the provided use flags
if use doc; then
dodoc -r "${T}"/doc/api-docs
use java && dodoc -r "${T}"/doc/jni-docs
fi
find "${D}" -name '*.la' -delete || die
}

View file

@ -32,3 +32,5 @@ www-apps/Tiredful-API
#Grammarly alternative
~app-officeext/languagetool-4.3
=app-dicts/seclists-2018*