parent
bcd1f18e15
commit
12c46148c1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,146 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
MY_P=${P/speech-/speech_}
|
|
||||||
PATCHSET="r3"
|
|
||||||
|
|
||||||
DESCRIPTION="Speech tools for Festival Text to Speech engine"
|
|
||||||
HOMEPAGE="http://www.cstr.ed.ac.uk/projects/speech_tools/"
|
|
||||||
SRC_URI="http://www.festvox.org/packed/festival/$(ver_cut 1-2)/${MY_P}-release.tar.gz
|
|
||||||
https://dev.gentoo.org/~neurogeek/${PN}/speech_tools-2.1-${PATCHSET}-patches.tar.gz"
|
|
||||||
S="${WORKDIR}/speech_tools"
|
|
||||||
|
|
||||||
LICENSE="FESTIVAL HPND BSD rc regexp-UofT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 sparc x86"
|
|
||||||
IUSE="nas openmp X"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
media-libs/alsa-lib
|
|
||||||
sys-libs/ncurses:0=
|
|
||||||
nas? ( media-libs/nas )
|
|
||||||
X? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXt
|
|
||||||
)
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="virtual/pkgconfig"
|
|
||||||
|
|
||||||
DOCS=( README.md lib/cstrutt.dtd lib/example_data )
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${WORKDIR}/patch/02_all_gcc42.patch"
|
|
||||||
"${WORKDIR}/patch/03_all_GentooLinux.patch"
|
|
||||||
"${WORKDIR}/patch/05_all_sharedlib.patch"
|
|
||||||
"${WORKDIR}/patch/06_all_gcc43-include.patch"
|
|
||||||
"${WORKDIR}/patch/09_all_remove-shared-refs.patch"
|
|
||||||
"${WORKDIR}/patch/10_all_base_class.patch"
|
|
||||||
"${WORKDIR}/patch/81_all_etcpath.patch"
|
|
||||||
"${WORKDIR}/patch/91_all_gentoo-config.patch"
|
|
||||||
"${WORKDIR}/patch/92_all_ldflags_fix.patch"
|
|
||||||
"${WORKDIR}/patch/94_all_ncurses_tinfo.patch"
|
|
||||||
|
|
||||||
# Fix underlinking, bug #493204
|
|
||||||
"${FILESDIR}/${PN}-2.1-underlinking.patch"
|
|
||||||
"${FILESDIR}/${PN}-2.5.0-fno-common.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
sed -i -e '/^CXXFLAGS =/s|CC_OTHER_FLAGS|CXX_OTHER_FLAGS|' \
|
|
||||||
config/compilers/gcc_defaults.mak || die
|
|
||||||
|
|
||||||
sed -i -e 's,{{HORRIBLELIBARCHKLUDGE}},"/usr/$(get_libdir)",' \
|
|
||||||
main/siod_main.cc || die
|
|
||||||
|
|
||||||
# bug #309983
|
|
||||||
sed -i -e "s:\(GCC_SYSTEM_OPTIONS =\).*:\1:" \
|
|
||||||
"${S}"/config/systems/sparc_SunOS5.mak || die
|
|
||||||
|
|
||||||
sed -i -e "s|\$(OMP_OPTS)|$(use openmp && echo -fopenmp)|g" \
|
|
||||||
-e "s|\$(OMP_DEFS)|$(use openmp && echo -DOMP_WAGON=1)|g" \
|
|
||||||
-e "/MAKE_SHARED_LIB =/s|-shared|$(use openmp && echo -fopenmp) -shared|" \
|
|
||||||
config/compilers/gcc_defaults.mak || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local CONFIG=config/config.in
|
|
||||||
|
|
||||||
sed -i -e 's/@COMPILERTYPE@/gcc42/' ${CONFIG} || die
|
|
||||||
|
|
||||||
if use nas; then
|
|
||||||
sed -i -e "s/#.*\(INCLUDE_MODULES += NAS_AUDIO\)/\1/" \
|
|
||||||
${CONFIG} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use X; then
|
|
||||||
sed -i -e "s/-lX11 -lXt//" config/modules/esd_audio.mak || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
econf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake -j1 \
|
|
||||||
CC="$(tc-getCC)" \
|
|
||||||
CXX="$(tc-getCXX)" \
|
|
||||||
CC_OTHER_FLAGS="${CFLAGS}" \
|
|
||||||
CXX_OTHER_FLAGS="${CXXFLAGS}" \
|
|
||||||
LDFLAGS="${LDFLAGS}" \
|
|
||||||
AR="$(tc-getAR)" \
|
|
||||||
RANLIB="$(tc-getRANLIB)"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
dolib.so lib/libest*.so*
|
|
||||||
|
|
||||||
insinto /usr/share/speech-tools
|
|
||||||
doins -r config base_class
|
|
||||||
|
|
||||||
insinto /usr/share/speech-tools/lib
|
|
||||||
doins -r lib/siod
|
|
||||||
|
|
||||||
mv include speech-tools || die
|
|
||||||
doheader -r speech-tools
|
|
||||||
dosym ../../include/speech-tools /usr/share/speech-tools/include
|
|
||||||
|
|
||||||
for file in bin/*; do
|
|
||||||
[ "${file}" = "bin/Makefile" ] && continue
|
|
||||||
dobin ${file}
|
|
||||||
dstfile="${ED}/usr/${file}"
|
|
||||||
sed -i -e "s:${S}/testsuite/data:/usr/share/speech-tools/testsuite:g" \
|
|
||||||
${dstfile} || die
|
|
||||||
sed -i -e "s:${S}/bin:/usr/$(get_libdir)/speech-tools:g" \
|
|
||||||
${dstfile} || die
|
|
||||||
sed -i -e "s:${S}/main:/usr/$(get_libdir)/speech-tools:g" \
|
|
||||||
${dstfile} || die
|
|
||||||
|
|
||||||
# This just changes LD_LIBRARY_PATH
|
|
||||||
sed -i -e "s:${S}/lib:/usr/$(get_libdir):g" ${dstfile} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
exeinto /usr/$(get_libdir)/speech-tools
|
|
||||||
for file in `find main -perm /111 -type f`; do
|
|
||||||
doexe ${file}
|
|
||||||
done
|
|
||||||
|
|
||||||
# Remove bcat (only useful for testing on windows, see bug #418301).
|
|
||||||
rm "${ED}/usr/bin/bcat" || die
|
|
||||||
rm "${ED}/usr/$(get_libdir)/speech-tools/bcat" || die
|
|
||||||
}
|
|
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
DIST aws-cli-1.25.26.gh.tar.gz 2230449 BLAKE2B bb792fb2e4ba25870168e4fc3301d4b92d93d831301b0a46ec7dab1ac4b1bdeda9d43f9f6cf20de153f9df3d6b66b0d9ed9754ee4c27b79aacf9d9b8d7e11c2f SHA512 56f9d02d54d20624944c8749860d3e92e7c0887b1c6f524545394ad590ad5ab63752abf25ecba400cfcb9273bdecbae110e4811804e287f15bdfde0d8638adff
|
DIST aws-cli-1.25.26.gh.tar.gz 2230449 BLAKE2B bb792fb2e4ba25870168e4fc3301d4b92d93d831301b0a46ec7dab1ac4b1bdeda9d43f9f6cf20de153f9df3d6b66b0d9ed9754ee4c27b79aacf9d9b8d7e11c2f SHA512 56f9d02d54d20624944c8749860d3e92e7c0887b1c6f524545394ad590ad5ab63752abf25ecba400cfcb9273bdecbae110e4811804e287f15bdfde0d8638adff
|
||||||
DIST aws-cli-1.25.31.gh.tar.gz 2233721 BLAKE2B 791bd78851c5643ee72faddc8e4d4e39c94a91e4879d749bcf2cadbe4797cdd448a95dd2b3c626b76e648303ec93fc0338d08f79227f05ff467754810166731b SHA512 586f0fa0f81ec8acc0b79fba5372a37ebcf162981c8fbab31633f63736337cae0b4788bb7a4cdabf6e04800fb63ed6804a6a73a7d5552a9b4c85b4eb273ee6d8
|
DIST aws-cli-1.25.31.gh.tar.gz 2233721 BLAKE2B 791bd78851c5643ee72faddc8e4d4e39c94a91e4879d749bcf2cadbe4797cdd448a95dd2b3c626b76e648303ec93fc0338d08f79227f05ff467754810166731b SHA512 586f0fa0f81ec8acc0b79fba5372a37ebcf162981c8fbab31633f63736337cae0b4788bb7a4cdabf6e04800fb63ed6804a6a73a7d5552a9b4c85b4eb273ee6d8
|
||||||
DIST aws-cli-1.25.36.gh.tar.gz 2237211 BLAKE2B fbab136a1c1211646c1213357cd80068da376e4aceb38007c14b2fb670a694b37aaa0157d58eb4edf10c3a9b5a700575a42b48c06db1c4034f39ccda584be19a SHA512 b66ba357085c82dcefc4ed9a6d0765d8768c8d216cd255056be055d3b5f604b62bace3eacccac83275d7c9487847f7de542efa804f8e0f454947cfe453d6e705
|
DIST aws-cli-1.25.36.gh.tar.gz 2237211 BLAKE2B fbab136a1c1211646c1213357cd80068da376e4aceb38007c14b2fb670a694b37aaa0157d58eb4edf10c3a9b5a700575a42b48c06db1c4034f39ccda584be19a SHA512 b66ba357085c82dcefc4ed9a6d0765d8768c8d216cd255056be055d3b5f604b62bace3eacccac83275d7c9487847f7de542efa804f8e0f454947cfe453d6e705
|
||||||
|
DIST aws-cli-1.25.37.gh.tar.gz 2237143 BLAKE2B 3c51a5e56964fb8c4e5374892e185da7817f798a66fac2fd181acf068e1419bf4e8749590c9cbeb0d4344b82de4ecc44ce8b4eaf8b133895d60055783f1a6263 SHA512 533459e94db747fe4a6daad598b2b0d894202e60080505ad3d0864c54c8286c7d56d615cb1232cfadd1bd1181aede327d3fed3eca863dcfc92efb4867736b7fb
|
||||||
|
@ -0,0 +1,72 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
MY_P=aws-cli-${PV}
|
||||||
|
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/aws/aws-cli/
|
||||||
|
https://pypi.org/project/awscli/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||||
|
-> ${MY_P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
|
||||||
|
# botocore is x.(y+2).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
dev-python/colorama[${PYTHON_USEDEP}]
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rsa[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
!app-admin/awscli-bin
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
# strip overzealous upper bounds on requirements
|
||||||
|
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# integration tests require AWS credentials and Internet access
|
||||||
|
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
newbashcomp bin/aws_bash_completer aws
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins bin/aws_zsh_completer.sh _aws
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST xstow-1.0.2.tar.bz2 151622 BLAKE2B 45123c2cb018605c2e47940707384ea1824ddf4f542cfad6a73bfc3559803ca6ec7811252221ad80125e1821cac6d65bcc106b4acf294c4fa453e8043c78cf04 SHA512 319dcd57290fcee9fd66811e64af73ddab8abb11d47c0cb79d3e11f1ecdf18ab9511b3a0690621061d2613193cd4895f3bddb3d741159c23c14d278a8a8bf9dd
|
DIST xstow-1.0.2.tar.bz2 151622 BLAKE2B 45123c2cb018605c2e47940707384ea1824ddf4f542cfad6a73bfc3559803ca6ec7811252221ad80125e1821cac6d65bcc106b4acf294c4fa453e8043c78cf04 SHA512 319dcd57290fcee9fd66811e64af73ddab8abb11d47c0cb79d3e11f1ecdf18ab9511b3a0690621061d2613193cd4895f3bddb3d741159c23c14d278a8a8bf9dd
|
||||||
|
DIST xstow-1.1.0.tar.bz2 187761 BLAKE2B ed3822e638aedf8900a3baba62a5af9de9d7b98dcdf27ca81a6898353b9f5c7f767ec7d8e68ead4d5ef318af5a6eda2b1cc68a5c80a6a8ad2b9c8adf03ae3377 SHA512 30f2e0be0c2aba668b4cc781fe69ac74c2460cc681c6b47a55ee66af5c0f2ac14dee9fe2e95a288ce06059378407a2b99d2156430a5a6dcbf06def793f579015
|
||||||
|
@ -0,0 +1,37 @@
|
|||||||
|
https://github.com/majorkingleo/xstow/commit/bdcbdb6f6e0f35ed0a0df50f0a9d19441af9c866
|
||||||
|
|
||||||
|
From: Martin Oberzalek <kingleo@gmx.at>
|
||||||
|
Date: Wed, 27 Jul 2022 09:25:03 +0200
|
||||||
|
Subject: [PATCH] Fixed compilation with clang
|
||||||
|
|
||||||
|
--- a/src/cpputils/cpputilsshared/cpputilsformat/format2.h
|
||||||
|
+++ b/src/cpputils/cpputilsshared/cpputilsformat/format2.h
|
||||||
|
@@ -40,7 +40,7 @@ namespace Tools {
|
||||||
|
bool _is_string;
|
||||||
|
|
||||||
|
public:
|
||||||
|
- BaseArg( bool is_int_, bool is_string_ )
|
||||||
|
+ BaseArg( bool is_int_ = false, bool is_string_ = false )
|
||||||
|
: _is_int( is_int_ ),
|
||||||
|
_is_string( is_string_ )
|
||||||
|
{}
|
||||||
|
--- a/src/cpputils/cpputilsshared/leoini.h
|
||||||
|
+++ b/src/cpputils/cpputilsshared/leoini.h
|
||||||
|
@@ -278,12 +278,11 @@ namespace Leo
|
||||||
|
std::string::size_type end = s.find( ']', start );
|
||||||
|
|
||||||
|
if( start == std::string::npos ||
|
||||||
|
- end == std::string::npos )
|
||||||
|
- s = "";
|
||||||
|
- else
|
||||||
|
- s = s.substr( start+1, start-end -1 );
|
||||||
|
-
|
||||||
|
- return s2x<A>(s);
|
||||||
|
+ end == std::string::npos ) {
|
||||||
|
+ return s2x<A>("");
|
||||||
|
+ } else {
|
||||||
|
+ return s2x<A>( s.substr( start+1, start-end -1 ) );
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
} // namespace Leo
|
||||||
|
|
@ -0,0 +1,53 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools
|
||||||
|
|
||||||
|
DESCRIPTION="Replacement for GNU stow with extensions"
|
||||||
|
HOMEPAGE="http://xstow.sourceforge.net/"
|
||||||
|
SRC_URI="mirror://sourceforge/xstow/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~x86"
|
||||||
|
IUSE="ncurses"
|
||||||
|
|
||||||
|
DEPEND="ncurses? ( sys-libs/ncurses:= )"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${P}-clang.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf $(use_with ncurses curses)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}/html" install
|
||||||
|
dodoc AUTHORS ChangeLog NEWS README TODO
|
||||||
|
|
||||||
|
# Create new STOWDIR
|
||||||
|
keepdir /var/lib/xstow
|
||||||
|
|
||||||
|
# Install env.d file to add STOWDIR to PATH and LDPATH
|
||||||
|
doenvd "${FILESDIR}"/99xstow
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "We now recommend that you use /var/lib/xstow as your STOWDIR"
|
||||||
|
elog "instead of /usr/local in order to avoid conflicts with the"
|
||||||
|
elog "symlink from /usr/lib64 -> /usr/lib. See Bug 246264"
|
||||||
|
elog "(regarding app-admin/stow, equally applicable to XStow) for"
|
||||||
|
elog "more details on this change."
|
||||||
|
elog "For your convenience, PATH has been updated to include"
|
||||||
|
elog "/var/lib/bin."
|
||||||
|
}
|
Binary file not shown.
@ -1,3 +1,5 @@
|
|||||||
DIST clamav-0.103.6.tar.gz 16491761 BLAKE2B 3c43bcda4a613f81d1b31036e7323a7af7708e54af94ad30a659a8fb318d8f79f357086ce70703659298524d778374df886495cd8c75280bbbe4bae30795a85a SHA512 d39e1964678b8251bde3a9f3db30fe3d3d76cc566a86834297f4dd8489086dc9cc4c6541ca128089159f4c071d2d85b530455bd942987d3929ea0082b8ab272b
|
DIST clamav-0.103.6.tar.gz 16491761 BLAKE2B 3c43bcda4a613f81d1b31036e7323a7af7708e54af94ad30a659a8fb318d8f79f357086ce70703659298524d778374df886495cd8c75280bbbe4bae30795a85a SHA512 d39e1964678b8251bde3a9f3db30fe3d3d76cc566a86834297f4dd8489086dc9cc4c6541ca128089159f4c071d2d85b530455bd942987d3929ea0082b8ab272b
|
||||||
|
DIST clamav-0.103.7.tar.gz 16501741 BLAKE2B 49fc1c8c42ee8168dbaec4aa13ab0dfef7fa285e335cb38b17bc020df7400ee1daae49e06ba5b4ae0364d47d707cb83c0b1a8442d5b01d2bba5827606fe27fb4 SHA512 d426169889d94411b20a2c9c9579fc22a15090c9847849822c63fc6b404075feba0ff3663ee1382b2af5300394c7a93669844736f7473bfdce3250e1fd130326
|
||||||
DIST clamav-0.104.2.tar.gz 11950409 BLAKE2B 7d7eb9d22ca519f7ad0c171b6cab4b59cb52787a897ab31b9567166be2223f9ea89e79f42f1e4e0caf32fcb4b008f5ce755fa136566f85fe1de7808b436f80fa SHA512 8c89a05dec6650677125177434cc49ec2298701525508cdda52358e8f98086d80892287f6267f8b7fda0aef2ca361616cb584c3059f3b066bfde65f7f1ba2df5
|
DIST clamav-0.104.2.tar.gz 11950409 BLAKE2B 7d7eb9d22ca519f7ad0c171b6cab4b59cb52787a897ab31b9567166be2223f9ea89e79f42f1e4e0caf32fcb4b008f5ce755fa136566f85fe1de7808b436f80fa SHA512 8c89a05dec6650677125177434cc49ec2298701525508cdda52358e8f98086d80892287f6267f8b7fda0aef2ca361616cb584c3059f3b066bfde65f7f1ba2df5
|
||||||
DIST clamav-0.104.3.tar.gz 12017176 BLAKE2B db97a3d3ca0a2c5273a175ee3a30fdd07eecd13588a39d39e4d07f91034016ee6eca626b0ab7bf548121e4093ea612f9932512bc021326e4bba8b0844af73664 SHA512 d38a2427df29813e4d0f41d480cda85f6175e617c397ab39d913000fa43fcb44f1e0b97d7bd558bc62369e8caeeb2b3aeb4b3dd575b9da4abb91f8b67a6b8431
|
DIST clamav-0.104.3.tar.gz 12017176 BLAKE2B db97a3d3ca0a2c5273a175ee3a30fdd07eecd13588a39d39e4d07f91034016ee6eca626b0ab7bf548121e4093ea612f9932512bc021326e4bba8b0844af73664 SHA512 d38a2427df29813e4d0f41d480cda85f6175e617c397ab39d913000fa43fcb44f1e0b97d7bd558bc62369e8caeeb2b3aeb4b3dd575b9da4abb91f8b67a6b8431
|
||||||
|
DIST clamav-0.104.4.tar.gz 12027448 BLAKE2B e8627b49b46e9bf5669b7186d829fd2caa76d9071b1533da252fea1bdeed1b78ec4a138db8957b0d121df1180eb37a6230f5f0db1e4d3f2de80bf7dddad5b47e SHA512 5aa8abe96ff49548cf74df47a7e56279c3082dc8ca98cab02f64f44b2da0230e75b5f634b3086ba8ca155052cbc22a2a47ab3dd159ae033d3f599dcde1f2420e
|
||||||
|
@ -0,0 +1,239 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools flag-o-matic systemd tmpfiles
|
||||||
|
|
||||||
|
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||||
|
HOMEPAGE="https://www.clamav.net/"
|
||||||
|
SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||||
|
IUSE="bzip2 doc clamonacc clamdtop clamsubmit iconv ipv6 libclamav-only milter metadata-analysis-api selinux systemd test xml"
|
||||||
|
|
||||||
|
REQUIRED_USE="libclamav-only? ( !clamonacc !clamdtop !clamsubmit !milter !metadata-analysis-api )"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
# Require acct-{user,group}/clamav at build time so that we can set
|
||||||
|
# the permissions on /var/lib/clamav in src_install rather than in
|
||||||
|
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||||
|
CDEPEND="acct-group/clamav
|
||||||
|
acct-user/clamav
|
||||||
|
dev-libs/libltdl
|
||||||
|
dev-libs/libmspack
|
||||||
|
|| ( dev-libs/libpcre2 >dev-libs/libpcre-6 )
|
||||||
|
dev-libs/tomsfastmath
|
||||||
|
>=sys-libs/zlib-1.2.2:=
|
||||||
|
bzip2? ( app-arch/bzip2 )
|
||||||
|
clamdtop? ( sys-libs/ncurses:0 )
|
||||||
|
clamsubmit? ( net-misc/curl dev-libs/json-c:= )
|
||||||
|
elibc_musl? ( sys-libs/fts-standalone )
|
||||||
|
iconv? ( virtual/libiconv )
|
||||||
|
!libclamav-only? ( net-misc/curl )
|
||||||
|
dev-libs/openssl:0=
|
||||||
|
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||||
|
xml? ( dev-libs/libxml2 )"
|
||||||
|
|
||||||
|
# We need at least autoconf-2.69-r5 because that's the first (patched)
|
||||||
|
# version of it in Gentoo that supports ./configure --runstatedir.
|
||||||
|
BDEPEND=">=sys-devel/autoconf-2.69-r5
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
DEPEND="${CDEPEND}
|
||||||
|
metadata-analysis-api? ( dev-libs/json-c:* )
|
||||||
|
test? ( dev-libs/check )"
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
selinux? ( sec-policy/selinux-clamav )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-0.102.1-libxml2_pkgconfig.patch" #661328
|
||||||
|
"${FILESDIR}/${PN}-0.102.2-fix-curl-detection.patch" #709616
|
||||||
|
"${FILESDIR}/${PN}-0.103.0-system-tomsfastmath.patch" # 649394
|
||||||
|
"${FILESDIR}/${PN}-0.103.1-upstream-openrc.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Be extra sure that we're using the system copy of tomsfastmath
|
||||||
|
einfo "removing bundled copy of dev-libs/tomsfastmath"
|
||||||
|
rm -r libclamav/tomsfastmath || \
|
||||||
|
die "failed to remove bundled tomsfastmath"
|
||||||
|
|
||||||
|
AT_NO_RECURSIVE="yes" eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
use elibc_musl && append-ldflags -lfts
|
||||||
|
use ppc64 && append-flags -mminimal-toc
|
||||||
|
|
||||||
|
# according to configure help it should be
|
||||||
|
# $(use_enable xml)
|
||||||
|
# but that does not work
|
||||||
|
# do not add this, since --disable-xml seems to override
|
||||||
|
# --without-xml
|
||||||
|
JSONUSE="--without-libjson"
|
||||||
|
|
||||||
|
if use clamsubmit || use metadata-analysis-api; then
|
||||||
|
# either of those 2 requires libjson.
|
||||||
|
# clamsubmit will be built as soon as libjson and curl are found
|
||||||
|
# but we only install the binary if requested
|
||||||
|
JSONUSE="--with-libjson=${EPREFIX}/usr"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local myeconfargs=(
|
||||||
|
$(use_enable bzip2)
|
||||||
|
$(use_enable clamonacc)
|
||||||
|
$(use_enable clamdtop)
|
||||||
|
$(use_enable ipv6)
|
||||||
|
$(use_enable milter)
|
||||||
|
$(use_enable test check)
|
||||||
|
$(use_with xml)
|
||||||
|
$(use_with iconv)
|
||||||
|
${JSONUSE}
|
||||||
|
$(use_enable libclamav-only)
|
||||||
|
$(use_with !libclamav-only libcurl)
|
||||||
|
--with-system-libmspack
|
||||||
|
--cache-file="${S}"/config.cache
|
||||||
|
--disable-experimental
|
||||||
|
--disable-static
|
||||||
|
--disable-zlib-vcheck
|
||||||
|
--enable-id-check
|
||||||
|
--with-dbdir="${EPREFIX}"/var/lib/clamav
|
||||||
|
# Don't call --with-zlib=/usr (see bug #699296)
|
||||||
|
--with-zlib
|
||||||
|
--disable-llvm
|
||||||
|
--enable-openrc
|
||||||
|
--runstatedir=/run
|
||||||
|
)
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
rm -rf "${ED}"/var/lib/clamav || die
|
||||||
|
|
||||||
|
if ! use libclamav-only ; then
|
||||||
|
if use systemd; then
|
||||||
|
# The tmpfiles entry is behind USE=systemd because the
|
||||||
|
# upstream OpenRC service files should (and do) ensure that
|
||||||
|
# the directories they need exist and have the correct
|
||||||
|
# permissions without the help of opentmpfiles. There are
|
||||||
|
# years-old root exploits in opentmpfiles, the design is
|
||||||
|
# fundamentally flawed, and the maintainer is not up to
|
||||||
|
# the task of fixing it.
|
||||||
|
dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||||
|
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service"
|
||||||
|
systemd_dounit "${FILESDIR}/clamd.service"
|
||||||
|
systemd_newunit "${FILESDIR}/freshclamd.service-r1" \
|
||||||
|
"freshclamd.service"
|
||||||
|
fi
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins "${FILESDIR}/clamd.logrotate" clamd
|
||||||
|
newins "${FILESDIR}/freshclam.logrotate" freshclam
|
||||||
|
use milter && \
|
||||||
|
newins "${FILESDIR}/clamav-milter.logrotate-r1" clamav-milter
|
||||||
|
|
||||||
|
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||||
|
sed -i -e "s:^\(Example\):\# \1:" \
|
||||||
|
-e "s/^#\(PidFile .*\)/\1/" \
|
||||||
|
-e "s/^#\(LocalSocket .*\)/\1/" \
|
||||||
|
-e "s/^#\(User .*\)/\1/" \
|
||||||
|
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||||
|
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||||
|
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||||
|
"${ED}"/etc/clamd.conf.sample || die
|
||||||
|
|
||||||
|
sed -i -e "s:^\(Example\):\# \1:" \
|
||||||
|
-e "s/^#\(PidFile .*\)/\1/" \
|
||||||
|
-e "s/^#\(DatabaseOwner .*\)/\1/" \
|
||||||
|
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||||
|
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||||
|
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||||
|
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||||
|
"${ED}"/etc/freshclam.conf.sample || die
|
||||||
|
|
||||||
|
if use milter ; then
|
||||||
|
# Note: only keep the "unix" ClamdSocket and MilterSocket!
|
||||||
|
sed -i -e "s:^\(Example\):\# \1:" \
|
||||||
|
-e "s/^#\(PidFile .*\)/\1/" \
|
||||||
|
-e "s/^#\(ClamdSocket unix:.*\)/\1/" \
|
||||||
|
-e "s/^#\(User .*\)/\1/" \
|
||||||
|
-e "s/^#\(MilterSocket unix:.*\)/\1/" \
|
||||||
|
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||||
|
"${ED}"/etc/clamav-milter.conf.sample || die
|
||||||
|
|
||||||
|
cat >> "${ED}"/etc/conf.d/clamd <<-EOF
|
||||||
|
MILTER_NICELEVEL=19
|
||||||
|
START_MILTER=no
|
||||||
|
EOF
|
||||||
|
|
||||||
|
systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
local i
|
||||||
|
for i in clamd freshclam clamav-milter
|
||||||
|
do
|
||||||
|
if [[ -f "${ED}"/etc/"${i}".conf.sample ]]; then
|
||||||
|
mv "${ED}"/etc/"${i}".conf{.sample,} || die
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# These both need to be writable by the clamav user.
|
||||||
|
# TODO: use syslog by default; that's what it's for.
|
||||||
|
diropts -o clamav -g clamav
|
||||||
|
keepdir /var/lib/clamav
|
||||||
|
keepdir /var/log/clamav
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
local HTML_DOCS=( docs/html/. )
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
if ! use libclamav-only ; then
|
||||||
|
doman docs/man/*.[1-8]
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
if use libclamav-only ; then
|
||||||
|
ewarn "Test target not available when USE=libclamav-only is set, skipping tests ..."
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake quick-check
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if ! use libclamav-only ; then
|
||||||
|
if use systemd ; then
|
||||||
|
tmpfiles_process clamav.conf
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use milter ; then
|
||||||
|
elog "For simple instructions how to setup the clamav-milter read the"
|
||||||
|
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local databases=( "${EROOT}"/var/lib/clamav/main.c[lv]d )
|
||||||
|
if [[ ! -f "${databases}" ]] ; then
|
||||||
|
ewarn "You must run freshclam manually to populate the virus database"
|
||||||
|
ewarn "before starting clamav for the first time."
|
||||||
|
fi
|
||||||
|
|
||||||
|
ewarn "This version of ClamAV provides separate OpenRC services"
|
||||||
|
ewarn "for clamd, freshclam, clamav-milter, and clamonacc. The"
|
||||||
|
ewarn "clamd service now starts only the clamd daemon itself. You"
|
||||||
|
ewarn "should add freshclam (and perhaps clamav-milter) to any"
|
||||||
|
ewarn "runlevels that previously contained clamd."
|
||||||
|
}
|
@ -0,0 +1,215 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit cmake flag-o-matic python-any-r1 systemd tmpfiles
|
||||||
|
|
||||||
|
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||||
|
HOMEPAGE="https://www.clamav.net/"
|
||||||
|
SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||||
|
IUSE="doc clamonacc +clamapp libclamav-only milter rar selinux systemd test"
|
||||||
|
|
||||||
|
REQUIRED_USE="libclamav-only? ( !clamonacc !clamapp !milter )
|
||||||
|
clamonacc? ( clamapp )
|
||||||
|
milter? ( clamapp )
|
||||||
|
test? ( !libclamav-only )"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
# Require acct-{user,group}/clamav at build time so that we can set
|
||||||
|
# the permissions on /var/lib/clamav in src_install rather than in
|
||||||
|
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||||
|
CDEPEND="acct-group/clamav
|
||||||
|
acct-user/clamav
|
||||||
|
dev-libs/libltdl
|
||||||
|
dev-libs/libmspack
|
||||||
|
dev-libs/json-c:=
|
||||||
|
dev-libs/libpcre2
|
||||||
|
>=sys-libs/zlib-1.2.2:=
|
||||||
|
app-arch/bzip2
|
||||||
|
clamapp? ( sys-libs/ncurses:= net-misc/curl )
|
||||||
|
elibc_musl? ( sys-libs/fts-standalone )
|
||||||
|
virtual/libiconv
|
||||||
|
!libclamav-only? ( net-misc/curl )
|
||||||
|
dev-libs/openssl:=
|
||||||
|
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||||
|
dev-libs/libxml2
|
||||||
|
rar? ( app-arch/unrar )
|
||||||
|
test? ( dev-python/pytest )"
|
||||||
|
# TODO: there is no way to use this with the new build system instead of the bundled one
|
||||||
|
# dev-libs/tomsfastmath
|
||||||
|
BDEPEND="virtual/pkgconfig
|
||||||
|
doc? ( app-doc/doxygen )
|
||||||
|
test? (
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
$(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]')
|
||||||
|
)"
|
||||||
|
DEPEND="${CDEPEND}
|
||||||
|
test? ( dev-libs/check )"
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
selinux? ( sec-policy/selinux-clamav )"
|
||||||
|
|
||||||
|
python_check_deps() {
|
||||||
|
has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use test && python-any-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
use elibc_musl && append-ldflags -lfts
|
||||||
|
use ppc64 && append-flags -mminimal-toc
|
||||||
|
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DDATABASE_DIRECTORY="${EPREFIX}"/var/lib/clamav
|
||||||
|
-DAPP_CONFIG_DIRECTORY="${EPREFIX}"/etc/clamav
|
||||||
|
-DENABLE_EXPERIMENTAL=OFF
|
||||||
|
-DENABLE_JSON_SHARED=ON
|
||||||
|
-DENABLE_APP=$(usex clamapp ON OFF)
|
||||||
|
-DENABLE_MILTER=$(usex milter ON OFF)
|
||||||
|
-DENABLE_CLAMONACC=$(usex clamonacc ON OFF)
|
||||||
|
-DCLAMAV_USER="clamav"
|
||||||
|
-DCLAMAV_GROUP="clamav"
|
||||||
|
-DBYTECODE_RUNTIME=interpreter
|
||||||
|
-DOPTIMIZE=ON
|
||||||
|
-DENABLE_EXTERNAL_MSPACK=ON
|
||||||
|
-DENABLE_MAN_PAGES=ON
|
||||||
|
-DENABLE_DOXYGEN=$(usex doc)
|
||||||
|
-DENABLE_UNRAR=$(usex rar ON OFF)
|
||||||
|
-DENABLE_TESTS=$(usex test ON OFF)
|
||||||
|
# Used to enable some more tests but doesn't behave well in
|
||||||
|
# sandbox necessarily(?) + needs certain debug symbols present
|
||||||
|
# in e.g. glibc.
|
||||||
|
-DCMAKE_DISABLE_FIND_PACKAGE_Valgrind=ON
|
||||||
|
-DENABLE_STATIC_LIB=OFF
|
||||||
|
-DENABLE_SHARED_LIB=ON
|
||||||
|
-DENABLE_SYSTEMD=$(usex systemd ON OFF)
|
||||||
|
)
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
# init scripts
|
||||||
|
newinitd "${FILESDIR}/clamd.initd" clamd
|
||||||
|
newinitd "${FILESDIR}/freshclam.initd" freshclam
|
||||||
|
use clamonacc && \
|
||||||
|
newinitd "${FILESDIR}/clamonacc.initd" clamonacc
|
||||||
|
use milter && \
|
||||||
|
newinitd "${FILESDIR}/clamav-milter.initd" clamav-milter
|
||||||
|
|
||||||
|
rm -rf "${ED}"/var/lib/clamav || die
|
||||||
|
|
||||||
|
if ! use libclamav-only ; then
|
||||||
|
if use systemd ; then
|
||||||
|
# The tmpfiles entry is behind USE=systemd because the
|
||||||
|
# upstream OpenRC service files should (and do) ensure that
|
||||||
|
# the directories they need exist and have the correct
|
||||||
|
# permissions without the help of opentmpfiles. There are
|
||||||
|
# years-old root exploits in opentmpfiles, the design is
|
||||||
|
# fundamentally flawed, and the maintainer is not up to
|
||||||
|
# the task of fixing it.
|
||||||
|
dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||||
|
systemd_newunit "${FILESDIR}/clamd_at.service-0.104.0" "clamd@.service"
|
||||||
|
systemd_dounit "${FILESDIR}/clamd.service"
|
||||||
|
systemd_newunit "${FILESDIR}/freshclamd.service-r1" \
|
||||||
|
"freshclamd.service"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use clamapp ; then
|
||||||
|
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||||
|
sed -e "s:^\(Example\):\# \1:" \
|
||||||
|
-e "s/^#\(PidFile .*\)/\1/" \
|
||||||
|
-e "s/^#\(LocalSocket .*\)/\1/" \
|
||||||
|
-e "s/^#\(User .*\)/\1/" \
|
||||||
|
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||||
|
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||||
|
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||||
|
"${ED}"/etc/clamav/clamd.conf.sample > \
|
||||||
|
"${ED}"/etc/clamav/clamd.conf || die
|
||||||
|
|
||||||
|
sed -e "s:^\(Example\):\# \1:" \
|
||||||
|
-e "s/^#\(PidFile .*\)/\1/" \
|
||||||
|
-e "s/^#\(DatabaseOwner .*\)/\1/" \
|
||||||
|
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||||
|
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamav/clamd.conf:" \
|
||||||
|
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||||
|
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||||
|
"${ED}"/etc/clamav/freshclam.conf.sample > \
|
||||||
|
"${ED}"/etc/clamav/freshclam.conf || die
|
||||||
|
|
||||||
|
if use milter ; then
|
||||||
|
# Note: only keep the "unix" ClamdSocket and MilterSocket!
|
||||||
|
sed -e "s:^\(Example\):\# \1:" \
|
||||||
|
-e "s/^#\(PidFile .*\)/\1/" \
|
||||||
|
-e "s/^#\(ClamdSocket unix:.*\)/\1/" \
|
||||||
|
-e "s/^#\(User .*\)/\1/" \
|
||||||
|
-e "s/^#\(MilterSocket unix:.*\)/\1/" \
|
||||||
|
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||||
|
"${ED}"/etc/clamav/clamav-milter.conf.sample > \
|
||||||
|
"${ED}"/etc/clamav/clamav-milter.conf || die
|
||||||
|
|
||||||
|
systemd_newunit "${FILESDIR}/clamav-milter.service-0.104.0" clamav-milter.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
local i
|
||||||
|
for i in clamd freshclam clamav-milter
|
||||||
|
do
|
||||||
|
if [[ -f "${ED}"/etc/"${i}".conf.sample ]] ; then
|
||||||
|
mv "${ED}"/etc/"${i}".conf{.sample,} || die
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# These both need to be writable by the clamav user.
|
||||||
|
# TODO: use syslog by default; that's what it's for.
|
||||||
|
diropts -o clamav -g clamav
|
||||||
|
keepdir /var/lib/clamav
|
||||||
|
keepdir /var/log/clamav
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
local HTML_DOCS=( docs/html/. )
|
||||||
|
einstalldocs
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Don't install man pages for utilities we didn't install
|
||||||
|
if use libclamav-only ; then
|
||||||
|
rm -r "${ED}"/usr/share/man || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if ! use libclamav-only ; then
|
||||||
|
if use systemd ; then
|
||||||
|
tmpfiles_process clamav.conf
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use milter ; then
|
||||||
|
elog "For simple instructions how to setup the clamav-milter read the"
|
||||||
|
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local databases=( "${EROOT}"/var/lib/clamav/main.c[lv]d )
|
||||||
|
if [[ ! -f "${databases}" ]] ; then
|
||||||
|
ewarn "You must run freshclam manually to populate the virus database"
|
||||||
|
ewarn "before starting clamav for the first time."
|
||||||
|
fi
|
||||||
|
|
||||||
|
ewarn "This version of ClamAV provides separate OpenRC services"
|
||||||
|
ewarn "for clamd, freshclam, clamav-milter, and clamonacc. The"
|
||||||
|
ewarn "clamd service now starts only the clamd daemon itself. You"
|
||||||
|
ewarn "should add freshclam (and perhaps clamav-milter) to any"
|
||||||
|
ewarn "runlevels that previously contained clamd."
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST xarchiver-0.5.4.17.tar.gz 1077111 BLAKE2B f68f22258dbfaeb37333fab3d2ea1b06e23e143f90df6cd94f7601961636d1e5a929e1353ac956ac9a7341813593fcfb35d5197666dbb0920ddf63e4365f34e1 SHA512 5b19fd0fb90f99aee0ac2576bc4efce9ef4eef9119fc118815f6d925e3877c0895475fbdf7363d8adfb6371fb7fd73299ea3a7cb3b6d9fff19c89d1d287d3a84
|
|
||||||
DIST xarchiver-0.5.4.18.tar.gz 1112838 BLAKE2B baeab65c9f81eecf070185fb3718b3e8a460e94393dfcdf38ad8bfb2a771c6f98a8638a28c43aa99d05a95772ca7e1546d9be1b602e22a715d5827350976f9d8 SHA512 a33236839d325a2d706fd0a9e2257ab5289895b030450b2060da856c047e5676ac5686312f8d00d3f38d329d0cf39fb22330a7c902b3ff5943856801435f6970
|
DIST xarchiver-0.5.4.18.tar.gz 1112838 BLAKE2B baeab65c9f81eecf070185fb3718b3e8a460e94393dfcdf38ad8bfb2a771c6f98a8638a28c43aa99d05a95772ca7e1546d9be1b602e22a715d5827350976f9d8 SHA512 a33236839d325a2d706fd0a9e2257ab5289895b030450b2060da856c047e5676ac5686312f8d00d3f38d329d0cf39fb22330a7c902b3ff5943856801435f6970
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="A GTK+ archive manager that can be used with Thunar"
|
|
||||||
HOMEPAGE="https://github.com/ib/xarchiver"
|
|
||||||
SRC_URI="https://github.com/ib/xarchiver/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
# older pigz versions have incompatible command-line processing
|
|
||||||
# https://bugs.gentoo.org/661464
|
|
||||||
RDEPEND=">=dev-libs/glib-2:=
|
|
||||||
x11-libs/gtk+:3=
|
|
||||||
!!<app-arch/pigz-2.4[symlink]"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
dev-util/intltool
|
|
||||||
sys-devel/gettext
|
|
||||||
virtual/pkgconfig
|
|
||||||
doc? (
|
|
||||||
app-text/docbook-xml-dtd
|
|
||||||
app-text/docbook-xsl-stylesheets
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
)"
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=(
|
|
||||||
$(use_enable doc)
|
|
||||||
)
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_icon_cache_update
|
|
||||||
|
|
||||||
elog "You need external programs for some formats, including:"
|
|
||||||
elog "7zip - app-arch/p7zip"
|
|
||||||
elog "arj - app-arch/arj"
|
|
||||||
elog "lha - app-arch/lha"
|
|
||||||
elog "lzop - app-arch/lzop"
|
|
||||||
elog "rar - app-arch/unrar app-arch/rar"
|
|
||||||
elog "zip - app-arch/unzip app-arch/zip"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_icon_cache_update
|
|
||||||
}
|
|
Binary file not shown.
@ -1,63 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic
|
|
||||||
|
|
||||||
DESCRIPTION="Burn CDs in disk-at-once mode -- with optional GUI frontend"
|
|
||||||
HOMEPAGE="http://cdrdao.sourceforge.net/"
|
|
||||||
if [[ ${PV/*_rc*} ]]
|
|
||||||
then
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
|
||||||
else
|
|
||||||
SRC_URI="http://www.poolshark.org/src/${P/_}.tar.bz2"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
|
|
||||||
IUSE="encode mad vorbis"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
app-cdr/cdrtools
|
|
||||||
encode? ( >=media-sound/lame-3.99 )
|
|
||||||
mad? (
|
|
||||||
media-libs/libmad
|
|
||||||
media-libs/libao
|
|
||||||
)
|
|
||||||
vorbis? (
|
|
||||||
media-libs/libvorbis
|
|
||||||
media-libs/libao
|
|
||||||
)"
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
virtual/pkgconfig"
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!app-cdr/cue2toc
|
|
||||||
!dev-util/pccts"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${P}-ax_pthread.patch"
|
|
||||||
"${FILESDIR}/${P}-wformat-security.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
S="${WORKDIR}/${P/_}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Fix building with latest libsigc++
|
|
||||||
append-cxxflags -std=c++11
|
|
||||||
find -name '*.h' -exec sed -i '/sigc++\/object.h/d' {} + || die
|
|
||||||
|
|
||||||
local myeconfargs=(
|
|
||||||
--without-gcdmaster
|
|
||||||
$(use_with vorbis ogg-support)
|
|
||||||
$(use_with mad mp3-support)
|
|
||||||
$(use_with encode lame)
|
|
||||||
)
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
@ -0,0 +1,17 @@
|
|||||||
|
--- a/cuegen.c
|
||||||
|
+++ b/cuegen.c
|
||||||
|
@@ -10,12 +10,14 @@
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
+#include <fcntl.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <linux/cdrom.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/file.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
+#include <sys/stat.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
@ -1,54 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A set of tools for DVD+RW/-RW drives"
|
|
||||||
HOMEPAGE="http://fy.chalmers.se/~appro/linux/DVD+RW/"
|
|
||||||
SRC_URI="http://fy.chalmers.se/~appro/linux/DVD+RW/tools/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="app-cdr/cdrtools"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
sys-devel/m4"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-7.0-sysmacros.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.0-wctomb-r1.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.0-glibc2.6.90.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.0-dvddl-r1.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.0-wexit.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.0-reload.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.1-noevent.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.1-lastshort.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.1-bluray_srm+pow.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.1-bluray_pow_freespace.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Linux compiler flags only include -O2 and are incremental.
|
|
||||||
sed -i '/FLAGS/s:-O2::' Makefile.m4 || die "failed to sed out FLAGS"
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake SHELL="${EPREFIX}"/bin/bash CC="$(tc-getCC)" CXX="$(tc-getCXX)"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake SHELL="${EPREFIX}"/bin/bash prefix="${ED}/usr" install
|
|
||||||
dodoc index.html
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
|
|
||||||
elog 'If you receive an error, "unable to anonymously mmap...'
|
|
||||||
elog 'Resource temporarily unavailable" when running growisofs,'
|
|
||||||
elog 'then you may need to run "ulimit -l unlimited".'
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=6
|
EAPI=8
|
||||||
|
|
||||||
inherit toolchain-funcs
|
inherit toolchain-funcs
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
--- a/configure.in
|
||||||
|
+++ b/configure.in
|
||||||
|
@@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-AC_INIT(configure.in)
|
||||||
|
+AC_INIT(configure.ac)
|
||||||
|
AC_CONFIG_HEADER(config.h)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
@@ -283,13 +283,6 @@
|
||||||
|
AC_SUBST(GETTEXT_PACKAGE)
|
||||||
|
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain])
|
||||||
|
|
||||||
|
-if test "A$enable_debug" = "A"; then
|
||||||
|
- enable_debug=no
|
||||||
|
- CFLAGS="-Wall"
|
||||||
|
-else
|
||||||
|
- CFLAGS="-Wall -g"
|
||||||
|
-fi
|
||||||
|
-
|
||||||
|
dnl Ecriture des fichiers
|
||||||
|
AC_OUTPUT([ m4/Makefile
|
||||||
|
Makefile
|
@ -1,33 +1,28 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=6
|
EAPI=8
|
||||||
|
|
||||||
DESCRIPTION="CD/DVD image converter using libmirage"
|
DESCRIPTION="CD/DVD image converter using libmirage"
|
||||||
HOMEPAGE="https://github.com/mgorny/mirage2iso/"
|
HOMEPAGE="https://github.com/mgorny/mirage2iso/"
|
||||||
SRC_URI="https://github.com/mgorny/${PN}/releases/download/v${PV}/${P}.tar.xz
|
SRC_URI="
|
||||||
|
https://github.com/mgorny/${PN}/releases/download/v${PV}/${P}.tar.xz
|
||||||
test? ( https://github.com/mgorny/${PN}/releases/download/v${PV}/${P}-tests.tar.xz )"
|
test? ( https://github.com/mgorny/${PN}/releases/download/v${PV}/${P}-tests.tar.xz )"
|
||||||
|
|
||||||
LICENSE="BSD"
|
LICENSE="BSD"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="amd64 x86"
|
KEYWORDS="amd64 x86"
|
||||||
IUSE="pinentry test"
|
IUSE="pinentry test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
COMMON_DEPEND=">=dev-libs/libmirage-2.0.0:0=
|
DEPEND="
|
||||||
|
>=dev-libs/libmirage-2.0.0:0=
|
||||||
dev-libs/glib:2=
|
dev-libs/glib:2=
|
||||||
pinentry? ( dev-libs/libassuan:0= )"
|
pinentry? ( dev-libs/libassuan:0= )"
|
||||||
DEPEND="${COMMON_DEPEND}
|
RDEPEND="${DEPEND}
|
||||||
app-arch/xz-utils
|
|
||||||
virtual/pkgconfig"
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
pinentry? ( app-crypt/pinentry )"
|
pinentry? ( app-crypt/pinentry )"
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
local myconf=(
|
econf $(use_with pinentry libassuan)
|
||||||
$(use_with pinentry libassuan)
|
|
||||||
)
|
|
||||||
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
}
|
@ -1,42 +0,0 @@
|
|||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Convert CD images from uif (MagicISO) to iso"
|
|
||||||
HOMEPAGE="http://aluigi.altervista.org/mytoolz.htm#uif2iso"
|
|
||||||
SRC_URI="mirror://gentoo/${P}.zip
|
|
||||||
test? ( https://yegortimoshenko.s3.amazonaws.com/${PN}-test.iso
|
|
||||||
https://yegortimoshenko.s3.amazonaws.com/${PN}-test.uif )"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="sys-libs/zlib"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
app-arch/unzip"
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake CC="$(tc-getCC)" -C src -f - <<-'EOF'
|
|
||||||
CPPFLAGS += -DMAGICISO_IS_SHIT
|
|
||||||
LDLIBS = -lz
|
|
||||||
uif2iso: $(patsubst %.c,%.o,$(wildcard *.c))
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
einfo "checking that uif -> iso matches the expected output"
|
|
||||||
src/${PN} "${DISTDIR}/${PN}-test.uif" "${T}/${PN}-test.iso" # always returns 1
|
|
||||||
diff "${DISTDIR}/${PN}-test.iso" "${T}/${PN}-test.iso" || die "unexpected iso"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin src/${PN}
|
|
||||||
dodoc ${PN}.txt README
|
|
||||||
}
|
|
@ -0,0 +1,45 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Convert CD images from uif (MagicISO) to iso"
|
||||||
|
HOMEPAGE="http://aluigi.altervista.org/mytoolz.htm#uif2iso"
|
||||||
|
SRC_URI="
|
||||||
|
mirror://gentoo/${P}.zip
|
||||||
|
test? (
|
||||||
|
https://yegortimoshenko.s3.amazonaws.com/${PN}-test.iso
|
||||||
|
https://yegortimoshenko.s3.amazonaws.com/${PN}-test.uif
|
||||||
|
)"
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/zlib"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="app-arch/unzip"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake CC="$(tc-getCC)" -C src -f - <<- 'EOF'
|
||||||
|
CPPFLAGS += -DMAGICISO_IS_SHIT
|
||||||
|
LDLIBS = -lz
|
||||||
|
uif2iso: $(patsubst %.c,%.o,$(wildcard *.c))
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
einfo "checking that uif -> iso matches the expected output"
|
||||||
|
src/uif2iso "${DISTDIR}"/uif2iso-test.uif "${T}"/uif2iso-test.iso # always returns 1
|
||||||
|
diff "${DISTDIR}"/uif2iso-test.iso "${T}"/uif2iso-test.iso || die "unexpected iso"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin src/uif2iso
|
||||||
|
dodoc uif2iso.txt README
|
||||||
|
}
|
@ -1,2 +1 @@
|
|||||||
DIST xcdroast-0.98alpha16.tar.gz 3563666 BLAKE2B 781f06e89265e9f30ea651d39219d7083a2cfc2833bc2ab0b57d9f67de77b2eb8aa6755148cd259e3c188a72f07026ecda91d0bbe09af4b55c696c75274739e0 SHA512 dec789955eb70a14f6bcb7c0895a6ca4b7c471cc5ee7ab12af1e671c8586c481c4a05e20eb42724d686d561a551809d9437dafadd3cd081079cefc28e0b94df7
|
|
||||||
DIST xcdroast-1.19.tar.gz 3448552 BLAKE2B 2e4e2b5119d5002870142d95345ddd33dad40c5a9d7517594da0dfd945bea012d5391b61fb6264d790aaaacf4de6b990fc77f4b40fab594ac1a5d2279dafa933 SHA512 79449353ba5a1be990366e85bd807e4ef35ec19f021986634ee9549608dca0e447b61dbbed0f30f588baac49fc6b93c055800bedb629ff77274d7da7c39d7881
|
DIST xcdroast-1.19.tar.gz 3448552 BLAKE2B 2e4e2b5119d5002870142d95345ddd33dad40c5a9d7517594da0dfd945bea012d5391b61fb6264d790aaaacf4de6b990fc77f4b40fab594ac1a5d2279dafa933 SHA512 79449353ba5a1be990366e85bd807e4ef35ec19f021986634ee9549608dca0e447b61dbbed0f30f588baac49fc6b93c055800bedb629ff77274d7da7c39d7881
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
diff -urNad xcdroast-0.98+0alpha16~/src/io.c xcdroast-0.98+0alpha16/src/io.c
|
|
||||||
--- xcdroast-0.98+0alpha16~/src/io.c 2008-08-21 15:11:40.000000000 +0200
|
|
||||||
+++ xcdroast-0.98+0alpha16/src/io.c 2009-12-29 22:54:08.571188849 +0100
|
|
||||||
@@ -10062,6 +10062,7 @@
|
|
||||||
|
|
||||||
gint check_version_cdda2wav(gchar *match, gchar *found) {
|
|
||||||
gchar line[MAXLINE];
|
|
||||||
+gchar vline[MAXLINE];
|
|
||||||
gchar ver[MAXLINE];
|
|
||||||
FILE *fpin;
|
|
||||||
gchar *p;
|
|
||||||
@@ -10076,32 +10077,38 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
strcpy(line,"");
|
|
||||||
+ strcpy(vline,"");
|
|
||||||
for (;;) {
|
|
||||||
if (fgets(line,MAXLINE,fpin) == NULL)
|
|
||||||
break;
|
|
||||||
dodebug(10,"got: %s",line);
|
|
||||||
+
|
|
||||||
+ /* only get first line */
|
|
||||||
+ if (strcmp(vline,"") == 0) {
|
|
||||||
+ strncpy(vline, line, MAXLINE);
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pclose(fpin) == -1) {
|
|
||||||
g_error("pclose error\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
- if (strcmp(line,"") == 0 || strstr(line,"sh:") != NULL) {
|
|
||||||
+ if (strcmp(vline,"") == 0 || strstr(vline,"sh:") != NULL) {
|
|
||||||
/* failed to open - permission denied */
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
- /* now line contains the version string of cdda2wav */
|
|
||||||
+ /* now vline contains the version string of cdda2wav */
|
|
||||||
/* try to extract the version number */
|
|
||||||
|
|
||||||
- p = strstr(line,"version");
|
|
||||||
+ p = strstr(vline,"version");
|
|
||||||
if (p != NULL) {
|
|
||||||
p = strtok(p+8, " _");
|
|
||||||
if (p != NULL) {
|
|
||||||
strcpy(ver,p);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
- p = strstr(line,"cdda2wav");
|
|
||||||
+ p = strstr(vline,"cdda2wav");
|
|
||||||
if (p != NULL) {
|
|
||||||
p = strtok(p+9, " ");
|
|
||||||
if (p != NULL) {
|
|
@ -1,11 +0,0 @@
|
|||||||
--- a/src/init.c 2016-07-08 12:00:17.705356781 +0200
|
|
||||||
+++ b/src/init.c 2016-07-08 12:02:35.914358133 +0200
|
|
||||||
@@ -790,7 +790,7 @@
|
|
||||||
debug = 0;
|
|
||||||
oldfontcode = 0;
|
|
||||||
*altdevscan = 1;
|
|
||||||
- no_versioncheck = 0;
|
|
||||||
+ no_versioncheck = 1;
|
|
||||||
support_ontheflyaudio = 0;
|
|
||||||
c_locale_is_utf8 = 0;
|
|
||||||
ignoreProDVD = 0;
|
|
@ -1,45 +0,0 @@
|
|||||||
--- a/src/io.c
|
|
||||||
+++ b/src/io.c
|
|
||||||
@@ -2665,6 +2665,8 @@
|
|
||||||
g_error("Unexpected output in cdda2wav toc-output\n");
|
|
||||||
}
|
|
||||||
trackinfo[tocnr]->track_nr = atoi(p1);
|
|
||||||
+ if (trackinfo[tocnr]->track_nr == 0)
|
|
||||||
+ cdinfo.nr_tracks++;
|
|
||||||
trackinfo[tocnr]->isosize = -1;
|
|
||||||
|
|
||||||
/* reststring into tmp2 - strip to remove leading spaces */
|
|
||||||
@@ -8401,6 +8403,9 @@
|
|
||||||
if (extract_quoted(tmp) != 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
+ if (matchnr == 0 && trackinfo[matchnr]->track_nr == 0)
|
|
||||||
+ matchnr++;
|
|
||||||
+
|
|
||||||
if (mode == 0) {
|
|
||||||
if (matchnr >= cdinfo.nr_tracks) {
|
|
||||||
g_warning("invalid track count from cddb-server\n");
|
|
||||||
@@ -8482,14 +8487,20 @@
|
|
||||||
|
|
||||||
/* build of command line */
|
|
||||||
if (mode == 0 || mode == 2) {
|
|
||||||
+ gint ntr = cdinfo.nr_tracks;
|
|
||||||
+
|
|
||||||
+ if (ntr > 0 && trackinfo[0]->track_nr == 0)
|
|
||||||
+ ntr--;
|
|
||||||
g_snprintf(tmp,MAXLINE,"cddb query %s %d ",
|
|
||||||
- cdinfo.cddb_discid, cdinfo.nr_tracks);
|
|
||||||
+ cdinfo.cddb_discid, ntr);
|
|
||||||
for (i = 0; i < cdinfo.nr_tracks; i++) {
|
|
||||||
+ if (trackinfo[i]->track_nr == 0)
|
|
||||||
+ continue;
|
|
||||||
g_snprintf(tmp2,MAXLINE,"%d ",
|
|
||||||
trackinfo[i]->start_sec + 150);
|
|
||||||
strcat(tmp,tmp2);
|
|
||||||
}
|
|
||||||
- g_snprintf(tmp2,MAXLINE,"%d",cdinfo.total_size / 75);
|
|
||||||
+ g_snprintf(tmp2,MAXLINE,"%d",(cdinfo.leadout + 150) / 75);
|
|
||||||
strcat(tmp,tmp2);
|
|
||||||
} else {
|
|
||||||
/* get data from toc file */
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
--- xcdroast-0.98alpha16/src/setup.c.orig 2008-08-21 12:07:18.000000000 +0400
|
|
||||||
+++ xcdroast-0.98alpha16/src/setup.c 2016-07-09 11:26:54.724084818 +0300
|
|
||||||
@@ -4468,7 +4468,7 @@
|
|
||||||
if (!textonly) {
|
|
||||||
show_dialog(ICO_ERROR,tmp, T_OK, NULL, NULL, 0);
|
|
||||||
} else {
|
|
||||||
- g_warning(tmp);
|
|
||||||
+ g_warning("%s",tmp);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
--- a/src/io.c.org 2009-02-24 09:38:27.000000000 +0100
|
|
||||||
+++ b/src/io.c 2009-02-24 09:45:18.000000000 +0100
|
|
||||||
@@ -1903,7 +1903,8 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
strcpy(str,"");
|
|
||||||
- fgets(str,MAXLINE,fpin);
|
|
||||||
+ if (fgets(str,MAXLINE,fpin) == NULL)
|
|
||||||
+ g_error("fgets error\n");
|
|
||||||
|
|
||||||
if (pclose(fpin) == -1) {
|
|
||||||
g_error("pclose error\n");
|
|
||||||
@@ -4720,7 +4721,7 @@
|
|
||||||
dolog(3, "Saving extended output to %s\n", fname);
|
|
||||||
|
|
||||||
/* write to file */
|
|
||||||
- fd = open(fname,O_WRONLY | O_CREAT);
|
|
||||||
+ fd = open(fname, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
|
|
||||||
if (fd < 0) {
|
|
||||||
g_warning("Can't open file %s for writing\n",fname);
|
|
||||||
return 1;
|
|
@ -1,39 +0,0 @@
|
|||||||
--- a/src/io.c.last So. Jan 24 19:18:45 2010
|
|
||||||
+++ b/src/io.c Fr. Jul 16 10:59:32 2010
|
|
||||||
@@ -3202,6 +3202,8 @@
|
|
||||||
close(fd2[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ g_setenv("LC_ALL", "C", TRUE);
|
|
||||||
+
|
|
||||||
/* startup child */
|
|
||||||
if (execl("/bin/sh", "sh", "-c", cmd ,(void *)NULL) < 0) {
|
|
||||||
g_error("execl error\n");
|
|
||||||
@@ -3402,6 +3404,8 @@
|
|
||||||
close(fd3[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ g_setenv("LC_ALL", "C", TRUE);
|
|
||||||
+
|
|
||||||
/* startup child */
|
|
||||||
if (execv(callpath,arglist) < 0) {
|
|
||||||
g_error("execv error\n");
|
|
||||||
@@ -3506,6 +3510,8 @@
|
|
||||||
close(pipefd[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ g_setenv("LC_ALL", "C", TRUE);
|
|
||||||
+
|
|
||||||
/* startup first child */
|
|
||||||
if (execv(callpath,arglist) < 0) {
|
|
||||||
g_error("execv error\n");
|
|
||||||
@@ -3568,6 +3574,8 @@
|
|
||||||
close(fd3[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ g_setenv("LC_ALL", "C", TRUE);
|
|
||||||
+
|
|
||||||
/* startup second child */
|
|
||||||
if (execv(callpath2,arglist2) < 0) {
|
|
||||||
g_error("execv error\n");
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
|||||||
diff -Naurd xcdroast-0.98alpha16.orig/doc/README.nonroot xcdroast-0.98alpha16/doc/README.nonroot
|
|
||||||
--- xcdroast-0.98alpha16.orig/doc/README.nonroot 2003-10-27 23:37:40.000000000 +0300
|
|
||||||
+++ xcdroast-0.98alpha16/doc/README.nonroot 2016-07-07 21:32:35.006587826 +0300
|
|
||||||
@@ -72,7 +72,7 @@
|
|
||||||
Please change now to the corresponding directory and enter:
|
|
||||||
|
|
||||||
chown root xcdrwrap
|
|
||||||
- chmod 4755 xcdrwrap
|
|
||||||
+ chmod 4711 xcdrwrap
|
|
||||||
|
|
||||||
|
|
||||||
Usage of the non-root-mode
|
|
||||||
diff -Naurd xcdroast-0.98alpha16.orig/src/init.c xcdroast-0.98alpha16/src/init.c
|
|
||||||
--- xcdroast-0.98alpha16.orig/src/init.c 2008-08-20 20:20:23.000000000 +0400
|
|
||||||
+++ xcdroast-0.98alpha16/src/init.c 2016-07-07 21:32:35.006587826 +0300
|
|
||||||
@@ -670,7 +670,7 @@
|
|
||||||
|
|
||||||
/* check file mode of wrapper */
|
|
||||||
if (stat(tmp,&buf) == 0) {
|
|
||||||
- if (buf.st_mode != 0104755) {
|
|
||||||
+ if (buf.st_mode != 0104711) {
|
|
||||||
dodebug(3,"Note: %s wrong modes set (0%o)\n", tmp, buf.st_mode);
|
|
||||||
nofail = 0;
|
|
||||||
}
|
|
||||||
diff -Naurd xcdroast-0.98alpha16.orig/src/io.c xcdroast-0.98alpha16/src/io.c
|
|
||||||
--- xcdroast-0.98alpha16.orig/src/io.c 2008-08-21 17:11:40.000000000 +0400
|
|
||||||
+++ xcdroast-0.98alpha16/src/io.c 2016-07-07 21:32:35.003587931 +0300
|
|
||||||
@@ -10380,7 +10380,7 @@
|
|
||||||
strcat(ret,tmp);
|
|
||||||
#endif
|
|
||||||
/* old nonroot mode - 2755 */
|
|
||||||
- g_snprintf(tmp,MAXLINE,"%s 4755 %s\n", cmd_chmod, bin);
|
|
||||||
+ g_snprintf(tmp,MAXLINE,"%s 4711 %s\n", cmd_chmod, bin);
|
|
||||||
strcat(ret,tmp);
|
|
||||||
|
|
||||||
|
|
@ -1,76 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit desktop gnome2-utils
|
|
||||||
|
|
||||||
DESCRIPTION="Lightweight cdrtools front-end for CD and DVD writing"
|
|
||||||
HOMEPAGE="http://www.xcdroast.org/"
|
|
||||||
SRC_URI="mirror://sourceforge/xcdroast/${P/_/}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ppc sparc x86"
|
|
||||||
IUSE="nls suid"
|
|
||||||
|
|
||||||
RDEPEND=">=x11-libs/gtk+-2:2
|
|
||||||
app-cdr/cdrtools"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
sys-devel/gettext
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${P/_/}
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/cdda2wav_version.patch
|
|
||||||
"${FILESDIR}"/fix_cddb_hidden_tracks.patch
|
|
||||||
"${FILESDIR}"/io_compile.patch
|
|
||||||
"${FILESDIR}"/io_progressbar_fix.patch
|
|
||||||
"${FILESDIR}"/suid-perms.patch
|
|
||||||
"${FILESDIR}"/disable_version_check.patch
|
|
||||||
"${FILESDIR}"/format-security.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# fix Norwegian locales
|
|
||||||
mv po/{no,nb}.po || die
|
|
||||||
mv po/{no,nb}.gmo || die
|
|
||||||
sed -i -e 's/no/nb/' po/LINGUAS || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable suid nonrootmode) \
|
|
||||||
--enable-gtk2 \
|
|
||||||
--mandir=/usr/share/man \
|
|
||||||
--sysconfdir=/etc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake PREFIX=/usr
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake PREFIX=/usr DESTDIR="${D}" install
|
|
||||||
dodoc -r AUTHORS ChangeLog README doc/*
|
|
||||||
|
|
||||||
insinto /usr/share/icons/hicolor/48x48/apps
|
|
||||||
newins xpms/xcdricon.xpm xcdroast.xpm
|
|
||||||
|
|
||||||
make_desktop_entry xcdroast "X-CD-Roast" xcdroast "AudioVideo;DiscBurning"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
Binary file not shown.
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
GIT_HASH=3a6088d03d7c053f9b3bd61ed07fba92133579cf
|
||||||
|
inherit go-module
|
||||||
|
|
||||||
|
DESCRIPTION="container signing utility"
|
||||||
|
HOMEPAGE="https://sigstore.dev"
|
||||||
|
SRC_URI="https://github.com/sigstore/cosign/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${P}-fix-makefile.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake \
|
||||||
|
GIT_HASH=${GIT_HASH} \
|
||||||
|
GIT_VERSION=v${PV} \
|
||||||
|
GIT_TREESTATE=clean
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin cosign
|
||||||
|
einstalldocs
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 3b6dcb5..8981549 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -20,8 +20,6 @@ else
|
||||||
|
GOBIN=$(shell go env GOBIN)
|
||||||
|
endif
|
||||||
|
|
||||||
|
-GOFILES ?= $(shell find . -type f -name '*.go' -not -path "./vendor/*")
|
||||||
|
-
|
||||||
|
# Set version variables for LDFLAGS
|
||||||
|
PROJECT_ID ?= projectsigstore
|
||||||
|
RUNTIME_IMAGE ?= gcr.io/distroless/static
|
||||||
|
@@ -72,18 +70,6 @@ log-%:
|
||||||
|
printf "\033[36m==> %s\033[0m\n", $$2 \
|
||||||
|
}'
|
||||||
|
|
||||||
|
-.PHONY: checkfmt
|
||||||
|
-checkfmt: SHELL := /usr/bin/env bash
|
||||||
|
-checkfmt: ## Check formatting of all go files
|
||||||
|
- @ $(MAKE) --no-print-directory log-$@
|
||||||
|
- $(shell test -z "$(shell gofmt -l $(GOFILES) | tee /dev/stderr)")
|
||||||
|
- $(shell test -z "$(shell goimports -l $(GOFILES) | tee /dev/stderr)")
|
||||||
|
-
|
||||||
|
-.PHONY: fmt
|
||||||
|
-fmt: ## Format all go files
|
||||||
|
- @ $(MAKE) --no-print-directory log-$@
|
||||||
|
- goimports -w $(GOFILES)
|
||||||
|
-
|
||||||
|
cosign: $(SRCS)
|
||||||
|
CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)" -o $@ ./cmd/cosign
|
||||||
|
|
||||||
|
@@ -121,7 +107,6 @@ clean:
|
||||||
|
rm -rf sget
|
||||||
|
rm -rf dist/
|
||||||
|
|
||||||
|
-
|
||||||
|
KOCACHE_PATH=/tmp/ko
|
||||||
|
ARTIFACT_HUB_LABELS=--image-label io.artifacthub.package.readme-url="https://raw.githubusercontent.com/sigstore/cosign/main/README.md" \
|
||||||
|
--image-label io.artifacthub.package.logo-url=https://raw.githubusercontent.com/sigstore/cosign/main/images/logo.svg \
|
@ -1,4 +1,2 @@
|
|||||||
DIST grype-0.42.0-deps.tar.xz 632719096 BLAKE2B 1da875fc55e907d905fd612a77cb103caea89fd32d6cceb2159d3b8615ec38ce1a7d5aba99b8a10481df788f5abc0e9f48d8464ac601b056531c97fc87721437 SHA512 9f07c42d41e2db1fab8942c2ace339a3b5a8a887ef656bc05c4ed6ea976a70ec5a496342c45d1c0b10e9883439f7348ec2d140d6d6b6c217badf9b1bb5b9d3c2
|
DIST grype-0.44.0-deps.tar.xz 641743984 BLAKE2B f30557d75628f84dff70ca4272555c7c3577bfe572c9ba16b0e78bc472732d5e82e734ed1ba4dfed59dbb86dc6a788d1379824e7b31bcdd148c5dff43f87e011 SHA512 de46c03f35f70353f0250b77364252316c48f70c1c4549f5d2a680062faee0305c7190906087e94d927333c4fae76de3c3b16046e3f3dc089013b66e132a2ff9
|
||||||
DIST grype-0.42.0.tar.gz 1072252 BLAKE2B 9bf52453ac54130ca36716b0b94d0a428ed637995f96b3e9019c922cf758d55c2d7fa876ffac1fff5b59a716c918d801a883fce868c5005c38fa9f0e924684d6 SHA512 6e9ff3c61dd60cf7ed502cd4c979b79d0dec732c7305c40b4194a9f27cbb1513a63aa214f560878cd65af5b3fd16b453df43735d68a8340ad4923c5436a140ce
|
DIST grype-0.44.0.tar.gz 1071804 BLAKE2B 2334ec9b9c04dfc03dbd280725a55bb6cdcd4569431eeb94abe799c75be08ff5164446cba7e97e3dc0ed8dcc10ba4bc8f70edecf9766cdc63e91b3dd420de391 SHA512 7573d03c2e0cbabb6ae3a91ebaa65848a7b43fc3624416f6c52a001acf6cfc839bce806e8e914c29bc2d0fc1aadd9b568ffc21d5a60bd9c05905e0185d7bdcd3
|
||||||
DIST grype-0.43.0-deps.tar.xz 632690832 BLAKE2B 88bd2f94ae2a1c3ed8736fbed0a6cdf3a8fa7f0164d683ad45a398442e5b582caa27ab70b41e21e1cfa42a9c257367dedc81584da2537d24007fbb59bba9114a SHA512 e4adbe781cb6727e1ba522ac616f17785fdf6b5a13d7a801d60b62426d23c7c2389edf54386f0d00b6931a92b369e3551cef07bbe2887bebbe71c632547b3b00
|
|
||||||
DIST grype-0.43.0.tar.gz 1074142 BLAKE2B 6f96ec212c6298d95dcb251d3b025b6ce513e4ba9643fb3c3c1435b598ec100e32631d7963a50d54b9e865769e34603a662afac53d2ecbf59fc7783952b69e80 SHA512 347fd42a64f76a1cb0bfb28ac47d21ee18dfec335858f63f78f63914298c3d8ff3949ff113b06c37127b689d7d7ae4bc1e946543499f7bd6137579a617a8843c
|
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
inherit go-module
|
|
||||||
|
|
||||||
DESCRIPTION="A vulnerability scanner for container images and filesystems"
|
|
||||||
HOMEPAGE="https://www.anchore.com"
|
|
||||||
SRC_URI="https://github.com/anchore/grype/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
ego build -o bin/grype
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin bin/grype
|
|
||||||
}
|
|
@ -0,0 +1,159 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit bash-completion-r1 linux-info meson optfeature systemd verify-sig
|
||||||
|
|
||||||
|
DESCRIPTION="A userspace interface for the Linux kernel containment features"
|
||||||
|
HOMEPAGE="https://linuxcontainers.org/ https://github.com/lxc/lxc"
|
||||||
|
SRC_URI="https://linuxcontainers.org/downloads/lxc/${P}.tar.gz
|
||||||
|
verify-sig? ( https://linuxcontainers.org/downloads/lxc/${P}.tar.gz.asc )"
|
||||||
|
|
||||||
|
LICENSE="GPL-2 LGPL-2.1 LGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||||
|
IUSE="apparmor +caps examples io-uring man pam seccomp selinux ssl systemd test +tools"
|
||||||
|
|
||||||
|
RDEPEND="acct-group/lxc
|
||||||
|
acct-user/lxc
|
||||||
|
apparmor? ( sys-libs/libapparmor )
|
||||||
|
caps? ( sys-libs/libcap[static-libs] )
|
||||||
|
io-uring? ( >=sys-libs/liburing-2:= )
|
||||||
|
pam? ( sys-libs/pam )
|
||||||
|
seccomp? ( sys-libs/libseccomp )
|
||||||
|
selinux? ( sys-libs/libselinux )
|
||||||
|
ssl? ( dev-libs/openssl:0= )
|
||||||
|
systemd? ( sys-apps/systemd:= )
|
||||||
|
tools? ( sys-libs/libcap[static-libs] )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-kernel/linux-headers"
|
||||||
|
BDEPEND="virtual/pkgconfig
|
||||||
|
man? ( app-text/docbook2X )
|
||||||
|
verify-sig? ( sec-keys/openpgp-keys-linuxcontainers )"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
CONFIG_CHECK="~!NETPRIO_CGROUP
|
||||||
|
~CGROUPS
|
||||||
|
~CGROUP_CPUACCT
|
||||||
|
~CGROUP_DEVICE
|
||||||
|
~CGROUP_FREEZER
|
||||||
|
|
||||||
|
~CGROUP_SCHED
|
||||||
|
~CPUSETS
|
||||||
|
~IPC_NS
|
||||||
|
~MACVLAN
|
||||||
|
|
||||||
|
~MEMCG
|
||||||
|
~NAMESPACES
|
||||||
|
~NET_NS
|
||||||
|
~PID_NS
|
||||||
|
|
||||||
|
~POSIX_MQUEUE
|
||||||
|
~USER_NS
|
||||||
|
~UTS_NS
|
||||||
|
~VETH"
|
||||||
|
|
||||||
|
ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
|
||||||
|
ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
|
||||||
|
ERROR_MEMCG="CONFIG_MEMCG: needed for memory resource control in containers"
|
||||||
|
ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
|
||||||
|
ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
|
||||||
|
ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
|
||||||
|
ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linuxcontainers.asc
|
||||||
|
|
||||||
|
DOCS=( AUTHORS CONTRIBUTING MAINTAINERS README.md doc/FAQ.txt )
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
linux-info_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local emesonargs=(
|
||||||
|
-Dcoverity-build=false
|
||||||
|
-Doss-fuzz=false
|
||||||
|
|
||||||
|
-Dcommands=true
|
||||||
|
-Dmemfd-rexec=true
|
||||||
|
-Dthread-safety=true
|
||||||
|
|
||||||
|
$(meson_use apparmor)
|
||||||
|
$(meson_use caps capabilities)
|
||||||
|
$(meson_use examples)
|
||||||
|
$(meson_use io-uring io-uring-event-loop)
|
||||||
|
$(meson_use man)
|
||||||
|
$(meson_use pam pam-cgroup)
|
||||||
|
$(meson_use seccomp)
|
||||||
|
$(meson_use selinux)
|
||||||
|
$(meson_use ssl openssl)
|
||||||
|
$(meson_use test tests)
|
||||||
|
$(meson_use tools)
|
||||||
|
|
||||||
|
-Ddata-path=/var/lib/lxc
|
||||||
|
-Ddoc-path=/usr/share/doc/${PF}
|
||||||
|
-Dlog-path=/var/log/lxc
|
||||||
|
-Drootfs-mount-path=/var/lib/lxc/rootfs
|
||||||
|
-Druntime-path=/run
|
||||||
|
)
|
||||||
|
|
||||||
|
if use systemd; then
|
||||||
|
local emesonargs+=( -Dinit-script="systemd" )
|
||||||
|
local emesonargs+=( -Dsd-bus=enabled )
|
||||||
|
else
|
||||||
|
local emesonargs+=( -Dinit-script="sysvinit" )
|
||||||
|
local emesonargs+=( -Dsd-bus=disabled )
|
||||||
|
fi
|
||||||
|
|
||||||
|
use tools && local emesonargs+=( -Dcapabilities=true )
|
||||||
|
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
meson_src_install
|
||||||
|
|
||||||
|
# The main bash-completion file will collide with lxd, need to relocate and update symlinks.
|
||||||
|
mkdir -p "${ED}"/$(get_bashcompdir) || die "Failed to create bashcompdir."
|
||||||
|
|
||||||
|
if use tools; then
|
||||||
|
bashcomp_alias lxc-start lxc-{attach,autostart,cgroup,checkpoint,config,console,copy,create,destroy,device,execute,freeze,info,ls,monitor,snapshot,stop,top,unfreeze,unshare,usernsexec,wait}
|
||||||
|
else
|
||||||
|
bashcomp_alias lxc-start lxc-usernsexec
|
||||||
|
fi
|
||||||
|
|
||||||
|
keepdir /var/lib/cache/lxc /var/lib/lib/lxc
|
||||||
|
|
||||||
|
find "${ED}" -name '*.la' -delete -o -name '*.a' -delete || die
|
||||||
|
|
||||||
|
# Replace upstream sysvinit/systemd files.
|
||||||
|
if use systemd; then
|
||||||
|
rm -r "${D}$(systemd_get_systemunitdir)" || die "Failed to remove systemd lib dir"
|
||||||
|
else
|
||||||
|
rm "${ED}"/etc/init.d/lxc-{containers,net} || die "Failed to remove sysvinit scripts"
|
||||||
|
fi
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/${PN}.initd.8" ${PN}
|
||||||
|
systemd_newunit "${FILESDIR}"/lxc-monitord.service.5.0.0 lxc-monitord.service
|
||||||
|
systemd_newunit "${FILESDIR}"/lxc-net.service.5.0.0 lxc-net.service
|
||||||
|
systemd_newunit "${FILESDIR}"/lxc.service-5.0.0 lxc.service
|
||||||
|
systemd_newunit "${FILESDIR}"/lxc_at.service.5.0.0 "lxc@.service"
|
||||||
|
|
||||||
|
if ! use apparmor; then
|
||||||
|
sed -i '/lxc-apparmor-load/d' "${D}$(systemd_get_systemunitdir)/lxc.service" || die "Failed to remove apparmor references from lxc.service systemd unit."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "Please refer to "
|
||||||
|
elog "https://wiki.gentoo.org/wiki/LXC for introduction and usage guide."
|
||||||
|
elog
|
||||||
|
elog "Run 'lxc-checkconfig' to see optional kernel features."
|
||||||
|
elog
|
||||||
|
|
||||||
|
optfeature "automatic template scripts" app-containers/lxc-templates
|
||||||
|
optfeature "Debian-based distribution container image support" dev-util/debootstrap
|
||||||
|
optfeature "snapshot & restore functionality" sys-process/criu
|
||||||
|
}
|
@ -1,4 +1,2 @@
|
|||||||
DIST syft-0.47.0-deps.tar.xz 631564724 BLAKE2B 4eb6dedb2173d5dda214b4bb450fa6e85c1946ee8388064d8a7beb3f9fd4589ede95069b1ade378e04320326f012af155375b67c9502026454d4b97cb5183be6 SHA512 e2d0ff159be544a525a9628ad698499735073323e6b91531c636bc6ca15acfd3ee0625b87abc76dd74eaceffd912f98845c0f4126a364672414fac29cd7b3af7
|
DIST syft-0.52.0-deps.tar.xz 962322444 BLAKE2B 696dd14adf54c8ab51cc91d22028ce0ace3b6a5835fb8c3ce6d26080f0ce75d2a9ca332f2275a71706a2152519b01a71577827ac63c12ffb87ad1605ffd18b28 SHA512 b6897a12b8a15c8c2b4672e93ca03fe26a182ee87e48ac4bdd26057f544a6a45aa5ce6317a38e157b99a70830d4a0241f8b4cb15f8fffccaf195ac4c4ff64cd8
|
||||||
DIST syft-0.47.0.tar.gz 3846983 BLAKE2B 2833b360de24fc8c5ca2073bc776e2d33f8c78d7d25f8a622e8420b528e4c517c1298c1479d916a2a90b97cb44f1b5e407a9dc2a09016e7ccf6238d0050eb696 SHA512 997d6e7139be8c686ee38df9fe42fa50dac17e522c51db005628cf3fd6a97ef9f9758e86fe6c6e58a199d852bc4eeac88b3932c5f3847547382987cd02260551
|
DIST syft-0.52.0.tar.gz 3726656 BLAKE2B de8492adde3bef944a9b853990ba5909aa14ccc223f42833fa2a49d1bd5772455bd3ab9ac3a8886b353dc79c6e93338e43e9c448623bd31c422155e0adb1f276 SHA512 2ffaaa154546061d1d61bf8f0b3d5cf10282dbbb08876cc9e87777a23efdba1fd462c395ee4cf14d334f49ae4575e2db5fe8b5fbe7439dd24ff22ec8efeb6501
|
||||||
DIST syft-0.51.0-deps.tar.xz 632084588 BLAKE2B f9b3e4e41521c25b6e338f2b8f3bba0be08e7608d95de7dba6f5f104e22b8de8a4b419e574e19634099a3bbc55556f83949c68abd5ae52d14b5e97cb9306bf22 SHA512 819236c275762cc42c60339ee2d6886f0998f34609ab0bbef3150b23fbcf3cecaea63d92f6e2e161bf3ec30edae00ef467755900fd1c98389db2f9cd8113fbf4
|
|
||||||
DIST syft-0.51.0.tar.gz 3727474 BLAKE2B ae9f54f421faa530aabbbadd985071f603ccaa32c6cd5f0dd400ea9163a218e8ddd5e7035042a7eda6cd06910ce96ae0f42b7422c932992fad812431a42ac059 SHA512 fb844a76d3f3f303e781cea40ac6fb573927f6465a39da10fe9cffeb08ce7b1e8b8ed4acb219206e53159f802eaa12dce73ce5bc3b868f6f4270a30498b6b767
|
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
inherit go-module
|
|
||||||
|
|
||||||
DESCRIPTION="Generate a Software Bill of Materials from container images and filesystems"
|
|
||||||
HOMEPAGE="https://www.anchore.com"
|
|
||||||
SRC_URI="https://github.com/anchore/syft/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
ego build -o bin/syft ./cmd/syft
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin bin/*
|
|
||||||
}
|
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST gcr-3.41.0.tar.xz 1039744 BLAKE2B c646a04168310051d5b582a9d2f7ab9da89eef095e856e56b8d730600debead051ad8bb40eddb7457b1be2be3e092227dd886f647258a9c6a81d4bab728245f7 SHA512 455acc40ed77feeb35f9845b00229f468b322b7eda0b1b5abb0153f0a6ba29f3d0364df22225143f4caf130254a1258b3c7f934370e5142f2f64e1c3084b6f6e
|
DIST gcr-3.41.0.tar.xz 1039744 BLAKE2B c646a04168310051d5b582a9d2f7ab9da89eef095e856e56b8d730600debead051ad8bb40eddb7457b1be2be3e092227dd886f647258a9c6a81d4bab728245f7 SHA512 455acc40ed77feeb35f9845b00229f468b322b7eda0b1b5abb0153f0a6ba29f3d0364df22225143f4caf130254a1258b3c7f934370e5142f2f64e1c3084b6f6e
|
||||||
|
DIST gcr-3.41.1.tar.xz 1030368 BLAKE2B 9d254b7f2ad864c45200e58b685db97c1ffbc83d29ba8cbda94d30ec565aa3dc5a2535305dc63b3264131b68ec9e48f37ac30d5ba08d0ce156f3b6091cd62dc1 SHA512 dd70d41636ede863d05824b26823a8f572902f7a9b6f09b0c70586ef0d4c046864e6956130b9231850a515a9fbfcd56faf20354c1cf8f697f005827c048a2325
|
||||||
|
@ -0,0 +1,93 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
|
||||||
|
inherit gnome.org gnome2-utils meson python-any-r1 vala xdg
|
||||||
|
|
||||||
|
DESCRIPTION="Libraries for cryptographic UIs and accessing PKCS#11 modules"
|
||||||
|
HOMEPAGE="https://gitlab.gnome.org/GNOME/gcr"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+ LGPL-2+"
|
||||||
|
SLOT="0/1" # subslot = suffix of libgcr-base-3 and co
|
||||||
|
|
||||||
|
IUSE="gtk gtk-doc +introspection systemd test +vala"
|
||||||
|
REQUIRED_USE="vala? ( introspection )"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-libs/glib-2.44.0:2
|
||||||
|
>=dev-libs/libgcrypt-1.2.2:0=
|
||||||
|
>=app-crypt/p11-kit-0.19.0
|
||||||
|
>=app-crypt/libsecret-0.20
|
||||||
|
systemd? ( sys-apps/systemd:= )
|
||||||
|
gtk? ( >=x11-libs/gtk+-3.22:3[introspection?] )
|
||||||
|
>=sys-apps/dbus-1
|
||||||
|
introspection? ( >=dev-libs/gobject-introspection-1.58:= )
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
PDEPEND="app-crypt/gnupg"
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
gtk? ( dev-libs/libxml2:2 )
|
||||||
|
dev-util/gdbus-codegen
|
||||||
|
dev-util/glib-utils
|
||||||
|
gtk-doc? ( dev-util/gi-docgen )
|
||||||
|
>=sys-devel/gettext-0.19.8
|
||||||
|
test? ( app-crypt/gnupg )
|
||||||
|
virtual/pkgconfig
|
||||||
|
vala? ( $(vala_depend) )
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/3.38.0-optional-vapi.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
python-any-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
use vala && vala_setup
|
||||||
|
xdg_environment_reset
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local emesonargs=(
|
||||||
|
$(meson_use introspection)
|
||||||
|
$(meson_use gtk)
|
||||||
|
$(meson_use gtk-doc gtk_doc)
|
||||||
|
-Dgpg_path="${EPREFIX}"/usr/bin/gpg
|
||||||
|
-Dssh_agent=true
|
||||||
|
$(meson_feature systemd)
|
||||||
|
$(meson_use vala vapi)
|
||||||
|
)
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
dbus-run-session meson test -C "${BUILD_DIR}" || die 'tests failed'
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
meson_src_install
|
||||||
|
|
||||||
|
if use gtk-doc; then
|
||||||
|
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
||||||
|
mv "${ED}"/usr/share/doc/{gck-1,gcr-3,gcr-ui-3} "${ED}"/usr/share/gtk-doc/html/ || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_pkg_postinst
|
||||||
|
gnome2_schemas_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_pkg_postrm
|
||||||
|
gnome2_schemas_update
|
||||||
|
}
|
@ -1,51 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit golang-build systemd
|
|
||||||
|
|
||||||
DESCRIPTION="Keybase Filesystem (KBFS)"
|
|
||||||
HOMEPAGE="https://keybase.io/docs/kbfs"
|
|
||||||
SRC_URI="https://github.com/keybase/kbfs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
app-crypt/gnupg
|
|
||||||
sys-fs/fuse
|
|
||||||
"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack "${P}.tar.gz"
|
|
||||||
mkdir -vp "${S}/src/github.com/keybase" || die
|
|
||||||
ln -vs "${S}" "${S}/src/github.com/keybase/kbfs" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
|
||||||
EGO_BUILD_FLAGS="-tags production -o ${T}/kbfsfuse" \
|
|
||||||
golang-build_src_compile
|
|
||||||
EGO_PN="github.com/keybase/kbfs/kbfsgit/git-remote-keybase" \
|
|
||||||
EGO_BUILD_FLAGS="-tags production -o ${T}/git-remote-keybase" \
|
|
||||||
golang-build_src_compile
|
|
||||||
EGO_PN="github.com/keybase/kbfs/redirector" \
|
|
||||||
EGO_BUILD_FLAGS="-tags production -o ${T}/keybase-redirector" \
|
|
||||||
golang-build_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
|
||||||
golang-build_src_test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin "${T}/kbfsfuse"
|
|
||||||
dobin "${T}/git-remote-keybase"
|
|
||||||
dobin "${T}/keybase-redirector"
|
|
||||||
systemd_douserunit "${S}/packaging/linux/systemd/kbfs.service"
|
|
||||||
}
|
|
@ -1,51 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit golang-build systemd
|
|
||||||
|
|
||||||
DESCRIPTION="Keybase Filesystem (KBFS)"
|
|
||||||
HOMEPAGE="https://keybase.io/docs/kbfs"
|
|
||||||
SRC_URI="https://github.com/keybase/kbfs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
app-crypt/gnupg
|
|
||||||
sys-fs/fuse
|
|
||||||
"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack "${P}.tar.gz"
|
|
||||||
mkdir -vp "${S}/src/github.com/keybase" || die
|
|
||||||
ln -vs "${S}" "${S}/src/github.com/keybase/kbfs" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
|
||||||
EGO_BUILD_FLAGS="-tags production -o ${T}/kbfsfuse" \
|
|
||||||
golang-build_src_compile
|
|
||||||
EGO_PN="github.com/keybase/kbfs/kbfsgit/git-remote-keybase" \
|
|
||||||
EGO_BUILD_FLAGS="-tags production -o ${T}/git-remote-keybase" \
|
|
||||||
golang-build_src_compile
|
|
||||||
EGO_PN="github.com/keybase/kbfs/redirector" \
|
|
||||||
EGO_BUILD_FLAGS="-tags production -o ${T}/keybase-redirector" \
|
|
||||||
golang-build_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
|
||||||
golang-build_src_test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin "${T}/kbfsfuse"
|
|
||||||
dobin "${T}/git-remote-keybase"
|
|
||||||
dobin "${T}/keybase-redirector"
|
|
||||||
systemd_douserunit "${S}/packaging/linux/systemd/kbfs.service"
|
|
||||||
}
|
|
@ -1,51 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit golang-build systemd
|
|
||||||
|
|
||||||
DESCRIPTION="Keybase Filesystem (KBFS)"
|
|
||||||
HOMEPAGE="https://keybase.io/docs/kbfs"
|
|
||||||
SRC_URI="https://github.com/keybase/kbfs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="
|
|
||||||
app-crypt/gnupg
|
|
||||||
sys-fs/fuse
|
|
||||||
"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack "${P}.tar.gz"
|
|
||||||
mkdir -vp "${S}/src/github.com/keybase" || die
|
|
||||||
ln -vs "${S}" "${S}/src/github.com/keybase/kbfs" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
|
||||||
EGO_BUILD_FLAGS="-tags production -o ${T}/kbfsfuse" \
|
|
||||||
golang-build_src_compile
|
|
||||||
EGO_PN="github.com/keybase/kbfs/kbfsgit/git-remote-keybase" \
|
|
||||||
EGO_BUILD_FLAGS="-tags production -o ${T}/git-remote-keybase" \
|
|
||||||
golang-build_src_compile
|
|
||||||
EGO_PN="github.com/keybase/kbfs/redirector" \
|
|
||||||
EGO_BUILD_FLAGS="-tags production -o ${T}/keybase-redirector" \
|
|
||||||
golang-build_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
|
||||||
golang-build_src_test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin "${T}/kbfsfuse"
|
|
||||||
dobin "${T}/git-remote-keybase"
|
|
||||||
dobin "${T}/keybase-redirector"
|
|
||||||
systemd_douserunit "${S}/packaging/linux/systemd/kbfs.service"
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST VBoxGuestAdditions_6.1.32.iso 62388224 BLAKE2B e8e4addf5d3a61ff193fcccf185353aa4325ed3747f1bc9afb376276cd38857cc2a087e8c6872cef083ea4eeda20a0c29bac62263c378b6c608e5fb6424623a0 SHA512 268526eec6d07e69e3ab583a11211331c103db87162be045e0068ebd6beeda491e215ea6de6ca2aed10e4312dd9b2904ab315f05bad7041ba6787bfa61aeb6e9
|
DIST VBoxGuestAdditions_6.1.32.iso 62388224 BLAKE2B e8e4addf5d3a61ff193fcccf185353aa4325ed3747f1bc9afb376276cd38857cc2a087e8c6872cef083ea4eeda20a0c29bac62263c378b6c608e5fb6424623a0 SHA512 268526eec6d07e69e3ab583a11211331c103db87162be045e0068ebd6beeda491e215ea6de6ca2aed10e4312dd9b2904ab315f05bad7041ba6787bfa61aeb6e9
|
||||||
DIST VBoxGuestAdditions_6.1.34.iso 61538304 BLAKE2B 7709ef735fafc7dcb78dba8ce77a5afbffbe23e9b83c46cd930519150a60eea7c9399075fde58c6f7be07adb82752352f5db7d9f59b3eb5fccc6c55cbdba36ee SHA512 a3b5977fe773bdc5d67bf9fbb529fb8f77e01a95af51a6681a1716ec300eb574e669bf9d57d0d1663c33440cce92b499efffbf5e468830d82e0c072ddc2d9d31
|
DIST VBoxGuestAdditions_6.1.34.iso 61538304 BLAKE2B 7709ef735fafc7dcb78dba8ce77a5afbffbe23e9b83c46cd930519150a60eea7c9399075fde58c6f7be07adb82752352f5db7d9f59b3eb5fccc6c55cbdba36ee SHA512 a3b5977fe773bdc5d67bf9fbb529fb8f77e01a95af51a6681a1716ec300eb574e669bf9d57d0d1663c33440cce92b499efffbf5e468830d82e0c072ddc2d9d31
|
||||||
|
DIST VBoxGuestAdditions_6.1.36.iso 63803392 BLAKE2B bcd795e4f4ed5b25542011370b0d0ede0a163c89df597d085d731627bf041a5bc8eb8d60c2041bfe1654986751e16bb382680ad487d90def2e8a7d9fab21dd24 SHA512 cf07e77ac882eb9cd6da39c6491f2536ac8c1e4bddb27e50bb6d1016ab7a291746cd59c6966c54ba007bb4cb79b82ebcfacec5984a6e7453f60ad167014542aa
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MY_PN=VBoxGuestAdditions
|
||||||
|
MY_PV="${PV/beta/BETA}"
|
||||||
|
MY_PV="${MY_PV/rc/RC}"
|
||||||
|
MY_P=${MY_PN}_${MY_PV}
|
||||||
|
|
||||||
|
DESCRIPTION="CD image containing guest additions for VirtualBox"
|
||||||
|
HOMEPAGE="https://www.virtualbox.org/"
|
||||||
|
SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
|
||||||
|
SLOT="0/$(ver_cut 1-2)"
|
||||||
|
[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
RESTRICT="mirror"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/share/${PN/-additions}
|
||||||
|
newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.1.32.tar.gz 11137804 BLAKE2B 376274d56ce61a9da785be0a3de63566bc39e9c7a2915a33ff7792173f7625c21d345da757e9963d9b1833124c3430523bc89ba0a0ed27b66a6d87a07d6d6602 SHA512 e7297a9fccd6c74a7986496da71bd6a0970bc53c49845b9bc44714ab04e90e9a4c427f1491f6ec287cdba87a93733de7849f5e78ab7f3ee1a127e8ac4ea20861
|
DIST Oracle_VM_VirtualBox_Extension_Pack-6.1.32.tar.gz 11137804 BLAKE2B 376274d56ce61a9da785be0a3de63566bc39e9c7a2915a33ff7792173f7625c21d345da757e9963d9b1833124c3430523bc89ba0a0ed27b66a6d87a07d6d6602 SHA512 e7297a9fccd6c74a7986496da71bd6a0970bc53c49845b9bc44714ab04e90e9a4c427f1491f6ec287cdba87a93733de7849f5e78ab7f3ee1a127e8ac4ea20861
|
||||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.1.34.tar.gz 11137259 BLAKE2B 81709b2f3e67cafd9cffd80de2d07cfa5a64054b590455f7393ab701984b469b2677ecae8ba82aa812c17688a9212ef2ee97be6584bdefb1eb1a53643ba92d17 SHA512 ec41e31bff4bcb79d46957c8ee41e561c9e3a8932152633a16953add38f142e8ac4029bbbd67d72bdb64784819db2f52c4d66a9a7e8009435231c98d88676cc4
|
DIST Oracle_VM_VirtualBox_Extension_Pack-6.1.34.tar.gz 11137259 BLAKE2B 81709b2f3e67cafd9cffd80de2d07cfa5a64054b590455f7393ab701984b469b2677ecae8ba82aa812c17688a9212ef2ee97be6584bdefb1eb1a53643ba92d17 SHA512 ec41e31bff4bcb79d46957c8ee41e561c9e3a8932152633a16953add38f142e8ac4029bbbd67d72bdb64784819db2f52c4d66a9a7e8009435231c98d88676cc4
|
||||||
|
DIST Oracle_VM_VirtualBox_Extension_Pack-6.1.36.tar.gz 11231896 BLAKE2B 08872189b8be959e13f07b69635b08d41661841cc30bdea1bec73c8fc87f1e374e53658e160cd290b919465bad62ef633cdc79e11d477a6bf0b9a67ae8131f73 SHA512 98ba542fbe60848877c25cf8e8f252081e231687d8b4cc4324283e6e787c00cb83c0570379a50364ee239a10195b25740f9c2e0e559cec28b75f56717623df16
|
||||||
|
@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MAIN_PV="$(ver_cut 1-3)"
|
||||||
|
if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
|
||||||
|
MY_PV="${MAIN_PV}_$(ver_cut 5-6)"
|
||||||
|
DEP_PV="${MY_PV}"
|
||||||
|
MY_PV="${MY_PV/beta/BETA}"
|
||||||
|
MY_PV="${MY_PV/rc/RC}"
|
||||||
|
else
|
||||||
|
MY_PV="${MAIN_PV}"
|
||||||
|
DEP_PV="${MAIN_PV}"
|
||||||
|
fi
|
||||||
|
#VBOX_BUILD_ID="$(ver_cut 4)"
|
||||||
|
MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
|
||||||
|
MY_P="${MY_PN}-${MY_PV}" #-${VBOX_BUILD_ID}"
|
||||||
|
|
||||||
|
DESCRIPTION="PUEL extensions for VirtualBox"
|
||||||
|
HOMEPAGE="https://www.virtualbox.org/"
|
||||||
|
SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="PUEL"
|
||||||
|
SLOT="0/$(ver_cut 1-2)"
|
||||||
|
[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
RESTRICT="bindist mirror strip"
|
||||||
|
|
||||||
|
RDEPEND="=app-emulation/virtualbox-${DEP_PV}*"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
|
||||||
|
doins -r linux.${ARCH}
|
||||||
|
doins ExtPack* PXE-Intel.rom
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue