From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D930F158041 for ; Fri, 23 Feb 2024 17:13:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A785E29D1; Fri, 23 Feb 2024 17:13:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DBAEBE29D1 for ; Fri, 23 Feb 2024 17:13:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EFDB4343016 for ; Fri, 23 Feb 2024 17:13:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 84710B2F for ; Fri, 23 Feb 2024 17:13:09 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1708708381.62d8963a8e490e57d1871f80245cbeb5bbd34f2b.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/siegfried/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/siegfried/Manifest app-misc/siegfried/metadata.xml app-misc/siegfried/siegfried-1.11.0.ebuild X-VCS-Directories: app-misc/siegfried/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 62d8963a8e490e57d1871f80245cbeb5bbd34f2b X-VCS-Branch: master Date: Fri, 23 Feb 2024 17:13:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ea1c38ed-8035-4497-a078-a151f7c8b3dc X-Archives-Hash: 7b3df9345345ecdc398fc04e88338750 commit: 62d8963a8e490e57d1871f80245cbeb5bbd34f2b Author: Michał Górny gentoo org> AuthorDate: Fri Feb 23 17:08:58 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Feb 23 17:13:01 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d8963a app-misc/siegfried: New package, v1.11.0 Signed-off-by: Michał Górny gentoo.org> app-misc/siegfried/Manifest | 3 ++ app-misc/siegfried/metadata.xml | 11 ++++++ app-misc/siegfried/siegfried-1.11.0.ebuild | 55 ++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) diff --git a/app-misc/siegfried/Manifest b/app-misc/siegfried/Manifest new file mode 100644 index 000000000000..d1355a33d2da --- /dev/null +++ b/app-misc/siegfried/Manifest @@ -0,0 +1,3 @@ +DIST siegfried-1.11.0-data.zip 14626213 BLAKE2B 64bdb75c278c7e21ceb96dea7b96b3ba5f2e361ea9123ab14549832545968519b6504f9d6223cbcaa0f4509d2491a6892e8383dc5891ec0b2dec833506c0b968 SHA512 e7fd2e66158efb4016189f2563af0818ced75ac346985806f2eb7e75a208411dcd1adae226957f486809e9904df3750a932bcf62ecc48c16a5a3c363e64f96ec +DIST siegfried-1.11.0.deps.tar.xz 12660688 BLAKE2B c894faa87fbc8d1a662e0336d59283b70130875b17d82078a630ad663a340efc02d5a392b55e33c16d7f48a1db39f670fcce8d4a69192b4d195eb33229de2b85 SHA512 a7eefd2d9a6743ca0bbd6e8dee59025b0153570729c630606bdfd9239ed7eb40d65d64107da19959d2b6eab31fa59ef5891750788292323dc5aa75eae09682e2 +DIST siegfried-1.11.0.gh.tar.gz 14122315 BLAKE2B 262b73b32d08a2c65cf758321da8c6c7520fddad006f6562b5356282ae25dcca253ce18b73ff11313ff7103b28ae4262ca7aa50437e2ceefe706ce668aaddaac SHA512 fc7b3f42da7a78cc66f9e71586220acefac8986d645aaf0ba6138a46fc3bf125e76a954c95fec74ac6d369b9bdb16090777fe36eadbf4f6ac994623b3529e723 diff --git a/app-misc/siegfried/metadata.xml b/app-misc/siegfried/metadata.xml new file mode 100644 index 000000000000..deee7035f1c8 --- /dev/null +++ b/app-misc/siegfried/metadata.xml @@ -0,0 +1,11 @@ + + + + + mgorny@gentoo.org + Michał Górny + + + richardlehane/siegfried + + diff --git a/app-misc/siegfried/siegfried-1.11.0.ebuild b/app-misc/siegfried/siegfried-1.11.0.ebuild new file mode 100644 index 000000000000..e92e21ecb129 --- /dev/null +++ b/app-misc/siegfried/siegfried-1.11.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Signature-based file format identification" +HOMEPAGE="https://github.com/richardlehane/siegfried/" +SRC_URI=" + https://github.com/richardlehane/siegfried/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz + https://github.com/richardlehane/siegfried/releases/download/v${PV}/data_1-11-0.zip + -> ${P}-data.zip +" +if [[ ${PKGBUMPING} != ${PVR} ]]; then + SRC_URI+=" + https://dev.gentoo.org/~mgorny/dist/${P}.deps.tar.xz + " +fi + +LICENSE="Apache-2.0" +# vendored deps +LICENSE+=" BSD" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + go build -v -work -x "${S}"/cmd/roy || die + go build -v -work -x "${S}"/cmd/sf || die +} + +src_test() { + cp "${WORKDIR}/siegfried/fddXML.zip" cmd/roy/data || die + go test -v "${S}"/cmd/roy || die + go test -v "${S}"/cmd/sf || die +} + +src_install() { + dobin roy sf + insinto /usr/share/siegfried + doins "${WORKDIR}/siegfried/default.sig" + newenvd - 99siegfried <<-EOF + SIEGFRIED_HOME="${EPREFIX}/usr/share/siegfried" + EOF +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "We use SIEGFRIED_HOME environment variable to point Siegfried" + elog "to the signature file. Please source /etc/profile to make it" + elog "work. If you would like to use another home directory, check" + elog "the -home option." + fi +}