Install this version:
emerge -a =app-misc/siegfried-1.11.5
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-misc/siegfried-1.11.5
Or alternatively:
emerge --autounmask-write -a =app-misc/siegfried-1.11.5
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.11.5 | 9 | ~amd64 | 0 |
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit go-module
MY_P=${P/_/-}
DESCRIPTION="Signature-based file format identification"
HOMEPAGE="
https://www.itforarchivists.com/siegfried/
https://github.com/richardlehane/siegfried/
"
SRC_URI="
https://github.com/richardlehane/siegfried/archive/v${PV/_/-}.tar.gz
-> ${MY_P}.gh.tar.gz
https://github.com/richardlehane/siegfried/releases/download/v${PV/_/-}/data_${PV//[._]/-}.zip
-> ${MY_P}-data.zip
https://github.com/gentoo-golang-dist/siegfried/releases/download/v${PV}/${P}-deps.tar.xz
"
S=${WORKDIR}/${MY_P}
LICENSE="Apache-2.0"
# vendored deps
LICENSE+=" BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
!app-misc/dfshow
"
BDEPEND="
>=dev-lang/go-1.25.0:=
"
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"
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | siegfried-1.11.5-data.zip | 13130332 bytes | https://github.com/richardlehane/siegfried/releases/download/v1.11.5/data_1-11-5.zip |
| DIST | siegfried-1.11.5-deps.tar.xz | 12398180 bytes | https://github.com/gentoo-golang-dist/siegfried/releases/download/v1.11.5/siegfried-1.11.5-deps.tar.xz |
| DIST | siegfried-1.11.5.gh.tar.gz | 12517770 bytes | https://github.com/richardlehane/siegfried/archive/v1.11.5.tar.gz |