parent
3d7901c17e
commit
3c5e0bc052
Binary file not shown.
Binary file not shown.
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/aws-cli-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# botocore is x.(y+1).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(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.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests --install nose
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/awscli-1.19.47-py39.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
# integration tests require AWS credentials and Internet access
|
||||
nosetests -v tests/{functional,unit} ||
|
||||
die "Tests failed for ${EPYTHON}"
|
||||
}
|
||||
|
||||
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,6 +1,8 @@
|
||||
DIST rsyslog-8.2102.0.tar.gz 3123684 BLAKE2B f5c4e00d68ec82ed3f7b89dd5e888bebda9c4eb38185dfd8ecd96c1bf77380385aaddac73ab1de8364e1239a3de746f160c18b0f135d006f473f9e40be2c18a1 SHA512 281b0e5d5cb548c39a6e514e5fd5b1bdbe8ca0bdd9234f4fea581ed7679f76d2d75b65d14c3c5e799f86f91600074ff75b467aa1ff27cdbec0f4197261c5aec0
|
||||
DIST rsyslog-8.2104.0.tar.gz 3175254 BLAKE2B ed772d4e460105b8406305574fdbe4aeca7ba57ba975b78f91d279460fee0faa767fcda3d2d8a4ba6d543bf9e920f9b7cf5ddf9e4d3ccfc9ae3b08c318a6c5b0 SHA512 15ded57f32259bb12b3378d10bc2d4d6eff39623f1195357dafa58e5c1154aedc0d60ff0746599707f380cf3bfc5ca955f15f1213572fa447cc333d479e0eefc
|
||||
DIST rsyslog-8.2106.0.tar.gz 3180745 BLAKE2B a949c36e0c5251fa3cd7748387990b667564561a5fcf0250bb19ebf62bf88f367814f86d743c64e0b5e5a184e2160ec0c2cd2600ac0ffc655e41d651495e9311 SHA512 309bba7e53f0dc6462f8cac781f567ce879f31bc020b233e80aa4461cc4c6e9279ca1c65c910ce3015fcab9ed663020db84ff4073c03a436b5be66e57a99164f
|
||||
DIST rsyslog-8.2108.0.tar.gz 3204178 BLAKE2B d120f2b20521a40fbe985a4ba751edd51ed5917fcd0db5d7abb35ecada3ada31f99d34f74cd3278736356e8f09f13b79ca2166e4732676a97655c189d257e3fa SHA512 95096660bc93f7808d22c39549d7429deb340ef8d706f08dc8be35f48d1c7e3d389907fdf18ba04dd54fb59c9780fdb267eef7985184f0e5932bf11f46c5423b
|
||||
DIST rsyslog-doc-8.2102.0.tar.gz 6419104 BLAKE2B 134c7ccde6f7435b35840fa37f5774223ac1ebd7dc10db961900a7b1600483156518433c7f70d0981e96ea750e1916ab53e346abacf58066bf141e85c719ae00 SHA512 a5dc4fb9bd8892fac693c5692b926c8d7d9fa36667d6b4c6eccba750713af88d4317f6232efc2a16de38c2e58c4a8bc4d04c9ebb2e7ebc3b0878d53eef20dd2e
|
||||
DIST rsyslog-doc-8.2104.0.tar.gz 6451275 BLAKE2B cb8a38b28caec17babd190e463070b862071a75c4c63a7208e56f039f84ae7a5c6045112697c61635d328e56d9427f692e67a9d6fefc94b59ad28481210f1481 SHA512 6c898fa606190c5cf214822503f060b1692cd907731858736a395511b66d7b0d1cf6dfcc90c4cecbe21b099197ae2187db53d719f44f85f26a1bd34971539d36
|
||||
DIST rsyslog-doc-8.2106.0.tar.gz 6500747 BLAKE2B d004af40dfc82577fe262993b10497cbf50142295ccfc046126e0d8cc85dd964cca7798732d2f41ef9d776096b3ec99a8c835bb037a78c9030ea6cd596d1e057 SHA512 04c205ea463f7487baedf60d0469f3752edfb60a0833954a3f208d52ed6495152c785a4a8ea47396ac85b581ced0657f7b51d313c2d4295e26d547b996ff4ca3
|
||||
DIST rsyslog-doc-8.2108.0.tar.gz 6527584 BLAKE2B b7974d2f723603017f1c725f820e03f355af1805d77143e6ff9eeb02e54a991ba4c143fc45b48b3e1625328e68113df36d71abd0763983a8db655081c5d81abc SHA512 d4ca8c91cbdd7be458083ffec9d933e5d1e175dff93fdf9274f5ca444c9cfe8710349c16de6edfd3e12cf97fc889a9e71059ef1d0b85fda4ed335fb107b98a9f
|
||||
|
@ -0,0 +1,483 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
|
||||
inherit autotools linux-info python-any-r1 systemd
|
||||
|
||||
DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
|
||||
HOMEPAGE="https://www.rsyslog.com/"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"
|
||||
|
||||
DOC_REPO_URI="https://github.com/rsyslog/${PN}-doc.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86"
|
||||
|
||||
SRC_URI="
|
||||
https://www.rsyslog.com/files/download/${PN}/${P}.tar.gz
|
||||
doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
|
||||
"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3 LGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="clickhouse curl dbi debug doc elasticsearch +gcrypt gnutls imhttp"
|
||||
IUSE+=" impcap jemalloc kafka kerberos kubernetes mdblookup"
|
||||
IUSE+=" mongodb mysql normalize omhttp omhttpfs omudpspoof +openssl"
|
||||
IUSE+=" postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp +ssl"
|
||||
IUSE+=" systemd test usertools +uuid xxhash zeromq"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
REQUIRED_USE="
|
||||
kubernetes? ( normalize )
|
||||
ssl? ( || ( gnutls openssl ) )
|
||||
"
|
||||
|
||||
BDEPEND=">=sys-devel/autoconf-archive-2015.02.24
|
||||
virtual/pkgconfig
|
||||
elibc_musl? ( sys-libs/queue-standalone )
|
||||
test? (
|
||||
jemalloc? ( <sys-libs/libfaketime-0.9.7 )
|
||||
!jemalloc? ( sys-libs/libfaketime )
|
||||
${PYTHON_DEPS}
|
||||
)"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libfastjson-0.99.8:=
|
||||
>=dev-libs/libestr-0.1.9
|
||||
>=sys-libs/zlib-1.2.5
|
||||
curl? ( >=net-misc/curl-7.35.0 )
|
||||
dbi? ( >=dev-db/libdbi-0.8.3 )
|
||||
elasticsearch? ( >=net-misc/curl-7.35.0 )
|
||||
gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= )
|
||||
imhttp? ( www-servers/civetweb )
|
||||
impcap? ( net-libs/libpcap )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
|
||||
kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
|
||||
kerberos? ( virtual/krb5 )
|
||||
kubernetes? ( >=net-misc/curl-7.35.0 )
|
||||
mdblookup? ( dev-libs/libmaxminddb:= )
|
||||
mongodb? ( >=dev-libs/mongo-c-driver-1.1.10:= )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
normalize? (
|
||||
>=dev-libs/liblognorm-2.0.3:=
|
||||
)
|
||||
clickhouse? ( >=net-misc/curl-7.35.0 )
|
||||
omhttpfs? ( >=net-misc/curl-7.35.0 )
|
||||
omudpspoof? ( >=net-libs/libnet-1.1.6 )
|
||||
postgres? ( >=dev-db/postgresql-8.4.20:= )
|
||||
rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
|
||||
redis? ( >=dev-libs/hiredis-0.11.0:= )
|
||||
relp? ( >=dev-libs/librelp-1.2.17:= )
|
||||
rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
|
||||
rfc5424hmac? (
|
||||
>=dev-libs/openssl-0.9.8y:0=
|
||||
)
|
||||
snmp? ( >=net-analyzer/net-snmp-5.7.2 )
|
||||
ssl? (
|
||||
gnutls? ( >=net-libs/gnutls-2.12.23:0= )
|
||||
openssl? (
|
||||
dev-libs/openssl:0=
|
||||
)
|
||||
)
|
||||
systemd? ( >=sys-apps/systemd-234 )
|
||||
uuid? ( sys-apps/util-linux:0= )
|
||||
xxhash? ( dev-libs/xxhash:= )
|
||||
zeromq? (
|
||||
>=net-libs/czmq-4:=[drafts]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-libs/liblogging-1.0.1[stdlog]
|
||||
)"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
BDEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
|
||||
BDEPEND+=" >=sys-devel/flex-2.5.39-r1"
|
||||
BDEPEND+=" >=sys-devel/bison-2.4.3"
|
||||
BDEPEND+=" >=dev-python/docutils-0.12"
|
||||
fi
|
||||
|
||||
CONFIG_CHECK="~INOTIFY_USER"
|
||||
WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
else
|
||||
unpack ${P}.tar.gz
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
local _EGIT_BRANCH=
|
||||
if [[ -n "${EGIT_BRANCH}" ]]; then
|
||||
# Cannot use rsyslog commits/branches for documentation repository
|
||||
_EGIT_BRANCH=${EGIT_BRANCH}
|
||||
unset EGIT_BRANCH
|
||||
fi
|
||||
|
||||
git-r3_fetch "${DOC_REPO_URI}"
|
||||
git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs
|
||||
|
||||
if [[ -n "${_EGIT_BRANCH}" ]]; then
|
||||
# Restore previous EGIT_BRANCH information
|
||||
EGIT_BRANCH=${_EGIT_BRANCH}
|
||||
fi
|
||||
else
|
||||
cd "${S}" || die "Cannot change dir into '${S}'"
|
||||
mkdir docs || die "Failed to create docs directory"
|
||||
cd docs || die "Failed to change dir into '${S}/docs'"
|
||||
unpack ${PN}-doc-${PV}.tar.gz
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# https://github.com/rsyslog/rsyslog/issues/3626
|
||||
sed -i \
|
||||
-e '\|^#!/bin/bash$|a exit 77' \
|
||||
tests/mmkubernetes-cache-expir*.sh \
|
||||
|| die "Failed to disabled known test failure mmkubernetes-cache-expir*.sh"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Maintainer notes:
|
||||
# * Guardtime support is missing because libgt isn't yet available
|
||||
# in portage.
|
||||
# * Hadoop's HDFS file system output module is currently not
|
||||
# supported in Gentoo because nobody is able to test it
|
||||
# (JAVA dependency).
|
||||
# * dev-libs/hiredis doesn't provide pkg-config (see #504614,
|
||||
# upstream PR 129 and 136) so we need to export HIREDIS_*
|
||||
# variables because rsyslog's build system depends on pkg-config.
|
||||
|
||||
if use redis; then
|
||||
export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis"
|
||||
export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
--disable-debug-symbols
|
||||
--disable-generate-man-pages
|
||||
--without-valgrind-testbench
|
||||
--disable-liblogging-stdlog
|
||||
$(use_enable test testbench)
|
||||
$(use_enable test libfaketime)
|
||||
$(use_enable test extended-tests)
|
||||
# Input Plugins without dependencies
|
||||
--enable-imbatchreport
|
||||
--enable-imdiag
|
||||
--enable-imfile
|
||||
--enable-improg
|
||||
--enable-impstats
|
||||
--enable-imptcp
|
||||
# Message Modificiation Plugins without dependencies
|
||||
--enable-mmanon
|
||||
--enable-mmaudit
|
||||
--enable-mmcount
|
||||
--enable-mmfields
|
||||
--enable-mmjsonparse
|
||||
--enable-mmpstrucdata
|
||||
--enable-mmrm1stspace
|
||||
--enable-mmsequence
|
||||
--enable-mmtaghostname
|
||||
--enable-mmutf8fix
|
||||
# Output Modification Plugins without dependencies
|
||||
--enable-mail
|
||||
--enable-omprog
|
||||
--enable-omruleset
|
||||
--enable-omstdout
|
||||
--enable-omuxsock
|
||||
# Misc
|
||||
--enable-fmhash
|
||||
--enable-fmunflatten
|
||||
$(use_enable xxhash fmhash-xxhash)
|
||||
--enable-pmaixforwardedfrom
|
||||
--enable-pmciscoios
|
||||
--enable-pmcisconames
|
||||
--enable-pmdb2diag
|
||||
--enable-pmlastmsg
|
||||
$(use_enable normalize pmnormalize)
|
||||
--enable-pmnull
|
||||
--enable-pmpanngfw
|
||||
--enable-pmsnare
|
||||
# DB
|
||||
$(use_enable dbi libdbi)
|
||||
$(use_enable mongodb ommongodb)
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres pgsql)
|
||||
$(use_enable redis imhiredis)
|
||||
$(use_enable redis omhiredis)
|
||||
# Debug
|
||||
$(use_enable debug)
|
||||
$(use_enable debug diagtools)
|
||||
$(use_enable debug valgrind)
|
||||
# Misc
|
||||
$(use_enable clickhouse)
|
||||
$(use_enable curl fmhttp)
|
||||
$(use_enable elasticsearch)
|
||||
$(use_enable gcrypt libgcrypt)
|
||||
$(use_enable imhttp)
|
||||
$(use_enable impcap)
|
||||
$(use_enable jemalloc)
|
||||
$(use_enable kafka imkafka)
|
||||
$(use_enable kafka omkafka)
|
||||
$(use_enable kerberos gssapi-krb5)
|
||||
$(use_enable kubernetes mmkubernetes)
|
||||
$(use_enable normalize mmnormalize)
|
||||
$(use_enable mdblookup mmdblookup)
|
||||
$(use_enable omhttp)
|
||||
$(use_enable omhttpfs)
|
||||
$(use_enable omudpspoof)
|
||||
$(use_enable rabbitmq omrabbitmq)
|
||||
$(use_enable relp)
|
||||
$(use_enable rfc3195)
|
||||
$(use_enable rfc5424hmac mmrfc5424addhmac)
|
||||
$(use_enable snmp)
|
||||
$(use_enable snmp mmsnmptrapd)
|
||||
$(use_enable gnutls)
|
||||
$(use_enable openssl)
|
||||
$(use_enable systemd imjournal)
|
||||
$(use_enable systemd omjournal)
|
||||
$(use_enable usertools)
|
||||
$(use_enable uuid)
|
||||
$(use_enable zeromq imczmq)
|
||||
$(use_enable zeromq omczmq)
|
||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc && [[ "${PV}" == "9999" ]]; then
|
||||
einfo "Building documentation ..."
|
||||
local doc_dir="${S}/docs"
|
||||
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
|
||||
sphinx-build -b html source build || die "Building documentation failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local _has_increased_ulimit=
|
||||
|
||||
# Sometimes tests aren't executable (i.e. when added via patch)
|
||||
einfo "Adjusting permissions of test scripts ..."
|
||||
find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
|
||||
die "Failed to adjust test scripts permission"
|
||||
|
||||
if ulimit -n 3072; then
|
||||
_has_increased_ulimit="true"
|
||||
fi
|
||||
|
||||
if ! emake --jobs 1 check; then
|
||||
eerror "Test suite failed! :("
|
||||
|
||||
if [[ -z "${_has_increased_ulimit}" ]]; then
|
||||
eerror "Probably because open file limit couldn't be set to 3072."
|
||||
fi
|
||||
|
||||
if has userpriv ${FEATURES}; then
|
||||
eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \
|
||||
"before you submit a bug report."
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=(
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
"${FILESDIR}"/README.gentoo
|
||||
)
|
||||
|
||||
use doc && local HTML_DOCS=( "${S}/docs/build/." )
|
||||
|
||||
default
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
|
||||
systemd_newunit "${FILESDIR}/${PN}.service" ${PN}.service
|
||||
|
||||
keepdir /var/empty/dev
|
||||
keepdir /var/spool/${PN}
|
||||
keepdir /etc/ssl/${PN}
|
||||
keepdir /etc/${PN}.d
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf" ${PN}.conf
|
||||
|
||||
insinto /etc/rsyslog.d/
|
||||
newins "${FILESDIR}/50-default-r1.conf" 50-default.conf
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}-r1.logrotate" ${PN}
|
||||
|
||||
if use mysql; then
|
||||
insinto /usr/share/${PN}/scripts/mysql
|
||||
doins plugins/ommysql/createDB.sql
|
||||
fi
|
||||
|
||||
if use postgres; then
|
||||
insinto /usr/share/${PN}/scripts/pgsql
|
||||
doins plugins/ompgsql/createDB.sql
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local advertise_readme=0
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
|
||||
advertise_readme=1
|
||||
|
||||
if use mysql || use postgres; then
|
||||
echo
|
||||
elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:"
|
||||
elog " /usr/share/doc/${PF}/scripts"
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
echo
|
||||
elog "To create a default CA and certificates for your server and clients, run:"
|
||||
elog " emerge --config =${PF}"
|
||||
elog "on your logging server. You can run it several times,"
|
||||
elog "once for each logging client. The client certificates will be signed"
|
||||
elog "using the CA certificate generated during the first run."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${advertise_readme} -gt 0 ]]; then
|
||||
# We need to show the README file location
|
||||
|
||||
echo ""
|
||||
elog "Please read"
|
||||
elog ""
|
||||
elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
|
||||
elog ""
|
||||
elog "for more details."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
if ! use ssl; then
|
||||
einfo "There is nothing to configure for rsyslog unless you"
|
||||
einfo "used USE=ssl to build it."
|
||||
return 0
|
||||
fi
|
||||
|
||||
if ! hash certtool &>/dev/null; then
|
||||
die "certtool not found! Is net-libs/gnutls[tools] is installed?"
|
||||
fi
|
||||
|
||||
# Make sure the certificates directory exists
|
||||
local CERTDIR="${EROOT}/etc/ssl/${PN}"
|
||||
if [[ ! -d "${CERTDIR}" ]]; then
|
||||
mkdir "${CERTDIR}" || die
|
||||
fi
|
||||
einfo "Your certificates will be stored in ${CERTDIR}"
|
||||
|
||||
# Create a default CA if needed
|
||||
if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then
|
||||
einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_ca.privkey.pem" || die
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = Portage automated CA
|
||||
ca
|
||||
cert_signing_key
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-self-signed \
|
||||
--load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--outfile "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--template "${T}/${PF}.$$" || die
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
# Create the server certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the SERVER you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for server ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" || die
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_server
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
else
|
||||
einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation."
|
||||
fi
|
||||
|
||||
# Create a client certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for client ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" || die
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_client
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" || die
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
rm -f "${T}/${PF}.$$"
|
||||
|
||||
echo
|
||||
einfo "Here is the documentation on how to encrypt your log traffic:"
|
||||
einfo " https://www.rsyslog.com/doc/rsyslog_tls.html"
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST libarchive-3.5.1.tar.gz 7008338 BLAKE2B 243dfda2bd4582bbc20679328b89aae0c530475c822dcf9ff25c65df2017b8f18bb616142d6ab016ccea4a5aa1b410d46b913c2ee0afefd2fdb1a41cf51585d9 SHA512 08ddd74bef4cef0981739da202879f36cf7ca33a8f6d438724588efe3ab8477f2f1d0cccf7b8ed0bedfc0c8d0cab16ee3ae5c0c6e83b6811bc650d7d7471a996
|
||||
DIST libarchive-3.5.2.tar.gz 7054934 BLAKE2B 1fc6ee0166573658dc5e0f170113c07ecdaa76b287cbf68bdee63ccd198dad615b3f2803a3fc1aed303cd1f7f32033e6d8e782ef6a8a991562cdc2a375894c9e SHA512 2003ec9b24086373451bd7317bdab86d81627f087c14a6f7df1a92e131a216749f9aa352504c3d04dc82b62078b59aeea5aad5543b7e6c1c21fcafa2955d3762
|
||||
|
@ -0,0 +1,136 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit libtool multilib-minimal toolchain-funcs
|
||||
|
||||
DESCRIPTION="Multi-format archive and compression library"
|
||||
HOMEPAGE="https://www.libarchive.org/"
|
||||
SRC_URI="https://www.libarchive.org/downloads/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 public-domain"
|
||||
SLOT="0/13"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv kernel_linux lz4 +lzma lzo nettle static-libs xattr +zlib zstd"
|
||||
|
||||
RDEPEND="
|
||||
acl? ( virtual/acl[${MULTILIB_USEDEP}] )
|
||||
blake2? ( app-crypt/libb2[${MULTILIB_USEDEP}] )
|
||||
bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
|
||||
expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
|
||||
!expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
|
||||
iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
|
||||
kernel_linux? (
|
||||
xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
dev-libs/openssl:0=[${MULTILIB_USEDEP}]
|
||||
lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
|
||||
lzma? ( >=app-arch/xz-utils-5.2.5-r1[${MULTILIB_USEDEP}] )
|
||||
lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
|
||||
nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
|
||||
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
|
||||
zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
kernel_linux? (
|
||||
virtual/os-headers
|
||||
e2fsprogs? ( sys-fs/e2fsprogs )
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.5.0-darwin-strnlen.patch # drop on next release
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize # is required for Solaris sol2_ld linker fix
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
|
||||
|
||||
local myconf=(
|
||||
$(use_enable acl)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable xattr)
|
||||
$(use_with blake2 libb2)
|
||||
$(use_with bzip2 bz2lib)
|
||||
$(use_with expat)
|
||||
$(use_with !expat xml2)
|
||||
$(use_with iconv)
|
||||
$(use_with lz4)
|
||||
$(use_with lzma)
|
||||
$(use_with lzo lzo2)
|
||||
$(use_with nettle)
|
||||
$(use_with zlib)
|
||||
$(use_with zstd)
|
||||
|
||||
# Windows-specific
|
||||
--without-cng
|
||||
)
|
||||
if multilib_is_native_abi ; then
|
||||
myconf+=(
|
||||
--enable-bsdcat=$(tc-is-static-only && echo static || echo shared)
|
||||
--enable-bsdcpio=$(tc-is-static-only && echo static || echo shared)
|
||||
--enable-bsdtar=$(tc-is-static-only && echo static || echo shared)
|
||||
)
|
||||
else
|
||||
myconf+=(
|
||||
--disable-bsdcat
|
||||
--disable-bsdcpio
|
||||
--disable-bsdtar
|
||||
)
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake
|
||||
else
|
||||
emake libarchive.la
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
mkdir -p "${T}"/bin || die
|
||||
# tests fail when lbzip2[symlink] is used in place of ref bunzip2
|
||||
ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die
|
||||
local -x PATH=${T}/bin:${PATH}
|
||||
multilib-minimal_src_test
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# sandbox is breaking long symlink behavior
|
||||
local -x SANDBOX_ON=0
|
||||
local -x LD_PRELOAD=
|
||||
# some locales trigger different output that breaks tests
|
||||
local -x LC_ALL=C
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# Create symlinks for FreeBSD
|
||||
if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then
|
||||
# Exclude cat for the time being #589876
|
||||
for bin in cpio tar; do
|
||||
dosym bsd${bin} /usr/bin/${bin}
|
||||
echo '.so bsd${bin}.1' > "${T}"/${bin}.1
|
||||
doman "${T}"/${bin}.1
|
||||
done
|
||||
fi
|
||||
else
|
||||
local install_targets=(
|
||||
install-includeHEADERS
|
||||
install-libLTLIBRARIES
|
||||
install-pkgconfigDATA
|
||||
)
|
||||
emake DESTDIR="${D}" "${install_targets[@]}"
|
||||
fi
|
||||
|
||||
# Libs.private: should be used from libarchive.pc instead
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
Binary file not shown.
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Message Digest functions from BSD systems"
|
||||
HOMEPAGE="https://www.hadrons.org/software/libmd/"
|
||||
SRC_URI="https://archive.hadrons.org/software/libmd/${P}.tar.xz"
|
||||
|
||||
LICENSE="|| ( BSD BSD-2 ISC BEER-WARE public-domain )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
src_configure() {
|
||||
econf --disable-static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
Binary file not shown.
@ -1 +1 @@
|
||||
DIST kakoune-2020.01.16_p20200601.tar.gz 597946 BLAKE2B c3d831132e29ea46c4c92a942eae1b9eeaa30c68e17e7178b00277f45fdf76784386801627125c653b50507ebebcad282512446c0cff94f7234013aa8a17efd1 SHA512 b137fa71a151e80da50bfd980a264d1d0aa98d48e585794eb1429196a6c81ef51277cc15d5db015ce8550c1cf0d6fa29f5cdeefd3930e90e2a0480dd7bbe5bf8
|
||||
DIST kakoune-2020.09.01.tar.gz 612970 BLAKE2B 64084c2a4ff1ccf348caad8db04df9425828378bda28d163ffa6d198b3bd80d6d078ac0095dfc5adbae505e4d4259cd86185718a8012740417056db531ea72ec SHA512 acd9edd6b2a68219a4b5f68aaf4d785aa8c430abfdf5ccc994764f5ece8acb655adf64334027525115d3cbe819591de8496c3e54e2d806ce40c494443789e126
|
||||
|
@ -1,15 +0,0 @@
|
||||
diff -Naur a/rc/filetype/sh.kak b/rc/filetype/sh.kak
|
||||
--- a/rc/filetype/sh.kak 2020-01-16 11:52:20.000000000 +0200
|
||||
+++ b/rc/filetype/sh.kak 2020-05-25 15:50:20.417809942 +0300
|
||||
@@ -2,6 +2,11 @@
|
||||
set-option buffer filetype sh
|
||||
}
|
||||
|
||||
+hook global BufCreate .*\.ebuild %{
|
||||
+ set-option buffer filetype sh
|
||||
+}
|
||||
+
|
||||
+
|
||||
hook global WinSetOption filetype=sh %{
|
||||
require-module sh
|
||||
set-option window static_words %opt{sh_static_words}
|
@ -0,0 +1,10 @@
|
||||
diff --git a/rc/filetype/gentoo-linux.kak b/rc/filetype/gentoo-linux.kak
|
||||
new file mode 100644
|
||||
index 00000000..251dad16
|
||||
--- /dev/null
|
||||
+++ b/rc/filetype/gentoo-linux.kak
|
||||
@@ -0,0 +1,4 @@
|
||||
+# portage ebuild file
|
||||
+hook global BufCreate .*\.ebuild %{
|
||||
+ set-option buffer filetype sh
|
||||
+}
|
@ -1,8 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="github">mawww/kakoune</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>mujo@sdf.org</email>
|
||||
<name>Ian Hixson</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">mawww/kakoune</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST deltup-0.4.6.tar.gz 14869 BLAKE2B d0332eca70da268f0f85718bf08f8b19da7e7e8a1868d6bb4b2edd386d498f61342538234defebbc0430cc176da13b57efc11ecd62f300eef960b62e738d3147 SHA512 196be319f31860d89654c23241edde503d4194064617970d87cb0d0a66544959bc666dd34a3bf1a42e69ddb5927420728a1e208b7bb848e935e99f3a090ffa7a
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Delta-Update - patch system for updating source-archives."
|
||||
HOMEPAGE="http://deltup.sourceforge.net"
|
||||
SRC_URI="https://github.com/jjwhitney/Deltup/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
MY_PN="Deltup"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}/src"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
|
||||
|
||||
DEPEND="
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2
|
||||
dev-libs/openssl:0=
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
|| ( dev-util/bdelta =dev-util/xdelta-1* )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.4.6-ldflags.patch
|
||||
"${FILESDIR}"/${PN}-0.4.6-cxx.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
emake CXX=$(tc-getCXX)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX=/usr install
|
||||
dodoc "${S}"/../{README,ChangeLog}
|
||||
doman "${S}"/../deltup.1
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 6a3aa95..a591a6f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -7,3 +7,3 @@ CC = g++
|
||||
objfiles=bpatch.o archfunc.o file.o system.o tmpstore.o deltup.o
|
||||
-libs=-lstdc++ -lz -lbz2 -lcrypto #-lssl
|
||||
+libs=-lz -lbz2 -lcrypto #-lssl
|
||||
|
||||
@@ -12,3 +12,3 @@ libs=-lstdc++ -lz -lbz2 -lcrypto #-lssl
|
||||
%.o : %.cpp
|
||||
- ${CC} -c $< -o $@ ${CXXFLAGS} #-g #-Wall -pedantic
|
||||
+ ${CXX} -c $< -o $@ ${CXXFLAGS} #-g #-Wall -pedantic
|
||||
|
||||
@@ -17,6 +17,6 @@ all: deltup
|
||||
depend:
|
||||
- gcc -MM *.cpp > .depend
|
||||
+ ${CXX} -MM *.cpp > .depend
|
||||
|
||||
deltup: $(objfiles)
|
||||
- ${CC} $(objfiles) ${LDFLAGS} -o deltup $(libs)
|
||||
+ ${CXX} $(objfiles) ${LDFLAGS} -o deltup $(libs)
|
||||
|
@ -1,9 +0,0 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 6a3aa95..6e7c5cf 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -20,3 +20,3 @@ depend:
|
||||
deltup: $(objfiles)
|
||||
- ${CC} $(objfiles) ${CXXFLAGS} -o deltup $(libs)
|
||||
+ ${CC} $(objfiles) ${LDFLAGS} -o deltup $(libs)
|
||||
|
@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>Ameretat.Reith@gmail.com</email>
|
||||
<name>Ameretat 'reith' Reith</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">jjwhitney/Deltup</remote-id>
|
||||
<remote-id type="sourceforge">deltup</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST getdelta-0.7.8.tar.bz2 10335 BLAKE2B ab2093a805649904405d23d7ec7afb2f338e87864c91f8aeb13efa2547f5493080cc1249a28a73da8e17d6b5aaff6fc00f217fe5b8df51db4fbea2420a88a523 SHA512 66374ce1a0ec5492d11478ddcaeb67b497a44357605f3cd1b9176796ca9f69d8c6865f9db188a6d7722c4ab372a5a317dfa6fafe97d9f08f76f332469f1ee2b2
|
@ -1,252 +0,0 @@
|
||||
--- getdelta.sh 2007-07-13 16:30:26.000000000 +0000
|
||||
+++ getdelta.sh 2010-08-27 17:23:31.692000002 +0000
|
||||
@@ -25,6 +25,9 @@
|
||||
VERSION="0.7"
|
||||
|
||||
# Changelog
|
||||
+# version 0.7.9 2008/10/08
|
||||
+# - add second parameter for destination name (EAPI=2)
|
||||
+# - quote more carefully
|
||||
# version 0.7.8 2007/07/13
|
||||
# - added option -O to call of emerge when finding mirrors
|
||||
# - replaced some calls of coreutils with bash-internals
|
||||
@@ -326,13 +329,13 @@
|
||||
|
||||
remove() {
|
||||
output "${GREEN}You have chosen to remove ${CYAN}$1\n"
|
||||
- pushd ${DISTDIR} >/dev/null 2>&1
|
||||
+ pushd -- "${DISTDIR}" >/dev/null 2>&1
|
||||
removeme=true
|
||||
for n in $(grep -v "^#" ${DO_NOT_REMOVE})
|
||||
do
|
||||
grep -q $n <<< "$1" && removeme=false && output "${CYAN}${1}${RED} is not deleted, since it matches ${n} in ${DO_NOT_REMOVE}"
|
||||
done
|
||||
- $removeme && rm -f $1
|
||||
+ $removeme && rm -f -- "$1"
|
||||
popd >/dev/null 2>&1
|
||||
}
|
||||
|
||||
@@ -349,7 +352,7 @@
|
||||
-e "s/src4/srcDDD/g" \
|
||||
-e "s/src5/srcEEE/g" \
|
||||
-e "s/src6/srcFFF/g" \
|
||||
- -e "s/src7/srcGGG/g" <<< $MASK_FILENAME)
|
||||
+ -e "s/src7/srcGGG/g" <<< "$MASK_FILENAME")
|
||||
fi
|
||||
|
||||
# ignore PR for src-files of firefox
|
||||
@@ -375,7 +378,7 @@
|
||||
-e "s/rc//g" \
|
||||
-e "s/[\._-]//g" \
|
||||
-e "s/\+//g" \
|
||||
- -e "s/ //g" <<< $MASK_FILENAME)
|
||||
+ -e "s/ //g" <<< "$MASK_FILENAME")
|
||||
}
|
||||
|
||||
# create or update a config-file
|
||||
@@ -384,6 +387,7 @@
|
||||
add_to_configfile LOCAL_MIRROR "" "set this to one or more (space separated) URI ending with '/' if you want to check one or more local mirror(s) first\n# most people just leave it empty."
|
||||
add_to_configfile DELTUP_SERVER "http://linux01.gwdg.de/~nlissne/deltup.php" "deltup-server to use"
|
||||
add_to_configfile FETCH "/usr/bin/wget -t 1 --passive-ftp" "command to use for downloading"
|
||||
+add_to_configfile FETCHNAME "\$FETCH -O" "command to use for downloading; first parameter is the filename, second the url"
|
||||
add_to_configfile QUEUERETRY 15 "number of seconds to wait before a queued request is retried"
|
||||
add_to_configfile MAXIMUM_ACCEPTABLE_QUEUEPOS "15" "the maximum queuepos you would accept (if higher download full archive instead)"
|
||||
add_to_configfile QUEUETIMEOUT 900 "when a dtu-request is queued - how long should we wait max. before downloading the original archive instead (in seconds)"
|
||||
@@ -424,14 +428,14 @@
|
||||
add_to_donotremove "^rp-pppoe"
|
||||
|
||||
|
||||
-if [ -z $1 ]
|
||||
+if [ -z "$1" ]
|
||||
then
|
||||
COLOR=true
|
||||
echo -e "${YELLOW}getdelta.sh version ${VERSION}"
|
||||
echo "This script has to be called like this:"
|
||||
echo -e "${CYAN}$0 <URI>"
|
||||
echo -e "\n${YELLOW}To use it, you should just put the following line into your /etc/make.conf"
|
||||
- echo -e "${GREEN}FETCHCOMMAND=\"$0 \\\${URI}\""
|
||||
+ echo -e "${GREEN}FETCHCOMMAND=\"$0 \\\"\\\${URI}\\\" \\\"\\\${FILE}\\\"\""
|
||||
echo -e "\n${YELLOW}There is a config-file ${CYAN}${GETDELTA_CONFIGFILE}${YELLOW} with some variables to control the behaviour of this script."
|
||||
echo -e "Edit it to your needs.${NORMAL}"
|
||||
exit 1
|
||||
@@ -464,10 +468,12 @@
|
||||
output "use getdelta.sh for your FETCHCOMMAND, only." &&
|
||||
sleep 5 && exit 1
|
||||
|
||||
-pushd $DISTDIR >/dev/null 2>/dev/null
|
||||
+pushd -- "$DISTDIR" >/dev/null 2>/dev/null
|
||||
ORIG_URI=$1
|
||||
NEW_FILE=$(basename $ORIG_URI)
|
||||
|
||||
+[ -z "${NEW_FILE}" ] && NEW_FILE=${ORIG_URI##*/}
|
||||
+
|
||||
# repoman downloads metadata.dtd with FETCHCOMMAND
|
||||
# this should not be done with getdelta - so just fetch the file and exit
|
||||
|
||||
@@ -475,7 +481,7 @@
|
||||
# dtu files.
|
||||
if [ "${NEW_FILE}" = "metadata.dtd" ] || [ "$GETDELTA" = "0" ]
|
||||
then
|
||||
- $FETCH $@
|
||||
+ $FETCHNAME "$NEW_FILE" "$ORIG_URI"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
@@ -516,7 +522,7 @@
|
||||
#
|
||||
output "${GREEN}Searching for a previously downloaded file in ${YELLOW}${DISTDIR}\n"
|
||||
|
||||
-first_chars=$(sed 's/[[:digit:]][[:print:]]*$//' <<< $NEW_FILE)
|
||||
+first_chars=$(sed 's/[[:digit:]][[:print:]]*$//' <<< "$NEW_FILE")
|
||||
length_first_chars=${#first_chars}
|
||||
[ $length_first_chars -lt 3 ] && first_chars="${NEW_FILE:0:2}"
|
||||
|
||||
@@ -527,7 +533,7 @@
|
||||
let len1=${#mask}
|
||||
filelist=""
|
||||
|
||||
-for name in $( ls ${first_chars}* 2>/dev/null )
|
||||
+for name in $( ls -- "${first_chars}"* 2>/dev/null )
|
||||
do
|
||||
mask2=$(mask_name "${name}")
|
||||
# add any file, that results in the same mask or differ not more than two letters
|
||||
@@ -582,7 +588,7 @@
|
||||
|
||||
# find matching part of filename - first: frontmatch
|
||||
x=0;
|
||||
- a=($NEW_FILE $filelist)
|
||||
+ a=("$NEW_FILE" $filelist)
|
||||
match=""
|
||||
while [ -z "$match" ]
|
||||
do
|
||||
@@ -657,7 +663,7 @@
|
||||
FILE_IS_CORRUPT=false
|
||||
if $CHECK_OLD_FILE
|
||||
then
|
||||
- file_digest=$(grep -h ${best_candidate} ${FILESDIR}/digest-* | sed -n 1p)
|
||||
+ file_digest=$(grep -h ${best_candidate} "${FILESDIR}"/digest-* | sed -n 1p)
|
||||
if [ "$file_digest" ]
|
||||
then
|
||||
file_md5=$(cut -d ' ' -f2 <<< "$file_digest")
|
||||
@@ -669,7 +675,7 @@
|
||||
FILE_IS_CORRUPT=true
|
||||
fi
|
||||
else
|
||||
- if [ $(rev <<< ${best_candidate} | cut -d. -f2 | rev) = "tar" ]
|
||||
+ if [ $(rev <<< "${best_candidate}" | cut -d. -f2 | rev) = "tar" ]
|
||||
then
|
||||
output "${YELLOW}Could not find a digest-file for ${CYAN}${best_candidate}${YELLOW}. Testing file integrity with tar.\n"
|
||||
if ! tar -tf ${best_candidate} >/dev/null
|
||||
@@ -698,17 +704,16 @@
|
||||
|
||||
# Remember where we are, and go to a new dir there we can work
|
||||
tmp_dwn_dest="${DISTDIR}/.getdelta-`date +%N`-tmp"
|
||||
- mkdir ${tmp_dwn_dest}
|
||||
+ mkdir -- "${tmp_dwn_dest}"
|
||||
# If user abort Ctrl+C (signal 2), remove tmp-dir; enabable trap again and send it again to stop wget
|
||||
- trap "rm -r ${tmp_dwn_dest}; trap 2; kill -2 $$" 2
|
||||
- pushd ${tmp_dwn_dest} >/dev/null 2>&1
|
||||
+ trap 'rm -r -- "${tmp_dwn_dest}"; trap 2; kill -2 '$$ 2
|
||||
+ pushd -- "${tmp_dwn_dest}" >/dev/null 2>&1
|
||||
|
||||
# thanks to MATSUI Fe2+ Tetsushi for idea and patch
|
||||
FILESIZE=$(stat -c %s "${DISTDIR}/${best_candidate}")
|
||||
let TIMELIMIT=${FILESIZE}/${BANDWIDTH}
|
||||
[[ $TIMELIMIT -lt $QUEUETIMEOUT ]] && QUEUETIMEOUT=$TIMELIMIT
|
||||
-
|
||||
- if $FETCH "${DELTUP_SERVER}${query}"
|
||||
+ if $FETCH "${DELTUP_SERVER}${query}" -O ${best_candidate}-${NEW_FILE}.dtu
|
||||
then
|
||||
# thanks to deelkar for this much more elegant solution to the "broken pipe" problem with "head -n1"
|
||||
GOTFILE=$(ls -c | sed -n 1p)
|
||||
@@ -718,15 +723,15 @@
|
||||
# may have sento to us.
|
||||
|
||||
# first: the request have been queued
|
||||
- if [ "${GOTFILE}" = "deltup-queued" ]
|
||||
+# if [ "${GOTFILE}" = "deltup-queued" ]
|
||||
+ if [[ "$(file -bi ${GOTFILE}|cut -d ";" -f1)" != "application/x-bzip2" && "$(cat ${GOTFILE}|cut -d "," -f1)" != "sorry" ]]
|
||||
then
|
||||
let QTMOUT=$(date +%s)+QUEUETIMEOUT
|
||||
- while [ -f deltup-queued ]
|
||||
+ while [[ "$(file -bi ${GOTFILE}|cut -d ";" -f1)" != "application/x-bzip2" && "$(cat ${GOTFILE}|cut -d "," -f1)" != "sorry" ]]
|
||||
do
|
||||
output "${GREEN}destination file: ${CYAN}${NEW_FILE}\n"
|
||||
- output "${YELLOW}$(cat deltup-queued)"
|
||||
- QUEUEPOS=$(grep "has been queued" deltup-queued | cut -d. -f2 | cut -d")" -f1)
|
||||
- rm -f deltup-queued
|
||||
+ output "${YELLOW}$(cat ${GOTFILE})"
|
||||
+ QUEUEPOS=$(grep "has been queued" ${GOTFILE} | cut -d. -f2 | cut -d")" -f1)
|
||||
TSTAMP=$(date +%s)
|
||||
if ((TSTAMP<QTMOUT)) && ((QUEUEPOS<=MAXIMUM_ACCEPTABLE_QUEUEPOS))
|
||||
then
|
||||
@@ -741,7 +746,7 @@
|
||||
sleep 1
|
||||
done
|
||||
echo -n -e "${NORMAL}"
|
||||
- $FETCH "${DELTUP_SERVER}${query}"
|
||||
+ $FETCH "${DELTUP_SERVER}${query}" -O ${best_candidate}-${NEW_FILE}.dtu
|
||||
GOTFILE=$(ls -c | sed -n 1p)
|
||||
else
|
||||
if ((TSTAMP>=QTMOUT))
|
||||
@@ -761,20 +766,20 @@
|
||||
done
|
||||
fi
|
||||
|
||||
- if [ -f ${best_candidate}-${NEW_FILE}.failed ]
|
||||
+ if [ "$(cat ${GOTFILE}|cut -d "," -f1)" = "sorry" ]
|
||||
then
|
||||
output "\n${RED}The server could not build the dtu-file for ${NEW_FILE}\n"
|
||||
- output "${YELLOW}reason:\n${RED}$(cat ${best_candidate}-${NEW_FILE}.failed)\n"
|
||||
- rm -rf ${best_candidate}-${NEW_FILE}.failed
|
||||
+ output "${YELLOW}reason:\n${RED}$(cat ${GOTFILE})\n"
|
||||
+ rm -rf -- "${GOTFILE}"
|
||||
fi
|
||||
|
||||
- if [ -f ${best_candidate}-${NEW_FILE}.dtu ]
|
||||
+ if [ -f "${best_candidate}-${NEW_FILE}.dtu" ]
|
||||
then
|
||||
output "${GREEN}Successfully fetched the dtu-file - let's build ${NEW_FILE}...\n"
|
||||
- downloadsize=$(stat -c %s ${best_candidate}-${NEW_FILE}.dtu)
|
||||
- if deltup -p -v -D ${DISTDIR} ${best_candidate}-${NEW_FILE}.dtu
|
||||
+ downloadsize=$(stat -c %s "${best_candidate}-${NEW_FILE}.dtu")
|
||||
+ if deltup -p -v -D "${DISTDIR}" "${best_candidate}-${NEW_FILE}.dtu"
|
||||
then
|
||||
- newsize=$(stat -c %s ${NEW_FILE})
|
||||
+ newsize=$(stat -c %s "${NEW_FILE}")
|
||||
let savedsize=${newsize}-${downloadsize}
|
||||
let percent=${savedsize}*100/${newsize}
|
||||
unit="bytes"
|
||||
@@ -791,8 +796,8 @@
|
||||
esac
|
||||
output "${YELLOW}This dtu-file saved ${UCOLOR}${savedsize} ${unit} (${percent}%)${YELLOW} download size.\n"
|
||||
fi
|
||||
- mv -f ${NEW_FILE} ${DISTDIR} &&
|
||||
- ${REMOVE_OLD} && remove "${best_candidate}"
|
||||
+ mv -f -- "${NEW_FILE}" "${DISTDIR}" &&
|
||||
+ ${REMOVE_OLD} && remove ${best_candidate}
|
||||
fi
|
||||
|
||||
fi # if $FETCH "${DELTUP_SERVER}${query}"
|
||||
@@ -812,7 +817,7 @@
|
||||
read
|
||||
fi
|
||||
popd >/dev/null 2>&1
|
||||
- rm -rf ${tmp_dwn_dest}
|
||||
+ rm -rf -- "${tmp_dwn_dest}"
|
||||
#stop respond to trap2
|
||||
trap 2
|
||||
fi # if ! FILE_IS_CORRUPT
|
||||
@@ -824,10 +829,10 @@
|
||||
|
||||
# Ok, once we are here, we should have got the delta (and used it)
|
||||
# or we still have to download the full file
|
||||
-if ! [ -f ${DISTDIR}/${NEW_FILE} ]
|
||||
+if ! [ -f "${DISTDIR}/${NEW_FILE}" ]
|
||||
then
|
||||
output "${RED}The dtu could not be fetched,${YELLOW} downloading full file from original URL\n"
|
||||
- $FETCH $ORIG_URI
|
||||
+ $FETCHNAME "$NEW_FILE" "$ORIG_URI"
|
||||
# remember we had a fallback to use correct exitcode for portage
|
||||
FALLBACK=$?
|
||||
fi
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit epatch
|
||||
|
||||
DESCRIPTION="dynamic deltup client"
|
||||
HOMEPAGE="http://linux01.gwdg.de/~nlissne/"
|
||||
SRC_URI="http://linux01.gwdg.de/~nlissne/${PN}-0.7.8.tar.bz2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~alpha ~amd64 ~sparc ~x86"
|
||||
|
||||
RDEPEND="app-portage/deltup
|
||||
dev-util/bdelta"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# portage has moved make.globals, so we just hotfix it
|
||||
sed -i -e "s:/etc/make.globals:/usr/share/portage/config/make.globals:g" "${WORKDIR}"/getdelta.sh || die "Couldn't fix make.globals path"
|
||||
|
||||
# make.conf has now two locations. This should fix it ( #461726 )
|
||||
sed -i -e "s:source /etc/make.conf:source /etc/make.conf || source /etc/portage/make.conf:" "${WORKDIR}"/getdelta.sh || die "Couldn't fix make.conf path"
|
||||
|
||||
sed -i -e "s:/bin/sh:/bin/bash:" "${WORKDIR}"/getdelta.sh || die
|
||||
dobin "${WORKDIR}"/getdelta.sh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You need to put"
|
||||
elog "FETCHCOMMAND=\"/usr/bin/getdelta.sh \\\${URI}\""
|
||||
elog "into your /etc/make.conf to make use of getdelta"
|
||||
|
||||
# make sure permissions are ok
|
||||
touch "${ROOT}"/var/log/getdelta.log
|
||||
mkdir -p "${ROOT}"/etc/deltup
|
||||
chown -R portage:portage "${ROOT}"/{var/log/getdelta.log,etc/deltup}
|
||||
chmod -R ug+rwX "${ROOT}"/{var/log/getdelta.log,etc/deltup}
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>patrick@gentoo.org</email>
|
||||
<name>Patrick Lauer</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST iwdevtools-0.1.1.tar.gz 16139 BLAKE2B effceb407319d2f8acf44db5642a55c426c73628bef9c2004dd76118dc042cbc1178975e06b14d6950cef417790693af9a98dc77e4873f0175a408ca14f71384 SHA512 b0d3a1145c3ecfc71e7f8b0d8d8e321840869037841e1faa547ad4a385751b4fb13de31b3ed497eeacbdf227a81c4f28ff6fd229b008105489ada7c1a15b88e4
|
||||
DIST iwdevtools-0.2.0.tar.gz 23498 BLAKE2B 50c946bb69ae720b27836aebb825d6b1e9545e80dda6d0c939c4be7be30f0f4017c309b2794805fc030e074cc2629bbc328545024d5f89860d05693731ab0b55 SHA512 c31d8646477f1cb8ab784441e2f16155248fc337d2138ce6780810dc7e81cdd6792d610db26e8f7759f89f50732c784bf4938c4a861420412f0056fd9b391a08
|
||||
DIST iwdevtools-0.3.1.tar.gz 25597 BLAKE2B 1129ff57f95c27156023752a85b9cb25f66c75d2548a2d7be284b5de9b2b1dee7ed56fa806d175c7751f29a05529f659de7524f967484deacf9138e83899dd9a SHA512 4504d8fb1ff18497fc747482ab1c707b6c581f6b4ac74a494459e4e5e45867e2ee8e39e60b020225509a6c5654e40b31f17d9de0300a2ef76e9d5df248c01847
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit meson optfeature
|
||||
|
||||
DESCRIPTION="Small tools to aid with Gentoo development, primarily intended for QA"
|
||||
HOMEPAGE="https://github.com/ionenwks/iwdevtools"
|
||||
SRC_URI="https://github.com/ionenwks/iwdevtools/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
app-misc/pax-utils
|
||||
app-portage/portage-utils
|
||||
sys-apps/diffutils
|
||||
sys-apps/file
|
||||
sys-apps/portage
|
||||
sys-apps/util-linux"
|
||||
|
||||
src_configure() {
|
||||
meson_src_configure -Ddocdir=${PF}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "detecting potential ABI issues using abidiff" dev-util/libabigail
|
||||
|
||||
if [[ ! ${REPLACING_VERSIONS} ]]; then
|
||||
elog "To (optionally) integrate with portage, inspect the .bashrc files installed"
|
||||
elog "at ${EROOT}/usr/share/${PN}. If not already using a bashrc, you can use"
|
||||
elog "the example bashrc directly by creating a symlink:"
|
||||
elog
|
||||
elog " ln -s ../../../usr/share/${PN}/bashrc ${EROOT}/etc/portage/bashrc"
|
||||
elog
|
||||
elog "See ${EROOT}/usr/share/doc/${PF}/README.rst* for info on tools."
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST lout-3.40.tar.gz 2172651 BLAKE2B 0bf2ee498d6fbb91e353d46fe1f7f0f44053be174df901b08ee630f0b4935e19c056a50e2eda4d07ab69aac6d7bf738b42277bb37060e967db73ace6a51029af SHA512 adffbb44b9328f0d64b1c8f08fe0217307b1cca870827ca54e0aaae5a2258f519e3e6f0adc715ba6d192dd731ab26c2cc86aa8611d991d5665503842e599c061
|
@ -1,33 +0,0 @@
|
||||
--- lout-3.38/makefile.orig 2008-10-13 23:35:17.000000000 +0200
|
||||
+++ lout-3.38/makefile 2009-09-04 16:40:00.000000000 +0200
|
||||
@@ -295,11 +295,9 @@
|
||||
ZLIB =
|
||||
ZLIBPATH =
|
||||
|
||||
-CC = gcc
|
||||
-
|
||||
RCOPY = cp -r
|
||||
|
||||
-COPTS = -ansi -pedantic -Wall -O3
|
||||
+COPTS += -ansi -pedantic -Wall
|
||||
|
||||
CFLAGS = -DOS_UNIX=$(OSUNIX) \
|
||||
-DOS_DOS=$(OSDOS) \
|
||||
@@ -333,7 +331,7 @@
|
||||
z49.o z50.o z51.o z52.o
|
||||
|
||||
lout: $(OBJS)
|
||||
- $(CC) -o lout $(OBJS) $(ZLIB) -lm
|
||||
+ $(CC) $(COPTS) $(LDFLAGS) -o lout $(OBJS) $(ZLIB) -lm
|
||||
chmod a+x lout
|
||||
|
||||
$(OBJS): externs.h
|
||||
@@ -341,7 +339,7 @@
|
||||
externs.h:
|
||||
|
||||
prg2lout: prg2lout.c
|
||||
- $(CC) $(COPTS) -o prg2lout prg2lout.c
|
||||
+ $(CC) $(COPTS) $(LDFLAGS) -o prg2lout prg2lout.c
|
||||
chmod a+x prg2lout
|
||||
|
||||
all: lout prg2lout
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
IUSE="zlib doc"
|
||||
|
||||
DESCRIPTION="High-level language for document formatting"
|
||||
HOMEPAGE="http://savannah.nongnu.org/projects/lout"
|
||||
SRC_URI="mirror://nongnu/lout/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
|
||||
DEPEND="zlib? ( >=sys-libs/zlib-1.1.4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.38-makefile.patch"
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
local myconf
|
||||
use zlib && myconf="$myconf PDF_COMPRESSION=1 ZLIB=-lz"
|
||||
emake COPTS="${CFLAGS}" BINDIR="${EPREFIX}"/usr/bin \
|
||||
LOUTLIBDIR="${EPREFIX}"/usr/share/lout \
|
||||
LOUTDOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
|
||||
MANDIR="${EPREFIX}"/usr/share/man/man1 \
|
||||
${myconf} lout prg2lout || die "emake prg2lout lout failed"
|
||||
}
|
||||
|
||||
compile_doc() {
|
||||
#
|
||||
# SYNOPSIS: compile_doc file times
|
||||
#
|
||||
|
||||
einfo "${1}:"
|
||||
# yes, it *is* necessary to run this 6 times...
|
||||
for i in $(seq 1 $(expr $2 - 1)) ; do
|
||||
einfo " pass $i"
|
||||
lout all -o ${docdir}/$1 -e /dev/null
|
||||
done
|
||||
# in the last one, let errors be reported
|
||||
einfo " final pass"
|
||||
lout all -o ${docdir}/$1 || die "final pass failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local bindir libdir docdir mandir
|
||||
bindir=${ED}usr/bin
|
||||
libdir=${ED}usr/share/lout
|
||||
docdir=${ED}usr/share/doc/${PF}
|
||||
mandir=${ED}usr/share/man/man1
|
||||
export LOUTLIB=${libdir}
|
||||
export PATH="${bindir}:${PATH}"
|
||||
|
||||
mkdir -p ${bindir} ${docdir} ${mandir}
|
||||
|
||||
make BINDIR=${bindir} \
|
||||
LOUTLIBDIR=${libdir} \
|
||||
LOUTDOCDIR=${docdir} \
|
||||
MANDIR=${mandir} \
|
||||
install installdoc installman || die "make install failed"
|
||||
|
||||
lout -x -s "${ED}"usr/share/lout/include/init || die "lout init failed"
|
||||
|
||||
mv ${docdir}/README{,.docs}
|
||||
dodoc README READMEPDF blurb blurb.short whatsnew
|
||||
|
||||
if use doc ; then
|
||||
einfo "building postscript documentation (may take a while)"
|
||||
cd doc/user
|
||||
compile_doc user.ps 6
|
||||
cd ../design
|
||||
compile_doc design.ps 3
|
||||
cd ../expert
|
||||
compile_doc expert.ps 4
|
||||
cd ../slides
|
||||
compile_doc slides.ps 2
|
||||
fi
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">lout</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST libcutl-1.10.0.tar.bz2 763920 BLAKE2B 8d6741b19cc7c1d320225b6f412c08d6dd1d975a9f1e2f55914a23b8813e42228616ea525905bcf456f4b6e60a72fbf4128a03275833975ce3b8c87d6e4cb631 SHA512 c03f39e87e660fdd07aa9cccb2d82d411ca8226b56475c74b7b2147b90cdb83d13246bc0c09513e407271bcf568d6a08f92c9006e48d1e7f06e4b18dde34dc5f
|
@ -1,162 +0,0 @@
|
||||
Use regex from C++11 instead of boost/tr1's version (the latter is gone as of boost 1.65).
|
||||
Patch: https://svnweb.freebsd.org/ports/head/devel/libcutl/files/patch-cutl_re_re.cxx?view=markup&pathrev=445764
|
||||
Bug: https://bugs.gentoo.org/show_bug.cgi?id=630016
|
||||
|
||||
--- a/cutl/re/re.cxx
|
||||
+++ b/cutl/re/re.cxx
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifndef LIBCUTL_EXTERNAL_BOOST
|
||||
# include <cutl/details/boost/tr1/regex.hpp>
|
||||
#else
|
||||
-# include <boost/tr1/regex.hpp>
|
||||
+# include <regex>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
@@ -40,17 +40,17 @@
|
||||
struct basic_regex<C>::impl
|
||||
{
|
||||
typedef basic_string<C> string_type;
|
||||
- typedef tr1::basic_regex<C> regex_type;
|
||||
+ typedef std::basic_regex<C> regex_type;
|
||||
typedef typename regex_type::flag_type flag_type;
|
||||
|
||||
impl () {}
|
||||
impl (regex_type const& r): r (r) {}
|
||||
impl (string_type const& s, bool icase)
|
||||
{
|
||||
- flag_type f (tr1::regex_constants::ECMAScript);
|
||||
+ flag_type f (std::regex_constants::ECMAScript);
|
||||
|
||||
if (icase)
|
||||
- f |= tr1::regex_constants::icase;
|
||||
+ f |= std::regex_constants::icase;
|
||||
|
||||
r.assign (s, f);
|
||||
}
|
||||
@@ -118,15 +118,15 @@
|
||||
impl_ = s == 0 ? new impl : new impl (*s, icase);
|
||||
else
|
||||
{
|
||||
- impl::flag_type f (tr1::regex_constants::ECMAScript);
|
||||
+ impl::flag_type f (std::regex_constants::ECMAScript);
|
||||
|
||||
if (icase)
|
||||
- f |= tr1::regex_constants::icase;
|
||||
+ f |= std::regex_constants::icase;
|
||||
|
||||
impl_->r.assign (*s, f);
|
||||
}
|
||||
}
|
||||
- catch (tr1::regex_error const& e)
|
||||
+ catch (std::regex_error const& e)
|
||||
{
|
||||
throw basic_format<char> (s == 0 ? "" : *s, e.what ());
|
||||
}
|
||||
@@ -146,15 +146,15 @@
|
||||
impl_ = s == 0 ? new impl : new impl (*s, icase);
|
||||
else
|
||||
{
|
||||
- impl::flag_type f (tr1::regex_constants::ECMAScript);
|
||||
+ impl::flag_type f (std::regex_constants::ECMAScript);
|
||||
|
||||
if (icase)
|
||||
- f |= tr1::regex_constants::icase;
|
||||
+ f |= std::regex_constants::icase;
|
||||
|
||||
impl_->r.assign (*s, f);
|
||||
}
|
||||
}
|
||||
- catch (tr1::regex_error const& e)
|
||||
+ catch (std::regex_error const& e)
|
||||
{
|
||||
throw basic_format<wchar_t> (s == 0 ? L"" : *s, e.what ());
|
||||
}
|
||||
@@ -166,28 +166,28 @@
|
||||
bool basic_regex<char>::
|
||||
match (string_type const& s) const
|
||||
{
|
||||
- return tr1::regex_match (s, impl_->r);
|
||||
+ return std::regex_match (s, impl_->r);
|
||||
}
|
||||
|
||||
template <>
|
||||
bool basic_regex<wchar_t>::
|
||||
match (string_type const& s) const
|
||||
{
|
||||
- return tr1::regex_match (s, impl_->r);
|
||||
+ return std::regex_match (s, impl_->r);
|
||||
}
|
||||
|
||||
template <>
|
||||
bool basic_regex<char>::
|
||||
search (string_type const& s) const
|
||||
{
|
||||
- return tr1::regex_search (s, impl_->r);
|
||||
+ return std::regex_search (s, impl_->r);
|
||||
}
|
||||
|
||||
template <>
|
||||
bool basic_regex<wchar_t>::
|
||||
search (string_type const& s) const
|
||||
{
|
||||
- return tr1::regex_search (s, impl_->r);
|
||||
+ return std::regex_search (s, impl_->r);
|
||||
}
|
||||
|
||||
template <>
|
||||
@@ -196,13 +196,13 @@
|
||||
string_type const& sub,
|
||||
bool first_only) const
|
||||
{
|
||||
- tr1::regex_constants::match_flag_type f (
|
||||
- tr1::regex_constants::format_default);
|
||||
+ std::regex_constants::match_flag_type f (
|
||||
+ std::regex_constants::format_default);
|
||||
|
||||
if (first_only)
|
||||
- f |= tr1::regex_constants::format_first_only;
|
||||
+ f |= std::regex_constants::format_first_only;
|
||||
|
||||
- return tr1::regex_replace (s, impl_->r, sub, f);
|
||||
+ return std::regex_replace (s, impl_->r, sub, f);
|
||||
}
|
||||
|
||||
template <>
|
||||
@@ -211,13 +211,13 @@
|
||||
string_type const& sub,
|
||||
bool first_only) const
|
||||
{
|
||||
- tr1::regex_constants::match_flag_type f (
|
||||
- tr1::regex_constants::format_default);
|
||||
+ std::regex_constants::match_flag_type f (
|
||||
+ std::regex_constants::format_default);
|
||||
|
||||
if (first_only)
|
||||
- f |= tr1::regex_constants::format_first_only;
|
||||
+ f |= std::regex_constants::format_first_only;
|
||||
|
||||
- return tr1::regex_replace (s, impl_->r, sub, f);
|
||||
+ return std::regex_replace (s, impl_->r, sub, f);
|
||||
}
|
||||
}
|
||||
}
|
||||
--- a/m4/libboost.m4
|
||||
+++ b/m4/libboost.m4
|
||||
@@ -129,13 +129,13 @@
|
||||
AC_DEFUN([LIBBOOST_REGEX], [
|
||||
LIBBOOST_LIB([regex],[
|
||||
AC_LANG_SOURCE([
|
||||
-#include <boost/tr1/regex.hpp>
|
||||
+#include <regex>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
- std::tr1::regex r ("te.t", std::tr1::regex_constants::ECMAScript);
|
||||
- return std::tr1::regex_match ("test", r) ? 0 : 1;
|
||||
+ std::regex r ("te.t", std::regex_constants::ECMAScript);
|
||||
+ return std::regex_match ("test", r) ? 0 : 1;
|
||||
}
|
||||
])],
|
||||
[$1],
|
@ -1,53 +0,0 @@
|
||||
Make dtors noexcept(false) when compiling in C++11 and above. This avoids silent
|
||||
breakage due to the semantic exception changes between C++98 and C++11.
|
||||
|
||||
--- a/cutl/fs/auto-remove.cxx
|
||||
+++ b/cutl/fs/auto-remove.cxx
|
||||
@@ -13,6 +13,9 @@
|
||||
{
|
||||
auto_remove::
|
||||
~auto_remove ()
|
||||
+#if __cplusplus >= 201103L
|
||||
+ noexcept(false)
|
||||
+#endif
|
||||
{
|
||||
if (!canceled_)
|
||||
{
|
||||
@@ -23,6 +26,9 @@
|
||||
|
||||
auto_removes::
|
||||
~auto_removes ()
|
||||
+#if __cplusplus >= 201103L
|
||||
+ noexcept(false)
|
||||
+#endif
|
||||
{
|
||||
if (!canceled_)
|
||||
{
|
||||
--- a/cutl/fs/auto-remove.hxx
|
||||
+++ b/cutl/fs/auto-remove.hxx
|
||||
@@ -26,7 +26,11 @@
|
||||
{
|
||||
}
|
||||
|
||||
- ~auto_remove ();
|
||||
+ ~auto_remove ()
|
||||
+#if __cplusplus >= 201103L
|
||||
+ noexcept(false)
|
||||
+#endif
|
||||
+ ;
|
||||
|
||||
void
|
||||
cancel ()
|
||||
@@ -51,7 +55,11 @@
|
||||
struct LIBCUTL_EXPORT auto_removes
|
||||
{
|
||||
auto_removes (): canceled_ (false) {}
|
||||
- ~auto_removes ();
|
||||
+ ~auto_removes ()
|
||||
+#if __cplusplus >= 201103L
|
||||
+ noexcept(false)
|
||||
+#endif
|
||||
+ ;
|
||||
|
||||
void
|
||||
add (path const& p)
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools flag-o-matic versionator
|
||||
|
||||
DESCRIPTION="A collection of C++ libraries (successor of libcult)"
|
||||
HOMEPAGE="https://www.codesynthesis.com/projects/libcutl/"
|
||||
SRC_URI="https://www.codesynthesis.com/download/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/expat
|
||||
dev-libs/boost:="
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.10.0-fix-c++14.patch
|
||||
"${FILESDIR}"/${PN}-1.10.0-boost-1.65-tr1.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r cutl/details/{boost,expat} || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# ensure <regex> works on GCC 5 and below
|
||||
# bug 630016
|
||||
append-cxxflags -std=c++14
|
||||
|
||||
econf \
|
||||
--disable-static \
|
||||
--with-external-boost \
|
||||
--with-external-expat
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# package provides .pc files
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST libxsd-frontend-2.0.0.tar.bz2 66784 BLAKE2B 3d41a97dc01f7d9231f981043ab00523f27decba428395940dd008b9a35e434e9f1a002f4214c11fe4fb9d228149eb3e05ba7da3d7682ae9d334d3d0db66dc1d SHA512 8a296fdfe2e562237d46774b33ee82e8f67835b0869c03ffdf04570db1e6f398cf97734685d44c2207abbb73cea20b57e53c8fd80a121f98196c1c7d4bacbc68
|
@ -1,87 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="A compiler frontend for the W3C XML Schema definition language"
|
||||
HOMEPAGE="https://www.codesynthesis.com/projects/libxsd-frontend/"
|
||||
SRC_URI="https://www.codesynthesis.com/download/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/xerces-c-3.0.0
|
||||
dev-libs/boost:=[threads(+)]
|
||||
dev-cpp/libcutl"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/build-0.3.10"
|
||||
|
||||
src_configure() {
|
||||
mkdir -p \
|
||||
build/{ld,cxx/gnu} \
|
||||
build/import/lib{boost,cult,frontend-elements,xerces-c} || die
|
||||
|
||||
cat >> build/cxx/configuration-dynamic.make <<- EOF || die
|
||||
cxx_id := gnu
|
||||
cxx_optimize := n
|
||||
cxx_debug := n
|
||||
cxx_rpath := n
|
||||
cxx_pp_extra_options :=
|
||||
cxx_extra_options := ${CXXFLAGS}
|
||||
cxx_ld_extra_options := ${LDFLAGS}
|
||||
cxx_extra_libs :=
|
||||
cxx_extra_lib_paths :=
|
||||
EOF
|
||||
|
||||
cat >> build/cxx/gnu/configuration-dynamic.make <<- EOF || die
|
||||
cxx_gnu := $(tc-getCXX)
|
||||
cxx_gnu_libraries :=
|
||||
cxx_gnu_optimization_options :=
|
||||
EOF
|
||||
|
||||
cat >> build/ld/configuration-lib-dynamic.make <<- EOF || die
|
||||
ld_lib_type := shared
|
||||
EOF
|
||||
|
||||
# boost
|
||||
cat >> build/import/libboost/configuration-dynamic.make <<- EOF || die
|
||||
libboost_installed := y
|
||||
libboost_system := y
|
||||
EOF
|
||||
|
||||
# libcutl
|
||||
cat >> build/import/libcutl/configuration-dynamic.make <<- EOF || die
|
||||
libcutl_installed := y
|
||||
EOF
|
||||
|
||||
# xerces-c
|
||||
cat >> build/import/libxerces-c/configuration-dynamic.make <<- EOF || die
|
||||
libxerces_c_installed := y
|
||||
EOF
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake verbose=1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
|
||||
dolib.so xsd-frontend/libxsd-frontend.so
|
||||
|
||||
# clean header dir of build files
|
||||
find xsd-frontend \( -iname '*.cxx' -o -iname 'makefile*' \
|
||||
-o -iname '*.o' -o -iname '*.d' -o -iname '*.m4' -o -iname '*.l' \
|
||||
-o -iname '*.cpp-options' -o -iname '*.so' \) -exec rm -rf '{}' + || die
|
||||
rm -rf xsd-frontend/arch || die
|
||||
doheader -r xsd-frontend
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export LD_LIBRARY_PATH="${S}/xsd-frontend:${LD_LIBRARY_PATH}"
|
||||
default
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST jsr101-1.4.tar.bz2 18614 BLAKE2B c181e07db54cdf13ec15c18b8340b4f4bd9befee62aace934fd2ffcc12de386d4749e63d16dd654a7c369795c12f7c71bf4628a7878540f8c486302f65699b6e SHA512 a29cca7e0ed1eb8aff4b70da6d804cb1cd61cdd9a800f420be6794aa927bca6a4146a95d71c8521d4dc16a0da56419f3e82079d942194380dbddb9d44d773317
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Java(TM) API for XML-Based RPC Specification Interface Classes"
|
||||
HOMEPAGE="http://jcp.org/aboutJava/communityprocess/first/jsr101/"
|
||||
SRC_URI="https://dev.gentoo.org/~monsieurp/packages/${P}.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="
|
||||
java-virtuals/saaj-api:0
|
||||
java-virtuals/servlet-api:3.0"
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-1.6
|
||||
${CDEPEND}"
|
||||
|
||||
JAVA_SRC_DIR="src"
|
||||
|
||||
JAVA_GENTOO_CLASSPATH="
|
||||
servlet-api-3.0
|
||||
saaj-api
|
||||
"
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST go1.16.6.src.tar.gz 20923044 BLAKE2B 7a46d33f947c1d7f2c6f5e0085cba89520fdb8859fc804c8318b85d0b0e888b74ca074affcf3119c2d80157485e8f679e37390cbd58c644b38948f7d15428b7b SHA512 82634763dce636c9e9cba1bbf74a669e8b88e6df095e80672f295edb82cc1fc4b8ffde91a1f56c3470f2c4d9ee0404f65146d7478b645890623f6c463513a61f
|
||||
DIST go1.16.7.src.tar.gz 20922206 BLAKE2B 65e53684f66975313caf4661a7c52b178dde8b32ac40f98fe8164fe035c835e1407ef442d41c7cbf907d5093703e440d0e62c398f8ed541bad074b537f6dd6ff SHA512 1aab6f3dcbae71ebfa29a1d9a46613a3aa48de01cee82b48842d92abbb4ee57db019a4d47a3f12af9553c8e2a982e90114a06ee187f908f7c29245d9786b9186
|
||||
DIST go1.17.src.tar.gz 22178549 BLAKE2B 86cb84ff782eaee3fc0411b1f31cd985f3fdcda7b2709f3a94cba0fbe827ac13632d0476e1f67deaf06d2352c2ea3ac9217db7d170702dffff6a64beabdb0814 SHA512 bb94d69555faa103bc092ce85b73168954a553a5c72e4b38c39bd99a3eb4db679f352685e66507b0945ed12676eb2a0c51674e456f68a9a5b98c3ec6a948d35b
|
||||
|
@ -1,194 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* amd64 arm arm64 ppc64 ~riscv ~s390 x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="cpu_flags_x86_sse2"
|
||||
|
||||
BDEPEND="|| (
|
||||
dev-lang/go
|
||||
dev-lang/go-bootstrap )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# This package triggers "unrecognized elf file(s)" notices on riscv.
|
||||
# https://bugs.gentoo.org/794046
|
||||
QA_PREBUILT='.*'
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch() {
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
riscv) echo riscv64 ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm() {
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os() {
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple() {
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile() {
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if has_version -b dev-lang/go; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
|
||||
elif has_version -b dev-lang/go-bootstrap; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
|
||||
else
|
||||
eerror "Go cannot be built without go or go-bootstrap installed"
|
||||
die "Should not be here, please report a bug"
|
||||
fi
|
||||
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="${PWD}"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
use arm && export GOARM=$(go_arm)
|
||||
use x86 && export GO386=$(usex cpu_flags_x86_sse2 '' 'softfloat')
|
||||
|
||||
cd src
|
||||
bash -x ./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
cd ..
|
||||
rm -fr pkg/*_race || die
|
||||
rm -fr pkg/obj/go-build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# The use of cp is deliberate in order to retain permissions
|
||||
# [1] https://golang.org/issue/2775
|
||||
dodir /usr/lib/go
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
einstalldocs
|
||||
|
||||
# testdata directories are not needed on the installed system
|
||||
rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
|
||||
|
||||
local bin_path
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
local f x
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
|
||||
# install the @golang-rebuild set for Portage
|
||||
insinto /usr/share/portage/config/sets
|
||||
newins "${FILESDIR}"/go-sets.conf go.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[[ -z ${REPLACING_VERSIONS} ]] && return
|
||||
einfo "After ${CATEGORY}/${PN} is updated it is recommended to rebuild"
|
||||
einfo "all packages compiled with previous versions of ${CATEGORY}/${PN}"
|
||||
einfo "due to the static linking nature of go."
|
||||
einfo "If this is not done, the packages compiled with the older"
|
||||
einfo "version of the compiler will not be updated until they are"
|
||||
einfo "updated individually, which could mean they will have"
|
||||
einfo "vulnerabilities."
|
||||
einfo "Run 'emerge @golang-rebuild' to rebuild all 'go' packages"
|
||||
einfo "See https://bugs.gentoo.org/752153 for more info"
|
||||
}
|
Binary file not shown.
@ -0,0 +1,40 @@
|
||||
https://github.com/boostorg/math/commit/720536a08e4e33639869e1b7a99d9ec923409c0b
|
||||
https://github.com/boostorg/math/issues/675
|
||||
https://github.com/boostorg/math/pull/676
|
||||
|
||||
From 720536a08e4e33639869e1b7a99d9ec923409c0b Mon Sep 17 00:00:00 2001
|
||||
From: Matt Borland <matt@mattborland.com>
|
||||
Date: Mon, 23 Aug 2021 17:48:28 +0300
|
||||
Subject: [PATCH] Fix for issue 675 (#676)
|
||||
|
||||
--- a/boost/math/tools/header_deprecated.hpp
|
||||
+++ a/boost/math/tools/header_deprecated.hpp
|
||||
@@ -6,12 +6,22 @@
|
||||
#ifndef BOOST_MATH_TOOLS_HEADER_DEPRECATED
|
||||
#define BOOST_MATH_TOOLS_HEADER_DEPRECATED
|
||||
|
||||
-#ifdef _MSC_VER
|
||||
-// Expands to "This header is deprecated; use expr instead."
|
||||
-#define BOOST_MATH_HEADER_DEPRECATED(expr) __pragma("This header is deprecated; use " expr " instead.")
|
||||
-#else // GNU, Clang, Intel, IBM, etc.
|
||||
+#ifndef BOOST_MATH_STANDALONE
|
||||
+
|
||||
+# include <boost/config/header_deprecated.hpp>
|
||||
+# define BOOST_MATH_HEADER_DEPRECATED(expr) BOOST_HEADER_DEPRECATED(expr)
|
||||
+
|
||||
+#else
|
||||
+
|
||||
+# ifdef _MSC_VER
|
||||
// Expands to "This header is deprecated; use expr instead."
|
||||
-#define BOOST_MATH_HEADER_DEPRECATED(expr) _Pragma("This header is deprecated; use " expr " instead.")
|
||||
-#endif
|
||||
+# define BOOST_MATH_HEADER_DEPRECATED(expr) __pragma("This header is deprecated; use " expr " instead.")
|
||||
+# else // GNU, Clang, Intel, IBM, etc.
|
||||
+// Expands to "This header is deprecated use expr instead"
|
||||
+# define BOOST_MATH_HEADER_DEPRECATED_MESSAGE(expr) _Pragma(#expr)
|
||||
+# define BOOST_MATH_HEADER_DEPRECATED(expr) BOOST_MATH_HEADER_DEPRECATED_MESSAGE(message "This header is deprecated use " expr " instead")
|
||||
+# endif
|
||||
+
|
||||
+#endif // BOOST_MATH_STANDALONE
|
||||
|
||||
#endif // BOOST_MATH_TOOLS_HEADER_DEPRECATED
|
@ -1,3 +1,4 @@
|
||||
DIST ell-0.40.tar.xz 524256 BLAKE2B de7326cfc7d00970fdeb5f19e38b9c68e6443544f5a6397aa031a7dcd0d61c77ab72303ad51d36e8fbc2c34c954631636f7f42bae0c40cd75498882ab78e2c85 SHA512 bc721e300e5b689dc51f794019e731eb252ad74dd199bec7685373ffa32ad42950aae9e36cb74d3b6590016c046589acb3ae8c009c4a14bd89331913392e923e
|
||||
DIST ell-0.41.tar.xz 525240 BLAKE2B 80614190c1237fdbb867300418d474d50e163fba7ca15f4c74c3019b4d407da8319b67be5a88886894dd8869620bae1338e91d28993077690e93260ed1dc3cf6 SHA512 bfbc18195126196776a0d00b4ae8bd8358a6cd1d2f8221132fdae1f323172f148a3faad84a951774ca38a3a72e8d96512b9cac84d9ef3a6cddf4b1490b34453e
|
||||
DIST ell-0.42.tar.xz 527724 BLAKE2B fee51c2a44afcd5e40ee38f8d0e24fefab6c98ff0b58c842169d7957e1aeaa89bdcb2aecbe14b3558820c3226c5884e6512045e3f1b9bfcf2f77c953d9674936 SHA512 a859cf0b6b2e5e91fcd9718bb0ea8073b819c264d914eca8a2c67b27f170a830df1b2256184df03010d836da3a081020ee1a4fac88d39c0794da88824dc39b71
|
||||
DIST ell-0.43.tar.xz 529828 BLAKE2B ead74596f3598cfbab0a03d7c93dd6c9c8ceccaa69ffd4e11bcfcfefd04833cb5438591d9622cc615ddaa28de27333110059c863df9840552c3e32dcd9e20055 SHA512 b26c860446d693e6384007dc5e230fe252a12ec8ada52b67082c68e405ff3ad0cbeb4d72af028473a66018e220b1713275014fd3a62dcb9fcd8c19d8f6ce5b9b
|
||||
|
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic linux-info multilib-minimal
|
||||
|
||||
DESCRIPTION="Embedded Linux Library provides core, low-level functionality for system daemons"
|
||||
HOMEPAGE="https://01.org/ell"
|
||||
if [[ "${PV}" == *9999 ]] ; then
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git"
|
||||
else
|
||||
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/libs/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
fi
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="pie test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="test? ( sys-apps/dbus )"
|
||||
|
||||
CONFIG_CHECK="
|
||||
~TIMERFD
|
||||
~EVENTFD
|
||||
~CRYPTO_USER_API
|
||||
~CRYPTO_USER_API_HASH
|
||||
~CRYPTO_MD5
|
||||
~CRYPTO_SHA1
|
||||
~KEY_DH_OPERATIONS
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
[[ "${PV}" == *9999 ]] && eautoreconf
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
append-cflags "-fsigned-char" #662694
|
||||
local myeconfargs=(
|
||||
$(use_enable pie)
|
||||
)
|
||||
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
local DOCS=( ChangeLog README )
|
||||
einstalldocs
|
||||
|
||||
find "${ED}" -name "*.la" -delete || die
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST libbsd-0.10.0.tar.xz 393576 BLAKE2B 66005a511dae7fb799322c813b8ea058ab460e3b9044756d6efad5de741d8f70270496f09803bbce8cd0000ff37e998f18e092037c850826c3c8e3f47ddfdb28 SHA512 b75529785b16c93d31401187f8a58258fbebe565dac071c8311775c913af989f62cd29d5ce2651af3ea6221cffd31cf04826577d3e546ab9ca14340f297777b9
|
||||
DIST libbsd-0.11.3.tar.xz 399712 BLAKE2B 1af04b8fcbc0bfa59fba549639d61a33ac934fe7ee42b506d1b0452e0b836b0bfdd3d8739de90465be46fe6a9d326a2d11bcf72280aa19ccba81db5da6d63d89 SHA512 a7015ea1ffa3766b1a4690526a25231898ad8275149b31fb6801082450172249997c36165626d101ffce53b59767a46676eebc0806426922fe4e773a0376c1f5
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit multilib-minimal
|
||||
|
||||
DESCRIPTION="An library to provide useful functions commonly found on BSD systems"
|
||||
HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd"
|
||||
SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static-libs"
|
||||
|
||||
DEPEND=">=sys-kernel/linux-headers-3.17"
|
||||
RDEPEND=""
|
||||
|
||||
pkg_setup() {
|
||||
local f="${EROOT}/usr/$(get_libdir)/${PN}.a"
|
||||
local m="You need to remove ${f} by hand or re-emerge sys-libs/glibc first."
|
||||
if ! has_version ${CATEGORY}/${PN}; then
|
||||
if [[ -e ${f} ]]; then
|
||||
eerror "${m}"
|
||||
die "${m}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# The build system will install libbsd-ctor.a despite of USE="-static-libs"
|
||||
# which is correct, see:
|
||||
# https://gitlab.freedesktop.org/libbsd/libbsd/commit/c5b959028734ca2281250c85773d9b5e1d259bc8
|
||||
ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
From 6f0503b1930a0776ef45fa7bc87a87e9dc69dacf Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppym@gentoo.org>
|
||||
Date: Sat, 21 Aug 2021 15:09:58 -0400
|
||||
Subject: [PATCH] Skip test-double if the fr_FR.UTF-8 locale is not available
|
||||
|
||||
Bug: https://bugs.gentoo.org/809359
|
||||
---
|
||||
tests/test-double.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test-double.c b/tests/test-double.c
|
||||
index 0092d8b..7ba3abe 100644
|
||||
--- a/tests/test-double.c
|
||||
+++ b/tests/test-double.c
|
||||
@@ -54,7 +54,11 @@ test_double (void)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
setlocale (LC_ALL, NULL);
|
||||
- setlocale (LC_NUMERIC, "fr_FR.UTF-8");
|
||||
+ if (!setlocale (LC_NUMERIC, "fr_FR.UTF-8"))
|
||||
+ /* Skip the test if fr_FR.UTF-8 is not available */
|
||||
+ /* https://mesonbuild.com/Unit-tests.html#skipped-tests-and-hard-errors */
|
||||
+ return 77;
|
||||
+
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
g_test_add_func ("/gudev/double", test_double);
|
||||
--
|
||||
2.33.0
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue