Merge pull request #300 from flatcar-linux/krnowak/pkg-updates-2016

Update packages and eclasses from 2016
This commit is contained in:
Krzesimir Nowak 2022-03-02 19:39:01 +01:00 committed by GitHub
commit 2f3761b783
111 changed files with 1495 additions and 7814 deletions

View File

@ -1,167 +0,0 @@
# ChangeLog for app-cdr/cdrtools
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*cdrtools-3.01_alpha30 (09 Aug 2015)
*cdrtools-3.01_alpha24 (09 Aug 2015)
*cdrtools-3.01_alpha17 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org>
+cdrtools-3.01_alpha17.ebuild, +cdrtools-3.01_alpha24.ebuild,
+cdrtools-3.01_alpha30.ebuild, +metadata.xml:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
*cdrtools-3.01_alpha31 (02 Sep 2015)
02 Sep 2015; Daniel Pielmeier <billie@gentoo.org>
+cdrtools-3.01_alpha31.ebuild:
Version bump
Package-Manager: portage-2.2.20.1
28 Sep 2015; Daniel Pielmeier <billie@gentoo.org>
-cdrtools-3.01_alpha30.ebuild:
Remove old.
Package-Manager: portage-2.2.20.1
*cdrtools-3.02_alpha02 (25 Nov 2015)
25 Nov 2015; Daniel Pielmeier <billie@gentoo.org>
+cdrtools-3.02_alpha02.ebuild:
Version bump.
Package-Manager: portage-2.2.20.1
*cdrtools-3.02_alpha05 (24 Jan 2016)
24 Jan 2016; Daniel Pielmeier <billie@gentoo.org>
cdrtools-3.01_alpha17.ebuild, cdrtools-3.01_alpha24.ebuild,
cdrtools-3.01_alpha31.ebuild, cdrtools-3.02_alpha02.ebuild,
+cdrtools-3.02_alpha05.ebuild:
Version bump.
Package-Manager: portage-2.2.26
24 Jan 2016; Daniel Pielmeier <billie@gentoo.org>
-cdrtools-3.01_alpha31.ebuild:
Remove old.
Package-Manager: portage-2.2.26
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Replace all herds with appropriate projects (GLEP 67)
Replace all uses of herd with appropriate project maintainers, or no
maintainers in case of herds requested to be disbanded.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)
*cdrtools-3.02_alpha06 (13 Feb 2016)
13 Feb 2016; Daniel Pielmeier <billie@gentoo.org>
+cdrtools-3.02_alpha06.ebuild:
Version bump.
Package-Manager: portage-2.2.26
13 Feb 2016; Daniel Pielmeier <billie@gentoo.org>
-cdrtools-3.02_alpha02.ebuild:
Remove old.
Package-Manager: portage-2.2.26
03 Apr 2016; Daniel Pielmeier <billie@gentoo.org>
-cdrtools-3.02_alpha05.ebuild:
Remove old.
Package-Manager: portage-2.2.26
09 Apr 2016; Anthony G. Basile <blueness@gentoo.org>
cdrtools-3.02_alpha06.ebuild, +files/cdrtools-fix-clone-uclibc.patch:
avoid clash with clone() on uclibc, bug #486782
Package-Manager: portage-2.2.26
17 Apr 2016; Patrice Clement <monsieurp@gentoo.org> metadata.xml:
Fix metadata.xml file.
Package-Manager: portage-2.2.26
07 May 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Add missing upstream maintainer's name
13 May 2016; Agostino Sarubbo <ago@gentoo.org> cdrtools-3.02_alpha06.ebuild:
amd64 stable wrt bug #581286
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
17 May 2016; Markus Meier <maekke@gentoo.org> cdrtools-3.02_alpha06.ebuild:
arm stable, bug #581286
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="arm"
24 May 2016; Jeroen Roovers <jer@gentoo.org> cdrtools-3.02_alpha06.ebuild:
Stable for HPPA PPC64 (bug #581286).
Package-Manager: portage-2.3.0_rc1
RepoMan-Options: --ignore-arches
31 May 2016; Tobias Klausmann <klausman@gentoo.org>
cdrtools-3.02_alpha06.ebuild:
3.02_alpha06-r0: add alpha keyword
Gentoo-Bug: 581286
Package-Manager: portage-2.3.0_rc1

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1 @@
AUX cdrtools-fix-clone-uclibc.patch 2582 SHA256 e79031d3a1152792ffa62fbd860eaff639f02d966cae76527c519a60b21bd02d SHA512 23031747c1d7bc0292beb754f059381df1f1ac7851c9fdb7f296c933f3a9d7c4e52848f90ab50c459432628d74a7546752b299d74199259d84eb89ce92ae0077 WHIRLPOOL 45b81f0872378072187f2f562f0e4d07ee88e04b986cfbbfd57838e24001a67e00868bc20d09ee041300b70f8644afd8ca7dbe0158057a63238bb21fea8ddd42
DIST cdrtools-3.01a17.tar.bz2 2061522 SHA256 3d613965b213ad83e4be0ba2535e784901839ea4d11a20a2beb6765f0eb76dfa SHA512 34a0579c536028b030cf828441ad55a705472646bc3a1ae962aad234fbe0b12c2bcb670511487c17086f5ba7643d1b8ae42a4a86bfe2940dc94f9744377daa8b WHIRLPOOL b718d559e0b36a576a42a38f84b3917891450d0bbab47b084eb1e906a396cf28ce47b79fd16565d4e0697311ee0c3d5abdd95b52ba2d7ae4e9f32d9b26bc26e1
DIST cdrtools-3.01a24.tar.bz2 2075400 SHA256 4d9907b84f5b65dc6ca278b6202b90b8eb68652b01aa4dda978ffede8bdd4a5b SHA512 19be30de77fca00bb06fa6325149421304c1d5ff7d40a9d842496058494fcf0e798678c661ff3ae9ebc9e4c5971917f7aabfd813a6d88ff863d7e2e5f1456766 WHIRLPOOL 4533288dffef2b702eeef2a44fd702aff3e66283d5d90c810eb177ee4f1f1aa7cfd75238bf1f2a406e9b8ccaa43c7a77fb401825f8ce806e73fdc80abcc0a45a
DIST cdrtools-3.02a06.tar.bz2 2117648 SHA256 ed79ab99414352ea9305163660b52b6a82394466bae03aebdbe2150997835eb1 SHA512 31a0743e39513841e77dcaaa52d746cafc0867ba01d46d43310f89e4ef2a0759fcac2e812aa323854daaa9a5ce8627c0612b8e461072a6066c20883ebe639c0c WHIRLPOOL 6358a39ee1fd51be417d3bb21ba7b43b8ee9b6dd71c925b7a1a8bc6f402380804f761749b3c912fc9f4a3e4d49bb4988441c3348ccfcc794847be8f0444628c9
EBUILD cdrtools-3.01_alpha17.ebuild 5122 SHA256 657c7e2eb0c074b124f934f94cbdb0280d21849aa9df68cdd9eda241d491d1c2 SHA512 f051206954a3ae51f004e47290768c0099678c124170a603e2de04e3b2625b7e10e0c963ec96289597f62df7acfd5fd6156b1624dfae3fc60cd81bc1a4c9b930 WHIRLPOOL fb32a4340117d6f02e6a23d73e33b9343b8074fc8ae0512b42d13750f894fab6ea0d6ed62af4c0a0b04b71ce2eb331f63ccdd113a47409763663f8506d11f7ab
EBUILD cdrtools-3.01_alpha24.ebuild 7871 SHA256 7a302b1f7c5fe5c80afeab874542bbec358da826404676563aec498ff4ada20e SHA512 91d115ad8dfbe7344dc1f823e079c60e99e9c7bb365636f29b76c59ae3abcf9761aa103d6f62483fb0c087b2fa8668155bb089598cedfe2db7104a375b161527 WHIRLPOOL d3505749b69979d6fb9a6db611c86b98631bbae546d290b0b4a531a21e562d4b335255514d495c11c02e5ed24b8b02d31992edb7096dac8437745e6a36361d82
EBUILD cdrtools-3.02_alpha06.ebuild 8171 SHA256 5105afa57c00e933874bf40b852e8730926bf6604f3e1bc5c3db567676756314 SHA512 e3562adee05e5bf536dbb7ddb223c174427084ceaa9512f2a4008e34e5b26a8b3a270dcb65516aee090a3341f5d037af8d9e9ab0de2b2b53ed143034edf4b7d5 WHIRLPOOL 441319a21ab3e38439280c87382f165f8b5fd26bba84fda334bac661fcf13d386317697b66e7c3dfa34847933b34096256e232a58a1e2c867f1c6f41fd40c397
MISC ChangeLog 5195 SHA256 2b32fc2e1de52afca41ab7826118e84465787ebe1e2d07c42b020e58e6a39066 SHA512 4847ce231500b15680eab748225afb3667f27ff0e565abc4e109cec8fea688414a716f2a9aedff5c5831da54e7b58b91a6afa182216bb1418a8b54c5bb63aa1b WHIRLPOOL 4c93027080200fc77589ece218eca81b448df53be8483fbdec06860feb835d6bc50cde73e7218a32875040c921e6f824b991df9b241128f454cae88ec26bc235
MISC ChangeLog-2015 54810 SHA256 a24781a62f564903e5d421a02178b731f592dd3053e4465084755b87e3405fba SHA512 ebe4c18329c93d9811cfdd2f320b45337fa3840dfdd28931502c24621d9bb714334396cb75753a52a5187fbab75a6b915bac8b9497bd8ef3d323e11146e42a04 WHIRLPOOL 9b9e8ec0905e88df239fda6a25e8c9c87de026b78969488c4ee9076886308d665f39d4743f6b702486e847fccc3f2bfbe15dae2f8b362ee967d4887400957416
MISC metadata.xml 533 SHA256 de2b429bb77ad70e4cea960e60a0c6030e2e227c74f1d51c5ef6aed451a8dc7d SHA512 ddf004043b6d96ef6ec697f2452df1df68b234e4b899c047743a8cdd971167607f91c05435bc0a7978f65e13895fecec31a20a2b2f659a696fa3e4e704e18818 WHIRLPOOL 0d599d804246578c0fd2aae8023dded4afe75114c0e296c5335b3c12992b6d85c3a0202ec90b5dcff30795bbf44f6b98cffb69af6471e55a5326b4b575c2a54c
DIST cdrtools-3.02a09.tar.bz2 2156745 BLAKE2B 3e7a7ed65faffc67d53df8dff78562dd28f2e71bb01c36f9c57c033a4a812e6a5579a212322a15c8abb5c8005d38e6e9ba5a5bfab46d9a729a673aa8ce3425e7 SHA512 59c31186f163c7aaa96083efeb0bc31e697c5d53d3343ec487eddd90dc8df6cfee50a69859a64a7004585c73a081cc453cc647c563b32ef74070d075039342d4

View File

@ -1,166 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit fcaps multilib eutils toolchain-funcs flag-o-matic gnuconfig
MY_P="${P/_alpha/a}"
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord"
HOMEPAGE="http://sourceforge.net/projects/cdrtools/"
SRC_URI="mirror://sourceforge/${PN}/$([[ -z ${PV/*_alpha*} ]] && echo 'alpha')/${MY_P}.tar.bz2"
LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="acl caps nls unicode"
RDEPEND="acl? ( virtual/acl )
caps? ( sys-libs/libcap )
nls? ( virtual/libintl )
!app-cdr/cdrkit"
DEPEND="${RDEPEND}
x11-misc/makedepend
nls? ( >=sys-devel/gettext-0.18.1.1 )"
S=${WORKDIR}/${P/_alpha[0-9][0-9]}
FILECAPS=(
cap_sys_resource,cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_ipc_lock,cap_sys_rawio+ep usr/bin/cdrecord --
cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep usr/bin/cdda2wav --
cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep usr/bin/readcd
)
src_prepare() {
gnuconfig_update
# Remove profiled make files.
find -name '*_p.mk' -delete
# Adjusting hardcoded paths.
sed -i -e 's:opt/schily:usr:' \
$(find ./ -type f -name \*.[0-9ch] -exec grep -l 'opt/schily' '{}' '+') \
|| die "sed opt/schily"
sed -i -e "s:\(^INSDIR=\t\tshare/doc/\):\1${PF}/:" \
$(find ./ -type f -exec grep -l 'INSDIR.\+doc' '{}' '+') \
|| die "sed doc"
# Respect libdir.
sed -i -e "s:\(^INSDIR=\t\t\)lib:\1$(get_libdir):" \
$(find ./ -type f -exec grep -l '^INSDIR.\+lib\(/siconv\)\?$' '{}' '+') \
|| die "sed multilib"
# Do not install static libraries.
sed -i -e 's:include\t\t.*rules.lib::' \
$(find ./ -type f -exec grep -l '^include.\+rules\.lib' '{}' '+') \
|| die "sed rules"
# Respect CC/CXX variables.
cd "${S}"/RULES
local tcCC=$(tc-getCC)
local tcCXX=$(tc-getCXX)
sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \
rules1.top || die "sed rules1.top"
sed -i -e "/^\(CC\|DYNLD\|LDCC\|MKDEP\)/s|gcc|${tcCC}|" \
-e "/^\(CC++\|DYNLDC++\|LDCC++\|MKC++DEP\)/s|g++|${tcCXX}|" \
-e "/COPTOPT=/s/-O//" \
-e 's/$(GCCOPTOPT)//' \
cc-gcc.rul || die "sed cc-gcc.rul"
sed -i -e "s|^#CONFFLAGS +=\t-cc=\$(XCC_COM)$|CONFFLAGS +=\t-cc=${tcCC}|g" \
rules.cnf || die "sed rules.cnf"
# Create additional symlinks needed for some archs (armv4l already created)
local t
for t in armv4tl armv5tel armv7l ppc64 s390x; do
ln -s i586-linux-cc.rul ${t}-linux-cc.rul || die
ln -s i586-linux-gcc.rul ${t}-linux-gcc.rul || die
done
# Schily make setup.
cd "${S}"/DEFAULTS
local os="linux"
[[ ${CHOST} == *-darwin* ]] && os="mac-os10"
sed -i \
-e "s:/opt/schily:/usr:g" \
-e "s:/usr/src/linux/include::g" \
-e "s:bin:root:g" \
-e '/^DEFUMASK/s,002,022,g' \
Defaults.${os} || die "sed Schily make setup"
# re DEFUMASK above:
# bug 486680: grsec TPE will block the exec if the directory is
# group-writable. This is painful with cdrtools, because it makes a bunch of
# group-writable directories during build. Change the umask on their
# creation to prevent this.
}
# skip obsolete configure script
src_configure() { : ; }
src_compile() {
if use unicode; then
local flags="$(test-flags -finput-charset=ISO-8859-1 -fexec-charset=UTF-8)"
if [[ -n ${flags} ]]; then
append-flags ${flags}
else
ewarn "Your compiler does not support the options required to build"
ewarn "cdrtools with unicode in USE. unicode flag will be ignored."
fi
fi
if ! use caps; then
CFLAGS="${CFLAGS} -DNO_LINUX_CAPS"
fi
if ! use acl; then
CFLAGS="${CFLAGS} -DNO_ACL"
fi
# If not built with -j1, "sometimes" cdda2wav will not be built.
emake -j1 CC="$(tc-getCC)" CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" \
LDOPTX="${LDFLAGS}" \
INS_BASE="${ED}/usr" INS_RBASE="${ED}" LINKMODE="dynamic" \
RUNPATH="" GMAKE_NOWARN="true"
}
src_install() {
# If not built with -j1, "sometimes" manpages are not installed.
emake -j1 CC="$(tc-getCC)" CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" \
LDOPTX="${LDFLAGS}" \
INS_BASE="${ED}/usr" INS_RBASE="${ED}" LINKMODE="dynamic" \
RUNPATH="" GMAKE_NOWARN="true" install
# These symlinks are for compat with cdrkit.
dosym schily /usr/include/scsilib
dosym ../scg /usr/include/schily/scg
dodoc ABOUT Changelog* CONTRIBUTING PORTING README.linux-shm READMEs/README.linux
cd "${S}"/cdda2wav
docinto cdda2wav
dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO
cd "${S}"/mkisofs
docinto mkisofs
dodoc ChangeLog* TODO
# Remove man pages related to the build system
rm -rvf "${ED}"/usr/share/man/man5
}
pkg_postinst() {
fcaps_pkg_postinst
if [[ ${CHOST} == *-darwin* ]] ; then
einfo
einfo "Darwin/OS X use the following device names:"
einfo
einfo "CD burners: (probably) ./cdrecord dev=IOCompactDiscServices"
einfo
einfo "DVD burners: (probably) ./cdrecord dev=IODVDServices"
einfo
fi
}

View File

@ -1,29 +1,34 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
EAPI=7
inherit fcaps multilib eutils toolchain-funcs flag-o-matic gnuconfig
inherit fcaps toolchain-funcs flag-o-matic gnuconfig
MY_P="${P/_alpha/a}"
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord"
HOMEPAGE="http://sourceforge.net/projects/cdrtools/"
HOMEPAGE="https://sourceforge.net/projects/cdrtools/"
SRC_URI="mirror://sourceforge/${PN}/$([[ -z ${PV/*_alpha*} ]] && echo 'alpha')/${MY_P}.tar.bz2"
LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="acl caps nls unicode"
KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
IUSE="acl caps nls unicode selinux"
RDEPEND="acl? ( virtual/acl )
BDEPEND="
nls? ( >=sys-devel/gettext-0.18.1.1 )
x11-misc/makedepend
"
RDEPEND="
acl? ( virtual/acl )
caps? ( sys-libs/libcap )
nls? ( virtual/libintl )
!app-cdr/cdrkit"
DEPEND="${RDEPEND}
x11-misc/makedepend
nls? ( >=sys-devel/gettext-0.18.1.1 )"
selinux? ( sec-policy/selinux-cdrecord )
"
DEPEND="
${RDEPEND}
"
S=${WORKDIR}/${P/_alpha[0-9][0-9]}
@ -36,15 +41,16 @@ FILECAPS=(
cdrtools_os() {
local os="linux"
[[ ${CHOST} == *-darwin* ]] && os="mac-os10"
[[ ${CHOST} == *-freebsd* ]] && os="freebsd"
echo "${os}"
}
src_prepare() {
default
gnuconfig_update
# Remove profiled make files.
find -name '*_p.mk' -delete
find -name '*_p.mk' -delete || die "delete *_p.mk"
# Adjusting hardcoded paths.
sed -i -e "s|opt/schily|usr|" \
@ -65,10 +71,19 @@ src_prepare() {
$(find ./ -type f -exec grep -l '^include.\+rules\.lib' '{}' '+') \
|| die "sed rules"
# Enable verbose build.
sed -i -e '/@echo.*==>.*;/s:@echo[^;]*;:&set -x;:' \
RULES/*.rul RULES/rules.prg RULES/rules.inc \
|| die "sed verbose rules"
# Respect CC/CXX variables.
cd "${S}"/RULES
cd "${S}"/RULES || die
local tcCC=$(tc-getCC)
local tcCXX=$(tc-getCXX)
# fix RISC-V build err, bug 811375
ln -s i586-linux-cc.rul riscv-linux-cc.rul || die
ln -s i586-linux-cc.rul riscv64-linux-cc.rul || die
sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \
rules1.top || die "sed rules1.top"
sed -i -e "/^CC_COM_DEF=/s|gcc|${tcCC}|" \
@ -79,12 +94,8 @@ src_prepare() {
sed -i -e "s|^#\(CONFFLAGS +=\).*|\1\t-cc=${tcCC}|" \
rules.cnf || die "sed rules.cnf"
# Add support for arm64
ln -sf i586-linux-cc.rul aarch64-linux-cc.rul
ln -sf i586-linux-gcc.rul aarch64-linux-gcc.rul
# Schily make setup.
cd "${S}"/DEFAULTS
cd "${S}"/DEFAULTS || die
local os=$(cdrtools_os)
sed -i \
@ -129,6 +140,12 @@ ac_cv_sizeof() {
}
src_configure() {
use acl || export ac_cv_header_sys_acl_h="no"
use caps || export ac_cv_lib_cap_cap_get_proc="no"
export ac_cv_header_pulse_pulseaudio_h="no"
export ac_cv_header_alsa_asoundlib_h="no"
export ac_cv_lib_asound_snd_pcm_open="no"
# skip obsolete configure script
if tc-is-cross-compiler ; then
# Cache known values for targets. #486680
@ -218,14 +235,6 @@ src_compile() {
fi
fi
if ! use caps; then
CFLAGS="${CFLAGS} -DNO_LINUX_CAPS"
fi
if ! use acl; then
CFLAGS="${CFLAGS} -DNO_ACL"
fi
# If not built with -j1, "sometimes" cdda2wav will not be built.
emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \
LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true"
@ -242,16 +251,16 @@ src_install() {
dodoc ABOUT Changelog* CONTRIBUTING PORTING README.linux-shm READMEs/README.linux
cd "${S}"/cdda2wav
cd "${S}"/cdda2wav || die
docinto cdda2wav
dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO
cd "${S}"/mkisofs
cd "${S}"/mkisofs || die
docinto mkisofs
dodoc ChangeLog* TODO
# Remove man pages related to the build system
rm -rvf "${ED}"/usr/share/man/man5
rm -rvf "${ED}"/usr/share/man/man5 || die
}
pkg_postinst() {

View File

@ -0,0 +1,287 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit fcaps toolchain-funcs flag-o-matic gnuconfig
MY_P="${P/_alpha/a}"
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord"
HOMEPAGE="https://sourceforge.net/projects/cdrtools/"
SRC_URI="mirror://sourceforge/${PN}/$([[ -z ${PV/*_alpha*} ]] && echo 'alpha')/${MY_P}.tar.bz2"
LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
IUSE="acl caps nls unicode selinux"
BDEPEND="
nls? ( >=sys-devel/gettext-0.18.1.1 )
x11-misc/makedepend
"
RDEPEND="
acl? ( virtual/acl )
caps? ( sys-libs/libcap )
nls? ( virtual/libintl )
selinux? ( sec-policy/selinux-cdrecord )
"
DEPEND="
${RDEPEND}
"
S=${WORKDIR}/${P/_alpha[0-9][0-9]}
FILECAPS=(
cap_sys_resource,cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_ipc_lock,cap_sys_rawio+ep usr/bin/cdrecord --
cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep usr/bin/cdda2wav --
cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep usr/bin/readcd
)
cdrtools_os() {
local os="linux"
[[ ${CHOST} == *-darwin* ]] && os="mac-os10"
echo "${os}"
}
src_prepare() {
default
gnuconfig_update
# Remove profiled make files.
find -name '*_p.mk' -delete || die "delete *_p.mk"
# Adjusting hardcoded paths.
sed -i -e "s|opt/schily|usr|" \
$(find ./ -type f -name \*.[0-9ch] -exec grep -l 'opt/schily' '{}' '+') \
|| die "sed opt/schily"
sed -i -e "s|\(^INSDIR=\t\tshare/doc/\)|\1${PF}/|" \
$(find ./ -type f -exec grep -l '^INSDIR.\+doc' '{}' '+') \
|| die "sed doc"
# Respect libdir.
sed -i -e "s|\(^INSDIR=\t\t\)lib|\1$(get_libdir)|" \
$(find ./ -type f -exec grep -l '^INSDIR.\+lib\(/siconv\)\?$' '{}' '+') \
|| die "sed multilib"
# Do not install static libraries.
sed -i -e "s|include\t\t.*rules.lib||" \
$(find ./ -type f -exec grep -l '^include.\+rules\.lib' '{}' '+') \
|| die "sed rules"
# Enable verbose build.
sed -i -e '/@echo.*==>.*;/s:@echo[^;]*;:&set -x;:' \
RULES/*.rul RULES/rules.prg RULES/rules.inc \
|| die "sed verbose rules"
# Respect CC/CXX variables.
cd "${S}"/RULES || die
local tcCC=$(tc-getCC)
local tcCXX=$(tc-getCXX)
# fix RISC-V build err, bug 811375
ln -s i586-linux-cc.rul riscv-linux-cc.rul || die
ln -s i586-linux-cc.rul riscv64-linux-cc.rul || die
sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \
rules1.top || die "sed rules1.top"
sed -i -e "/^CC_COM_DEF=/s|gcc|${tcCC}|" \
-e "/^CC++_COM_DEF=/s|g++|${tcCXX}|" \
-e "/COPTOPT=/s|-O||" \
-e 's|$(GCCOPTOPT)||' \
cc-gcc.rul || die "sed cc-gcc.rul"
sed -i -e "s|^#\(CONFFLAGS +=\).*|\1\t-cc=${tcCC}|" \
rules.cnf || die "sed rules.cnf"
# Add support for arm64
ln -sf i586-linux-cc.rul aarch64_be-linux-cc.rul
ln -sf i586-linux-clang.rul aarch64_be-linux-clang.rul
ln -sf i586-linux-clang32.rul aarch64_be-linux-clang32.rul
ln -sf i586-linux-clang64.rul aarch64_be-linux-clang64.rul
ln -sf i586-linux-gcc.rul aarch64_be-linux-gcc.rul
ln -sf i586-linux-gcc32.rul aarch64_be-linux-gcc32.rul
ln -sf i586-linux-gcc64.rul aarch64_be-linux-gcc64.rul
# Schily make setup.
cd "${S}"/DEFAULTS || die
local os=$(cdrtools_os)
sed -i \
-e "s|^\(DEFLINKMODE=\).*|\1\tdynamic|" \
-e "s|^\(LINUX_INCL_PATH=\).*|\1|" \
-e "s|^\(LDPATH=\).*|\1|" \
-e "s|^\(RUNPATH=\).*|\1|" \
-e "s|^\(INS_BASE=\).*|\1\t${ED}/usr|" \
-e "s|^\(INS_RBASE=\).*|\1\t${ED}|" \
-e "s|^\(DEFINSGRP=\).*|\1\t0|" \
-e '/^DEFUMASK/s,002,022,g' \
Defaults.${os} || die "sed Schily make setup"
# re DEFUMASK above:
# bug 486680: grsec TPE will block the exec if the directory is
# group-writable. This is painful with cdrtools, because it makes a bunch of
# group-writable directories during build. Change the umask on their
# creation to prevent this.
}
ac_cv_sizeof() {
cat <<-EOF >"${T}"/test.c
#include <inttypes.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
int main () {
static int test_array [1 - 2 * !((sizeof(TYPE)) == LEN)];
test_array [0] = 0;
return test_array [0];
}
EOF
local i=1
while [[ ${i} -lt 20 ]] ; do
if ${CC} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o /dev/null -DTYPE="$1" -DLEN=$i 2>/dev/null; then
echo ${i}
return 0
fi
: $(( i += 1 ))
done
return 1
}
src_configure() {
use acl || export ac_cv_header_sys_acl_h="no"
use caps || export ac_cv_lib_cap_cap_get_proc="no"
export ac_cv_header_pulse_pulseaudio_h="no"
export ac_cv_header_alsa_asoundlib_h="no"
export ac_cv_lib_asound_snd_pcm_open="no"
# skip obsolete configure script
if tc-is-cross-compiler ; then
# Cache known values for targets. #486680
tc-export CC
local var val t types=(
char "short int" int "long int" "long long"
"unsigned char" "unsigned short int" "unsigned int"
"unsigned long int" "unsigned long long"
float double "long double" size_t ssize_t ptrdiff_t
mode_t uid_t gid_t pid_t dev_t time_t wchar_t
"char *" "unsigned char *"
)
for t in "${types[@]}" ; do
var="ac_cv_sizeof_${t// /_}"
var=${var//[*]/p}
val=$(ac_cv_sizeof "${t}") || die "could not compute ${t}"
export "${var}=${val}"
einfo "Computing sizeof(${t}) as ${val}"
done
# We don't have these types.
export ac_cv_sizeof___int64=0
export ac_cv_sizeof_unsigned___int64=0
export ac_cv_sizeof_major_t=${ac_cv_sizeof_dev_t}
export ac_cv_sizeof_minor_t=${ac_cv_sizeof_dev_t}
export ac_cv_sizeof_wchar=${ac_cv_sizeof_wchar_t}
export ac_cv_type_prototypes="yes"
export ac_cv_func_mlock{,all}="yes"
export ac_cv_func_{e,f,g}cvt=$(usex elibc_glibc)
export ac_cv_func_dtoa_r="no"
export ac_cv_func_sys_siglist{,_def}="no"
export ac_cv_func_printf_{j,ll}="yes"
export ac_cv_realloc_null="yes"
export ac_cv_no_user_malloc="no"
export ac_cv_var_timezone="yes"
export ac_cv_var___progname{,_full}="yes"
export ac_cv_fnmatch_igncase="yes"
export ac_cv_file__dev_{fd_{0,1,2},null,std{err,in,out},tty,zero}="yes"
export ac_cv_file__usr_src_linux_include="no"
case $(cdrtools_os) in
linux)
export ac_cv_func_bsd_{g,s}etpgrp="no"
export ac_cv_hard_symlinks="yes"
export ac_cv_link_nofollow="yes"
export ac_cv_access_e_ok="no"
export ac_cv_dev_minor_noncontig="yes"
case ${ac_cv_sizeof_long_int} in
4) export ac_cv_dev_minor_bits="32";;
8) export ac_cv_dev_minor_bits="44";;
esac
cat <<-EOF >"${T}"/test.c
struct {
char start[6];
unsigned char x1:4;
unsigned char x2:4;
char end[5];
} a = {
.start = {'S', 't', 'A', 'r', 'T', '_'},
.x1 = 5,
.x2 = 4,
.end = {'_', 'e', 'N', 'd', 'X'},
};
EOF
${CC} ${CPPFLAGS} ${CFLAGS} -c "${T}"/test.c -o "${T}"/test.o
if grep -q 'StArT_E_eNdX' "${T}"/test.o ; then
export ac_cv_c_bitfields_htol="no"
elif grep -q 'StArT_T_eNdX' "${T}"/test.o ; then
export ac_cv_c_bitfields_htol="yes"
fi
;;
esac
fi
}
src_compile() {
if use unicode; then
local flags="$(test-flags -finput-charset=ISO-8859-1 -fexec-charset=UTF-8)"
if [[ -n ${flags} ]]; then
append-flags ${flags}
else
ewarn "Your compiler does not support the options required to build"
ewarn "cdrtools with unicode in USE. unicode flag will be ignored."
fi
fi
# If not built with -j1, "sometimes" cdda2wav will not be built.
emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \
LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true"
}
src_install() {
# If not built with -j1, "sometimes" manpages are not installed.
emake -j1 CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" C++OPTX="${CXXFLAGS}" \
LDOPTX="${LDFLAGS}" GMAKE_NOWARN="true" install
# These symlinks are for compat with cdrkit.
dosym schily /usr/include/scsilib
dosym ../scg /usr/include/schily/scg
dodoc ABOUT Changelog* CONTRIBUTING PORTING README.linux-shm READMEs/README.linux
cd "${S}"/cdda2wav || die
docinto cdda2wav
dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO
cd "${S}"/mkisofs || die
docinto mkisofs
dodoc ChangeLog* TODO
# Remove man pages related to the build system
rm -rvf "${ED}"/usr/share/man/man5 || die
}
pkg_postinst() {
fcaps_pkg_postinst
if [[ ${CHOST} == *-darwin* ]] ; then
einfo
einfo "Darwin/OS X use the following device names:"
einfo
einfo "CD burners: (probably) ./cdrecord dev=IOCompactDiscServices"
einfo
einfo "DVD burners: (probably) ./cdrecord dev=IODVDServices"
einfo
fi
}

View File

@ -1,26 +1,24 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
EAPI=6
inherit fcaps multilib eutils toolchain-funcs flag-o-matic gnuconfig
inherit fcaps toolchain-funcs flag-o-matic gnuconfig
MY_P="${P/_alpha/a}"
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord"
HOMEPAGE="http://sourceforge.net/projects/cdrtools/"
HOMEPAGE="https://sourceforge.net/projects/cdrtools/"
SRC_URI="mirror://sourceforge/${PN}/$([[ -z ${PV/*_alpha*} ]] && echo 'alpha')/${MY_P}.tar.bz2"
LICENSE="GPL-2 LGPL-2.1 CDDL-Schily"
SLOT="0"
KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~mips ~ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 -riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
IUSE="acl caps nls unicode"
RDEPEND="acl? ( virtual/acl )
caps? ( sys-libs/libcap )
nls? ( virtual/libintl )
!app-cdr/cdrkit"
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
x11-misc/makedepend
nls? ( >=sys-devel/gettext-0.18.1.1 )"
@ -36,20 +34,16 @@ FILECAPS=(
cdrtools_os() {
local os="linux"
[[ ${CHOST} == *-darwin* ]] && os="mac-os10"
[[ ${CHOST} == *-freebsd* ]] && os="freebsd"
echo "${os}"
}
src_prepare() {
default
gnuconfig_update
# This fixes a clash with clone() on uclibc. Upstream isn't
# going to include this so let's try to carry it forward.
# Contact me if it needs updating. Bug #486782.
# Anthony G. Basile <blueness@gentoo.org>.
# Remove profiled make files.
find -name '*_p.mk' -delete
find -name '*_p.mk' -delete || die "delete *_p.mk"
# Adjusting hardcoded paths.
sed -i -e "s|opt/schily|usr|" \
@ -76,7 +70,7 @@ src_prepare() {
|| die "sed verbose rules"
# Respect CC/CXX variables.
cd "${S}"/RULES
cd "${S}"/RULES || die
local tcCC=$(tc-getCC)
local tcCXX=$(tc-getCXX)
sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \
@ -90,7 +84,7 @@ src_prepare() {
rules.cnf || die "sed rules.cnf"
# Schily make setup.
cd "${S}"/DEFAULTS
cd "${S}"/DEFAULTS || die
local os=$(cdrtools_os)
sed -i \
@ -137,6 +131,7 @@ ac_cv_sizeof() {
src_configure() {
use acl || export ac_cv_header_sys_acl_h="no"
use caps || export ac_cv_lib_cap_cap_get_proc="no"
export ac_cv_header_pulse_pulseaudio_h="no"
# skip obsolete configure script
if tc-is-cross-compiler ; then
@ -243,16 +238,16 @@ src_install() {
dodoc ABOUT Changelog* CONTRIBUTING PORTING README.linux-shm READMEs/README.linux
cd "${S}"/cdda2wav
cd "${S}"/cdda2wav || die
docinto cdda2wav
dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO
cd "${S}"/mkisofs
cd "${S}"/mkisofs || die
docinto mkisofs
dodoc ChangeLog* TODO
# Remove man pages related to the build system
rm -rvf "${ED}"/usr/share/man/man5
rm -rvf "${ED}"/usr/share/man/man5 || die
}
pkg_postinst() {

View File

@ -1,69 +0,0 @@
diff -Naur cdrtools-3.02.orig/readcd/readcd.c cdrtools-3.02/readcd/readcd.c
--- cdrtools-3.02.orig/readcd/readcd.c 2016-01-24 11:15:19.000000000 -0500
+++ cdrtools-3.02/readcd/readcd.c 2016-04-09 12:29:54.727635502 -0400
@@ -257,7 +257,7 @@
BOOL pifscan;
BOOL plot;
BOOL fulltoc;
-BOOL clone;
+BOOL clonetoc;
BOOL edc_corr;
BOOL noerror;
BOOL nocorr;
@@ -294,7 +294,7 @@
error(_("\t-plot Print data suitable for gnuplot\n"));
#ifdef CLONE_WRITE
error(_("\t-fulltoc Retrieve the full TOC\n"));
- error(_("\t-clone Retrieve the full TOC and all data\n"));
+ error(_("\t-clonetoc Retrieve the full TOC and all data\n"));
error(_("\t-edc-corr Try to do user level Reed Solomon repair (experimental)\n"));
#endif
error(_("\ttimeout=# set the default SCSI command timeout to #.\n"));
@@ -320,7 +320,7 @@
}
/* CSTYLED */
-char opts[] = "debug#,d+,kdebug#,kd#,timeout#,quiet,q,verbose+,v+,Verbose+,V+,x+,xd#,silent,s,help,h,version,scanbus,dev*,scgopts*,sectors*,w,c2scan,cxscan,pi8scan,pifscan,plot,fulltoc,clone,edc-corr,noerror,nocorr,notrunc,retries#,factor,f*,speed#,ts&,overhead,meshpoints#";
+char opts[] = "debug#,d+,kdebug#,kd#,timeout#,quiet,q,verbose+,v+,Verbose+,V+,x+,xd#,silent,s,help,h,version,scanbus,dev*,scgopts*,sectors*,w,c2scan,cxscan,pi8scan,pifscan,plot,fulltoc,clonetoc,edc-corr,noerror,nocorr,notrunc,retries#,factor,f*,speed#,ts&,overhead,meshpoints#";
EXPORT int
main(ac, av)
@@ -397,7 +397,7 @@
&scanbus, &dev, &scgopts, &sectors, &do_write,
&c2scan, &cxscan, &pi8scan, &pifscan,
&plot,
- &fulltoc, &clone,
+ &fulltoc, &clonetoc,
&edc_corr,
&noerror, &nocorr,
&notrunc, &retries, &do_factor, &filename,
@@ -679,7 +679,7 @@
if (filename || sectors || c2scan || cxscan || pi8scan || pifscan ||
meshpoints || fulltoc ||
- clone || edc_corr) {
+ clonetoc || edc_corr) {
dorw(scgp, filename, sectors);
} else {
doit(scgp);
@@ -894,9 +894,9 @@
if (params.name == NULL)
params.name = "/dev/null";
read_ftoc(scgp, &params, FALSE);
- } else if (clone || edc_corr) {
+ } else if (clonetoc || edc_corr) {
if (!is_mmc(scgp, NULL, NULL))
- comerrno(EX_BAD, _("Unsupported device for clone mode.\n"));
+ comerrno(EX_BAD, _("Unsupported device for clonetoc mode.\n"));
if (!edc_corr)
noerror = TRUE;
if (retries == MAX_RETRY)
@@ -904,7 +904,7 @@
if (params.name == NULL)
params.name = "/dev/null";
- if (clone)
+ if (clonetoc)
if (read_ftoc(scgp, &params, TRUE) < 0)
comerrno(EX_BAD, _("Read fulltoc problems.\n"));
readcd_disk(scgp, &params);

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>billie@gentoo.org</email>
@ -12,5 +12,4 @@
</maintainer>
<remote-id type="sourceforge">cdrtools</remote-id>
</upstream>
<longdescription>CD and DVD command line recording and ripping tools.</longdescription>
</pkgmetadata>

View File

@ -1,4 +0,0 @@
AUX manpager.c 1809 SHA256 bb90bcb9d2efff5db0957b56fdb20bf97ac1aacfe4f71989833dcfa34704c620 SHA512 4f827429dc46993010d0096cb352920dfdcaf2cc97bf10e2155dfea3fda601c011467be65ca3f2e3f5c44cb26de0fd9eb58f7d875f75fd5f1db4b2c6cdabdca2 WHIRLPOOL bb26d082896f41de845fcbe9b5d660b28a14f8afad4f9c266d5fbc04c967858ab72d3b95569cac29e4cd12278ddb6e9589b5fb8d18d157632d6d5adb17e874a8
EBUILD manpager-1.ebuild 645 SHA256 ffb747a26a5068eaff117254b1e74a1bac4829f65aab71d73460fa3aca32655b SHA512 67d6377beeb04b161406042b0088a46355014daee05cfce125da2ca00deb1ae70b4d6c1714f26014a25215cdca61810e79bd0dad162b08618330604d8b563d7e WHIRLPOOL 49884adade6e5061dba8c9ec5b4ab31bea30ca9ef38005f2a9964a4929b8051f1116b4d2a0aa1e82fb65ce40a997232b9195933db9e5af8e960c3f1a8c98955d
MISC ChangeLog 970 SHA256 476449bcf02927a7044880a4a6760b066e42e9e43d85aa0b7818f4678cac352d SHA512 bda470cedb820caa752f5e40b3ea12ee4dff162591cd443799fdc0df24153c1ead03f5dfefda32a8d22f0b4ac55cb0a8c9d2ebb0c682a500f872956582ee6eee WHIRLPOOL 8db067486f23494239da80bff8a3435caae3eb803f2ebc666103da3e065decd961aebaa2d81384f5bab234d8cfd9a4030e6cd60e222f2a69cf0900c81986e7e1
MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8

View File

@ -1,17 +1,16 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Enable colorization of man pages"
HOMEPAGE="http://www.gentoo.org/"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux"
IUSE=""
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
S=${WORKDIR}
@ -26,6 +25,5 @@ src_compile() {
src_install() {
dobin ${PN}
insinto /etc/env.d
echo "MANPAGER=manpager" | newins - 00manpager
echo "MANPAGER=manpager" | newenvd - 00manpager
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>base-system@gentoo.org</email>

View File

@ -0,0 +1,2 @@
- iperf ([3.10.1](https://github.com/esnet/iperf/blob/master/RELNOTES.md#iperf-3101-2021-06-03))
- nvme-cli ([1.16](https://github.com/linux-nvme/nvme-cli/commits/deee9cae1ac94760deebd71f8e5449061338666c))

View File

@ -1,177 +0,0 @@
# ChangeLog for dev-libs/liblinear
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*liblinear-196-r1 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org> +liblinear-196-r1.ebuild,
+metadata.xml:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
*liblinear-210 (29 Sep 2015)
29 Sep 2015; Jeroen Roovers <jer@gentoo.org> +liblinear-210.ebuild:
Version bump.
Package-Manager: portage-2.2.20.1
*liblinear-210-r1 (29 Sep 2015)
29 Sep 2015; Justin Lecher <jlec@gentoo.org> +liblinear-210-r1.ebuild:
Unbundle blas
Package-Manager: portage-2.2.22
Signed-off-by: Justin Lecher <jlec@gentoo.org>
29 Sep 2015; Michał Górny <mgorny@gentoo.org> liblinear-210-r1.ebuild:
fix missing quoting, #561826
Add missing quoting around make parameters. Thanks to Ben Kohler for the
solution.
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=561826
Package-Manager: portage-2.2.20
29 Sep 2015; Jeroen Roovers <jer@gentoo.org> -liblinear-210-r1.ebuild:
Undo blas crap
Package-Manager: portage-2.2.20.1
*liblinear-210-r1 (03 Oct 2015)
03 Oct 2015; Jeroen Roovers <jer@gentoo.org> +liblinear-210-r1.ebuild:
Add IUSE=blas.
Package-Manager: portage-2.2.22
03 Oct 2015; Michał Górny <mgorny@gentoo.org> liblinear-210-r1.ebuild:
Fix quoting
Package-Manager: portage-2.2.22
21 Dec 2015; Patrick Lauer <patrick@gentoo.org> liblinear-210-r1.ebuild:
Whitespace
26 Dec 2015; Agostino Sarubbo <ago@gentoo.org> liblinear-210-r1.ebuild:
amd64 stable wrt bug #569730
Package-Manager: portage-2.2.24
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
28 Dec 2015; Jeroen Roovers <jer@gentoo.org> liblinear-210-r1.ebuild:
Stable for PPC64 (bug #569730).
Package-Manager: portage-2.2.26
RepoMan-Options: --ignore-arches
02 Jan 2016; Jeroen Roovers <jer@gentoo.org> liblinear-210-r1.ebuild:
Stable for HPPA (bug #569730).
Package-Manager: portage-2.2.26
RepoMan-Options: --ignore-arches
06 Jan 2016; Agostino Sarubbo <ago@gentoo.org> liblinear-210-r1.ebuild:
x86 stable wrt bug #569730
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
09 Jan 2016; Agostino Sarubbo <ago@gentoo.org> liblinear-210-r1.ebuild:
sparc stable wrt bug #569730
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
09 Jan 2016; Markus Meier <maekke@gentoo.org> liblinear-210-r1.ebuild:
arm stable, bug #569730
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="arm"
10 Jan 2016; Agostino Sarubbo <ago@gentoo.org> liblinear-210-r1.ebuild:
alpha stable wrt bug #569730
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="alpha"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
11 Jan 2016; Agostino Sarubbo <ago@gentoo.org> liblinear-210-r1.ebuild:
ia64 stable wrt bug #569730
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="ia64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
17 Jan 2016; Agostino Sarubbo <ago@gentoo.org> liblinear-210-r1.ebuild:
ppc stable wrt bug #569730
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)
14 Feb 2016; Jeroen Roovers <jer@gentoo.org> -liblinear-196-r1.ebuild,
-liblinear-210.ebuild:
Old.
Package-Manager: portage-2.2.27
04 Mar 2016; Steev Klimaszewski <steev@gentoo.org> liblinear-210-r1.ebuild:
Keyword 210-r1 for arm64
Tested on Cortex-A53
Package-Manager: portage-2.2.27

View File

@ -1,103 +0,0 @@
# ChangeLog for dev-libs/liblinear
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblinear/ChangeLog,v 1.30 2015/06/06 19:10:13 jlec Exp $
06 Jun 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Add github to remote-id in metadata.xml
11 Mar 2015; Jeroen Roovers <jer@gentoo.org> -liblinear-194-r1.ebuild:
Old.
28 Feb 2015; Agostino Sarubbo <ago@gentoo.org> liblinear-196-r1.ebuild:
Stable for ia64, wrt bug #536512
27 Feb 2015; Agostino Sarubbo <ago@gentoo.org> liblinear-196-r1.ebuild:
Stable for sparc, wrt bug #536512
24 Feb 2015; Agostino Sarubbo <ago@gentoo.org> liblinear-196-r1.ebuild:
Stable for alpha, wrt bug #536512
23 Feb 2015; Agostino Sarubbo <ago@gentoo.org> liblinear-196-r1.ebuild:
Stable for ppc64, wrt bug #536512
28 Jan 2015; Agostino Sarubbo <ago@gentoo.org> liblinear-196-r1.ebuild:
Stable for ppc, wrt bug #536512
26 Jan 2015; Agostino Sarubbo <ago@gentoo.org> liblinear-196-r1.ebuild:
Stable for x86, wrt bug #536512
22 Jan 2015; Markus Meier <maekke@gentoo.org> liblinear-196-r1.ebuild:
arm stable, bug #536512
22 Jan 2015; Agostino Sarubbo <ago@gentoo.org> liblinear-196-r1.ebuild:
Stable for amd64, wrt bug #536512
16 Jan 2015; Jeroen Roovers <jer@gentoo.org> liblinear-196-r1.ebuild:
Stable for HPPA (bug #536512).
27 Dec 2014; Jeroen Roovers <jer@gentoo.org> liblinear-196-r1.ebuild:
Marked ~ppc ~ppc64 (bug #512546).
03 Dec 2014; Agostino Sarubbo <ago@gentoo.org> liblinear-194-r1.ebuild:
Stable for ppc, wrt bug #480474
02 Dec 2014; Sergey Popov <pinkbyte@gentoo.org> liblinear-196-r1.ebuild:
Add ~mips keyword, bugs #512546 and #530118
01 Dec 2014; Agostino Sarubbo <ago@gentoo.org> liblinear-194-r1.ebuild:
Stable for sparc, wrt bug #480474
29 Nov 2014; Agostino Sarubbo <ago@gentoo.org> liblinear-194-r1.ebuild:
Stable for ppc64, wrt bug #480474
23 Nov 2014; Mikle Kolyada <zlogene@gentoo.org> liblinear-194-r1.ebuild:
arm stable wrt bug #480474
20 Nov 2014; Agostino Sarubbo <ago@gentoo.org> liblinear-194-r1.ebuild:
Stable for ia64, wrt bug #480474
20 Nov 2014; Tobias Klausmann <klausman@gentoo.org> liblinear-194-r1.ebuild:
Stable on alpha, bug 480474
*liblinear-196-r1 (18 Nov 2014)
*liblinear-194-r1 (18 Nov 2014)
18 Nov 2014; Jeroen Roovers <jer@gentoo.org> -liblinear-194.ebuild,
+liblinear-194-r1.ebuild, -liblinear-196.ebuild, +liblinear-196-r1.ebuild:
Add prefix to installed executables, drop blocker on sci-astronomy/predict
(bug #529704 by Andrew Savchenko).
18 Nov 2014; Jeroen Roovers <jer@gentoo.org> liblinear-194.ebuild:
Stable for HPPA (bug #480474).
18 Nov 2014; Agostino Sarubbo <ago@gentoo.org> liblinear-194.ebuild:
Stable for x86, wrt bug #480474
18 Nov 2014; Agostino Sarubbo <ago@gentoo.org> liblinear-194.ebuild:
Stable for amd64, wrt bug #480474
*liblinear-196 (17 Nov 2014)
17 Nov 2014; Jeroen Roovers <jer@gentoo.org> +liblinear-196.ebuild:
Version bump.
21 Aug 2014; Raúl Porcel <armin76@gentoo.org> liblinear-194.ebuild:
Add ~alpha/~ia64/~s390/~sh/~sparc wrt #512546
24 Jun 2014; Markus Meier <maekke@gentoo.org> liblinear-194.ebuild:
add ~arm, bug #512546
07 Jun 2014; Jeroen Roovers <jer@gentoo.org> liblinear-194.ebuild:
Add github HOMEPAGE.
06 Jun 2014; Jeroen Roovers <jer@gentoo.org> liblinear-194.ebuild:
Install README.
06 Jun 2014; Jeroen Roovers <jer@gentoo.org> liblinear-194.ebuild:
Marked ~hppa ~x86 too.
*liblinear-194 (05 Jun 2014)
05 Jun 2014; Jeroen Roovers <jer@gentoo.org> +liblinear-194.ebuild,
+metadata.xml:
Initial commit (bug #253269).

View File

@ -1,5 +1 @@
DIST liblinear-210.tar.gz 381662 SHA256 9e559d1f0714799d4cf7742fb186012459285e25bed9c5847d5d8032daefc8de SHA512 4e4558467f2ebb3dbd640c172b1129c8e5981c231a043abb0398a803252559795604a34992baee50ae6689646050733d3a908d7d76f8b1c94309b859eae7f8c8 WHIRLPOOL 6756930f5fec958f3f137b9757a6a3704d1a5ab799d1634e2223990847ebe05a2602a77e4310a4f653434230ca47c0053de2ff3a03dc1cb265f85a6148db6f5d
EBUILD liblinear-210-r1.ebuild 1422 SHA256 b0d6dc1899b89301021b4b37e37803a517a61e7eeca39282716dca4af93fe639 SHA512 eff86935150aefddd9aef8ecfc201716077c0fc2f85d19b59a00a08d67f373b45fc6d661103ea2b5cbb1621dc5393603b13454314982d1b13a610e9855d17d91 WHIRLPOOL cc67cec5c3e33faca4c61c35f2a893fd3a42706876033aab40c2118e70030ccddd1ff92cd68b24b08227f4072366ce4c9413da1c3a996a71549d13b9c9d473e2
MISC ChangeLog 5575 SHA256 67014ab85729a4686a45a8468d9b502fed917e8a956cdc09f56e7129b399a169 SHA512 f55b5f6d06db76f08ec2250692e1f8586e288ca9969cc9b03b7072687936da4f2423932cd636703bb8e4adc1a0e40e493945cdabe03c0b4d728bd5a2a70b17d3 WHIRLPOOL 866c12d81826f91ffc23d0a270ee8ae47967cf57e81e3523e12707d7f633156031fc2d8db61a53d614309c57cef8f4895b6c17787152aa9cd539a6c0f0ebf4ad
MISC ChangeLog-2015 3659 SHA256 521635fd69ee2b808318b75b632a54ce003dec976aee66e9342d2a6a14f6efdf SHA512 0428bda42f11f68b68d7aab177e6a1a8b5bac4affd55d7d682fc4ea5c15ccef9fa552b339b5f5c21f8d189f570f94423ea365c86d535c0f2cc81f4e85114847f WHIRLPOOL da91b459bb33f1f7df3ee7b4cc1993b84972296d8d401e12e7bf8d20eac206bf9f468718f8ca24ffcfd0251dbfb5a1b95f9fbd7f221cc0f43572b028678825b2
MISC metadata.xml 335 SHA256 d56b0ae39f237f75ebe7ce5053c77e248bdb8e35343fc766e128d8cccfceae3e SHA512 efd0a36cca5d21c4a5e94388d125870af42ae9091234a44ae53b8ac6ea7e6ad0b637a5629d3c9ceabfebddce71fde8fa94285e5b1c7edefddebb8bab9e99f0bd WHIRLPOOL 94944b5d2e29a4535cbe190c6b6052341d83ae15319a577098a685ddabc2d300649884ad978f523c7591409aea58e6d3b557b9a095125bd36e983bc0efb77e75
DIST liblinear-243.tar.gz 565437 BLAKE2B 6367cfbdc040b9183c4993f5340a4d74a8dde48da04ef07f725dc5735073e1b9a7440bad325e9f7527ad76d675dbf3bb47d1d43fc323e1e42ef360d679e816ff SHA512 a0cfa9803285cdfda54752e7addfb210a9ba8f7056cfc8aca13987db7f0bef5fe02d6179eadc829cb243670414da061e6c4cf3d50d682ce392778a0e8cb9e753

View File

@ -1,29 +1,21 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
EAPI=7
inherit multilib toolchain-funcs
DESCRIPTION="A Library for Large Linear Classification"
HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/liblinear/ https://github.com/cjlin1/liblinear"
HOMEPAGE="https://www.csie.ntu.edu.tw/~cjlin/liblinear/ https://github.com/cjlin1/liblinear"
SRC_URI="https://github.com/cjlin1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0/3"
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
IUSE="blas"
RDEPEND="
blas? ( virtual/blas )
"
DEPEND="
${RDEPEND}
blas? ( virtual/pkgconfig )
"
SLOT="0/4"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
src_prepare() {
default
sed -i \
-e '/^AR/s|=|?=|g' \
-e '/^RANLIB/s|=|?=|g' \
@ -35,9 +27,12 @@ src_prepare() {
-e '/^CFLAGS/d;/^CXXFLAGS/d' \
-e 's|$${SHARED_LIB_FLAG}|& $(LDFLAGS)|g' \
Makefile || die
if use blas; then
sed -i -e 's:blas/blas.a::g' Makefile || die
fi
# fix install_name on Darwin
sed -i \
-e '/install_name/s:liblinear.so.$(SHVER):'"${EPREFIX}"'/usr/lib/liblinear.$(SHVER).dylib:' \
-e '/LDFLAGS/s:liblinear.so.$(SHVER):liblinear'"$(get_libname '$(SHVER)')"':' \
Makefile || die
}
src_compile() {
@ -48,13 +43,12 @@ src_compile() {
CXXFLAGS="${CXXFLAGS} -fPIC" \
AR="$(tc-getAR) rcv" \
RANLIB="$(tc-getRANLIB)" \
LIBS="$(usex blas "$( $(tc-getPKG_CONFIG) --libs blas )" blas/blas.a)" \
lib all
}
src_install() {
dolib ${PN}.so.3
dosym ${PN}.so.3 /usr/$(get_libdir)/${PN}.so
dolib.so ${PN}$(get_libname 4)
dosym ${PN}$(get_libname 4) /usr/$(get_libdir)/${PN}$(get_libname)
newbin predict ${PN}-predict
newbin train ${PN}-train

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>jer@gentoo.org</email>
<name>Jeroen Roovers</name>
</maintainer>
<upstream>
<remote-id type="github">cjlin1/liblinear</remote-id>
</upstream>
<maintainer type="person">
<email>sam@gentoo.org</email>
<name>Sam James</name>
</maintainer>
<upstream>
<remote-id type="github">cjlin1/liblinear</remote-id>
</upstream>
</pkgmetadata>

View File

@ -1,11 +1,2 @@
DIST userspace-rcu-0.7.13.tar.bz2 390152 SHA256 368a0db48926b127f86f62595f67b21ff09d9c1183b5d0342b48b25eae957b35 SHA512 231dccfcf682a880cc145df05334f8c8c92a4b311f8ba282e3e8563c0535728a69d64a39c3516fdbfa9ceec4179fea9af9805833ddf144280a04371d81ab9787 WHIRLPOOL 3e09b247c79cb318617890b9a3dfeef2cbd78edfcb24a42dfa89e84cfff233ea0c0e21d6d9f69fa109b9c88b90afd71a5816f69d2e42c3a4d3707fa3bda2fd46
DIST userspace-rcu-0.8.6.tar.bz2 424037 SHA256 b1a5d3bce014ba7a702759bc60b692c1cd46ff0e8a5b53f0d0a95e22db74ab21 SHA512 027c215570b1ff94d0b7dd66934aece525461ddc8b172000c72af5b2e76115da9d18a635bbfb81dbd749c52463c5f4dd27f5700a30f367a4fb5fe0db6c128a6d WHIRLPOOL a652e9d8141356edfa5a67e6c884101f46c0d67e1089528b6c9a17e8def7057d09e4c75afed6bbb0eb2a2de32300dd7958cde51ae8b639a600c4049fc6babd7d
DIST userspace-rcu-0.9.1.tar.bz2 468197 SHA256 f8d278e9d95bec97c9ba954fc4c3fb584936bc0010713a8fe358b916bafd8715 SHA512 958234d72319decef07093c13b067e398c1b285ac714ab1dda89c2ad2ba0627d053e0cdabb07d480e399ebd60215445002876bd99f2829ca1e5582ada639f730 WHIRLPOOL e8d39b626529894a88a74d308ceb759a0166888113b5ca7e021e5a1c816126f98331ccb78d7a8d245f1aa16df06b6f45323c01dcf9bbc6e742b27fa5f76c2b24
DIST userspace-rcu-0.9.2.tar.bz2 468871 SHA256 8f7fa313b1e0a3f742cea24ce63a39c0efe63e615a769e2961e55bd2663ecaa3 SHA512 36264119d68569565a7b1222c4b0ca90128d121f032b388f27204ceaa9c964901f35be25584e1553b1a7613aad01d11766983ae245860df09444eb2f8ac913fc WHIRLPOOL 37e56c23fae336c6fc5847b049bf0aa9d3fbc82da2aa12edec2e47c0b568cf7246900030afae4c937675ea2791fb0f7ebc4d391589cc69ae6e7e0fe6025cd6ea
EBUILD userspace-rcu-0.7.13.ebuild 603 SHA256 6ce62140ab27d1f03b4e49bad184a09eb661816d4a9524c943b8c9f29f06ff23 SHA512 01ef1b92211efaf920329813c6f20d31c93675eb0c15f8094bb14a5be263e08f368b33a3f68e05a6cccfa738199e1c14ff86bed0b6436be1e7a26da032b95011 WHIRLPOOL da330bcfdee6561bc75d660cf47bbd4ecd71e56919759db2fdafb37d86d47041a09a2461431849809cef20ce5f18d537703500d3597a27b6a238d6163668ffac
EBUILD userspace-rcu-0.8.6.ebuild 632 SHA256 d1a18f43e5c9f118955b5a9452d886da40fdbd7a5a7fb87823c2e4cf34207904 SHA512 bc00b6dbdd4692f500ab4f5e7bbdd10b37086ca3ce17171e0c3afbc80b886e450517712065ade1c84eead5a354a6e2dc48dc41bdf5643d0dbb2b885a851d7dc1 WHIRLPOOL 1f6a203449a0bedaa8fb350e851fcc8e086111fd05b00fe875b120e1ce2ec8a0a3a122a282f7f8abb4e57bb58b66b83731f436275dff1529cf0adaa64ff51e3b
EBUILD userspace-rcu-0.9.1.ebuild 744 SHA256 89bed9f0ea2d3247f64d7946254f085910ffba2842367a34de65220be12327e9 SHA512 3d2b191f6ad48b6a11460514560d16c0e70b2ebfa1938829678af522e99858a8f00a475121b23badc6c11f1aa3da8d68137cc0dadedd3b4b7ed39501a32f7b3d WHIRLPOOL 80f617a854c6504a6c576ec58a5338c71e434866af0776a47ad5d95509c83870a80675d9852a2c62faaf728fc48484a846146695c00c67aab25fce7a90b19624
EBUILD userspace-rcu-0.9.2.ebuild 749 SHA256 92a8785a98c3b45a750c365f7bc626f14a6e29d8b6a103541125c98956d93b8f SHA512 f78a93ab7b70a23e23a9f43a20a33e78f1ec3706e3f6b4cad5f6ceb01748b3a3ca17ada89a652bea8fe3142341590da27bf5f92c43bc62c335ccb13809dcfc69 WHIRLPOOL 1f13bee0c840294ab49c6fe9ad6ee27a954d8aef8c47fac5b09d1065aa96b267b5a0bf55c28f090cd0caadf855f9e4b9877ca924797ee6516304ee9145f8edf2
MISC ChangeLog 4485 SHA256 6d59ed28b87a860d501203beb68cf54afd7b872366a440350e99019ebf479acd SHA512 ebc7d2858786bab723ce3ccb0773c37018108ce7d065794208d128faed8f14ae48c7aa22ed69cc14f29defe44690849b1e1c23fa9292dc00206b88c4648ece95 WHIRLPOOL f1b0a643c036d9ec438ae569996947859b14ca3fa87482f2ca549b18a485a02bc04cadeff82a6fde666639174d6c04dfedf960cdc0ab7534f75d7683c17e62d9
MISC ChangeLog-2015 3746 SHA256 180f05689d860432d7d9a3ed12fb845d56ad2925b4de8d0b71a1a665b588fbfc SHA512 bc99973a4cd16006b9841b8e1e0edc1643f016ff44981da4b8443b4dd95dc73ca066eb65d57af9474d5fcd63be3cf20595f43678eaeffd41cb023d618ba9f234 WHIRLPOOL fc7d8108f556e5f018592adbc8984b6828918a6719b8afde840f47531e6f1f38b5232b4b90a9767ac3836c08008580fa95e39f8c6bcb5d291b83c143db3eb86a
MISC metadata.xml 346 SHA256 d6d21f91ca48aa075081fc1ccfbeaf678ff8623d3e4b682c7408fe3751f3d479 SHA512 c8f1e16f1ef58e202e5161e23eaa25ac5fc031b958abefe5b869eb7951223280eae1faec1984197de70ba5cb678fb385d86276a2375fa5dc17371be2c771adbe WHIRLPOOL 1702f0bda3f9980a6acf380612995f8bb165b09c74fe04f3f5d26cbe1da8f100ed60da67a776007c98e0174d3c5e3bd75ca6070549db693d5d4a1e8129507732
DIST userspace-rcu-0.13.0.tar.bz2 608434 BLAKE2B 11b5d13f4e1a577cc33ad430eb387b26cc2db2ba9ff32c7a09f9cb6c8a418548cd87c198ab4b63be3df884d8e3878046ba817106ff2f07cbab86dd60c9bb1d34 SHA512 7288b5a4a2dca6a75ecaa8553b942b9e7be9cae25776d2448fb0b0c950af9919c369791839607c6c1e6cbd32bbd1e1cafc18ee753f0e3bdc2ed7b65488612580
DIST userspace-rcu-0.13.1.tar.bz2 609961 BLAKE2B 96581fb3e90764870d2eb3eff6999e3c20bf206e3a0d5c910acfe693d55e0cb389fa5126a74d175f3c46655e740ecf1c1426c367eb3c28f3ef3a634848e51e83 SHA512 c86f2eb260cccb3cb6bd54ddbc0b46e60083fc99423e9403242ebed7f39a2a49c68af933ea6f373e2a9d4f9dc56f5befe030740891e28cf2fabe927a48ff8182

View File

@ -0,0 +1,13 @@
Fedora: https://src.fedoraproject.org/rpms/userspace-rcu/raw/rawhide/f/regtest-without-bench.patch
"Remove the benchmarks from the regtest target, they timeout on the buildds."
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -8,7 +8,6 @@
cd benchmark && $(MAKE) $(AM_MAKEFLAGS) long_bench
regtest:
cd regression && $(MAKE) $(AM_MAKEFLAGS) regtest
- cd benchmark && $(MAKE) $(AM_MAKEFLAGS) regtest
check-loop:
while [ 0 ]; do \

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>base-system@gentoo.org</email>
<name>Gentoo Base System</name>
</maintainer>
<use>
<flag name="regression-test">Run regression tests (requires FEATURES=test)</flag>
</use>
<maintainer type="project">
<email>base-system@gentoo.org</email>
<name>Gentoo Base System</name>
</maintainer>
<use>
<flag name="regression-test">Run regression tests (requires FEATURES=test)</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,45 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="userspace RCU (read-copy-update) library"
HOMEPAGE="https://liburcu.org/"
SRC_URI="https://lttng.org/files/urcu/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0/8" # subslot = soname version
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
IUSE="static-libs regression-test test"
RESTRICT="!test? ( test )"
DEPEND="test? ( sys-process/time )"
src_prepare() {
default
# Refresh libtool (see https://github.com/gentoo/gentoo/pull/23973)
eautoreconf
}
src_configure() {
local myeconfargs=(
--enable-shared
$(use_enable static-libs static)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
find "${ED}" -type f -name "*.la" -delete || die
}
src_test() {
default
if use regression-test ; then
emake -C tests/regression regtest
fi
}

View File

@ -0,0 +1,51 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="Userspace RCU (read-copy-update) library"
HOMEPAGE="https://liburcu.org/"
SRC_URI="https://lttng.org/files/urcu/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0/8" # subslot = soname version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
BDEPEND="test? ( sys-process/time )"
PATCHES=(
"${FILESDIR}"/${PN}-0.13.1-tests-no-benchmark.patch
)
src_prepare() {
default
# Needed for tests patch
# ... and refresh libtool (see https://github.com/gentoo/gentoo/pull/23973)
eautoreconf
}
src_configure() {
local myeconfargs=(
--enable-shared
$(use_enable static-libs static)
)
econf "${myeconfargs[@]}"
}
src_test() {
default
emake -C tests/regression regtest
}
src_install() {
default
find "${ED}" -type f -name "*.la" -delete || die
}

View File

@ -1,28 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools-utils
DESCRIPTION="userspace RCU (read-copy-update) library"
HOMEPAGE="http://lttng.org/urcu"
SRC_URI="http://lttng.org/files/urcu/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
IUSE="static-libs test"
DEPEND="test? ( sys-process/time )"
# tests fail with separate build dir
AUTOTOOLS_IN_SOURCE_BUILD=1
src_configure() {
local myeconfargs=(
--docdir="${EPREFIX}/usr/share/doc/${PF}"
)
autotools-utils_src_configure
}

View File

@ -1,28 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools-utils
DESCRIPTION="userspace RCU (read-copy-update) library"
HOMEPAGE="http://lttng.org/urcu"
SRC_URI="http://lttng.org/files/urcu/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0/2" # subslot = soname version
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
IUSE="static-libs test"
DEPEND="test? ( sys-process/time )"
# tests fail with separate build dir
AUTOTOOLS_IN_SOURCE_BUILD=1
src_configure() {
local myeconfargs=(
--docdir="${EPREFIX}/usr/share/doc/${PF}"
)
autotools-utils_src_configure
}

View File

@ -1,35 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools-utils
DESCRIPTION="userspace RCU (read-copy-update) library"
HOMEPAGE="http://lttng.org/urcu"
SRC_URI="http://lttng.org/files/urcu/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0/4" # subslot = soname version
KEYWORDS="amd64 arm hppa ~ppc ppc64 x86"
IUSE="static-libs regression-test test"
DEPEND="test? ( sys-process/time )"
# tests fail with separate build dir
AUTOTOOLS_IN_SOURCE_BUILD=1
src_configure() {
local myeconfargs=(
--docdir="${EPREFIX}/usr/share/doc/${PF}"
)
autotools-utils_src_configure
}
src_test() {
default
if use regression-test; then
emake -C tests/regression regtest
fi
}

View File

@ -1,35 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools-utils
DESCRIPTION="userspace RCU (read-copy-update) library"
HOMEPAGE="http://lttng.org/urcu"
SRC_URI="http://lttng.org/files/urcu/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0/4" # subslot = soname version
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
IUSE="static-libs regression-test test"
DEPEND="test? ( sys-process/time )"
# tests fail with separate build dir
AUTOTOOLS_IN_SOURCE_BUILD=1
src_configure() {
local myeconfargs=(
--docdir="${EPREFIX}/usr/share/doc/${PF}"
)
autotools-utils_src_configure
}
src_test() {
default
if use regression-test; then
emake -C tests/regression regtest
fi
}

View File

@ -1,2 +1,3 @@
DIST patchelf-0.8.tar.bz2 119369 SHA256 c99f84d124347340c36707089ec8f70530abd56e7827c54d506eb4cc097a17e7 SHA512 819ace0ee032612e8bef56f230ea470be9d44bc03ef561f98ffac84f2555e419f87309280df6d265a8ae56452e54d46fc90be13a449847e93e4e7b413dc8605a WHIRLPOOL 64c56eda439dc114e4450428d7bde754a894ecbd8d2e0d1a29c3a53965527f76723fef9a240cd3686532f9202c84b23dd25cfe8e4f664ac33e08ca4056ef6780
DIST patchelf-0.9.tar.bz2 159956 SHA256 a0f65c1ba148890e9f2f7823f4bedf7ecad5417772f64f994004f59a39014f83 SHA512 5bd3a1268b809f173debde5d34c3f736f38d7afb69decf609a422884c51eb1d5ccf62f2d454d4ef8b2c20e263ece49e3c2f801347ef1dfcceecd89c78a214790 WHIRLPOOL 040b568fcac1e73cdf4ef928af7171e74402e2197918a00573624a92c9db444f7c45facd4cc629d8fdc629ba771a04236420444b4f67d0a732a636c51ecc16a4
DIST patchelf-0.10.tar.bz2 158604 BLAKE2B 6aed9c2e7f37ff0330ca517a9491c46a93212140367b720bf94da4e4ec29a4978c920b53ce306ec333b3f7ac0216ff59637048c6997cfea4a34a87f2a0448796 SHA512 647ad13b7d45b3c5d20683ef8fe9760cb7f213e879231b6c5780bf32771adfbf7c5e5ce694c08e5681dceda63857d7d8a2d53efb60f799d3e7290cebc02ab501
DIST patchelf-0.13.tar.gz 117997 BLAKE2B 5db88c9ff9103f2e4b8e15d7dc0d677c3956a85ce5e86e371c4c32a21c3bc219990edd71a20a6b650342eff1068c0ba0976529d62d21dcc17dfc020abf7167ec SHA512 0b4cb41dc1b76d1c0f46655d8b1c56187d2bf18fa12fad9ad6e8acd321a98df372713a92c6649479498bb5939c91ce16a1032ec03afc5a2f7c92cd68882c2bd9
DIST patchelf-0.14.3.tar.gz 123722 BLAKE2B ca9c28c88ff6a5eb37a8cb9010642f04335b74e2132987f34bc167c140dc95cd4ac7a3ed71b7287d952a0201b12148a15f3066e5c7d3d453cc18a1e97b6283ed SHA512 2f5caa6b038e630896dc0cebaf4d6f88d91f6dee7f2ffa2fc6b90d199b3a0140b7fe39ea43e582f7ac1145309a61e11fb7ce36c579ad217c48f1b189738f79c8

View File

@ -1,28 +0,0 @@
From 3b9e7913a6d14cb09ed91ce8a1110955bda200ef Mon Sep 17 00:00:00 2001
From: Alexandre Pretyman <alexandre.pretyman@gmail.com>
Date: Tue, 14 Jul 2015 09:12:38 -0400
Subject: [PATCH] Change configure.ac from OpenWrt to support Mac OS
This change is from the OpenWrt project, from the URL:
https://dev.openwrt.org/ticket/18998
It enables patchelf to sucessfully compile and run under Mac OS and
keeps compatibility with Linux.
Tested under Mac OS X 10.9.5 and Ubuntu 15.04 to patch a binary of type
ELF 32-bit LSB executable - the patch fully worked
This patch is credited to Felix Fietkau
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 8ca9ad4..69e12de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([patchelf], m4_esyscmd([echo -n $(cat ./version)]))
+AC_INIT([patchelf], m4_esyscmd([printf $(cat ./version)]))
AC_CONFIG_SRCDIR([src/patchelf.cc])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall -Werror dist-bzip2 foreign color-tests parallel-tests])

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>chewi@gentoo.org</email>

View File

@ -0,0 +1,30 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
HOMEPAGE="https://nixos.org/patchelf.html"
SRC_URI="https://nixos.org/releases/${PN}/${P}/${P}.tar.bz2"
SLOT="0"
KEYWORDS="amd64 arm64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-3"
src_prepare() {
default
rm src/elf.h || die
sed -i \
-e 's:-Werror::g' \
configure.ac || die
eautoreconf
}
src_test() {
emake check \
CFLAGS+=" -no-pie" \
CXXFLAGS+=" -no-pie"
}

View File

@ -1,15 +1,15 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=8
inherit autotools
DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
HOMEPAGE="http://nixos.org/patchelf.html"
SRC_URI="http://releases.nixos.org/${PN}/${P}/${P}.tar.bz2"
HOMEPAGE="https://github.com/NixOS/patchelf"
SRC_URI="https://github.com/NixOS/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-3"
src_prepare() {
@ -18,7 +18,6 @@ src_prepare() {
sed -i \
-e 's:-Werror::g' \
-e 's:parallel-tests:serial-tests:g' \
configure.ac || die
eautoreconf

View File

@ -0,0 +1,24 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
HOMEPAGE="https://github.com/NixOS/patchelf"
SRC_URI="https://github.com/NixOS/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-3"
src_prepare() {
default
rm src/elf.h || die
sed -i \
-e 's:-Werror::g' \
configure.ac || die
eautoreconf
}

View File

@ -1,36 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
AUTOTOOLS_AUTORECONF=true
inherit autotools-utils
DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
HOMEPAGE="http://nixos.org/patchelf.html"
SRC_URI="http://releases.nixos.org/${PN}/${P}/${P}.tar.bz2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
LICENSE="GPL-3"
IUSE=""
AUTOTOOLS_IN_SOURCE_BUILD=1
PATCHES=( "${FILESDIR}"/${P}-dash.patch )
src_prepare() {
rm src/elf.h || die
sed -e 's:-Werror::g' -i configure.ac || die
autotools-utils_src_prepare
}
src_configure() {
local myeconfargs=( --docdir="${EPREFIX}"/usr/share/doc/${PF} )
autotools-utils_src_configure
}
src_test() {
autotools-utils_src_test -j1
}

View File

@ -1,178 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: chromium-2.eclass
# @MAINTAINER:
# Chromium Herd <chromium@gentoo.org>
# @AUTHOR:
# Mike Gilbert <floppym@gentoo.org>
# @BLURB: Shared functions for chromium and google-chrome
inherit eutils linux-info
if [[ ${PN} == chromium ]]; then
IUSE+=" custom-cflags"
fi
# @FUNCTION: chromium_suid_sandbox_check_kernel_config
# @USAGE:
# @DESCRIPTION:
# Ensures the system kernel supports features needed for SUID sandbox to work.
chromium_suid_sandbox_check_kernel_config() {
has "${EAPI:-0}" 0 1 2 3 && die "EAPI=${EAPI} is not supported"
if [[ "${MERGE_TYPE}" == "source" || "${MERGE_TYPE}" == "binary" ]]; then
# Warn if the kernel does not support features needed for sandboxing.
# Bug #363987.
ERROR_PID_NS="PID_NS is required for sandbox to work"
ERROR_NET_NS="NET_NS is required for sandbox to work"
ERROR_USER_NS="USER_NS is required for sandbox to work"
ERROR_SECCOMP_FILTER="SECCOMP_FILTER is required for sandbox to work"
# Warn if the kernel does not support features needed for the browser to work
# (bug #552576, bug #556286).
ERROR_ADVISE_SYSCALLS="CONFIG_ADVISE_SYSCALLS is required for the renderer (bug #552576)"
ERROR_COMPAT_VDSO="CONFIG_COMPAT_VDSO causes segfaults (bug #556286)"
ERROR_GRKERNSEC="CONFIG_GRKERNSEC breaks sandbox (bug #613668)"
CONFIG_CHECK="~PID_NS ~NET_NS ~SECCOMP_FILTER ~USER_NS ~ADVISE_SYSCALLS ~!COMPAT_VDSO ~!GRKERNSEC"
check_extra_config
fi
}
# @ECLASS-VARIABLE: CHROMIUM_LANGS
# @DEFAULT_UNSET
# @DESCRIPTION:
# List of language packs available for this package.
_chromium_set_l10n_IUSE() {
[[ ${EAPI:-0} == 0 ]] && die "EAPI=${EAPI} is not supported"
local lang
for lang in ${CHROMIUM_LANGS}; do
# Default to enabled since we bundle them anyway.
# USE-expansion will take care of disabling the langs the user has not
# selected via L10N.
IUSE+=" +l10n_${lang}"
done
}
if [[ ${CHROMIUM_LANGS} ]]; then
_chromium_set_l10n_IUSE
fi
# @FUNCTION: chromium_remove_language_paks
# @USAGE:
# @DESCRIPTION:
# Removes pak files from the current directory for languages that the user has
# not selected via the L10N variable.
# Also performs QA checks to ensure CHROMIUM_LANGS has been set correctly.
chromium_remove_language_paks() {
local lang pak
# Look for missing pak files.
for lang in ${CHROMIUM_LANGS}; do
if [[ ! -e ${lang}.pak ]]; then
eqawarn "L10N warning: no .pak file for ${lang} (${lang}.pak not found)"
fi
done
# Bug 588198
rm -f fake-bidi.pak || die
rm -f fake-bidi.pak.info || die
# Look for extra pak files.
# Remove pak files that the user does not want.
for pak in *.pak; do
lang=${pak%.pak}
if [[ ${lang} == en-US ]]; then
continue
fi
if ! has ${lang} ${CHROMIUM_LANGS}; then
eqawarn "L10N warning: no ${lang} in LANGS"
continue
fi
if ! use l10n_${lang}; then
rm "${pak}" || die
rm -f "${pak}.info" || die
fi
done
}
chromium_pkg_die() {
if [[ "${EBUILD_PHASE}" != "compile" ]]; then
return
fi
# Prevent user problems like bug #348235.
if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then
ewarn
ewarn "You have enabled debug info (i.e. -g or -ggdb in your CFLAGS/CXXFLAGS)."
ewarn "This produces very large build files causes the linker to consume large"
ewarn "amounts of memory."
ewarn
ewarn "Please try removing -g{,gdb} before reporting a bug."
ewarn
fi
# ccache often causes bogus compile failures, especially when the cache gets
# corrupted.
if has ccache ${FEATURES}; then
ewarn
ewarn "You have enabled ccache. Please try disabling ccache"
ewarn "before reporting a bug."
ewarn
fi
# No ricer bugs.
if use_if_iuse custom-cflags; then
ewarn
ewarn "You have enabled the custom-cflags USE flag."
ewarn "Please disable it before reporting a bug."
ewarn
fi
# If the system doesn't have enough memory, the compilation is known to
# fail. Print info about memory to recognize this condition.
einfo
einfo "$(grep MemTotal /proc/meminfo)"
einfo "$(grep SwapTotal /proc/meminfo)"
einfo
}
# @VARIABLE: EGYP_CHROMIUM_COMMAND
# @DESCRIPTION:
# Path to the gyp_chromium script.
: ${EGYP_CHROMIUM_COMMAND:=build/gyp_chromium}
# @VARIABLE: EGYP_CHROMIUM_DEPTH
# @DESCRIPTION:
# Depth for egyp_chromium.
: ${EGYP_CHROMIUM_DEPTH:=.}
# @FUNCTION: egyp_chromium
# @USAGE: [gyp arguments]
# @DESCRIPTION:
# Calls EGYP_CHROMIUM_COMMAND with depth EGYP_CHROMIUM_DEPTH and given
# arguments. The full command line is echoed for logging.
egyp_chromium() {
set -- "${EGYP_CHROMIUM_COMMAND}" --depth="${EGYP_CHROMIUM_DEPTH}" "$@"
echo "$@"
"$@"
}
# @FUNCTION: gyp_use
# @USAGE: <USE flag> [GYP flag] [true suffix] [false suffix]
# @DESCRIPTION:
# If USE flag is set, echo -D[GYP flag]=[true suffix].
#
# If USE flag is not set, echo -D[GYP flag]=[false suffix].
#
# [GYP flag] defaults to use_[USE flag] with hyphens converted to underscores.
#
# [true suffix] defaults to 1. [false suffix] defaults to 0.
gyp_use() {
local gypflag="-D${2:-use_${1//-/_}}="
usex "$1" "${gypflag}" "${gypflag}" "${3-1}" "${4-0}"
}

View File

@ -1,201 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
case "${EAPI:-0}" in
0|1|2|3|4)
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
;;
5|6|7)
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
;;
esac
# @ECLASS: cuda.eclass
# @MAINTAINER:
# Justin Lecher <jlec@gentoo.org>
# @SUPPORTED_EAPIS: 5 6 7
# @BLURB: Common functions for cuda packages
# @DESCRIPTION:
# This eclass contains functions to be used with cuda package. Currently it is
# setting and/or sanitizing NVCCFLAGS, the compiler flags for nvcc. This is
# automatically done and exported in src_prepare() or manually by calling
# cuda_sanatize.
# @EXAMPLE:
# inherit cuda
if [[ -z ${_CUDA_ECLASS} ]]; then
inherit flag-o-matic toolchain-funcs
[[ ${EAPI} == [56] ]] && inherit eapi7-ver
# @ECLASS-VARIABLE: NVCCFLAGS
# @DESCRIPTION:
# nvcc compiler flags (see nvcc --help), which should be used like
# CFLAGS for c compiler
: ${NVCCFLAGS:=-O2}
# @ECLASS-VARIABLE: CUDA_VERBOSE
# @DESCRIPTION:
# Being verbose during compilation to see underlying commands
: ${CUDA_VERBOSE:=true}
# @FUNCTION: cuda_gccdir
# @USAGE: [-f]
# @RETURN: gcc bindir compatible with current cuda, optionally (-f) prefixed with "--compiler-bindir "
# @DESCRIPTION:
# Helper for determination of the latest gcc bindir supported by
# then current nvidia cuda toolkit.
#
# Example:
# @CODE
# cuda_gccdir -f
# -> --compiler-bindir "/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3"
# @CODE
cuda_gccdir() {
debug-print-function ${FUNCNAME} "$@"
local dirs gcc_bindir ver vers="" flag
# Currently we only support the gnu compiler suite
if ! tc-is-gcc ; then
ewarn "Currently we only support the gnu compiler suite"
return 2
fi
while [[ "$1" ]]; do
case $1 in
-f)
flag="--compiler-bindir "
;;
*)
;;
esac
shift
done
if ! vers="$(cuda-config -s)"; then
eerror "Could not execute cuda-config"
eerror "Make sure >=dev-util/nvidia-cuda-toolkit-4.2.9-r1 is installed"
die "cuda-config not found"
fi
if [[ -z ${vers} ]]; then
die "Could not determine supported gcc versions from cuda-config"
fi
# Try the current gcc version first
ver=$(gcc-version)
if [[ -n "${ver}" ]] && [[ ${vers} =~ ${ver} ]]; then
dirs=( ${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/${ver}*/ )
gcc_bindir="${dirs[${#dirs[@]}-1]}"
fi
if [[ -z ${gcc_bindir} ]]; then
ver=$(best_version "sys-devel/gcc")
ver=$(ver_cut 1-2 "${ver##*sys-devel/gcc-}")
if [[ -n "${ver}" ]] && [[ ${vers} =~ ${ver} ]]; then
dirs=( ${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/${ver}*/ )
gcc_bindir="${dirs[${#dirs[@]}-1]}"
fi
fi
for ver in ${vers}; do
if has_version "=sys-devel/gcc-${ver}*"; then
dirs=( ${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/${ver}*/ )
gcc_bindir="${dirs[${#dirs[@]}-1]}"
fi
done
if [[ -n ${gcc_bindir} ]]; then
if [[ -n ${flag} ]]; then
echo "${flag}\"${gcc_bindir%/}\""
else
echo "${gcc_bindir%/}"
fi
return 0
else
eerror "Only gcc version(s) ${vers} are supported,"
eerror "of which none is installed"
die "Only gcc version(s) ${vers} are supported"
return 1
fi
}
# @FUNCTION: cuda_sanitize
# @DESCRIPTION:
# Correct NVCCFLAGS by adding the necessary reference to gcc bindir and
# passing CXXFLAGS to underlying compiler without disturbing nvcc.
cuda_sanitize() {
debug-print-function ${FUNCNAME} "$@"
local rawldflags=$(raw-ldflags)
# Be verbose if wanted
[[ "${CUDA_VERBOSE}" == true ]] && NVCCFLAGS+=" -v"
# Tell nvcc where to find a compatible compiler
NVCCFLAGS+=" $(cuda_gccdir -f)"
# Tell nvcc which flags should be used for underlying C compiler
NVCCFLAGS+=" --compiler-options \"${CXXFLAGS}\" --linker-options \"${rawldflags// /,}\""
debug-print "Using ${NVCCFLAGS} for cuda"
export NVCCFLAGS
}
# @FUNCTION: cuda_add_sandbox
# @USAGE: [-w]
# @DESCRIPTION:
# Add nvidia dev nodes to the sandbox predict list.
# with -w, add to the sandbox write list.
cuda_add_sandbox() {
debug-print-function ${FUNCNAME} "$@"
local i
for i in /dev/nvidia*; do
if [[ $1 == '-w' ]]; then
addwrite $i
else
addpredict $i
fi
done
}
# @FUNCTION: cuda_toolkit_version
# @DESCRIPTION:
# echo the installed version of dev-util/nvidia-cuda-toolkit
cuda_toolkit_version() {
debug-print-function ${FUNCNAME} "$@"
local v
v="$(best_version dev-util/nvidia-cuda-toolkit)"
v="${v##*cuda-toolkit-}"
ver_cut 1-2 "${v}"
}
# @FUNCTION: cuda_cudnn_version
# @DESCRIPTION:
# echo the installed version of dev-libs/cudnn
cuda_cudnn_version() {
debug-print-function ${FUNCNAME} "$@"
local v
v="$(best_version dev-libs/cudnn)"
v="${v##*cudnn-}"
ver_cut 1-2 "${v}"
}
# @FUNCTION: cuda_src_prepare
# @DESCRIPTION:
# Sanitise and export NVCCFLAGS by default
cuda_src_prepare() {
debug-print-function ${FUNCNAME} "$@"
cuda_sanitize
}
EXPORT_FUNCTIONS src_prepare
_CUDA_ECLASS=1
fi

View File

@ -1,9 +1,10 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: fcaps.eclass
# @MAINTAINER:
# base-system@gentoo.org
# @SUPPORTED_EAPIS: 6 7 8
# @BLURB: function to set POSIX file-based capabilities
# @DESCRIPTION:
# This eclass provides a function to set file-based capabilities on binaries.
@ -28,13 +29,22 @@
# )
# @CODE
case ${EAPI} in
6|7|8) ;;
*) die "EAPI ${EAPI:-0} is unsupported" ;;
esac
if [[ -z ${_FCAPS_ECLASS} ]]; then
_FCAPS_ECLASS=1
IUSE="+filecaps"
# We can't use libcap-ng atm due to #471414.
DEPEND="filecaps? ( sys-libs/libcap )"
# Since it is needed in pkg_postinst() it must be in IDEPEND
case ${EAPI} in
7) BDEPEND="filecaps? ( sys-libs/libcap )" ;& # fallthrough
6) RDEPEND="filecaps? ( sys-libs/libcap )" ;;
*) IDEPEND="filecaps? ( sys-libs/libcap )" ;;
esac
# @ECLASS-VARIABLE: FILECAPS
# @DEFAULT_UNSET
@ -78,6 +88,11 @@ DEPEND="filecaps? ( sys-libs/libcap )"
fcaps() {
debug-print-function ${FUNCNAME} "$@"
if [[ ${EUID} != 0 ]] ; then
einfo "Insufficient privileges to execute ${FUNCNAME}, skipping."
return 0
fi
# Process the user options first.
local owner='root'
local group='0'
@ -126,69 +141,31 @@ fcaps() {
# by people.
chmod ${caps_mode} "${file}" || die
# Set/verify funcs for sys-libs/libcap.
_libcap() { setcap "${caps}" "${file}" ; }
_libcap_verify() { setcap -v "${caps}" "${file}" >/dev/null ; }
if ! out=$(LC_ALL=C setcap "${caps}" "${file}" 2>&1) ; then
case ${out} in
# ENOTSUP and EOPNOTSUPP might be the same value which means
# strerror() on them is unstable -- we can get both. #559608
*"Not supported"*|\
*"Operation not supported"*)
local fstype=$(stat -f -c %T "${file}")
ewarn "Could not set caps on '${file}' due to missing filesystem support:"
ewarn "* enable XATTR support for '${fstype}' in your kernel (if configurable)"
ewarn "* mount the fs with the user_xattr option (if not the default)"
ewarn "* enable the relevant FS_SECURITY option (if configurable)"
;;
*)
eerror "Setting caps '${caps}' on file '${file}' failed:"
eerror "${out}"
die "could not set caps"
;;
esac
else
# Sanity check that everything took.
setcap -v "${caps}" "${file}" >/dev/null \
|| die "Checking caps '${caps}' on '${file}' failed"
# Set/verify funcs for sys-libs/libcap-ng.
# Note: filecap only supports =ep mode.
# It also expects a different form:
# setcap cap_foo,cap_bar
# filecap foo bar
_libcap_ng() {
local caps=",${caps%=ep}"
filecap "${file}" "${caps//,cap_}"
}
_libcap_ng_verify() {
# libcap-ng has a crappy interface
local rcaps icaps caps=",${caps%=ep}"
rcaps=$(filecap "${file}" | \
sed -nr \
-e "s:^.{${#file}} +::" \
-e 's:, +:\n:g' \
-e 2p | \
LC_ALL=C sort)
[[ ${PIPESTATUS[0]} -eq 0 ]] || return 1
icaps=$(echo "${caps//,cap_}" | LC_ALL=C sort)
[[ ${rcaps} == ${icaps} ]]
}
local out cmd notfound=0
for cmd in _libcap _libcap_ng ; do
if ! out=$(LC_ALL=C ${cmd} 2>&1) ; then
case ${out} in
*"command not found"*)
: $(( ++notfound ))
continue
;;
# ENOTSUP and EOPNOTSUPP might be the same value which means
# strerror() on them is unstable -- we can get both. #559608
*"Not supported"*|\
*"Operation not supported"*)
local fstype=$(stat -f -c %T "${file}")
ewarn "Could not set caps on '${file}' due to missing filesystem support:"
ewarn "* enable XATTR support for '${fstype}' in your kernel (if configurable)"
ewarn "* mount the fs with the user_xattr option (if not the default)"
ewarn "* enable the relevant FS_SECURITY option (if configurable)"
break
;;
*)
eerror "Setting caps '${caps}' on file '${file}' failed:"
eerror "${out}"
die "could not set caps"
;;
esac
else
# Sanity check that everything took.
${cmd}_verify || die "Checking caps '${caps}' on '${file}' failed"
# Everything worked. Move on to the next file.
continue 2
fi
done
if [[ ${notfound} -eq 2 ]] && [[ -z ${_FCAPS_WARNED} ]] ; then
_FCAPS_WARNED="true"
ewarn "Could not find cap utils; make sure libcap or libcap-ng is available."
# Everything worked. Move on to the next file.
continue
fi
fi

View File

@ -1,151 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: mate.eclass
# @MAINTAINER:
# mate@gentoo.org
# @AUTHOR:
# Authors: NP-Hardass <NP-Hardass@gentoo.org> based upon the gnome2
# and autotools-utils eclasses
# @SUPPORTED_EAPIS: 6
# @BLURB: Provides phases for MATE based packages.
# @DESCRIPTION:
# Exports portage base functions used by ebuilds written for packages using the
# MATE framework. Occassionally acts as a wrapper to gnome2 due to the
# fact that MATE is a GNOME fork. For additional functions, see gnome2-utils.eclass.
# Check EAPI only
case "${EAPI:-0}" in
6) ;;
*) die "EAPI=${EAPI:-0} is not supported" ;;
esac
# Inherit happens below after declaration of GNOME2_LA_PUNT
# @ECLASS-VARIABLE: MATE_LA_PUNT
# @DESCRIPTION:
# Available values for MATE_LA_PUNT:
# - "no": will not clean any .la files
# - "yes": will run prune_libtool_files --modules
# - If it is not set, it will run prune_libtool_files
# MATE_LA_PUNT is a stub to GNOME2_LA_PUNT
GNOME2_LA_PUNT=${MATE_LA_PUNT:-""}
inherit gnome2 autotools mate-desktop.org
case "${EAPI:-0}" in
6) EXPORT_FUNCTIONS src_prepare src_configure src_install pkg_preinst pkg_postinst pkg_postrm ;;
*) die "EAPI=${EAPI:-0} is not supported" ;;
esac
# Autotools requires our MATE m4 files
DEPEND=">=mate-base/mate-common-${MATE_BRANCH}"
# @FUNCTION: mate_py_cond_func_wrap
# @DESCRIPTION:
# Wraps a function for conditional python use, to run for each
# python implementation in the build directory.
# This function should only be used if the ebuild also inherits the
# python-r1 eclass
mate_py_cond_func_wrap() {
if [[ ! ${_PYTHON_R1} ]]; then
die "This function requires the inheritence of the python-r1 eclass"
fi
if use python; then
python_foreach_impl run_in_build_dir "$@"
else
$@
fi
}
# @ECLASS-VARIABLE: MATE_FORCE_AUTORECONF
# @DESCRIPTION:
# Available values for MATE_FORCE_AUTORECONF:
# - true: will always run eautoreconf
# - false: will default to automatic detect
# - If it is not set, it will default to false
: ${MATE_FORCE_AUTORECONF:="false"}
# @FUNCTION: ematedocize
# @DESCRIPTION:
# A wrapper around mate-doc-common
ematedocize() {
ebegin "Running mate-doc-common --copy"
mate-doc-common --copy || die
eend $?
}
# @FUNCTION: want_mate_doc
# @DESCRIPTION:
# Returns true/false based on whether eautoreconf should call
# ematedocize
want_mate_doc() {
grep -q USE_COMMON_DOC_BUILD autogen.sh
}
# @FUNCTION: mate_src_prepare
# @DESCRIPTION:
# Call gnome2_src_prepare to handle environment setup and patching, then
# call eautoreconf if necessary
mate_src_prepare() {
debug-print-function ${FUNCNAME} "$@"
local force_autoreconf=${MATE_FORCE_AUTORECONF}
[[ ${PV} == 9999 ]] && force_autoreconf="true"
gen_chksum() {
find '(' -name 'Makefile.am' \
-o -name 'configure.ac' \
-o -name 'configure.in' ')' \
-exec cksum {} + | sort -k2
}
local chksum=$(gen_chksum)
gnome2_src_prepare "$@"
if [[ "${force_autoreconf}" == "true" ]] || [[ ${chksum} != $(gen_chksum) ]]; then
want_mate_doc && ematedocize
AT_NOELIBTOOLIZE="yes" eautoreconf # gnome2_src_prepare calls elibtoolize
fi
}
# @FUNCTION: mate_src_configure
# @DESCRIPTION:
# MATE specific configure handling
# Stub to gnome2_src_configure()
mate_src_configure() {
gnome2_src_configure "$@"
}
# @FUNCTION: mate_src_install
# @DESCRIPTION:
# MATE specific install. Stub to gnome2_src_install
mate_src_install() {
gnome2_src_install "$@"
}
# @FUNCTION: mate_pkg_preinst
# @DESCRIPTION:
# Finds Icons, GConf and GSettings schemas for later handling in pkg_postinst
# Stub to gnome2_pkg_preinst
mate_pkg_preinst() {
gnome2_pkg_preinst "$@"
}
# @FUNCTION: mate_pkg_postinst
# @DESCRIPTION:
# Handle scrollkeeper, GConf, GSettings, Icons, desktop and mime
# database updates.
# Stub to gnome2_pkg_postinst
mate_pkg_postinst() {
gnome2_pkg_postinst "$@"
}
# @FUNCTION: mate_pkg_postrm
# @DESCRIPTION:
# Handle scrollkeeper, GSettings, Icons, desktop and mime database updates.
# Stub to gnome2_pkg_postrm
mate_pkg_postrm() {
gnome2_pkg_postrm "$@"
}

View File

@ -1,85 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: php-ext-pecl-r3.eclass
# @MAINTAINER:
# Gentoo PHP team <php-bugs@gentoo.org>
# @BLURB: A uniform way to install PECL extensions
# @DESCRIPTION:
# This eclass should be used by all dev-php/pecl-* ebuilds as a uniform
# way of installing PECL extensions. For more information about PECL,
# see https://pecl.php.net/
# @ECLASS-VARIABLE: PHP_EXT_PECL_PKG
# @DESCRIPTION:
# Set in ebuild before inheriting this eclass if the tarball name
# differs from ${PN/pecl-/} so that SRC_URI and HOMEPAGE get set
# correctly by the eclass.
#
# Setting this variable manually also affects PHP_EXT_NAME and ${S}
# unless you override those in ebuild. If that is not desired, please
# use PHP_EXT_PECL_FILENAME instead.
[[ -z "${PHP_EXT_PECL_PKG}" ]] && PHP_EXT_PECL_PKG="${PN/pecl-/}"
# @ECLASS-VARIABLE: PHP_EXT_PECL_FILENAME
# @DEFAULT_UNSET
# @DESCRIPTION:
# Set in ebuild before inheriting this eclass if the tarball name
# differs from "${PN/pecl-/}-${PV}.tgz" so that SRC_URI gets set
# correctly by the eclass.
#
# Unlike PHP_EXT_PECL_PKG, setting this variable does not affect
# HOMEPAGE, PHP_EXT_NAME or ${S}.
# Set PHP_EXT_NAME for php-ext-source-r3.eclass.
[[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PHP_EXT_PECL_PKG}"
# Try to guess the upstream name of the package/version. We only use
# this variable temporarily before unsetting it.
PHP_EXT_PECL_PKG_V="${PHP_EXT_PECL_PKG}-${PV/_/}"
# It's important that we determine and set $S before we inherit below.
S="${WORKDIR}/${PHP_EXT_PECL_PKG_V}"
inherit php-ext-source-r3
EXPORT_FUNCTIONS src_install src_test
if [[ -z "${PHP_EXT_PECL_FILENAME}" ]] ; then
SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_PKG_V}.tgz"
else
SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_FILENAME}"
fi
# Don't leave this laying around in the environment.
unset PHP_EXT_PECL_PKG_V
HOMEPAGE="https://pecl.php.net/${PHP_EXT_PECL_PKG}"
# @FUNCTION: php-ext-pecl-r3_src_install
# @DESCRIPTION:
# Install a standard PECL package. First we delegate to
# php-ext-source-r3.eclass, and then we attempt to install examples
# found in a standard location.
php-ext-pecl-r3_src_install() {
php-ext-source-r3_src_install
if in_iuse examples && use examples ; then
dodoc -r examples
fi
}
# @FUNCTION: php-ext-pecl-r3_src_test
# @DESCRIPTION:
# Run tests delivered with the PECL package. Phpize will have generated
# a run-tests.php file to be executed by `make test`. We only need to
# force the test suite to run in non-interactive mode.
php-ext-pecl-r3_src_test() {
for slot in $(php_get_slots); do
php_init_slot_env "${slot}"
NO_INTERACTION="yes" emake test
done
}

View File

@ -1,259 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: rebar.eclass
# @MAINTAINER:
# Amadeusz Żołnowski <aidecoe@gentoo.org>
# @AUTHOR:
# Amadeusz Żołnowski <aidecoe@gentoo.org>
# @SUPPORTED_EAPIS: 6
# @BLURB: Build Erlang/OTP projects using dev-util/rebar.
# @DESCRIPTION:
# An eclass providing functions to build Erlang/OTP projects using
# dev-util/rebar.
#
# rebar is a tool which tries to resolve dependencies itself which is by
# cloning remote git repositories. Dependant projects are usually expected to
# be in sub-directory 'deps' rather than looking at system Erlang lib
# directory. Projects relying on rebar usually don't have 'install' make
# targets. The eclass workarounds some of these problems. It handles
# installation in a generic way for Erlang/OTP structured projects.
case "${EAPI:-0}" in
0|1|2|3|4|5)
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
;;
6)
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
;;
esac
EXPORT_FUNCTIONS src_prepare src_compile src_test src_install
RDEPEND="dev-lang/erlang"
DEPEND="${RDEPEND}
dev-util/rebar
>=sys-apps/gawk-4.1"
# @ECLASS-VARIABLE: REBAR_APP_SRC
# @DESCRIPTION:
# Relative path to .app.src description file.
REBAR_APP_SRC="${REBAR_APP_SRC-src/${PN}.app.src}"
# @FUNCTION: get_erl_libs
# @RETURN: the path to Erlang lib directory
# @DESCRIPTION:
# Get the full path without EPREFIX to Erlang lib directory.
get_erl_libs() {
echo "/usr/$(get_libdir)/erlang/lib"
}
# @FUNCTION: _rebar_find_dep
# @INTERNAL
# @USAGE: <project_name>
# @RETURN: full path with EPREFIX to a Erlang package/project on success,
# code 1 when dependency is not found and code 2 if multiple versions of
# dependency are found.
# @DESCRIPTION:
# Find a Erlang package/project by name in Erlang lib directory. Project
# directory is usually suffixed with version. It is matched to '<project_name>'
# or '<project_name>-*'.
_rebar_find_dep() {
local pn="$1"
local p
local result
pushd "${EPREFIX}$(get_erl_libs)" >/dev/null || return 1
for p in ${pn} ${pn}-*; do
if [[ -d ${p} ]]; then
# Ensure there's at most one matching.
[[ ${result} ]] && return 2
result="${p}"
fi
done
popd >/dev/null || die
[[ ${result} ]] || return 1
echo "${result}"
}
# @FUNCTION: rebar_disable_coverage
# @USAGE: [<rebar_config>]
# @DESCRIPTION:
# Disable coverage in rebar.config. This is a workaround for failing coverage.
# Coverage is not relevant in this context, so there's no harm to disable it,
# although the issue should be fixed.
rebar_disable_coverage() {
debug-print-function ${FUNCNAME} "${@}"
local rebar_config="${1:-rebar.config}"
sed -e 's/{cover_enabled, true}/{cover_enabled, false}/' \
-i "${rebar_config}" \
|| die "failed to disable coverage in ${rebar_config}"
}
# @FUNCTION: erebar
# @USAGE: <targets>
# @DESCRIPTION:
# Run rebar with verbose flag. Die on failure.
erebar() {
debug-print-function ${FUNCNAME} "${@}"
(( $# > 0 )) || die "erebar: at least one target is required"
local -x ERL_LIBS="${EPREFIX}$(get_erl_libs)"
rebar -v skip_deps=true "$@" || die -n "rebar $@ failed"
}
# @FUNCTION: rebar_fix_include_path
# @USAGE: <project_name> [<rebar_config>]
# @DESCRIPTION:
# Fix path in rebar.config to 'include' directory of dependant project/package,
# so it points to installation in system Erlang lib rather than relative 'deps'
# directory.
#
# <rebar_config> is optional. Default is 'rebar.config'.
#
# The function dies on failure.
rebar_fix_include_path() {
debug-print-function ${FUNCNAME} "${@}"
local pn="$1"
local rebar_config="${2:-rebar.config}"
local erl_libs="${EPREFIX}$(get_erl_libs)"
local p
p="$(_rebar_find_dep "${pn}")" \
|| die "failed to unambiguously resolve dependency of '${pn}'"
gawk -i inplace \
-v erl_libs="${erl_libs}" -v pn="${pn}" -v p="${p}" '
/^{[[:space:]]*erl_opts[[:space:]]*,/, /}[[:space:]]*\.$/ {
pattern = "\"(./)?deps/" pn "/include\"";
if (match($0, "{i,[[:space:]]*" pattern "[[:space:]]*}")) {
sub(pattern, "\"" erl_libs "/" p "/include\"");
}
print $0;
next;
}
1
' "${rebar_config}" || die "failed to fix include paths in ${rebar_config} for '${pn}'"
}
# @FUNCTION: rebar_remove_deps
# @USAGE: [<rebar_config>]
# @DESCRIPTION:
# Remove dependencies list from rebar.config and deceive build rules that any
# dependencies are already fetched and built. Otherwise rebar tries to fetch
# dependencies and compile them.
#
# <rebar_config> is optional. Default is 'rebar.config'.
#
# The function dies on failure.
rebar_remove_deps() {
debug-print-function ${FUNCNAME} "${@}"
local rebar_config="${1:-rebar.config}"
mkdir -p "${S}/deps" && :>"${S}/deps/.got" && :>"${S}/deps/.built" || die
gawk -i inplace '
/^{[[:space:]]*deps[[:space:]]*,/, /}[[:space:]]*\.$/ {
if ($0 ~ /}[[:space:]]*\.$/) {
print "{deps, []}.";
}
next;
}
1
' "${rebar_config}" || die "failed to remove deps from ${rebar_config}"
}
# @FUNCTION: rebar_set_vsn
# @USAGE: [<version>]
# @DESCRIPTION:
# Set version in project description file if it's not set.
#
# <version> is optional. Default is PV stripped from version suffix.
#
# The function dies on failure.
rebar_set_vsn() {
debug-print-function ${FUNCNAME} "${@}"
local version="${1:-${PV%_*}}"
sed -e "s/vsn, git/vsn, \"${version}\"/" \
-i "${S}/${REBAR_APP_SRC}" \
|| die "failed to set version in src/${PN}.app.src"
}
# @FUNCTION: rebar_src_prepare
# @DESCRIPTION:
# Prevent rebar from fetching and compiling dependencies. Set version in
# project description file if it's not set.
#
# Existence of rebar.config is optional, but file description file must exist
# at 'src/${PN}.app.src'.
rebar_src_prepare() {
debug-print-function ${FUNCNAME} "${@}"
default
rebar_set_vsn
if [[ -f rebar.config ]]; then
rebar_disable_coverage
rebar_remove_deps
fi
}
# @FUNCTION: rebar_src_configure
# @DESCRIPTION:
# Configure with ERL_LIBS set.
rebar_src_configure() {
debug-print-function ${FUNCNAME} "${@}"
local -x ERL_LIBS="${EPREFIX}$(get_erl_libs)"
default
}
# @FUNCTION: rebar_src_compile
# @DESCRIPTION:
# Compile project with rebar.
rebar_src_compile() {
debug-print-function ${FUNCNAME} "${@}"
erebar compile
}
# @FUNCTION: rebar_src_test
# @DESCRIPTION:
# Run unit tests.
rebar_src_test() {
debug-print-function ${FUNCNAME} "${@}"
erebar eunit
}
# @FUNCTION: rebar_src_install
# @DESCRIPTION:
# Install BEAM files, include headers, executables and native libraries.
# Install standard docs like README or defined in DOCS variable.
#
# Function expects that project conforms to Erlang/OTP structure.
rebar_src_install() {
debug-print-function ${FUNCNAME} "${@}"
local bin
local dest="$(get_erl_libs)/${P}"
insinto "${dest}"
doins -r ebin
[[ -d include ]] && doins -r include
[[ -d bin ]] && for bin in bin/*; do dobin "$bin"; done
if [[ -d priv ]]; then
cp -pR priv "${ED}${dest}/" || die "failed to install priv/"
fi
einstalldocs
}

View File

@ -1,181 +0,0 @@
#!/bin/bash
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
source tests-common.sh
EAPI=6
inherit rebar
EPREFIX="${tmpdir}/fakeroot"
S="${WORKDIR}/${P}"
setup() {
mkdir -p "${S}" || die
for pkg in foo-0.1.0 bar-0.1.0; do
mkdir -p "${EPREFIX}$(get_erl_libs)/${pkg}/include" || die
done
cat <<EOF >"${S}/typical.config" || die
%%% Comment
{erl_opts, [debug_info, {src_dirs, ["src"]},
{i, "include"},
{i, "deps/foo/include"},
{i, "../foo/include"}]}.
{port_env, [{"CFLAGS", "\$CFLAGS"}, {"LDFLAGS", "\$LDFLAGS"}]}.
EOF
cat <<EOF >"${S}/typical.config.expected" || die
%%% Comment
{erl_opts, [debug_info, {src_dirs, ["src"]},
{i, "include"},
{i, "${EPREFIX}$(get_erl_libs)/foo-0.1.0/include"},
{i, "../foo/include"}]}.
{port_env, [{"CFLAGS", "\$CFLAGS"}, {"LDFLAGS", "\$LDFLAGS"}]}.
EOF
cat <<EOF >"${S}/inc_one_line.config" || die
%%% Comment
{erl_opts, [debug_info, {src_dirs, ["src"]}, {i, "include"}, {i, "deps/foo/include"}, {i, "../foo/include"}]}.
{port_env, [{"CFLAGS", "\$CFLAGS"}, {"LDFLAGS", "\$LDFLAGS"}]}.
EOF
cat <<EOF >"${S}/inc_one_line.config.expected" || die
%%% Comment
{erl_opts, [debug_info, {src_dirs, ["src"]}, {i, "include"}, {i, "${EPREFIX}$(get_erl_libs)/foo-0.1.0/include"}, {i, "../foo/include"}]}.
{port_env, [{"CFLAGS", "\$CFLAGS"}, {"LDFLAGS", "\$LDFLAGS"}]}.
EOF
}
test_typical_config() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp typical.config rebar.config || die
# Run unit
(rebar_fix_include_path foo)
unit_rc=$?
# Test result
diff rebar.config typical.config.expected
diff_rc=$?
[[ ${unit_rc}${diff_rc} = 00 ]]
}
test_typical_config_with_different_name() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp typical.config other.config || die
# Run unit
(rebar_fix_include_path foo other.config)
unit_rc=$?
# Test result
diff other.config typical.config.expected
diff_rc=$?
[[ ${unit_rc}${diff_rc} = 00 ]]
}
test_multiple_versions() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp typical.config rebar.config || die
mkdir -p "${EPREFIX}$(get_erl_libs)/foo-1.0.0/include" || die
# Run unit
(rebar_fix_include_path foo 2>/dev/null)
unit_rc=$?
# Test result
diff rebar.config typical.config
diff_rc=$?
# Clean up
rm -r "${EPREFIX}$(get_erl_libs)/foo-1.0.0" || die
[[ ${unit_rc}${diff_rc} = 10 ]]
}
test_not_found() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp typical.config rebar.config || die
# Run unit
(rebar_fix_include_path fo 2>/dev/null)
unit_rc=$?
# Test result
diff rebar.config typical.config
diff_rc=$?
[[ ${unit_rc}${diff_rc} = 10 ]]
}
test_includes_in_one_line() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp inc_one_line.config rebar.config || die
# Run unit
(rebar_fix_include_path foo)
unit_rc=$?
# Test result
diff rebar.config inc_one_line.config.expected
diff_rc=$?
[[ ${unit_rc}${diff_rc} = 00 ]]
}
setup
tbegin "rebar_fix_include_path deals with typical config"
test_typical_config
tend $?
tbegin "rebar_fix_include_path deals with typical config with different name"
test_typical_config_with_different_name
tend $?
tbegin "rebar_fix_include_path fails on multiple versions of dependency"
test_multiple_versions
tend $?
tbegin "rebar_fix_include_path fails if dependency is not found"
test_not_found
tend $?
tbegin "rebar_fix_include_path deals with all includes in one line"
test_includes_in_one_line
tend $?
texit

View File

@ -1,121 +0,0 @@
#!/bin/bash
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
source tests-common.sh
EAPI=6
inherit rebar
EPREFIX="${tmpdir}/fakeroot"
S="${WORKDIR}/${P}"
setup() {
mkdir -p "${S}" || die
cat <<EOF >"${S}/rebar.config.expected" || die
%%% Comment
{port_specs, [{"priv/lib/esip_drv.so", ["c_src/esip_codec.c"]}]}.
{deps, []}.
{clean_files, ["c_src/esip_codec.gcda", "c_src/esip_codec.gcno"]}.
EOF
cat <<EOF >"${S}/typical.config" || die
%%% Comment
{port_specs, [{"priv/lib/esip_drv.so", ["c_src/esip_codec.c"]}]}.
{deps, [{stun, ".*", {git, "https://github.com/processone/stun", {tag, "1.0.3"}}},
{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.3"}}},
{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.3"}}}]}.
{clean_files, ["c_src/esip_codec.gcda", "c_src/esip_codec.gcno"]}.
EOF
cat <<EOF >"${S}/deps_one_line.config" || die
%%% Comment
{port_specs, [{"priv/lib/esip_drv.so", ["c_src/esip_codec.c"]}]}.
{deps, [{stun, ".*", {git, "https://github.com/processone/stun", {tag, "1.0.3"}}}, {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.3"}}}, {p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.3"}}}]}.
{clean_files, ["c_src/esip_codec.gcda", "c_src/esip_codec.gcno"]}.
EOF
}
test_typical_config() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp typical.config rebar.config || die
# Run unit
(rebar_remove_deps)
unit_rc=$?
# Test result
diff rebar.config rebar.config.expected
diff_rc=$?
[[ ${unit_rc}${diff_rc} = 00 ]]
}
test_typical_config_with_different_name() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp typical.config other.config || die
# Run unit
(rebar_remove_deps other.config)
unit_rc=$?
# Test result
diff other.config rebar.config.expected
diff_rc=$?
[[ ${unit_rc}${diff_rc} = 00 ]]
}
test_deps_in_one_line() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp deps_one_line.config rebar.config || die
# Run unit
(rebar_remove_deps)
unit_rc=$?
# Test result
diff rebar.config rebar.config.expected
diff_rc=$?
[[ ${unit_rc}${diff_rc} = 00 ]]
}
setup
tbegin "rebar_remove_deps deals with typical config"
test_typical_config
tend $?
tbegin "rebar_remove_deps deals with typical config with different name"
test_typical_config_with_different_name
tend $?
tbegin "rebar_remove_deps deals with all deps in one line"
test_deps_in_one_line
tend $?
texit

View File

@ -1,114 +0,0 @@
#!/bin/bash
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
source tests-common.sh
EAPI=6
inherit rebar
EPREFIX="${tmpdir}/fakeroot"
S="${WORKDIR}/${P}"
setup() {
mkdir -p "${S}/src" || die
cat <<EOF >"${S}/app.src.expected" || die
%%% Comment
{application, esip,
[{description, "ProcessOne SIP server component in Erlang"},
{vsn, "0"},
{modules, []},
{registered, []},
EOF
cat <<EOF >"${S}/app.src" || die
%%% Comment
{application, esip,
[{description, "ProcessOne SIP server component in Erlang"},
{vsn, git},
{modules, []},
{registered, []},
EOF
}
test_typical_app_src() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp app.src "src/${PN}.app.src" || die
# Run unit
(rebar_set_vsn)
unit_rc=$?
# Test result
diff "src/${PN}.app.src" app.src.expected
diff_rc=$?
[[ ${unit_rc}${diff_rc} = 00 ]]
}
test_app_src_missing() {
local unit_rc
# Prepare
cd "${S}" || die
rm -f "src/${PN}.app.src" || die
# Run unit
(rebar_set_vsn 2>/dev/null)
unit_rc=$?
[[ ${unit_rc} = 1 ]]
}
test_set_custom_version() {
local diff_rc
local unit_rc
# Prepare
cd "${S}" || die
cp app.src "src/${PN}.app.src" || die
cat <<EOF >"${S}/custom_app.src.expected" || die
%%% Comment
{application, esip,
[{description, "ProcessOne SIP server component in Erlang"},
{vsn, "1.2.3"},
{modules, []},
{registered, []},
EOF
# Run unit
(rebar_set_vsn 1.2.3)
unit_rc=$?
# Test result
diff "src/${PN}.app.src" custom_app.src.expected
diff_rc=$?
[[ ${unit_rc}${diff_rc} = 00 ]]
}
setup
tbegin "rebar_set_vsn deals with typical app.src"
test_typical_app_src
tend $?
tbegin "rebar_set_vsn fails when app.src is missing"
test_app_src_missing
tend $?
tbegin "rebar_set_vsn sets custom version in app.src"
test_set_custom_version
tend $?
texit

View File

@ -1,614 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: vdr-plugin-2.eclass
# @MAINTAINER:
# Gentoo VDR Project <vdr@gentoo.org>
# @AUTHOR:
# Matthias Schwarzott <zzam@gentoo.org>
# Joerg Bornkessel <hd_brummy@gentoo.org>
# Christian Ruppert <idl0r@gentoo.org>
# (undisclosed contributors)
# @SUPPORTED_EAPIS: 4 5 6
# @BLURB: common vdr plugin ebuild functions
# @DESCRIPTION:
# Eclass for easing maintenance of vdr plugin ebuilds
# @ECLASS-VARIABLE: VDR_CONFD_FILE
# @DEFAULT_UNSET
# @DESCRIPTION:
# A plugin config file can be specified through the $VDR_CONFD_FILE variable, it
# defaults to ${FILESDIR}/confd. Each config file will be installed as e.g.
# ${D}/etc/conf.d/vdr.${VDRPLUGIN}
# @ECLASS-VARIABLE: VDR_RCADDON_FILE
# @DEFAULT_UNSET
# @DESCRIPTION:
# Installing rc-addon files is basically the same as for plugin config files
# (see above), it's just using the $VDR_RCADDON_FILE variable instead.
# The default value when $VDR_RCADDON_FILE is undefined is:
# ${FILESDIR}/rc-addon.sh and will be installed as
# ${VDR_RC_DIR}/plugin-${VDRPLUGIN}.sh
#
# The rc-addon files will be sourced by the startscript when the specific plugin
# has been enabled.
# rc-addon files may be used to prepare everything that is necessary for the
# plugin start/stop, like passing extra command line options and so on.
#
# NOTE: rc-addon files must be valid shell scripts!
# @ECLASS-VARIABLE: GENTOO_VDR_CONDITIONAL
# @DEFAULT_UNSET
# @DESCRIPTION:
# This is a hack for ebuilds like vdr-xineliboutput that want to
# conditionally install a vdr-plugin
# @ECLASS-VARIABLE: PO_SUBDIR
# @DEFAULT_UNSET
# @DESCRIPTION:
# By default, translation are found in"${S}"/po but this
# default can be overridden by defining PO_SUBDIR.
#
# Example:
# @CODE
# PO_SUBDIR="bla foo/bla"
# @CODE
# @FUNCTION: fix_vdr_libsi_include
# @DESCRIPTION:
# Plugins failed on compile with wrong path of libsi includes,
# this can be fixed by 'function + space separated list of files'
#
# Example:
# @CODE
# fix_vdr_libsi_include bla.c foo.c
# @CODE
# @FUNCTION: vdr_remove_i18n_include
# @DESCRIPTION:
# Compile will fail if plugin still use the old i18n language handling,
# most parts are fixed by vdr-plugin-2.eclass internal functions itself.
# Remove unneeded i18.n includes from files, if they are still wrong there,
# this can be fixed by 'function + space separated list of files"
#
# Example:
# @CODE
# vdr_remove_i18n_include bla.n foo.n
# @CODE
# Applying your own local/user patches:
# This is done by using the
# (EAPI = 4,5) epatch_user() function of the eutils.eclass,
# (EAPI = 6,7) eapply_user function integrated in EAPI = 6.
# Simply add your patches into one of these directories:
# /etc/portage/patches/<CATEGORY>/<PF|P|PN>/
# Quote: where the first of these three directories to exist will be the one to
# use, ignoring any more general directories which might exist as well.
#
# For more details about it please take a look at the eutils.class.
[[ ${EAPI} == [45] ]] && inherit multilib
[[ ${EAPI} == [456] ]] && inherit eutils
inherit flag-o-matic toolchain-funcs unpacker
case ${EAPI:-0} in
4|5|6|7)
;;
*) die "EAPI ${EAPI} unsupported."
;;
esac
EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_compile src_install pkg_postinst pkg_postrm pkg_config
IUSE=""
# Name of the plugin stripped from all vdrplugin-, vdr- and -cvs pre- and postfixes
VDRPLUGIN="${PN/#vdrplugin-/}"
VDRPLUGIN="${VDRPLUGIN/#vdr-/}"
VDRPLUGIN="${VDRPLUGIN/%-cvs/}"
DESCRIPTION="vdr Plugin: ${VDRPLUGIN} (based on vdr-plugin-2.eclass)"
# Works in most cases
S="${WORKDIR}/${VDRPLUGIN}-${PV}"
# depend on headers for DVB-driver
COMMON_DEPEND=">=media-tv/gentoo-vdr-scripts-0.4.2"
DEPEND="${COMMON_DEPEND}
virtual/linuxtv-dvb-headers"
RDEPEND="${COMMON_DEPEND}
>=app-eselect/eselect-vdr-0.0.2"
if [[ "${GENTOO_VDR_CONDITIONAL:-no}" = "yes" ]]; then
IUSE="${IUSE} vdr"
DEPEND="vdr? ( ${DEPEND} )"
RDEPEND="vdr? ( ${RDEPEND} )"
fi
# New method of storing plugindb
# Called from src_install
# file maintained by normal portage-methods
vdr_create_plugindb_file() {
local NEW_VDRPLUGINDB_DIR=/usr/share/vdr/vdrplugin-rebuild/
local DB_FILE="${NEW_VDRPLUGINDB_DIR}/${CATEGORY}-${PF}"
insinto "${NEW_VDRPLUGINDB_DIR}"
# BUG: portage-2.1.4_rc9 will delete the EBUILD= line, so we cannot use this code.
# cat <<-EOT > "${D}/${DB_FILE}"
# VDRPLUGIN_DB=1
# CREATOR=ECLASS
# EBUILD=${CATEGORY}/${PN}
# EBUILD_V=${PVR}
# EOT
# obsolet? fix me later...
{
echo "VDRPLUGIN_DB=1"
echo "CREATOR=ECLASS"
echo "EBUILD=${CATEGORY}/${PN}"
echo "EBUILD_V=${PVR}"
echo "PLUGINS=\"$@\""
} > "${D%/}/${DB_FILE}"
}
vdr_create_header_checksum_file() {
# Danger: Not using $ROOT here, as compile will also not use it !!!
# If vdr in $ROOT and / differ, plugins will not run anyway
local CHKSUM="header-md5-vdr"
if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then
cp "${VDR_CHECKSUM_DIR}/header-md5-vdr" "${CHKSUM}"
elif type -p md5sum >/dev/null 2>&1; then
(
cd "${VDR_INCLUDE_DIR}"
md5sum *.h libsi/*.h|LC_ALL=C sort --key=2
) > "${CHKSUM}"
else
die "Could not create md5 checksum of headers"
fi
insinto "${VDR_CHECKSUM_DIR}"
local p_name
for p_name; do
newins "${CHKSUM}" "header-md5-${p_name}"
done
}
fix_vdr_libsi_include() {
eqawarn "Fixing include of libsi-headers"
local f
for f; do
sed -i "${f}" \
-e '/#include/s:"\(.*libsi.*\)":<\1>:' \
-e '/#include/s:<.*\(libsi/.*\)>:<vdr/\1>:'
done
}
vdr_patchmakefile() {
einfo "Patching Makefile"
[[ -e Makefile ]] || die "Makefile of plugin can not be found!"
cp Makefile "${WORKDIR}"/Makefile.before
# plugin makefiles use VDRDIR in strange ways
# assumptions:
# 1. $(VDRDIR) contains Make.config
# 2. $(VDRDIR) contains config.h
# 3. $(VDRDIR)/include/vdr contains the headers
# 4. $(VDRDIR) contains main vdr Makefile
# 5. $(VDRDIR)/locale exists
# 6. $(VDRDIR) allows to access vdr source files
#
# We only have one directory (for now /usr/include/vdr),
# that contains vdr-headers and Make.config.
# To satisfy 1-3 we do this:
# Set VDRDIR=/usr/include/vdr
# Set VDRINCDIR=/usr/include
# Change $(VDRDIR)/include to $(VDRINCDIR)
sed -i Makefile \
-e "s:^VDRDIR.*$:VDRDIR = ${VDR_INCLUDE_DIR}:" \
-e "/^VDRDIR/a VDRINCDIR = ${VDR_INCLUDE_DIR%/vdr}" \
-e '/VDRINCDIR.*=/!s:$(VDRDIR)/include:$(VDRINCDIR):' \
\
-e 's:-I$(DVBDIR)/include::' \
-e 's:-I$(DVBDIR)::'
if ! grep -q APIVERSION Makefile; then
ebegin " Converting to APIVERSION"
sed -i Makefile \
-e 's:^APIVERSION = :APIVERSION ?= :' \
-e 's:$(LIBDIR)/$@.$(VDRVERSION):$(LIBDIR)/$@.$(APIVERSION):' \
-e '/VDRVERSION =/a\APIVERSION = $(shell sed -ne '"'"'/define APIVERSION/s/^.*"\\(.*\\)".*$$/\\1/p'"'"' $(VDRDIR)/config.h)'
eend $?
fi
# Correcting Compile-Flags
# Do not overwrite CXXFLAGS, add LDFLAGS if missing
sed -i Makefile \
-e '/^CXXFLAGS[[:space:]]*=/s/=/?=/' \
-e '/LDFLAGS/!s:-shared:$(LDFLAGS) -shared:'
# Disabling file stripping, the package manager takes care of it
sed -i Makefile \
-e '/@.*strip/d' \
-e '/strip \$(LIBDIR)\/\$@/d' \
-e 's/STRIP.*=.*$/STRIP = true/'
# Use a file instead of a variable as single-stepping via ebuild
# destroys environment.
touch "${WORKDIR}"/.vdr-plugin_makefile_patched
}
vdr_gettext_missing() {
# plugins without converting to gettext
local GETTEXT_MISSING=$( grep xgettext Makefile )
if [[ -z ${GETTEXT_MISSING} ]]; then
eqawarn "Plugin isn't converted to gettext handling!"
fi
}
vdr_detect_po_dir() {
# helper function
[[ -f po ]] && local po_dir="${S}"
local po_subdir=( ${S}/${PO_SUBDIR} )
local f
pofile_dir=( ${po_dir} ${po_subdir[*]} )
}
vdr_linguas_support() {
# Patching Makefile for linguas support.
# Only locales, enabled through the LINGUAS (make.conf) variable will be
# compiled and installed.
einfo "Patching for Linguas support"
einfo "available Languages for ${P} are:"
vdr_detect_po_dir
for f in ${pofile_dir[*]}; do
PLUGIN_LINGUAS=$( ls ${f}/po --ignore="*.pot" | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' )
einfo "LINGUAS=\"${PLUGIN_LINGUAS}\""
sed -i ${f}/Makefile \
-e 's:\$(wildcard[[:space:]]*\$(PODIR)/\*.po):\$(foreach dir,\$(LINGUAS),\$(wildcard \$(PODIR)\/\$(dir)\*.po)):' \
|| die "sed failed for Linguas"
done
strip-linguas ${PLUGIN_LINGUAS} en
}
vdr_i18n() {
# i18n handling was deprecated since >=media-video/vdr-1.5.9,
# finally with >=media-video/vdr-1.7.27 it has been dropped entirely and some
# plugins will fail to compile because they're still using the old variant.
# Simply remove the i18n.o object from Makefile (OBJECT) and
# remove "static const tI18nPhrase*" from i18n.h.
vdr_gettext_missing
local I18N_OBJECT=$( grep i18n.o Makefile )
if [[ -n ${I18N_OBJECT} ]]; then
if [[ "${KEEP_I18NOBJECT:-no}" = "yes" ]]; then
eqawarn "Forced to keep i18n.o"
else
sed -i "s:i18n.o::g" Makefile
eqawarn "OBJECT i18n.o found, removed per sed"
fi
fi
local I18N_STRING=$( [[ -e i18n.h ]] && grep tI18nPhrase i18n.h )
if [[ -n ${I18N_STRING} ]]; then
sed -i "s:^extern[[:space:]]*const[[:space:]]*tI18nPhrase://static const tI18nPhrase:" i18n.h
eqawarn "obsolete tI18nPhrase found, disabled per sed, please recheck"
fi
}
vdr_remove_i18n_include() {
# remove uneeded i18.n includes
local f
for f; do
sed -i "${f}" \
-e "s:^#include[[:space:]]*\"i18n.h\"://:"
done
eqawarn "removed i18n.h include in ${@}"
}
vdr-plugin-2_print_enable_command() {
local p_name c=0 l=""
for p_name in ${vdr_plugin_list}; do
c=$(( c+1 ))
l="$l ${p_name#vdr-}"
done
elog
case $c in
1) elog "Installed plugin${l}" ;;
*) elog "Installed $c plugins:${l}" ;;
esac
elog "To activate a plugin execute this command:"
elog "\teselect vdr-plugin enable <plugin_name> ..."
elog
}
has_vdr() {
[[ -f "${VDR_INCLUDE_DIR}"/config.h ]]
}
## exported functions
vdr-plugin-2_pkg_setup() {
# missing ${chost}- tag
tc-export CC CXX
# -fPIC is needed for shared objects on some platforms (amd64 and others)
append-flags -fPIC
# Plugins need to be compiled with position independent code, otherwise linking
# VDR against it will fail
# depricated if fi, as we have only >=vdr-2 in the tree, fix me later...
if has_version ">=media-video/vdr-1.7.13"; then
append-cxxflags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
fi
# Where should the plugins live in the filesystem
VDR_PLUGIN_DIR=$(pkg-config --variable=libdir vdr)
VDR_CHECKSUM_DIR="${VDR_PLUGIN_DIR%/plugins}/checksums"
VDR_RC_DIR="/usr/share/vdr/rcscript"
# Pathes to includes
VDR_INCLUDE_DIR="/usr/include/vdr"
DVB_INCLUDE_DIR="/usr/include"
TMP_LOCALE_DIR="${WORKDIR}/tmp-locale"
LOCDIR=$(pkg-config --variable=locdir vdr)
if ! has_vdr; then
# set to invalid values to detect abuses
VDRVERSION="eclass_no_vdr_installed"
APIVERSION="eclass_no_vdr_installed"
if [[ "${GENTOO_VDR_CONDITIONAL:-no}" = "yes" ]] && ! use vdr; then
einfo "VDR not found!"
else
# if vdr is required
die "VDR not found!"
fi
return
fi
VDRVERSION=$(awk -F'"' '/define VDRVERSION/ {print $2}' "${VDR_INCLUDE_DIR}"/config.h)
APIVERSION=$(pkg-config --variable=apiversion vdr)
einfo "Compiling against"
einfo "\tvdr-${VDRVERSION} [API version ${APIVERSION}]"
if [[ -n "${VDR_LOCAL_PATCHES_DIR}" ]]; then
eerror "Using VDR_LOCAL_PATCHES_DIR is deprecated!"
eerror "Please move all your patches into"
eerror "${EROOT%/}/etc/portage/patches/${CATEGORY}/${P}"
eerror "and remove or unset the VDR_LOCAL_PATCHES_DIR variable."
die
fi
}
vdr-plugin-2_src_util() {
while [ "$1" ]; do
case "$1" in
all)
vdr-plugin-2_src_util unpack add_local_patch patchmakefile linguas_patch i18n
;;
prepare)
vdr-plugin-2_src_util add_local_patch patchmakefile linguas_patch i18n
;;
unpack)
unpacker_src_unpack
;;
add_local_patch)
cd "${S}" || die "Could not change to plugin-source-directory (src_util)"
if [[ ${EAPI} != [45] ]]; then
eapply_user
else
epatch_user
fi
;;
patchmakefile)
cd "${S}" || die "Could not change to plugin-source-directory (src_util)"
vdr_patchmakefile
;;
i18n)
vdr_i18n
;;
linguas_patch)
vdr_linguas_support
;;
esac
shift
done
}
vdr-plugin-2_src_unpack() {
if [[ -z ${VDR_INCLUDE_DIR} ]]; then
eerror "Wrong use of vdr-plugin-2.eclass."
eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_src_unpack."
echo
eerror "Please report this at bugs.gentoo.org."
die "vdr-plugin-2_src_unpack not called!"
fi
if [ -z "$1" ]; then
vdr-plugin-2_src_util unpack
else
vdr-plugin-2_src_util $@
fi
}
vdr-plugin-2_src_prepare() {
if [[ -z ${VDR_INCLUDE_DIR} ]]; then
eerror "Wrong use of vdr-plugin-2.eclass."
eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_src_prepare."
echo
eerror "Please report this at bugs.gentoo.org."
die "vdr-plugin-2_src_prepare not called!"
fi
[[ ${EAPI} == [45] ]] && [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
[[ ${EAPI} != [45] ]] && [[ ${PATCHES[@]} ]] && eapply "${PATCHES[@]}"
debug-print "$FUNCNAME: applying user patches"
vdr-plugin-2_src_util prepare
}
vdr-plugin-2_src_compile() {
[ -z "$1" ] && vdr-plugin-2_src_compile compile
while [ "$1" ]; do
case "$1" in
compile)
if [[ ! -f ${WORKDIR}/.vdr-plugin_makefile_patched ]]; then
eerror "Wrong use of vdr-plugin-2.eclass."
eerror "An ebuild for a vdr-plugin will not work without"
eerror "calling vdr-plugin-2_src_compile to patch the Makefile."
echo
eerror "Please report this at bugs.gentoo.org."
die "vdr-plugin-2_src_compile not called!"
fi
cd "${S}" || die "could not change to plugin source directory (src_compile)"
emake all ${BUILD_PARAMS} \
LOCALEDIR="${TMP_LOCALE_DIR}" \
LOCDIR="${TMP_LOCALE_DIR}" \
LIBDIR="${S}" \
TMPDIR="${T}" \
|| die "emake all failed"
;;
esac
shift
done
}
vdr-plugin-2_src_install() {
if [[ -z ${VDR_INCLUDE_DIR} ]]; then
eerror "Wrong use of vdr-plugin-2.eclass."
eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin-2_src_install."
echo
eerror "Please report this at bugs.gentoo.org."
die "vdr-plugin-2_src_install not called!"
fi
cd "${WORKDIR}" || die "could not change to plugin workdir directory (src_install)"
if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
local mname="${P}-Makefile"
cp "${S}"/Makefile "${mname}.patched"
cp Makefile.before "${mname}.before"
diff -u "${mname}.before" "${mname}.patched" > "${mname}.diff"
insinto "/usr/share/vdr/maintainer-data/makefile-changes"
doins "${mname}.diff"
insinto "/usr/share/vdr/maintainer-data/makefile-before"
doins "${mname}.before"
insinto "/usr/share/vdr/maintainer-data/makefile-patched"
doins "${mname}.patched"
fi
cd "${S}" || die "could not change to plugin source directory (src_install)"
local SOFILE_STRING=$(grep SOFILE Makefile)
if [[ -n ${SOFILE_STRING} ]]; then
emake install \
${BUILD_PARAMS} \
TMPDIR="${T}" \
DESTDIR="${D%/}" \
|| die "emake install (makefile target) failed"
else
eqawarn "Plugin use still the old Makefile handling"
insinto "${VDR_PLUGIN_DIR}"
doins libvdr-*.so.*
fi
if [[ -d ${TMP_LOCALE_DIR} ]]; then
einfo "Installing locales"
cd "${TMP_LOCALE_DIR}" || die "could not change to TMP_LOCALE_DIR"
local linguas
for linguas in ${LINGUAS[*]}; do
insinto "${LOCDIR}"
cp -r --parents ${linguas}* ${D%/}/${LOCDIR}
done
fi
cd "${D%/}/usr/$(get_libdir)/vdr/plugins" || die "could not change to D/usr/libdir/vdr/plugins"
# create list of all created plugin libs
vdr_plugin_list=""
local p_name
for p in libvdr-*.so.*; do
p_name="${p%.so*}"
p_name="${p_name#lib}"
vdr_plugin_list="${vdr_plugin_list} ${p_name}"
done
cd "${S}" || die "could not change to plugin source directory (src_install)"
vdr_create_header_checksum_file ${vdr_plugin_list}
vdr_create_plugindb_file ${vdr_plugin_list}
if [[ ${EAPI} != [45] ]]; then
einstalldocs
else
local docfile
for docfile in README* HISTORY CHANGELOG; do
[[ -f ${docfile} ]] && dodoc ${docfile}
done
fi
# if VDR_CONFD_FILE is empty and ${FILESDIR}/confd exists take it
[[ -z ${VDR_CONFD_FILE} ]] && [[ -e ${FILESDIR}/confd ]] && VDR_CONFD_FILE=${FILESDIR}/confd
if [[ -n ${VDR_CONFD_FILE} ]]; then
newconfd "${VDR_CONFD_FILE}" vdr.${VDRPLUGIN}
fi
# if VDR_RCADDON_FILE is empty and ${FILESDIR}/rc-addon.sh exists take it
[[ -z ${VDR_RCADDON_FILE} ]] && [[ -e ${FILESDIR}/rc-addon.sh ]] && VDR_RCADDON_FILE=${FILESDIR}/rc-addon.sh
if [[ -n ${VDR_RCADDON_FILE} ]]; then
insinto "${VDR_RC_DIR}"
newins "${VDR_RCADDON_FILE}" plugin-${VDRPLUGIN}.sh
fi
}
vdr-plugin-2_pkg_postinst() {
vdr-plugin-2_print_enable_command
if [[ -n "${VDR_CONFD_FILE}" ]]; then
elog "Please have a look at the config-file"
elog "\t/etc/conf.d/vdr.${VDRPLUGIN}"
elog
fi
}
vdr-plugin-2_pkg_postrm() {
:
}
vdr-plugin-2_pkg_config() {
:
}

View File

@ -1,140 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: wxwidgets.eclass
# @MAINTAINER:
# wxwidgets@gentoo.org
# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6
# @BLURB: Manages build configuration for wxGTK-using packages.
# @DESCRIPTION:
# This eclass sets up the proper environment for ebuilds using the wxGTK
# libraries. Ebuilds using wxPython do not need to inherit this eclass.
#
# More specifically, this eclass controls the configuration chosen by the
# /usr/bin/wx-config wrapper.
#
# Using the eclass is simple:
#
# - set WX_GTK_VER equal to a SLOT of wxGTK
# - call setup-wxwidgets()
#
# The configuration chosen is based on the version required and the flags
# wxGTK was built with.
if [[ -z ${_WXWIDGETS_ECLASS} ]]; then
case ${EAPI} in
0|1|2|3|4|5)
inherit eutils flag-o-matic multilib
# This was used to set up a sane default for ebuilds so they could
# avoid calling need-wxwidgets if they didn't need a particular build.
# This was a bad idea for a couple different reasons, and because
# get_libdir() is now illegal in global scope in EAPI 6 we can't do it
# anymore. All ebuilds must now use setup-wxwidgets and this code is
# only here for backwards compatability.
if [[ -z ${WX_CONFIG} ]]; then
if [[ -n ${WX_GTK_VER} ]]; then
for _wxtoolkit in mac gtk2 base; do
# newer versions don't have a seperate debug config
for _wxdebug in xxx release- debug-; do
_wxconf="${_wxtoolkit}-unicode-${_wxdebug/xxx/}${WX_GTK_VER}"
[[ -f ${EPREFIX}/usr/$(get_libdir)/wx/config/${_wxconf} ]] \
|| continue
WX_CONFIG="${EPREFIX}/usr/$(get_libdir)/wx/config/${_wxconf}"
WX_ECLASS_CONFIG="${WX_CONFIG}"
break
done
[[ -n ${WX_CONFIG} ]] && break
done
[[ -n ${WX_CONFIG} ]] && export WX_CONFIG WX_ECLASS_CONFIG
fi
fi
unset _wxtoolkit
unset _wxdebug
unset _wxconf
;;
6)
inherit flag-o-matic multilib
;;
*)
die "EAPI=${EAPI:-0} is not supported"
;;
esac
# @FUNCTION: setup-wxwidgets
# @DESCRIPTION:
#
# Call this in your ebuild to set up the environment for wxGTK. Besides
# controlling the wx-config wrapper this exports WX_CONFIG containing
# the path to the config in case it needs to be passed to a build system.
#
# In wxGTK-2.9 and later it also controls the level of debugging output
# from the libraries. In these versions debugging features are enabled
# by default and need to be disabled at the package level. Because this
# causes many warning dialogs to pop up during runtime we add -DNDEBUG to
# CPPFLAGS to disable debugging features (unless your ebuild has a debug
# USE flag and it's enabled). If you don't like this behavior you can set
# WX_DISABLE_NDEBUG to override it.
#
# See: http://docs.wxwidgets.org/trunk/overview_debugging.html
setup-wxwidgets() {
local wxtoolkit wxdebug wxconf
[[ -z ${WX_GTK_VER} ]] \
&& die "WX_GTK_VER must be set before calling $FUNCNAME."
case "${WX_GTK_VER}" in
3.0-gtk3)
wxtoolkit=gtk3
if [[ -z ${WX_DISABLE_NDEBUG} ]]; then
( in_iuse debug && use debug ) || append-cppflags -DNDEBUG
fi
;;
2.9|3.0)
wxtoolkit=gtk2
if [[ -z ${WX_DISABLE_NDEBUG} ]]; then
( in_iuse debug && use debug ) || append-cppflags -DNDEBUG
fi
;;
2.8)
wxtoolkit=gtk2
wxdebug="release-"
has_version x11-libs/wxGTK:${WX_GTK_VER}[debug] && wxdebug="debug-"
;;
*)
die "Invalid WX_GTK_VER: must be set to a valid wxGTK SLOT"
;;
esac
# toolkit overrides
if has_version "x11-libs/wxGTK:${WX_GTK_VER}[aqua]"; then
wxtoolkit="mac"
elif ! has_version "x11-libs/wxGTK:${WX_GTK_VER}[X]"; then
wxtoolkit="base"
fi
wxconf="${wxtoolkit}-unicode-${wxdebug}${WX_GTK_VER}"
[[ ! -f ${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf} ]] \
&& die "Failed to find configuration ${wxconf}"
export WX_CONFIG="${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf}"
export WX_ECLASS_CONFIG="${WX_CONFIG}"
echo
einfo "Requested wxWidgets: ${WX_GTK_VER}"
einfo "Using wxWidgets: ${wxconf}"
echo
}
# deprecated
need-wxwidgets() {
setup-wxwidgets
}
_WXWIDGETS_ECLASS=1
fi

View File

@ -1,141 +0,0 @@
# ChangeLog for net-libs/http-parser
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*http-parser-2.5.0 (09 Aug 2015)
*http-parser-2.4.2 (09 Aug 2015)
*http-parser-2.4.1 (09 Aug 2015)
*http-parser-2.3 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org>
+files/http-parser-2.1-flags.patch, +files/http-parser-2.3-flags.patch,
+http-parser-2.3.ebuild, +http-parser-2.4.1.ebuild,
+http-parser-2.4.2.ebuild, +http-parser-2.5.0.ebuild, +metadata.xml:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
*http-parser-2.6.0 (02 Nov 2015)
02 Nov 2015; Julian Ospald <hasufell@gentoo.org>
+files/0001-makefile-fix-DESTDIR-usage.patch,
+files/0002-makefile-quote-variables.patch,
+files/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch,
+files/0004-makefile-add-CFLAGS-to-linking-command.patch,
+files/0005-makefile-fix-install-rule-dependency.patch,
+http-parser-2.6.0.ebuild:
version bump
This also fixes the upstream build system instead of working around
it.
It also fixes missing CFLAGS in linking commands.
06 Nov 2015; mschubert <mschu.dev@gmail.com> http-parser-2.6.0.ebuild:
respect ${EPREFIX}
23 Jan 2016; Fabian Groffen <grobian@gentoo.org> http-parser-2.6.0.ebuild:
marked ~x64-macos, bug #509586
Package-Manager: portage-2.2.20-prefix
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Replace all herds with appropriate projects (GLEP 67)
Replace all uses of herd with appropriate project maintainers, or no
maintainers in case of herds requested to be disbanded.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)
*http-parser-2.6.1 (10 Feb 2016)
10 Feb 2016; Johan Bergström <bugs@bergstroem.nu> -http-parser-2.6.0.ebuild,
+http-parser-2.6.1.ebuild, metadata.xml:
version bump to 2.6.1
this is considered a security bump, so drop old.
04 Mar 2016; Steev Klimaszewski <steev@gentoo.org> http-parser-2.6.1.ebuild:
Keyword 2.6.1 for ~arm64
Tested on Cortex-A53
Package-Manager: portage-2.2.27
*http-parser-2.6.2 (09 Mar 2016)
09 Mar 2016; Patrick Lauer <patrick@gentoo.org> +http-parser-2.6.2.ebuild:
Bump
Package-Manager: portage-2.2.27
03 Apr 2016; Jeroen Roovers <jer@gentoo.org> http-parser-2.6.2.ebuild:
Mark ~ppc64 (bug #575322).
Package-Manager: portage-2.2.28
RepoMan-Options: --ignore-arches
18 May 2016; Fabian Groffen <grobian@gentoo.org> http-parser-2.6.2.ebuild:
marked ~amd64-linux
Package-Manager: portage-2.2.28
25 May 2016; Agostino Sarubbo <ago@gentoo.org> http-parser-2.6.2.ebuild:
amd64 stable wrt bug #568900
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
25 May 2016; Agostino Sarubbo <ago@gentoo.org> http-parser-2.6.2.ebuild:
x86 stable wrt bug #568900
Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>

View File

@ -1,63 +0,0 @@
# ChangeLog for net-libs/http-parser
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/http-parser/ChangeLog,v 1.15 2015/05/15 12:01:40 pacho Exp $
15 May 2015; Pacho Ramos <pacho@gentoo.org> http-parser-2.3.ebuild:
ppc stable wrt bug #517336
*http-parser-2.5.0 (11 May 2015)
11 May 2015; Michał Górny <mgorny@gentoo.org> +http-parser-2.5.0.ebuild:
Version bump. https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/109
by jbergstroem.
*http-parser-2.4.2 (28 Mar 2015)
28 Mar 2015; Manuel Rüger <mrueg@gentoo.org> +http-parser-2.4.2.ebuild:
Proxy commit for Johan Bergström. Version bump.
*http-parser-2.4.1 (23 Jan 2015)
23 Jan 2015; Manuel Rüger <mrueg@gentoo.org> +http-parser-2.4.1.ebuild,
metadata.xml:
Proxy commit for Johan Bergström. Version bump. Add him as proxied maintainer.
31 Dec 2014; Michael Palimaka <kensington@gentoo.org> -http-parser-2.1.ebuild:
Remove old.
25 Nov 2014; Julian Ospald <hasufell@gentoo.org> metadata.xml:
drop maintainership
12 Oct 2014; Agostino Sarubbo <ago@gentoo.org> http-parser-2.3.ebuild:
Stable for x86, wrt bug #521058
24 Sep 2014; Chema Alonso <nimiux@gentoo.org> http-parser-2.3.ebuild:
Stable for amd64 wrt bug #521058
26 Aug 2014; Anthony G. Basile <blueness@gentoo.org> http-parser-2.1.ebuild,
http-parser-2.3.ebuild:
Keyword ~ppc, bug #513078
24 Jun 2014; Markus Meier <maekke@gentoo.org> http-parser-2.3.ebuild:
add ~arm, bug #513078
21 Jun 2014; Julian Ospald <hasufell@gentoo.org> http-parser-2.3.ebuild:
add static-libs USE flag
*http-parser-2.3 (21 Jun 2014)
21 Jun 2014; Julian Ospald <hasufell@gentoo.org> +http-parser-2.3.ebuild,
+files/http-parser-2.3-flags.patch:
version bump wrt #514154
05 Sep 2013; Agostino Sarubbo <ago@gentoo.org> http-parser-2.1.ebuild:
Stable for x86, wrt bug #482608
31 Aug 2013; Agostino Sarubbo <ago@gentoo.org> http-parser-2.1.ebuild:
Stable for amd64, wrt bug #482608
*http-parser-2.1 (30 Jun 2013)
30 Jun 2013; Julian Ospald <hasufell@gentoo.org> +http-parser-2.1.ebuild,
+files/http-parser-2.1-flags.patch, +metadata.xml:
initial import wrt #410339

View File

@ -1,22 +1 @@
AUX 0001-makefile-fix-DESTDIR-usage.patch 2216 SHA256 785012d9e0efb70c4dcc137f354ab57afabdcb0fb7c8cb2580c3c4a7e9add330 SHA512 ebb481df21cb312824ed65e7d6a3e7b237451071235566595da97c09b165767693ec3c47c27c451bfbdc2d62cc45c7d5d9f996b80789dc7fedaa2543c94c9065 WHIRLPOOL 8d6ddfaaf636d3360a42bc12917d972b520723d8fc05db2d87bf71ea5c3f850d45f65da85b34f8f2243ffe31acaa2d0364f3b15432e507447e6d40151a4ba40a
AUX 0002-makefile-quote-variables.patch 1848 SHA256 80fdf673731f27f328d45f4da7daa613613d8db40f1dc84d2ce65fad0130c054 SHA512 3637abedbf330af0f4a9721081db99fe0f6400322f21f77ab16d580546a9d200d40bc584e8dbb51adec249c2d468730c6e2487ccda3786626909d988b7f8856a WHIRLPOOL e946f75eb854f7ae81d79bdfced973b43bacdb4227c806b706287b59fef81ccd849f952e950332336681da8d1bbaeab9401a864f83a95937cdc9d5797471ebbe
AUX 0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch 1286 SHA256 9854f5f205ec0959cc10cab80d16ff54f33a9979e5fd310ba9a4624b60c84ee9 SHA512 8202d665963234ce6dd84439f281921cb959424024c2fec8a27b65693b3466cab8674a3549d22fdb2fc07edf69f94440368ef77738ae4be2a5d94c13e3c814bb WHIRLPOOL 041200f8fa60bb8a0a24ed2bb5c8bae72d45c796c124613053c32c61f81ab2ee7ffb75f6d5a42b7623da6ff2afaeed436a2e74275d79dad7768d05735562cd02
AUX 0004-makefile-add-CFLAGS-to-linking-command.patch 1038 SHA256 e69fa304327dbb0626edaf147b73dc9fb4718b656b225794a04937206929c0df SHA512 e18c163f2069795fb6b744ad9f6e44eb9efca7f560460a6759bc0121a404bfe8109031c0f43d36d4987bda3411e0a433dbab6d0eabb2dbb5c79f1ce878251aae WHIRLPOOL e9196da8b6544a30258c3ae9bcdceda318317b97b14adb4fc7d7f2636f0ac664e7d0ef024be61aca9d5e0d45e85792d90b3bd9507076a73d266f11733053bc7c
AUX 0005-makefile-fix-install-rule-dependency.patch 1090 SHA256 04898654adef3f3dbf1e29e66f8e9fc4467f68389e224beb03387d33ee263212 SHA512 4cd120f406eeeb1e5a60c7d8955cdfead50d99b60f91a0fcdb2ae19403d08e5ed5619885c9e434ce40ffb442b317ee8c32ef636960429036f9bff92492f03968 WHIRLPOOL e522fd3eaab1f94c13f33900b37755776c5c48910fa87ccc875b3b08198a21f983bf2728b81b1f2cd64263d1a22940e3daef2d9f97acf708a437584328498ebb
AUX http-parser-2.1-flags.patch 1093 SHA256 b3dd9c2e0e6aaf83635b067b0fa29aa7dbb25476c91b3609ec738333a175e86e SHA512 4ac7b6380d7123b071d6aa4dfe5b2b8e3eb7d3d3c85b2e576b28d1d3c7d9959679105fc8f9c6921f770784eb136e1f6b7b8ae94794cc4b6efc856db461bd9e12 WHIRLPOOL 77dd32aa582598817ab9467e947598324e3b25251aa69a8ea2e8aee0b4424664fe8ef87fe33d31c5da0e4c8925295b6c33920ffb94b6a582c11db8af6a6d9c03
AUX http-parser-2.3-flags.patch 1052 SHA256 de4279f3d2a3c7736cee76a18c83e733dab75e640f94f467dcbede18680823af SHA512 5719d676a369ae558f2ec6f1cc3617bbd9bfcffb38f70c7c1cc688a55c59359f4c03d3c1a46c9cf493f8db49d6d7da343897fd7cd95664c75f0b6349e72e3c71 WHIRLPOOL a510aebc80c02e57e2584c08457d572650b1dd5abb42968380492574f6037cdbbb95ec7a16472a3003a5d4486ba2b61c64422c34e79ccb7dd843b33412b09ee6
DIST http-parser-2.3.tar.gz 42538 SHA256 3bfe6b4ab7656c86e48b4a43a7a08aee7fd72c17b213655166f6a3cb8d21d5e2 SHA512 63ec361dd0bdb2d30676b430fc122eb4df5a6ff90a6a188ee9975ea9c46263f0322ebf51fb1816643d1b8d58bfd8793d7c6e2f6bd96778539095517ea320de2e WHIRLPOOL 8bc4d67857d2ac57bcac46c012f521c374f2875b7a4edb987189571b27ccb8ea5544b0b7eeba56b1f3f1a7bb1680a9a33821aab3863e373be12f3eba85371c66
DIST http-parser-2.4.1.tar.gz 44724 SHA256 4a2597c37b874ce46b30764960d158d18cae2b4cd46458ce3cad98aa106427c9 SHA512 f56b84f0af57cefa46daa10ac2e7b3015c185fa4c55615efa33f9131871a980b5c06ffad1699302ebe847c9325b41403520e0ef4d34bf5f6c48c6edabf1f4cb8 WHIRLPOOL 1873e97df046b10ed7a7da9ad3ba43055634af230b0b4391a8a814bb00455f8864ead809ba2555715e63b9a74202287b2a3c68ced884edf152e794bf70a0cfeb
DIST http-parser-2.4.2.tar.gz 44814 SHA256 d93d6cd4d587355bc714d6a79f4e5676d7dd2ccd2fafb21606c87268ea440cbf SHA512 fa2ac6a27807252a8e2ca61e307b92fa7004424dbea69d9ffbd2297f47e0c2af740033126aeb6b11ea172e03c2fbf957c0ab0387836647920c3a9304d07f68ab WHIRLPOOL cbf45915f622ad07ee095f3a592c565847f427575ab0a062ce7d8dbfe3b8b92d4ec97787c3dec4710b7dec4f5b4cde49ece80063b29399c2f44acc14816c08ff
DIST http-parser-2.5.0.tar.gz 46070 SHA256 e3b4ba58f4e6ee5fbec781df020e5cb74c3a799a07f059e1e125127a0b801481 SHA512 da94b21f313d09f0557e61574e1187d06ef3bc4e8115c6f8120eac8d26ba6db51469ee5ddb6da5a0c05f49279838e5028afff6a15790708cdca147b3bc66e18f WHIRLPOOL 933ab2f8065fd2e7734d61284a042579edea40f0a0dea6b339a1ba07d9e50f2cd5e14f081d9889b728024171f2faeff7aab97b43c531fbd6badd882026261254
DIST http-parser-2.6.1.tar.gz 48265 SHA256 48ce852009121e9959c28408017902423ed0b5125de923cd0fdde77fce862aad SHA512 98e34bfb18d5d1e36225f10600c82dc0c818190a07ee8c19096cef2527ddf33e238cae6ccb7ae1f99854d9c76779b693c02a24d807504ba41dcb33f08a2beb72 WHIRLPOOL 59b4a3502f71eb704855e19263f18a282ea21f751a1356eeacc2a5480c5df46a0173ddfef19ae9c22836c73f32bb17b1d25aa5ba6b5a874795b9ed97d26ea24f
DIST http-parser-2.6.2.tar.gz 48292 SHA256 80fffc3b64ef6968cecdd4b299a96986007dff4bd12ae6c58cbcb506959b90ad SHA512 e19e5377b3eb7f149c428196826fb878564fdfa3716ff6df5a3845c51586aee0582e252e09d1f8ebad1163b3e66632ff0c6e78f6acb2f0da20d7a06e734406c1 WHIRLPOOL 25e5f3ff8bc37d8a06d1929e31683326bb4d3a13f1e899e4f357787973be56fc007dd4ad16567067a9bce587ddc81360f777332a097fbb6dcf22cbad26872962
EBUILD http-parser-2.3.ebuild 946 SHA256 8e64833aebf715b4261cfca4b18b4cef0de9711a284612b78207bb0ecef60881 SHA512 0398caa0a85125c79aa68835197439b07c6da6736423323ebc7f155b6e225b204f2c1563848394e02b8c4b157c4e2494d5b8c734b22a357727ec5ce42dec6fa5 WHIRLPOOL 3ba671f83f76253defe3cd6741e8c8f9f752f729fc9cbf9b80b9e2253703185a7d858e002756225a07d5b0c7dbd868d21faec39e4c9937d17b6e3d871febf983
EBUILD http-parser-2.4.1.ebuild 902 SHA256 eae29ff86bdc293bd5611845c295c2592fcc4f86a8421eaf0c497b9adcc5f2fa SHA512 ef312a095a01f06ad4f3130f33ca8d42e4d84dc180b1cc32dc78ee06ebef22f104fb164769418b027936a776c5bc75f0dd8ff0c9a12272b0d943c1f63da71068 WHIRLPOOL 9db1bee9d7a5d6bc01a68175b69a82e012238a179dc480f10ca0299617dbbaf8f83c6bee08915af01e7d78ef89a288811faafa1fef7273355ec2fd04a2a7526a
EBUILD http-parser-2.4.2.ebuild 902 SHA256 eae29ff86bdc293bd5611845c295c2592fcc4f86a8421eaf0c497b9adcc5f2fa SHA512 ef312a095a01f06ad4f3130f33ca8d42e4d84dc180b1cc32dc78ee06ebef22f104fb164769418b027936a776c5bc75f0dd8ff0c9a12272b0d943c1f63da71068 WHIRLPOOL 9db1bee9d7a5d6bc01a68175b69a82e012238a179dc480f10ca0299617dbbaf8f83c6bee08915af01e7d78ef89a288811faafa1fef7273355ec2fd04a2a7526a
EBUILD http-parser-2.5.0.ebuild 901 SHA256 0d919019ad0a6043ee29a311241ec1a305278e076be9eb07178fc969c5b77334 SHA512 e06ed91b34237a88fcf83cd503bc701991668c8c2816f6ad6440b8181ce4980e5062ce8927ed2fc4366d4276fd3c11091336b466f1546a757370d29eb629dcad WHIRLPOOL 5c75d9ef89c42ec07df40f2fe6dd0d6855bb2b8bfa15d41f66e5793afed0bcf5a4e7c8b74fc38092ff50927cb759828bd4d04f76d8cc5faff217ecb6b54fdfc0
EBUILD http-parser-2.6.1.ebuild 1283 SHA256 10f291ab8d45ed67cabc8375315166376d984dd764879ebe33f4b486ffc267d4 SHA512 d163429f45b0105da04ec5f18273e9cf927516274912493e5a42c45442d966cb0ceb187ae66ac0de1caca0f93e1e6dc30b53a2508adb8b6029e9c8136dca87d1 WHIRLPOOL 4678bf70d85195a27d3c7b81403c32f49afae3dc88561bc22edee3a4d9daedb31b8635bd9bf7ea6bc428d50ef7e08c7b1365d37a651a53595f5af36a98e2ffa7
EBUILD http-parser-2.6.2.ebuild 1301 SHA256 1da1f67bd049d20b91748c09fbab15584ead4c5850236eabc79174ed2bdf0f0a SHA512 bd67a19a4d07982c9249d60087b9e043b65c32200773f766d7c5727ed25822571a21211ec5d868b682dc4f1bed22db0594f464b5bcf56dc47383013cf9056272 WHIRLPOOL 125a3771ada3c14e9153ef69ad2312b4e8f934f5fd7c0a5707549be80223d62add929f412ebb514f539bb3cccad96037d4c3ae0efc715dee3207b4c47757becb
MISC ChangeLog 4817 SHA256 da5a4fe541de444046ac5c849fd13240861e6cf2a5a382b22370b8e2c8ba122f SHA512 56cfeec618a6e73bc1fb468f0c83dbfde2c47865cf2776b57a777092c982ece313fc1b4701ea5cc55faa53ac04584e4a64151b620a8c9a66f8a51e6d07c43aa2 WHIRLPOOL 765d5d7ad72302a1bb80c8c3c31291887dfd9e4ff0ad0f04c2baa2474c555885ad6a4675fc93abd87f14b28ee911f40405bf07f569efb87af99bb941897b4c21
MISC ChangeLog-2015 2207 SHA256 a4e427c1f74e2d4d526f67acb0556015956bb98236bfefba4935f7ff7f6de6ad SHA512 dcd33ae28a0652cbe4ab4b86e84ccec084613bde19cd83e74a1c18a90fde1dd97ed820957128f9e0039772d9bbc724b744836fe117ed83ea89e1c8c8811dea2c WHIRLPOOL 05b8b8baa9221698172d95565fc1f937137e663cb95a76fd1e5dc4fce2d390797e512cc4dc48637f5fbd5683ad4e3388975d75faa963afc0ce28a86828779808
MISC metadata.xml 498 SHA256 6bf5eb85a8dd5b5d84d3f8fa29de93aa0ab0a1950edcaa6ffc4d31792775c927 SHA512 df2f7895ff5d5187ac4ddd24fc5ba678977bdb86f58f31cb3a6cc9c2295dea61bffaa2ac4e40fe57dd52bfd6f1966db5ebb1b2dfcd3b5812eefac9fbadae18c9 WHIRLPOOL 6fd5db1cd7f52c7d7eaec5bca9f6b1a5cfb57cda621e9e518fd88132b5e7c7fe987e9fc8fdf60d8e1568fee08b3c23c7a1d3c8d2750411fbae1981dabe6523c1
DIST http-parser-2.9.4.tar.gz 52056 BLAKE2B 988ebc3f3e1a7d53ed4147dac2e09c4d6021bb1a287990d83130c24e9fee01a3123b4c5ad9e1b86c0f123248484dae272010aa1f3ebd3bd4574d8407ede94e62 SHA512 b45df7b94d1c51079d44687d0a7f901f44faae51df4e84c7e3fe38f130c2d809d0e7c2a146c57b3723e60732aededc246bf44eadb10a95b710963d641f9fe7cd

View File

@ -1,64 +0,0 @@
From 7fbc87986baa09c342abb21e34613e8bbdc3c9c7 Mon Sep 17 00:00:00 2001
From: hasufell <hasufell@hasufell.de>
Date: Mon, 2 Nov 2015 16:24:43 +0100
Subject: [PATCH 1/4] makefile: fix DESTDIR usage
DESTDIR is not supposed to be set inside other variables. It is
standard to have this variable in install/uninstall rules, so it
can be reliably set separately no matter what other variables are set
to.
This also avoids potential bugs with setting SONAME or seds on
installed files (like pkgconfig) which then might include the
temporary DESTDIR directory.
DESTDIR is really just for installing into a temporary directory or
a chroot, mostly used by package managers.
---
Makefile | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/Makefile b/Makefile
index 33c8ba0..76153a0 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
LDFLAGS_LIB = $(LDFLAGS) -shared
INSTALL ?= install
-PREFIX ?= $(DESTDIR)/usr/local
+PREFIX ?= /usr/local
LIBDIR = $(PREFIX)/lib
INCLUDEDIR = $(PREFIX)/include
@@ -123,19 +123,19 @@ tags: http_parser.c http_parser.h test.c
ctags $^
install: library
- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
+ $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
+ $(INSTALL) -D $(SONAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
+ ln -s $(LIBDIR)/$(SONAME) $(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)
install-strip: library
- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
- $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
+ $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
+ $(INSTALL) -D -s $(SONAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
+ ln -s $(LIBDIR)/$(SONAME) $(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)
uninstall:
- rm $(INCLUDEDIR)/http_parser.h
- rm $(LIBDIR)/$(SONAME)
- rm $(LIBDIR)/libhttp_parser.so
+ rm $(DESTDIR)$(INCLUDEDIR)/http_parser.h
+ rm $(DESTDIR)$(LIBDIR)/$(SONAME)
+ rm $(DESTDIR)$(LIBDIR)/libhttp_parser.so
clean:
rm -f *.o *.a tags test test_fast test_g \
--
2.6.1

View File

@ -1,50 +0,0 @@
From 9bce473ba7417b45bfdb59d4151a8857dcfff4ad Mon Sep 17 00:00:00 2001
From: hasufell <hasufell@hasufell.de>
Date: Mon, 2 Nov 2015 16:27:06 +0100
Subject: [PATCH 2/4] makefile: quote variables
Make does not take care of this in make rules. If any of the variables
DESTDIR, INCLUDEDIR or LIBDIR contain whitespaces, then the related
install command will fail.
This is even more important for the uninstall rule.
---
Makefile | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
index 76153a0..8c4a9d7 100644
--- a/Makefile
+++ b/Makefile
@@ -123,19 +123,19 @@ tags: http_parser.c http_parser.h test.c
ctags $^
install: library
- $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
- $(INSTALL) -D $(SONAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
- ln -s $(LIBDIR)/$(SONAME) $(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)
+ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
+ $(INSTALL) -D $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
+ ln -s $(LIBDIR)/$(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
install-strip: library
- $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
- $(INSTALL) -D -s $(SONAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
- ln -s $(LIBDIR)/$(SONAME) $(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)
+ $(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
+ $(INSTALL) -D -s $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
+ ln -s $(LIBDIR)/$(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
uninstall:
- rm $(DESTDIR)$(INCLUDEDIR)/http_parser.h
- rm $(DESTDIR)$(LIBDIR)/$(SONAME)
- rm $(DESTDIR)$(LIBDIR)/libhttp_parser.so
+ rm "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
+ rm "$(DESTDIR)$(LIBDIR)/$(SONAME)"
+ rm "$(DESTDIR)$(LIBDIR)/libhttp_parser.so"
clean:
rm -f *.o *.a tags test test_fast test_g \
--
2.6.1

View File

@ -1,35 +0,0 @@
From f45b38c42e7e92a5d0215c44dcf306616536011e Mon Sep 17 00:00:00 2001
From: hasufell <hasufell@hasufell.de>
Date: Mon, 2 Nov 2015 16:32:11 +0100
Subject: [PATCH 3/4] makefile: fix SONAME symlink, it should not be a full
path
The symlink destination being a full path doesn't give any benefit and
may break a few use cases of copying these files to a different
destination, while preserving the symlink.
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 8c4a9d7..cbe93e8 100644
--- a/Makefile
+++ b/Makefile
@@ -125,12 +125,12 @@ tags: http_parser.c http_parser.h test.c
install: library
$(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
$(INSTALL) -D $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
- ln -s $(LIBDIR)/$(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
+ ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
install-strip: library
$(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
$(INSTALL) -D -s $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
- ln -s $(LIBDIR)/$(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
+ ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
uninstall:
rm "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
--
2.6.1

View File

@ -1,31 +0,0 @@
From 62b1450cfe2e0df2d912279d38edf1b916020101 Mon Sep 17 00:00:00 2001
From: hasufell <hasufell@hasufell.de>
Date: Mon, 2 Nov 2015 16:39:31 +0100
Subject: [PATCH 4/4] makefile: add CFLAGS to linking command
Although we compile the objects explicitly there are some CFLAGS
that may also affect linking, which is not always obvious.
This can also be a problem for toolchains that support multiple ABIs
and need to set CFLAGS=<abi selector>, which will cause linking
to either fail or produce an unusable executable/library.
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index cbe93e8..ae16f08 100644
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ libhttp_parser.o: http_parser.c http_parser.h Makefile
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o
library: libhttp_parser.o
- $(CC) $(LDFLAGS_LIB) -o $(SONAME) $<
+ $(CC) $(CFLAGS_LIB) $(LDFLAGS_LIB) -o $(SONAME) $<
package: http_parser.o
$(AR) rcs libhttp_parser.a http_parser.o
--
2.6.1

View File

@ -1,33 +0,0 @@
From b67bfbe6a07529dd82e2ee83b6848d017e6e422f Mon Sep 17 00:00:00 2001
From: hasufell <hasufell@hasufell.de>
Date: Mon, 2 Nov 2015 16:51:28 +0100
Subject: [PATCH 5/5] makefile: fix install rule dependency
Otherwise the install rule will recompile the library, no matter
if it has already been compiled.
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index ae16f08..df0b59f 100644
--- a/Makefile
+++ b/Makefile
@@ -122,12 +122,12 @@ parsertrace_g: http_parser_g.o contrib/parsertrace.c
tags: http_parser.c http_parser.h test.c
ctags $^
-install: library
+install: $(SONAME)
$(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
$(INSTALL) -D $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
-install-strip: library
+install-strip: $(SONAME)
$(INSTALL) -D http_parser.h "$(DESTDIR)$(INCLUDEDIR)/http_parser.h"
$(INSTALL) -D -s $(SONAME) "$(DESTDIR)$(LIBDIR)/$(SONAME)"
ln -s $(SONAME) "$(DESTDIR)$(LIBDIR)/libhttp_parser.$(SOEXT)"
--
2.6.1

View File

@ -1,32 +0,0 @@
commit 3752e633e23284133decc8ca8481e4416a317fbc
Author: hasufell <hasufell@gentoo.org>
Date: Sun Jun 30 12:27:04 2013 +0200
respect system flags
diff --git a/Makefile b/Makefile
index 64e5c2f..2e20723 100644
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,9 @@ CPPFLAGS_DEBUG += $(CPPFLAGS_DEBUG_EXTRA)
CPPFLAGS_FAST = $(CPPFLAGS) -DHTTP_PARSER_STRICT=0
CPPFLAGS_FAST += $(CPPFLAGS_FAST_EXTRA)
-CFLAGS += -Wall -Wextra -Werror
-CFLAGS_DEBUG = $(CFLAGS) -O0 -g $(CFLAGS_DEBUG_EXTRA)
-CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA)
+CFLAGS += -Wall -Wextra
+CFLAGS_DEBUG = $(CFLAGS) $(CFLAGS_DEBUG_EXTRA)
+CFLAGS_FAST = $(CFLAGS) $(CFLAGS_FAST_EXTRA)
CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
test: test_g test_fast
@@ -44,7 +44,7 @@ libhttp_parser.o: http_parser.c http_parser.h Makefile
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o
library: libhttp_parser.o
- $(CC) -shared -o libhttp_parser.so libhttp_parser.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o libhttp_parser.so libhttp_parser.o
package: http_parser.o
$(AR) rcs libhttp_parser.a http_parser.o

View File

@ -1,32 +0,0 @@
commit 3752e633e23284133decc8ca8481e4416a317fbc
Author: hasufell <hasufell@gentoo.org>
Date: Sun Jun 30 12:27:04 2013 +0200
respect system flags
diff --git a/Makefile b/Makefile
index 64e5c2f..2e20723 100644
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,9 @@ CPPFLAGS_DEBUG += $(CPPFLAGS_DEBUG_EXTRA)
CPPFLAGS_FAST = $(CPPFLAGS) -DHTTP_PARSER_STRICT=0
CPPFLAGS_FAST += $(CPPFLAGS_FAST_EXTRA)
-CFLAGS += -Wall -Wextra -Werror
-CFLAGS_DEBUG = $(CFLAGS) -O0 -g $(CFLAGS_DEBUG_EXTRA)
-CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA)
+CFLAGS += -Wall -Wextra
+CFLAGS_DEBUG = $(CFLAGS) $(CFLAGS_DEBUG_EXTRA)
+CFLAGS_FAST = $(CFLAGS) $(CFLAGS_FAST_EXTRA)
CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
test: test_g test_fast
@@ -44,7 +44,7 @@ libhttp_parser.o: http_parser.c http_parser.h Makefile
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o
library: libhttp_parser.o
- $(CC) $(LDFLAGS_LIB) -o $(SONAME) $<
+ $(CC) $(CFLAGS) $(LDFLAGS_LIB) -o $(SONAME) $<
package: http_parser.o
$(AR) rcs libhttp_parser.a http_parser.o

View File

@ -0,0 +1,20 @@
diff --git a/test.c b/test.c
index 53a3163..49c4b7a 100644
--- a/test.c
+++ b/test.c
@@ -4343,7 +4343,13 @@ main (void)
printf("http_parser v%u.%u.%u (0x%06lx)\n", major, minor, patch, version);
printf("sizeof(http_parser) = %u\n", (unsigned int)sizeof(http_parser));
- assert(sizeof(http_parser) == 4 + 4 + 8 + 2 + 2 + 4 + sizeof(void *));
+
+#if defined(__i386__) || defined(__x86_64__)
+ /* Should be 32 on both 32 bits and 64 bits x86 because of struct padding,
+ * see https://github.com/nodejs/http-parser/issues/507.
+ */
+ assert(sizeof(http_parser) == 24 + sizeof(void*));
+#endif
//// API
test_preserve_data();

View File

@ -1,41 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
SONAMEVER="2.3"
SONAME="libhttp_parser.so.${SONAMEVER}"
inherit eutils toolchain-funcs multilib multilib-minimal
DESCRIPTION="A parser for HTTP messages written in C. It parses both requests and responses"
HOMEPAGE="https://github.com/joyent/http-parser"
SRC_URI="https://github.com/joyent/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${SONAMEVER}"
KEYWORDS="amd64 ~arm ppc x86"
IUSE="static-libs"
src_prepare() {
tc-export CC AR
epatch "${FILESDIR}"/${P}-flags.patch
multilib_copy_sources
}
multilib_src_compile() {
emake library
use static-libs && emake package
}
multilib_src_install() {
doheader http_parser.h
dolib.so ${SONAME}
dosym ${SONAME} /usr/$(get_libdir)/libhttp_parser.so
use static-libs && dolib.a libhttp_parser.a
}
multilib_src_install_all() {
dodoc README.md
}

View File

@ -1,43 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
SONAME="libhttp_parser.so.${PV}"
inherit eutils toolchain-funcs multilib multilib-minimal
DESCRIPTION="http request/response parser for c"
HOMEPAGE="https://github.com/joyent/http-parser"
SRC_URI="https://github.com/joyent/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
IUSE="static-libs"
src_prepare() {
sed -i -e 's: -Werror::' \
-e 's:-O3 ::' \
Makefile || die
tc-export CC AR
multilib_copy_sources
}
multilib_src_compile() {
emake library
use static-libs && emake package
}
multilib_src_install() {
doheader http_parser.h
dolib.so ${SONAME}
dosym ${SONAME} /usr/$(get_libdir)/libhttp_parser.so
use static-libs && dolib.a libhttp_parser.a
}
multilib_src_install_all() {
dodoc README.md
}

View File

@ -1,43 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
SONAME="libhttp_parser.so.${PV}"
inherit eutils toolchain-funcs multilib multilib-minimal
DESCRIPTION="http request/response parser for c"
HOMEPAGE="https://github.com/joyent/http-parser"
SRC_URI="https://github.com/joyent/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
IUSE="static-libs"
src_prepare() {
sed -i -e 's: -Werror::' \
-e 's:-O3 ::' \
Makefile || die
tc-export CC AR
multilib_copy_sources
}
multilib_src_compile() {
emake library
use static-libs && emake package
}
multilib_src_install() {
doheader http_parser.h
dolib.so ${SONAME}
dosym ${SONAME} /usr/$(get_libdir)/libhttp_parser.so
use static-libs && dolib.a libhttp_parser.a
}
multilib_src_install_all() {
dodoc README.md
}

View File

@ -1,42 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
SONAME="libhttp_parser.so.${PV}"
inherit eutils toolchain-funcs multilib multilib-minimal
DESCRIPTION="http request/response parser for c"
HOMEPAGE="https://github.com/joyent/http-parser"
SRC_URI="https://github.com/joyent/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
IUSE="static-libs"
src_prepare() {
sed -i -e 's: -Werror::' \
-e 's:-O3 ::' \
Makefile || die
tc-export CC AR
multilib_copy_sources
}
multilib_src_compile() {
emake library
use static-libs && emake package
}
multilib_src_install() {
doheader http_parser.h
dolib.so ${SONAME}
dosym ${SONAME} /usr/$(get_libdir)/libhttp_parser.so
use static-libs && dolib.a libhttp_parser.a
}
multilib_src_install_all() {
dodoc README.md
}

View File

@ -1,45 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils toolchain-funcs multilib multilib-minimal
DESCRIPTION="Http request/response parser for C"
HOMEPAGE="https://github.com/nodejs/http-parser"
SRC_URI="https://github.com/nodejs/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~x64-macos ~x64-solaris"
IUSE="static-libs"
# https://github.com/nodejs/http-parser/pull/272
PATCHES=(
"${FILESDIR}"/0001-makefile-fix-DESTDIR-usage.patch
"${FILESDIR}"/0002-makefile-quote-variables.patch
"${FILESDIR}"/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch
"${FILESDIR}"/0004-makefile-add-CFLAGS-to-linking-command.patch
"${FILESDIR}"/0005-makefile-fix-install-rule-dependency.patch
)
src_prepare() {
tc-export CC AR
epatch ${PATCHES[@]}
multilib_copy_sources
}
multilib_src_compile() {
emake CFLAGS_FAST="${CFLAGS}" library
use static-libs && emake CFLAGS_FAST="${CFLAGS}" package
}
multilib_src_test() {
emake CFLAGS_DEBUG="${CFLAGS}" test
}
multilib_src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
use static-libs && dolib.a libhttp_parser.a
}

View File

@ -1,45 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils toolchain-funcs multilib multilib-minimal
DESCRIPTION="Http request/response parser for C"
HOMEPAGE="https://github.com/nodejs/http-parser"
SRC_URI="https://github.com/nodejs/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x64-macos ~x64-solaris"
IUSE="static-libs"
# https://github.com/nodejs/http-parser/pull/272
PATCHES=(
"${FILESDIR}"/0001-makefile-fix-DESTDIR-usage.patch
"${FILESDIR}"/0002-makefile-quote-variables.patch
"${FILESDIR}"/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch
"${FILESDIR}"/0004-makefile-add-CFLAGS-to-linking-command.patch
"${FILESDIR}"/0005-makefile-fix-install-rule-dependency.patch
)
src_prepare() {
tc-export CC AR
epatch ${PATCHES[@]}
multilib_copy_sources
}
multilib_src_compile() {
emake CFLAGS_FAST="${CFLAGS}" library
use static-libs && emake CFLAGS_FAST="${CFLAGS}" package
}
multilib_src_test() {
emake CFLAGS_DEBUG="${CFLAGS}" test
}
multilib_src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
use static-libs && dolib.a libhttp_parser.a
}

View File

@ -0,0 +1,37 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs multilib-minimal
DESCRIPTION="HTTP request/response parser for C"
HOMEPAGE="https://github.com/nodejs/http-parser"
SRC_URI="https://github.com/nodejs/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
# 2.9.4 restored ABI compatibility with 2.9.0 but since we failed
# to set subslot in 2.9.3, we want to provoke another rebuild
SLOT="0/2.9.4"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x64-macos ~x64-solaris"
PATCHES=(
"${FILESDIR}"/${P}-non-x86-test.patch
)
src_prepare() {
default
tc-export CC AR
multilib_copy_sources
}
multilib_src_compile() {
emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" CFLAGS_FAST="${CFLAGS}" library
}
multilib_src_test() {
emake CFLAGS_DEBUG="${CFLAGS}" CFLAGS_FAST="${CFLAGS}" test
}
multilib_src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
}

View File

@ -1,14 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>bugs@bergstroem.nu</email>
<name>Johan Bergström</name>
<description>Proxied Maintainer</description>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
<email>mgorny@gentoo.org</email>
<name>Michał Górny</name>
</maintainer>
<upstream>
<remote-id type="github">nodejs/http-parser</remote-id>

View File

@ -1,145 +0,0 @@
# ChangeLog for net-misc/iperf
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*iperf-3.1_beta3 (09 Aug 2015)
*iperf-3.0.11 (09 Aug 2015)
*iperf-2.0.5-r2 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org>
+files/iperf-3.0.5-flags.patch, +files/iperf-bidirectional-tcp-server.patch,
+files/iperf-cast-to-max_size_t-instead-of-int.patch,
+files/iperf-die-on-bind-fail.patch, +files/iperf-fix-bandwidth-limit.patch,
+files/iperf-fix-format-security-ftbfs.patch,
+files/iperf-ipv6_mcast_check.patch, +files/iperf.confd,
+files/iperf.initd-r1, +iperf-2.0.5-r2.ebuild, +iperf-3.0.11.ebuild,
+iperf-3.1_beta3.ebuild, +metadata.xml:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
01 Oct 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Add missing remote-id type=sourceforge
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Unify quoting in metadata.xml files for machine processing
Force unified quoting in all metadata.xml files since lxml does not
preserve original use of single and double quotes. Ensuring unified
quoting before the process allows distinguishing the GLEP 67-related
metadata.xml changes from unrelated quoting changes.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Replace all herds with appropriate projects (GLEP 67)
Replace all uses of herd with appropriate project maintainers, or no
maintainers in case of herds requested to be disbanded.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)
29 Jan 2016; Jason A. Donenfeld <zx2c4@gentoo.org> iperf-3.1_beta3.ebuild,
metadata.xml:
add sctp support
Package-Manager: portage-2.2.26
*iperf-3.1.2 (16 Feb 2016)
16 Feb 2016; Jeroen Roovers <jer@gentoo.org> +files/iperf3.initd,
-iperf-3.1_beta3.ebuild, +iperf-3.1.2.ebuild:
Version bump.
Add init.d/conf.d scripts for iamben
Package-Manager: portage-2.2.27
16 Feb 2016; Jeroen Roovers <jer@gentoo.org> iperf-2.0.5-r2.ebuild:
Drop unused base.eclass
Package-Manager: portage-2.2.27
18 May 2016; Austin English <wizardedit@gentoo.org> files/iperf.initd-r1,
files/iperf3.initd:
use #!/sbin/openrc-run instead of #!/sbin/runscript
*iperf-3.1.3 (10 Jun 2016)
*iperf-3.0.12 (10 Jun 2016)
10 Jun 2016; Jeroen Roovers <jer@gentoo.org> +iperf-3.0.12.ebuild,
+iperf-3.1.3.ebuild:
Version bump.
Package-Manager: portage-2.3.0_rc1
10 Jun 2016; Agostino Sarubbo <ago@gentoo.org> iperf-3.0.12.ebuild:
amd64 stable wrt bug #585504
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
11 Jun 2016; Jeroen Roovers <jer@gentoo.org> -iperf-3.1.2.ebuild:
Old.
Package-Manager: portage-2.3.0_rc1
11 Jun 2016; Jeroen Roovers <jer@gentoo.org> iperf-3.0.12.ebuild:
Stable for HPPA PPC64 (bug #585504).
Package-Manager: portage-2.3.0_rc1
RepoMan-Options: --ignore-arches
27 Jun 2016; Agostino Sarubbo <ago@gentoo.org> iperf-3.0.12.ebuild:
x86 stable wrt bug #585504
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>

View File

@ -1,280 +0,0 @@
# ChangeLog for net-misc/iperf
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/iperf/ChangeLog,v 1.76 2015/08/07 05:05:25 jer Exp $
07 Aug 2015; Jeroen Roovers <jer@gentoo.org> -iperf-3.0.7.ebuild,
-iperf-3.0.9.ebuild, -iperf-3.0.10.ebuild:
Old.
06 Aug 2015; Agostino Sarubbo <ago@gentoo.org> iperf-3.0.11.ebuild:
Stable for x86, wrt bug #554706
03 Aug 2015; Agostino Sarubbo <ago@gentoo.org> iperf-3.0.11.ebuild:
Stable for amd64, wrt bug #554706
02 Aug 2015; Pacho Ramos <pacho@gentoo.org> iperf-3.0.11.ebuild:
sparc stable wrt bug #554706
23 Jul 2015; Pacho Ramos <pacho@gentoo.org> iperf-3.0.11.ebuild:
ppc stable wrt bug #554706
18 Jul 2015; Jeroen Roovers <jer@gentoo.org> iperf-3.0.11.ebuild:
Stable for HPPA (bug #554706).
13 Jul 2015; Jeroen Roovers <jer@gentoo.org> iperf-3.0.11.ebuild:
Stable for PPC64 (bug #554706).
*iperf-3.1_beta3 (13 Jul 2015)
13 Jul 2015; Jeroen Roovers <jer@gentoo.org> +iperf-3.1_beta3.ebuild:
Version bump.
*iperf-3.0.11 (13 Jan 2015)
13 Jan 2015; Jeroen Roovers <jer@gentoo.org> +iperf-3.0.11.ebuild:
Version bump.
*iperf-3.0.10 (18 Dec 2014)
18 Dec 2014; Jeroen Roovers <jer@gentoo.org> -iperf-3.0.8.ebuild,
+iperf-3.0.10.ebuild:
Version bump.
29 Oct 2014; Agostino Sarubbo <ago@gentoo.org> iperf-3.0.7.ebuild:
Stable for sparc, wrt bug #524444
*iperf-3.0.9 (16 Oct 2014)
16 Oct 2014; Jeroen Roovers <jer@gentoo.org> +iperf-3.0.9.ebuild:
Version bump.
10 Oct 2014; Agostino Sarubbo <ago@gentoo.org> iperf-3.0.7.ebuild:
Stable for x86, wrt bug #524444
09 Oct 2014; Agostino Sarubbo <ago@gentoo.org> iperf-3.0.7.ebuild:
Stable for amd64, wrt bug #524444
04 Oct 2014; Jeroen Roovers <jer@gentoo.org> iperf-3.0.7.ebuild:
Stable for HPPA (bug #524444).
04 Oct 2014; Anthony G. Basile <blueness@gentoo.org> iperf-3.0.7.ebuild:
Stable on ppc/ppc64, bug #524444
*iperf-3.0.8 (04 Oct 2014)
04 Oct 2014; Jeroen Roovers <jer@gentoo.org> +iperf-3.0.8.ebuild:
Version bump.
15 Sep 2014; Jeroen Roovers <jer@gentoo.org> -files/iperf.initd:
Old.
14 Sep 2014; Jeroen Roovers <jer@gentoo.org> -iperf-2.0.5.ebuild,
-iperf-2.0.5-r1.ebuild, -iperf-3.0.5.ebuild, -iperf-3.0.6.ebuild:
Old.
14 Sep 2014; Agostino Sarubbo <ago@gentoo.org> iperf-2.0.5-r2.ebuild:
Stable for ppc64, wrt bug #517430
07 Sep 2014; Agostino Sarubbo <ago@gentoo.org> iperf-2.0.5-r2.ebuild:
Stable for ppc, wrt bug #517430
06 Sep 2014; Chema Alonso <nimiux@gentoo.org> iperf-2.0.5-r2.ebuild:
Stable for amd64 wrt bug #517430
*iperf-3.0.7 (03 Sep 2014)
03 Sep 2014; Jeroen Roovers <jer@gentoo.org> +iperf-3.0.7.ebuild:
Version bump.
*iperf-3.0.6 (06 Aug 2014)
06 Aug 2014; Jeroen Roovers <jer@gentoo.org> +iperf-3.0.6.ebuild:
Version bump.
01 Aug 2014; Raúl Porcel <armin76@gentoo.org> iperf-2.0.5-r2.ebuild:
sparc/x86 stable wrt #517430
23 Jul 2014; Jeroen Roovers <jer@gentoo.org> iperf-2.0.5-r2.ebuild:
Stable for HPPA (bug #517430).
22 Jul 2014; Markos Chandras <hwoarang@gentoo.org> iperf-3.0.5.ebuild:
Add ~mips. Bug #517754
19 Jul 2014; Jeroen Roovers <jer@gentoo.org> iperf-2.0.5.ebuild,
iperf-2.0.5-r1.ebuild, iperf-2.0.5-r2.ebuild, iperf-3.0.5.ebuild:
Move iperf3 to a new SLOT (bug #517488).
19 Jul 2014; Jeroen Roovers <jer@gentoo.org> files/iperf.initd-r1:
Drop "need net" in init script (bug #439654 by Matthew Schultz).
19 Jul 2014; Jeroen Roovers <jer@gentoo.org> iperf-3.0.5.ebuild,
+files/iperf-3.0.5-flags.patch:
Do not inject -g into CFLAGS/LDFLAGS, do not create an additional profiled
build (bug #517488 by Ronny Boesger).
*iperf-3.0.5 (18 Jul 2014)
18 Jul 2014; Jeroen Roovers <jer@gentoo.org> +iperf-3.0.5.ebuild:
Version bump (bug #466508 by Bryan Duff).
18 Jul 2014; Jeroen Roovers <jer@gentoo.org> iperf-2.0.5-r2.ebuild,
files/iperf-bidirectional-tcp-server.patch,
files/iperf-cast-to-max_size_t-instead-of-int.patch,
files/iperf-die-on-bind-fail.patch, files/iperf-fix-bandwidth-limit.patch,
files/iperf-fix-format-security-ftbfs.patch,
files/iperf-ipv6_mcast_check.patch:
Clean up, and patches.
*iperf-2.0.5-r2 (05 Sep 2013)
05 Sep 2013; Tiziano Müller <dev-zero@gentoo.org>
+files/iperf-bidirectional-tcp-server.patch,
+files/iperf-cast-to-max_size_t-instead-of-int.patch,
+files/iperf-die-on-bind-fail.patch,
+files/iperf-fix-format-security-ftbfs.patch,
+files/iperf-ipv6_mcast_check.patch, +files/iperf.initd-r1,
+iperf-2.0.5-r2.ebuild:
Rewrite init.d-script to avoid -D as a workaround for bug #344875, import some
important patches from Debian/Ubuntu.
06 Oct 2012; Sergey Popov <pinkbyte@gentoo.org> iperf-2.0.5.ebuild,
iperf-2.0.5-r1.ebuild:
Change package license from as-is to HPND
*iperf-2.0.5-r1 (06 Oct 2012)
06 Oct 2012; Sergey Popov <pinkbyte@gentoo.org> +iperf-2.0.5-r1.ebuild,
+files/iperf-fix-bandwidth-limit.patch:
Revision bump, add fix for bug #387129, bump to EAPI 4
11 Dec 2011; Markus Meier <maekke@gentoo.org> iperf-2.0.5.ebuild:
add ~arm, bug #389451
10 Oct 2010; Raúl Porcel <armin76@gentoo.org> iperf-2.0.5.ebuild:
sparc stable wrt #336656
14 Sep 2010; Jeroen Roovers <jer@gentoo.org> iperf-2.0.5.ebuild:
Stable for HPPA (bug #336656).
13 Sep 2010; Joseph Jezak <josejx@gentoo.org> iperf-2.0.5.ebuild:
Marked ppc/ppc64 stable for bug #336656.
12 Sep 2010; Markos Chandras <hwoarang@gentoo.org> iperf-2.0.5.ebuild:
Stable on amd64 wrt bug #336656
12 Sep 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> iperf-2.0.5.ebuild:
x86 stable wrt bug #336656
*iperf-2.0.5 (26 Jul 2010)
26 Jul 2010; Jeroen Roovers <jer@gentoo.org> +iperf-2.0.5.ebuild:
Version bump by Tim Harder (bug #329185).
07 Jan 2010; Christian Faulhammer <fauli@gentoo.org> iperf-2.0.4.ebuild:
Transfer Prefix keywords
01 Jun 2009; Peter Volkov <pva@gentoo.org> -iperf-1.7.0.ebuild,
-iperf-2.0.1.ebuild, -iperf-2.0.2.ebuild, iperf-2.0.4.ebuild:
Removed old, small cleanup.
31 May 2009; Brent Baude <ranger@gentoo.org> iperf-2.0.4.ebuild:
stable ppc64, bug 263878
30 May 2009; Tiago Cunha <tcunha@gentoo.org> iperf-2.0.4.ebuild:
stable sparc, bug 263878
30 May 2009; nixnut <nixnut@gentoo.org> iperf-2.0.4.ebuild:
ppc stable #263878
29 May 2009; Steve Dibb <beandog@gentoo.org> iperf-2.0.4.ebuild:
amd64 stable, bug 263878
26 May 2009; Christian Faulhammer <fauli@gentoo.org> iperf-2.0.4.ebuild:
stable x86, bug 263878
26 May 2009; Jeroen Roovers <jer@gentoo.org> iperf-2.0.4.ebuild:
Fix quoting issue.
26 May 2009; Jeroen Roovers <jer@gentoo.org> iperf-2.0.4.ebuild:
Stable for HPPA (bug #263878).
25 Mar 2009; Tiago Cunha <tcunha@gentoo.org> iperf-2.0.4.ebuild:
keyworded ~arch for sparc, bug 263724
*iperf-2.0.4 (30 Jul 2008)
30 Jul 2008; Jeroen Roovers <jer@gentoo.org> +iperf-2.0.4.ebuild:
Version bump thanks to Jeff Waller (bug #233215).
12 Jun 2007; Joe Peterson <lavajoe@gentoo.org> iperf-2.0.2.ebuild:
Add ~x86-fbsd keyword
16 Apr 2007; Markus Rothe <corsair@gentoo.org> iperf-2.0.2.ebuild:
Stable on ppc64
17 Mar 2007; Steve Dibb <beandog@gentoo.org> iperf-2.0.2.ebuild:
amd64 stable
13 Mar 2007; Raúl Porcel <armin76@gentoo.org> iperf-2.0.2.ebuild:
x86 stable
20 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
Redigest for Manifest2
19 Nov 2006; Guy Martin <gmsoft@gentoo.org> iperf-2.0.2.ebuild:
Stable on hppa.
04 Dec 2005; Tom Gall <tgall@gentoo.org> iperf-2.0.1.ebuild:
stable on ppc64
29 Nov 2005; <dang@gentoo.org> iperf-2.0.1.ebuild:
Marked stable on amd64
*iperf-2.0.2 (11 Aug 2005)
11 Aug 2005; Aaron Walker <ka0ttic@gentoo.org> +iperf-2.0.2.ebuild:
Version bump for bug 101960.
09 Aug 2005; Brent Baude <ranger@gentoo.org> iperf-1.7.0.ebuild:
Adding ~ppc64 keyword to the 1.70 iperf ebuild. This is the "stable" version
according to their website.
10 May 2005; Herbie Hopkins <herbs@gentoo.org> iperf-2.0.1.ebuild:
Marked ~amd64 wrt bug #92149.
06 May 2005; Omkhar Arasaratnam <omkhar@gentoo.org> iperf-2.0.1.ebuild:
Added ~ppc64 wrt #91738
25 Feb 2005; Aaron Walker <ka0ttic@gentoo.org> iperf-2.0.1.ebuild:
Marked stable on x86.
*iperf-2.0.1 (23 Jan 2005)
23 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> +files/iperf.confd,
files/iperf.initd, +iperf-2.0.1.ebuild:
Version bump for bug 77616; added conf.d file as well.
21 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> +files/iperf.initd,
iperf-1.7.0.ebuild:
Added init.d script for running iperf in server mode; fixes bug 69609.
25 Sep 2004; David Holm <dholm@gentoo.org> iperf-1.7.0.ebuild:
Added to ~ppc.
01 Jul 2004; Jon Hood <squinky86@gentoo.org> iperf-1.7.0.ebuild:
change virtual/glibc to virtual/libc, add IUSE
*iperf-1.7.0 (30 Jul 2003)
30 Jul 2003; Martin Holzer <mholzer@gentoo.org> iperf-1.7.0.ebuild:
Version bumped.
28 Jul 2003; Martin Holzer <mholzer@gentoo.org> iperf-1.6.3.ebuild:
Fixing install dir.
*iperf-1.6.3 (14 Nov 2002)
14 Nov 2002; Martin Holzer <mholzer@gentoo.org> iperf-1.6.3.ebuild
ChangeLog files/digest-iperf-1.6.3 files/iperf-1.6.3-Makefile-gentoo.diff :
Iperf is a tool to measure IP bandwidth using UDP or TCP.

View File

@ -1,21 +1,3 @@
AUX iperf-3.0.5-flags.patch 1323 SHA256 239b00aa090e7cfbd45f14ef0dc88a90fa24760f05cf005a17bded6df342e01f SHA512 d5e106b9b6fdc704e1e8d5c87f767a912a3e643994b51f09fee34fffcf9007b3eb91adcf3b87e04f90c994e29691dff0e400fb2f13a94e68c58183a39d833403 WHIRLPOOL 9dee2ef383d5dcc39358964be09e0d19d1a5cb0fe864067c6274dacfd994380c1bd4a5afd0789bcd4052af31c36578dc3a62c196134442b27f5b2c844ed06768
AUX iperf-bidirectional-tcp-server.patch 709 SHA256 732fea9c648dcb9c75213d49275567228c9cbcb49a1eaa32b84fe6fd8af60894 SHA512 b08f6c9e884f9a6b0945c806d471d5007c0e357e90fc344f19f17cf785fb603f0da4c7de667f85823c66f39f58b0a0be46359284730421dc9a573baa67ea6d28 WHIRLPOOL 368615b1ebc63b3959b1519e6f6f2431f7c25aa3c20094a7e8b6c76deec9ef6631be0d9fe4de1c4b4f71ec687c5c01ac834a16784c0ad4cb37270a551d40bbb4
AUX iperf-cast-to-max_size_t-instead-of-int.patch 904 SHA256 c7c7630151f53a24e504359c8f773daf5b08e81c782b87937de12152b91f1502 SHA512 a3a8ab1c745dce9ba5d7f52747490ced0a485b9f92d254e64bdbc4302a0ab057f4203b1e85ba680db8828b6390b38d95eb3c65c74a4679cf81e9760838ecf777 WHIRLPOOL b4282e3fd72ce472576a9110f32b5d9c770e38874f5f5ce94c7b1373e7bbb0a77ed61a2fcdcf9a708efaebe8339186337dd32ad54de335e36a837f8f8d4d3c11
AUX iperf-die-on-bind-fail.patch 812 SHA256 f56e0affd91a41675b8f756c969f175723dfa2b5ab9dba8b4f20b94f1fe5b3c5 SHA512 0986619d046c4a7f792bdc5b18e600840b70df14bbe5e78bd4240df57989ea82a8fb8df0f6589a4d182e7fb8035b1d6b1472edbafe3f7cf4e361550fdbea6487 WHIRLPOOL 92b640e4ab4dd706c570fe41ecb97ea5e20feb4acd0469addbe8955d769fdbc40e958c005d03e3625858509492b209da13b589aca33bf2433dab364533bfba86
AUX iperf-fix-bandwidth-limit.patch 640 SHA256 d2ca83dc24affb54f6131ee2ca747103c6eed03c983485830e9f8a98efd57c40 SHA512 7a135fbfd45d3c75bc5a0833acf554e73b6d066ca110f7ce46222dc54bc784c986020a7be255e3b9c270925abe8315c51b40a56e42b52911d91e6c8cf935398c WHIRLPOOL c8d8a5ee353c318b3ea6967d28bbeccb1cd607030b067409e3fb7b0af3342a857931c646e40f59d499bd0588e3817569efcada39382ed150364769d3fa94bd87
AUX iperf-fix-format-security-ftbfs.patch 3000 SHA256 dd94279fa0d20251731d2c09f6faff448ea63bfa92a862b89126b17f7d2d6798 SHA512 393c8845d38ee4813dcf95cbe719630c0ef7b26eea9a80d2635d30baaa08b31b3c79313caca23cb7f8f937012cf3e8e58b57073b9b180be523cd98c5638af3a2 WHIRLPOOL 3a47a9fcace83f76984d717c144d2849b71db78eaed93073a9df2825c023445f2adcd949adc52db1f8cdecfeb85544993d27bfc598149cf20078b5d0ae8f6974
AUX iperf-ipv6_mcast_check.patch 1005 SHA256 2830abbf7e38a6532a3a9403a2ee68825f9227483f18e05e7c6ef66025f34c36 SHA512 300e2fb60fa5c5359cd12d4e688e2d22636123f25196db113ea57d30afb2034249706d588a2c6e6e4362c58185b60b15215409f0687a7195edec48093f2b0651 WHIRLPOOL 67bb59c232bed51fefd29bf33d113b458e9379ffc87614d0468ea50935248484450bac5377c53afd8f93082f2cfe1cc2029277a5fec271a60e3296e22be00e2f
AUX iperf.confd 207 SHA256 878c7d1c82c6c093f80a70af22f7e4de83dd5a1fc4b27c024783a006a39121b0 SHA512 9450d758315a836c75ef2e8d221407e4b0076b8a6cbc469efcaf23e7ac32e48d79ac601b57b03d042d791bfe63b2d82529e94a283125c398b10e784317f27bcc WHIRLPOOL 8669b397fb4637c94dddbab74084b6722bd7bc51767e4eb657f9d6239bc783e042f136e08e76f609bcca7228fa105c295205436f084ef846c71f8f66b3a614c3
AUX iperf.initd-r1 444 SHA256 2588b8fb473fea4185c42603d5a3e3cbdfca1d840abe1cccac14961fa6adea83 SHA512 86e8279dabd8c35d55e4aa921aff172028303f0c4b80395252f133c6c5c447cfe96804ef1d3c82dd3170884a828b84b88cce2a41f6ba8fcff7a929e30ce325ad WHIRLPOOL 56be8d1d6af9253728101e683724f15b1bd3d3c2680e45d8fc4740c2d2b95512e0fc33e862a6f63a8c7361ea1e3e66cfd5ca80a81ad27337507bc93fcce5fd3c
AUX iperf3.initd 294 SHA256 8e4227d3a424e7477954d1d13730f3974bd23692153af22fb615aba1524d9c52 SHA512 f81ac435bc7a75ecd37738c5ffc62530b54d8536bf6c5c2ce44e93b268a1d4e22ed06d2aa262d385620c0c7bec2af728fedbbd380babe708ed1114b2de8f6eca WHIRLPOOL d162d9e8b2c48bff2d7abf178cf2da77a6fd5cd0352ab79032d9146d707bc5ee309fe375ac650301450ae4f7d48d15e8f07904c508dbd86e2df315cf65cb5169
DIST iperf-2.0.5.tar.gz 248583 SHA256 636b4eff0431cea80667ea85a67ce4c68698760a9837e1e9d13096d20362265b SHA512 da9a0c01dea2a9dd33aa130b11d938d5f44dd6c3ab27526b0a43df5bf2550fede04238a00b7d54037426afe90ac6d8c4f4ae6861aa170ca7835b6664c9d6537f WHIRLPOOL d66b007fad372516c7f7377872b69ea450fa9ff6d1492f2a224a73f2fb3f7616bd2d57a34a815d4d95683d81fd02d76472d4727323e920410034ba725f6476ce
DIST iperf-3.0.11.tar.gz 426434 SHA256 c774b807ea4db20e07558c47951df186b6fb1dd0cdef4282c078853ad87cc712 SHA512 292b826099a1fc813f2fbe4506f8bd8b3b2e4dde04e33a097cce966d7502b3c521a29b9ba74e55fe38406fdb85090695f59febbf4ca31bb1ffc801b3b7615d19 WHIRLPOOL e16799997d7e3c0abe2e2a93bd559a69c0d3c96aab954cd9fb4be93cc8ce4f38c7a2ced034b1b03b2dc257bd5c82d202b4da528ee11f86ed99890fb02cad4b04
DIST iperf-3.0.12.tar.gz 432822 SHA256 280ecdb1b29b8c2dcb502f91be1575ac9e86cc3be198b3a009d8561f5b1bec89 SHA512 7b013e890b27482959a0e60e211ec53f717b895600047f553b34394d36276ba4bf8bcb2344b0c0f9d63ac57d84c597ff6ef316246d5e19fed1cac50f75c7118f WHIRLPOOL 0765e3b2f37cfb9c8124b81dec7157ac6f457cd43511be4c391defc1142e62d5f4a17a9b048dfdb1aca71f3f1bb8db77d7193ab88a4808039c64c0424524d4f7
DIST iperf-3.1.3.tar.gz 549466 SHA256 e34cf60cffc80aa1322d2c3a9b81e662c2576d2b03e53ddf1079615634e6f553 SHA512 67795d9d5b4fc719b3fbbc2683cbe2777412bb7212282a50a378f5bb3793c3c17e278d22816fd9d289b2606ce97624d496ba236e3686ce1a31b9f1d6e6f474e9 WHIRLPOOL 0082f5156df751cbed49e86f794a48ff05857cd7cd4ee3bdb57f4df763a323d84f47d9e0b01e0b5932ae1e065bcf8ac706e6b96b6ac5ecee2daad6615ca4f38d
EBUILD iperf-2.0.5-r2.ebuild 1028 SHA256 7bb3f01b6650087a1f5832832ecb07b28ed68a1c6b45d1ac8bab7b30037be351 SHA512 09897a7338c04b58e374e30857b94cdf1a1cd0c810ad8ac4ed11731d4941e5a1cee8389155b8fbc9ba20d16e7d0b34dedb064488d87e3f310339c062de7d67d8 WHIRLPOOL 4816dfe842d0fe8d4ef7202373e50aecaccf7706b5560697699f42f2b3c6d87595b1df46ac66ff5de3c7b042df292c4c292595b01f3635a200827effec79a459
EBUILD iperf-3.0.11.ebuild 702 SHA256 8c83726528d823ba782d8036b7144be44f9dc6ef5362c938ae0c1f20eeeab9d0 SHA512 f834048a806671b0aea957d5f9bceeecd93e1d1de333d84e0b5d6f41f46c867c7e640a06b44aceed09c0ab11f9a76e9e16e0574793e203cd8b3c35e64bb74c39 WHIRLPOOL a0bbf608043e4e6de2b21165ec1649b3e3380dcda4d5ec9d757c6df1c658c2109c6b33018163522735cd38e944f64f4eccacbc32eeee7092d41174a40ad881f3
EBUILD iperf-3.0.12.ebuild 704 SHA256 b6c25610e17e1a19d76875a062d04598a35842833361d75459791c3ebbaae732 SHA512 73ec87bef73c2912dafe2cec842896f3f0ae3ff8c86615f375b8abea13e1d0e431ebc5da1579a9c0e2dcde0660321d6907be94f9463e45b238599162931255b7 WHIRLPOOL 17d09d4ca69021a67948b1413e76b4bba9b34197569eb2fabf214924b45ba76b9a7d89899057a77da4380d3ffdba1012d08a800b2a0eb54269a592e1972d99e3
EBUILD iperf-3.1.3.ebuild 910 SHA256 7ed68d64d24346b249d7afbc2c2583f22bd31751e62ef36c55fd1ed012acee90 SHA512 fd39f159bd46c558b66aa3655469e3324f2c437fbb39e9d8d274b9bb0441c6e89d063d810a4c7dd69076da0d92d3520da92bb43ad2bf284eb908ee0e3aab592f WHIRLPOOL 3f82081737d079ed796720a124451675cbc449da3e39e601029540a33a8f5eb42567846ddc3cbc807c2fb2be0dd849891a8b1681b629fd3fc81bc2c05e2c5641
MISC ChangeLog 5053 SHA256 b0d8e18e1a669ca8f5c5af6e77b604344f0d4d19970a2d74c566ba61d4f32cbc SHA512 fe76f8b32402bfbba78baa7e00c7c9158932441d28abbd79ac032efefce96816b564cc6aa7f7479ebcca16aa45983e3b7794a5213985db45281b5894dc9ec244 WHIRLPOOL 33bd3d7591befe4bf937ec263411b6068ffb5b3ebbf7968be469cd667fbbb37e7f5961a8b3e6404f74c375621034dff7eab4ec8c48f1d58dfcc387ad4ff28290
MISC ChangeLog-2015 9232 SHA256 a66a1c8b971ea90db0e055b706cd8af8778e04e0337297572baadd1b02c509ff SHA512 e04814dc84b7438914386bfc49f703993a6c447f3fbcfc3711d0c7e704c30274602028a4f07bb265181971c3bb374b26d07ca1f135d1db43c9c7c6f296754370 WHIRLPOOL a702b60e9c2a253890e5dd838050ade03b4ae212b85455e5352e3c3b8224cfce3b7a22e0430a80356a1b6641cec85a974456e3577cacca47376667f4bbcfeda7
MISC metadata.xml 497 SHA256 856534126b9d4ec2efec378a35e8487e5f5db91024d877c5c1a33ed4ce0b7105 SHA512 6a21a8446768d04dd25cf7c9748b82c82f93ecf144886532d9885c0aace88a28ef46747e5a946832baab0d80672e1d9c3ac7d7aafc2c45fbd7355adc196b5bca WHIRLPOOL bd7a596fbf48858014b30d7a2be93c37381decb24d30b5697e168689e65dde4a973040e40f38ed6881fc335cfde90a59d9589692f0356777140676bd86b955a7
DIST iperf-2.0.13.tar.gz 326148 BLAKE2B 2a40aea9e2d7fdc935b91be5e4e586bf68dd27604375d2570570145e5db1ea5837469a4989f47586986932bef33cba05ed19ed3a9ce40c0a5531581c6d3ba982 SHA512 40fcfb8f4d27887f53a743ac07396511fb2a7ac59f4b300fe36896bd0241e191945fa253705990711772ee776d5e4227ed62760fc92abebdfebcedd11c27c0ea
DIST iperf-3.10.1.tar.gz 636957 BLAKE2B 8390b4fb0d4c6590bf73e46d55fbe100f1c9832b4e7baba23b4bec2808b42582bf76cc4250c529a1eb4a58c7214120f0e3a393a7c2602b838b22d97eb53842b3 SHA512 d1139aed0c7a99e8cfc23c41d606854d48a57db24d45ea31412d81222b09faeee6edccdf4030a00eeb6acbfd540d4b985b4a89f81a4d5b84592339ad5e2e9e41
DIST iperf-3.11.tar.gz 638521 BLAKE2B b2981c170aac947c407b0a5686cd9708012282044be30ec7e5f993a9d61d55c4517003024890a194f6e55d342be0e60f1bcab27460541d2b9631a3bb88e094a5 SHA512 4be3e407f77a083d826bddc5ce2939047c85f5b816a6aeb3293eacabf2ea23bf13df4226e629ade3bf390c2eb08d6a1cb96f8cdb0fefb290a0fa4c8331d11a17

View File

@ -0,0 +1,23 @@
--- a/src/Listener.cpp
+++ b/src/Listener.cpp
@@ -670,6 +670,7 @@
// Now optimize packet flow up the raw socket
// Establish the flow BPF to forward up only "connected" packets to this raw socket
+#ifdef HAVE_IPV6
if (l->sa_family == AF_INET6) {
struct in6_addr *v6peer = SockAddr_get_in6_addr(&server->peer);
struct in6_addr *v6local = SockAddr_get_in6_addr(&server->local);
@@ -682,9 +683,12 @@
WARN_errno( rc == SOCKET_ERROR, "l2 v4in6 connect ip bpf");
}
} else {
+#endif
rc = SockAddr_v4_Connect_BPF(server->mSock, ((struct sockaddr_in *)(l))->sin_addr.s_addr, ((struct sockaddr_in *)(p))->sin_addr.s_addr, ((struct sockaddr_in *)(l))->sin_port, ((struct sockaddr_in *)(p))->sin_port);
WARN_errno( rc == SOCKET_ERROR, "l2 connect ip bpf");
+#ifdef HAVE_IPV6
}
+#endif
if (rc < 0)
return -1;
else

View File

@ -0,0 +1,132 @@
commit 12254fa398e627949af923afd0d48cd9b814f0a0
Author: rmcmahon <bob.mcmahon@broadcom.com>
Date: Tue Jan 29 23:11:18 2019 -0800
new version 2.0.14a, fix for -P w/server and summing
diff --git a/configure b/configure
index f1a9983..706e7a3 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for Iperf 2.0.13.
+# Generated by GNU Autoconf 2.69 for Iperf 2.0.14a.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -577,8 +577,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='Iperf'
PACKAGE_TARNAME='iperf'
-PACKAGE_VERSION='2.0.13'
-PACKAGE_STRING='Iperf 2.0.13'
+PACKAGE_VERSION='2.0.14a'
+PACKAGE_STRING='Iperf 2.0.14a'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1313,7 +1313,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures Iperf 2.0.13 to adapt to many kinds of systems.
+\`configure' configures Iperf 2.0.14a to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1383,7 +1383,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of Iperf 2.0.13:";;
+ short | recursive ) echo "Configuration of Iperf 2.0.14a:";;
esac
cat <<\_ACEOF
@@ -1493,7 +1493,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-Iperf configure 2.0.13
+Iperf configure 2.0.14a
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2236,7 +2236,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by Iperf $as_me 2.0.13, which was
+It was created by Iperf $as_me 2.0.14a, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3101,7 +3101,7 @@ fi
# Define the identity of the package.
PACKAGE='iperf'
- VERSION='2.0.13'
+ VERSION='2.0.14a'
cat >>confdefs.h <<_ACEOF
@@ -8854,7 +8854,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by Iperf $as_me 2.0.13, which was
+This file was extended by Iperf $as_me 2.0.14a, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -8920,7 +8920,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-Iperf config.status 2.0.13
+Iperf config.status 2.0.14a
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/configure.ac b/configure.ac
index cd3c9a0..4c93328 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@ dnl ===================================================================
AC_PREREQ(2.59)
-AC_INIT(Iperf,2.0.13)
+AC_INIT(Iperf,2.0.14a)
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE()
diff --git a/include/version.h b/include/version.h
index 87279a7..d6f9d89 100644
--- a/include/version.h
+++ b/include/version.h
@@ -1,4 +1,4 @@
-#define IPERF_VERSION "2.0.13"
-#define IPERF_VERSION_DATE "21 Jan 2019"
+#define IPERF_VERSION "2.0.14a"
+#define IPERF_VERSION_DATE "29 Jan 2019"
#define IPERF_VERSION_MAJORHEX 0x00020000
-#define IPERF_VERSION_MINORHEX 0x000D0003
+#define IPERF_VERSION_MINORHEX 0x000E0000
diff --git a/src/Reporter.c b/src/Reporter.c
index 80891aa..d5164ef 100644
--- a/src/Reporter.c
+++ b/src/Reporter.c
@@ -151,7 +151,9 @@ MultiHeader* InitMulti( thread_Settings *agent, int inID) {
memset( multihdr, 0, sizeof(MultiHeader) );
Condition_Initialize( &multihdr->barrier );
multihdr->groupID = inID;
- multihdr->threads = agent->mThreads;
+ if (agent->mThreadMode == kMode_Client) {
+ multihdr->threads = agent->mThreads;
+ }
if ( isMultipleReport( agent ) ) {
int i;
ReporterData *data = NULL;

View File

@ -1,31 +0,0 @@
* Do not inject -g
* Do not make a profiled build
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
lib_LTLIBRARIES = libiperf.la # Build and install an iperf library
bin_PROGRAMS = iperf3 # Build and install an iperf binary
-noinst_PROGRAMS = t_timer t_units t_uuid iperf3_profile # Build, but don't install the test programs and a profiled version of iperf3
+noinst_PROGRAMS = t_timer t_units t_uuid # Build, but don't install the test programs and a profiled version of iperf3
include_HEADERS = iperf_api.h # Defines the headers that get installed with the program
@@ -37,14 +37,13 @@
# Specify the sources and various flags for the iperf binary
iperf3_SOURCES = main.c
-iperf3_CFLAGS = -g
+iperf3_CFLAGS =
iperf3_LDADD = libiperf.la
-iperf3_LDFLAGS = -g
+iperf3_LDFLAGS =
# Specify the sources and various flags for the profiled iperf binary. This
# binary recompiles all the source files to make sure they are all profiled.
-iperf3_profile_SOURCES = main.c \
- $(libiperf_la_SOURCES)
+iperf3_profile_SOURCES = main.c
iperf3_profile_CFLAGS = -pg -g
iperf3_profile_LDADD = libiperf.la

View File

@ -0,0 +1,148 @@
https://bugs.gentoo.org/788973
From 456e9460f9320123c5449fd2314bc1b2a001547a Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Fri, 2 Jul 2021 05:21:46 +0100
Subject: [PATCH] Drop forced -g
---
examples/Makefile.am | 4 ----
examples/Makefile.in | 4 ----
src/Makefile.am | 11 ++---------
src/Makefile.in | 11 ++---------
4 files changed, 4 insertions(+), 26 deletions(-)
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 829f242..aad0ae2 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -3,11 +3,7 @@ noinst_PROGRAMS = mic mis # Build, but don't install
AM_CPPFLAGS = -I$(top_srcdir)/src
mic_SOURCES = mic.c
-mic_CFLAGS = -g
mic_LDADD = ../src/libiperf.la
-mic_LDFLAGS = -g
mis_SOURCES = mis.c
-mis_CFLAGS = -g
mis_LDADD = ../src/libiperf.la
-mis_LDFLAGS = -g
diff --git a/examples/Makefile.in b/examples/Makefile.in
index d74c3c8..089b45d 100644
--- a/examples/Makefile.in
+++ b/examples/Makefile.in
@@ -304,13 +304,9 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AM_CPPFLAGS = -I$(top_srcdir)/src
mic_SOURCES = mic.c
-mic_CFLAGS = -g
mic_LDADD = ../src/libiperf.la
-mic_LDFLAGS = -g
mis_SOURCES = mis.c
-mis_CFLAGS = -g
mis_LDADD = ../src/libiperf.la
-mis_LDFLAGS = -g
all: all-am
.SUFFIXES:
diff --git a/src/Makefile.am b/src/Makefile.am
index 11d3e17..190ff26 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -47,9 +47,7 @@ libiperf_la_SOURCES = \
# Specify the sources and various flags for the iperf binary
iperf3_SOURCES = main.c
-iperf3_CFLAGS = -g
iperf3_LDADD = libiperf.la
-iperf3_LDFLAGS = -g
if ENABLE_PROFILING
# If the iperf-profiled-binary is enabled
@@ -58,34 +56,29 @@ if ENABLE_PROFILING
iperf3_profile_SOURCES = main.c \
$(libiperf_la_SOURCES)
-iperf3_profile_CFLAGS = -pg -g
+iperf3_profile_CFLAGS = -pg
iperf3_profile_LDADD = libiperf.la
-iperf3_profile_LDFLAGS = -pg -g
+iperf3_profile_LDFLAGS = -pg
endif
# Specify the sources and various flags for the test cases
t_timer_SOURCES = t_timer.c
-t_timer_CFLAGS = -g
t_timer_LDFLAGS =
t_timer_LDADD = libiperf.la
t_units_SOURCES = t_units.c
-t_units_CFLAGS = -g
t_units_LDFLAGS =
t_units_LDADD = libiperf.la
t_uuid_SOURCES = t_uuid.c
-t_uuid_CFLAGS = -g
t_uuid_LDFLAGS =
t_uuid_LDADD = libiperf.la
t_api_SOURCES = t_api.c
-t_api_CFLAGS = -g
t_api_LDFLAGS =
t_api_LDADD = libiperf.la
t_auth_SOURCES = t_auth.c
-t_auth_CFLAGS = -g
t_auth_LDFLAGS =
t_auth_LDADD = libiperf.la
diff --git a/src/Makefile.in b/src/Makefile.in
index 34d92fa..2144ff7 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -671,9 +671,7 @@ libiperf_la_SOURCES = \
# Specify the sources and various flags for the iperf binary
iperf3_SOURCES = main.c
-iperf3_CFLAGS = -g
iperf3_LDADD = libiperf.la
-iperf3_LDFLAGS = -g
# If the iperf-profiled-binary is enabled
# Specify the sources and various flags for the profiled iperf binary. This
@@ -681,29 +679,24 @@ iperf3_LDFLAGS = -g
@ENABLE_PROFILING_TRUE@iperf3_profile_SOURCES = main.c \
@ENABLE_PROFILING_TRUE@ $(libiperf_la_SOURCES)
-@ENABLE_PROFILING_TRUE@iperf3_profile_CFLAGS = -pg -g
+@ENABLE_PROFILING_TRUE@iperf3_profile_CFLAGS = -pg
@ENABLE_PROFILING_TRUE@iperf3_profile_LDADD = libiperf.la
-@ENABLE_PROFILING_TRUE@iperf3_profile_LDFLAGS = -pg -g
+@ENABLE_PROFILING_TRUE@iperf3_profile_LDFLAGS = -pg
# Specify the sources and various flags for the test cases
t_timer_SOURCES = t_timer.c
-t_timer_CFLAGS = -g
t_timer_LDFLAGS =
t_timer_LDADD = libiperf.la
t_units_SOURCES = t_units.c
-t_units_CFLAGS = -g
t_units_LDFLAGS =
t_units_LDADD = libiperf.la
t_uuid_SOURCES = t_uuid.c
-t_uuid_CFLAGS = -g
t_uuid_LDFLAGS =
t_uuid_LDADD = libiperf.la
t_api_SOURCES = t_api.c
-t_api_CFLAGS = -g
t_api_LDFLAGS =
t_api_LDADD = libiperf.la
t_auth_SOURCES = t_auth.c
-t_auth_CFLAGS = -g
t_auth_LDFLAGS =
t_auth_LDADD = libiperf.la
dist_man_MANS = iperf3.1 libiperf.3
--
2.32.0

View File

@ -1,23 +0,0 @@
Description: Fix bidirectional TCP server exiting after the test
iperf bidirectional test using parameter -r or -d doesn't work as
expected, the server exits after the test, but it should continue listening
for new connections.
Author: Roberto Lumbreras <rover@debian.org>
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=449796
Forwarded: http://sourceforge.net/tracker/?func=detail&aid=1983829&group_id=128336&atid=711371
--- a/src/Client.cpp
+++ b/src/Client.cpp
@@ -212,10 +212,12 @@ void Client::Run( void ) {
char* readAt = mBuf;
#if HAVE_THREAD
+ /*
if ( !isUDP( mSettings ) ) {
RunTCP();
return;
}
+ */
#endif
// Indicates if the stream is readable

View File

@ -1,20 +0,0 @@
Description: iperf does not handle right large time values
Reported by Eugene Butan <eugene@mikrotik.com>
When I invoke 'iperf' with '-t 100000000' argument from an ordinary shell
prompt it immediately exits displaying incorrect bandwidth. If I supply
smaller time value, iperf works as expected.
Author: Roberto Lumbreras <rover@debian.org>
Bug-Debian: http://bugs.debian.org/346099
Forwarded: https://sourceforge.net/tracker/index.php?func=detail&aid=3140391&group_id=128336&atid=711371
--- a/src/Settings.cpp
+++ b/src/Settings.cpp
@@ -458,7 +458,7 @@
case 't': // seconds to write for
// time mode (instead of amount mode)
setModeTime( mExtSettings );
- mExtSettings->mAmount = (int) (atof( optarg ) * 100.0);
+ mExtSettings->mAmount = (max_size_t) (atof( optarg ) * 100.0);
break;
case 'u': // UDP instead of TCP

View File

@ -1,19 +0,0 @@
Description: iperf die on bind fail
When iperf encounters a fatal error when binding to a port, such as
the port being already in use or lacking permission, it fails to give
fatal error, but instead pretends to continue to listen on the port.
Author: Deny IP Any Any <denyipanyany@gmail.com>
Bug-Debian: http://bugs.debian.org/517239
Forwarded: https://sourceforge.net/tracker/?func=detail&aid=3140400&group_id=128336&atid=711371
--- a/src/Listener.cpp
+++ b/src/Listener.cpp
@@ -333,7 +333,7 @@
#endif
{
rc = bind( mSettings->mSock, (sockaddr*) &mSettings->local, mSettings->size_local );
- WARN_errno( rc == SOCKET_ERROR, "bind" );
+ FAIL_errno( rc == SOCKET_ERROR, "bind", mSettings );
}
// listen for connections (TCP only).
// default backlog traditionally 5

View File

@ -1,21 +0,0 @@
2011-10-14 Israel G. Lugo <israel.lugo@lugosys.com>
* Fix delay_loop() for delays of 1s and greater. Was causing breakage when a
low bandwidth limit was specified.
--- a/compat/delay.cpp
+++ b/compat/delay.cpp
@@ -63,8 +63,9 @@ void delay_loop(unsigned long usec)
{
struct timespec requested, remaining;
- requested.tv_sec = 0;
- requested.tv_nsec = usec * 1000L;
+ /* convert to seconds; nanosleep requires 0 <= tv_nsec <= 999999999 */
+ requested.tv_sec = usec / 1000000UL;
+ requested.tv_nsec = (usec % 1000000UL) * 1000UL;
while (nanosleep(&requested, &remaining) == -1)
if (errno == EINTR)

View File

@ -1,96 +0,0 @@
Description: iperf format string FTBFS with -Werror=format-security
Reported by Didier Raboud <odyx@debian.org>
Author: Simon Paillard <spaillard@debian.org>
Bug-Debian: http://bugs.debian.org/643408
--- a/compat/Thread.c
+++ b/compat/Thread.c
@@ -381,7 +381,7 @@
Condition_Lock( thread_sNum_cond );
thread_sNum -= nonterminating_num;
if ( thread_sNum > 1 && nonterminating_num > 0 && interrupt != 0 ) {
- fprintf( stderr, wait_server_threads );
+ fprintf( stderr, "%s", wait_server_threads );
}
nonterminating_num = 0;
Condition_Signal( &thread_sNum_cond );
--- a/src/ReportDefault.c
+++ b/src/ReportDefault.c
@@ -78,7 +78,7 @@
if ( stats->mUDP != (char)kMode_Server ) {
// TCP Reporting
if( !header_printed ) {
- printf( report_bw_header);
+ printf( "%s", report_bw_header);
header_printed = 1;
}
printf( report_bw_format, stats->transferID,
@@ -87,7 +87,7 @@
} else {
// UDP Reporting
if( !header_printed ) {
- printf( report_bw_jitter_loss_header);
+ printf( "%s", report_bw_jitter_loss_header);
header_printed = 1;
}
printf( report_bw_jitter_loss_format, stats->transferID,
@@ -159,7 +159,7 @@
(data->mThreadMode == kMode_Listener ? 0 : 1) );
win_requested = data->mTCPWin;
- printf( separator_line );
+ printf( "%s", separator_line );
if ( data->mThreadMode == kMode_Listener ) {
printf( server_port,
(isUDP( data ) ? "UDP" : "TCP"),
@@ -198,7 +198,7 @@
printf( warn_window_requested, buffer );
}
printf( "\n" );
- printf( separator_line );
+ printf( "%s", separator_line );
}
/*
@@ -286,7 +286,7 @@
} else if ( checkMSS_MTU( inMSS, 576 ) ) {
net = "minimum";
mtu = 576;
- printf( warn_no_pathmtu );
+ printf( "%s", warn_no_pathmtu );
} else {
mtu = inMSS + 40;
net = "unknown interface";
--- a/src/Reporter.c
+++ b/src/Reporter.c
@@ -896,7 +896,7 @@
} else if ( checkMSS_MTU( inMSS, 576 ) ) {
net = "minimum";
mtu = 576;
- printf( warn_no_pathmtu );
+ printf( "%s", warn_no_pathmtu );
} else {
mtu = inMSS + 40;
net = "unknown interface";
--- a/src/Settings.cpp
+++ b/src/Settings.cpp
@@ -375,8 +375,8 @@
break;
case 'h': // print help and exit
- fprintf(stderr, usage_long1);
- fprintf(stderr, usage_long2);
+ fprintf(stderr, "%s", usage_long1);
+ fprintf(stderr, "%s", usage_long2);
exit(1);
break;
@@ -482,7 +482,7 @@
break;
case 'v': // print version and exit
- fprintf( stderr, version );
+ fprintf( stderr, "%s", version );
exit(1);
break;

View File

@ -1,22 +0,0 @@
Description: Fix improper check for IPv6 family when sending multicast
This patch fixes the proper behavior of -T (hop-limit setting) when
sending IPv6 multicast packets. Due to this bug, it was always fixed to 1.
.
SetSocketOptions() is called before socket connection, thus sa_family is
still set to 0. This is causing the if-branch in the multicast check
to always assume a non-IPv6 socket.
Checking the remote-peer family works reliably, instead.
Author: Luca Bruno <lucab@debian.org>
Last-Update: 2012-05-24
--- a/src/PerfSocket.cpp
+++ b/src/PerfSocket.cpp
@@ -109,7 +109,7 @@ void SetSocketOptions( thread_Settings *
if ( isMulticast( inSettings ) && ( inSettings->mTTL > 0 ) ) {
int val = inSettings->mTTL;
#ifdef HAVE_MULTICAST
- if ( !SockAddr_isIPv6( &inSettings->local ) ) {
+ if ( !SockAddr_isIPv6( &inSettings->peer ) ) {
int rc = setsockopt( inSettings->mSock, IPPROTO_IP, IP_MULTICAST_TTL,
(const void*) &val, (Socklen_t) sizeof(val));

View File

@ -1,6 +1,5 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# extra options (run iperf -h for a list of supported options)
IPERF_OPTS="--format Mbytes"

View File

@ -1,7 +1,6 @@
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
description="IP bandwidth measurement server"
command="/usr/bin/iperf"

View File

@ -1,7 +1,6 @@
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
description="IP bandwidth measurement server"
command="/usr/bin/iperf3"

View File

@ -0,0 +1,42 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP"
HOMEPAGE="https://sourceforge.net/projects/iperf2/"
SRC_URI="mirror://sourceforge/${PN}2/${PN}-2.0.13.tar.gz"
S="${WORKDIR}/${PN}-2.0.13"
LICENSE="HPND"
SLOT="2"
KEYWORDS="amd64 ~arm ~hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="ipv6 threads debug"
DOCS=( INSTALL README )
PATCHES=(
"${FILESDIR}"/${PN}-2.0.12-ipv6.patch
"${FILESDIR}"/${P}.patch
)
src_configure() {
econf \
$(use_enable debug debuginfo) \
$(use_enable ipv6) \
$(use_enable threads)
}
src_compile() {
emake AR="$(tc-getAR)"
}
src_install() {
default
dodoc doc/*
newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
}

View File

@ -1,38 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP"
HOMEPAGE="http://iperf.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="HPND"
SLOT="2"
KEYWORDS="amd64 ~arm hppa ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
IUSE="ipv6 threads debug"
PATCHES=(
"${FILESDIR}"/${PN}-fix-bandwidth-limit.patch
"${FILESDIR}"/${PN}-cast-to-max_size_t-instead-of-int.patch
"${FILESDIR}"/${PN}-die-on-bind-fail.patch
"${FILESDIR}"/${PN}-bidirectional-tcp-server.patch
"${FILESDIR}"/${PN}-fix-format-security-ftbfs.patch
"${FILESDIR}"/${PN}-ipv6_mcast_check.patch
)
DOCS="INSTALL README"
src_configure() {
econf \
$(use_enable ipv6) \
$(use_enable threads) \
$(use_enable debug debuginfo)
}
src_install() {
default
dohtml doc/*
newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
}

View File

@ -0,0 +1,35 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 toolchain-funcs
DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP"
HOMEPAGE="https://sourceforge.net/projects/iperf2/"
EGIT_REPO_URI="https://git.code.sf.net/p/iperf2/code"
LICENSE="HPND"
SLOT="2"
IUSE="ipv6 threads debug"
DOCS=( INSTALL README )
src_configure() {
econf \
$(use_enable debug debuginfo) \
$(use_enable ipv6) \
$(use_enable threads)
}
src_compile() {
emake AR="$(tc-getAR)"
}
src_install() {
default
dodoc doc/*
newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
}

View File

@ -1,28 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools eutils
DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool"
LICENSE="BSD"
SLOT="3"
HOMEPAGE="https://github.com/esnet/iperf/"
SRC_URI="https://codeload.github.com/esnet/${PN}/tar.gz/${PV} -> ${P}.tar.gz"
KEYWORDS="amd64 ~arm hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
IUSE="static-libs"
src_prepare() {
epatch "${FILESDIR}"/${PN}-3.0.5-flags.patch
eautoreconf
}
src_configure() {
econf $(use_enable static-libs static)
}
src_install() {
default
prune_libtool_files
}

View File

@ -1,28 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools eutils
DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool"
LICENSE="BSD"
SLOT="3"
HOMEPAGE="https://github.com/esnet/iperf/"
SRC_URI="https://codeload.github.com/esnet/${PN}/tar.gz/${PV} -> ${P}.tar.gz"
KEYWORDS="amd64 ~arm hppa ~mips ~ppc ppc64 ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
IUSE="static-libs"
src_prepare() {
epatch "${FILESDIR}"/${PN}-3.0.5-flags.patch
eautoreconf
}
src_configure() {
econf $(use_enable static-libs static)
}
src_install() {
default
prune_libtool_files
}

View File

@ -1,38 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit autotools eutils
DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool"
LICENSE="BSD"
SLOT="3"
HOMEPAGE="https://github.com/esnet/iperf/"
SRC_URI="https://codeload.github.com/esnet/${PN}/tar.gz/${PV/_beta/b} -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint"
IUSE="static-libs sctp"
DEPEND="sctp? ( net-misc/lksctp-tools )"
RDEPEND="$DEPEND"
S=${WORKDIR}/${P/_beta/b}
src_prepare() {
epatch "${FILESDIR}"/${PN}-3.0.5-flags.patch
eapply_user
eautoreconf
}
src_configure() {
econf $(use_enable static-libs static)
}
src_install() {
default
newconfd "${FILESDIR}"/iperf.confd iperf3
newinitd "${FILESDIR}"/iperf3.initd iperf3
prune_libtool_files
}

View File

@ -0,0 +1,44 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd
DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool"
HOMEPAGE="https://github.com/esnet/iperf"
SRC_URI="https://github.com/esnet/iperf/archive/${PV/_/}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P/_/}"
LICENSE="BSD"
SLOT="3"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
IUSE="sctp"
DEPEND="
dev-libs/openssl:0=
sctp? ( net-misc/lksctp-tools )
"
RDEPEND="${DEPEND}"
DOCS=( README.md RELNOTES.md )
PATCHES=(
"${FILESDIR}"/${PN}-3.10.1-drop-forced-debugging-symbols.patch
)
src_configure() {
econf \
--disable-static \
$(use_with sctp)
}
src_install() {
default
newconfd "${FILESDIR}"/iperf.confd iperf3
newinitd "${FILESDIR}"/iperf3.initd iperf3
systemd_dounit contrib/iperf3.service
find "${ED}" -name '*.la' -delete || die
}

View File

@ -0,0 +1,40 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd
DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool"
HOMEPAGE="https://github.com/esnet/iperf"
SRC_URI="https://github.com/esnet/iperf/archive/${PV/_/}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/${P/_/}
LICENSE="BSD"
SLOT="3"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
IUSE="sctp"
DEPEND="dev-libs/openssl:=
sctp? ( net-misc/lksctp-tools )"
RDEPEND="${DEPEND}"
DOCS=( README.md RELNOTES.md )
PATCHES=(
"${FILESDIR}"/${PN}-3.10.1-drop-forced-debugging-symbols.patch
)
src_configure() {
econf $(use_with sctp)
}
src_install() {
default
newconfd "${FILESDIR}"/iperf.confd iperf3
newinitd "${FILESDIR}"/iperf3.initd iperf3
systemd_dounit contrib/iperf3.service
find "${ED}" -name '*.la' -delete || die
}

View File

@ -0,0 +1,38 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
DESCRIPTION="A TCP, UDP, and SCTP network bandwidth measurement tool"
HOMEPAGE="https://github.com/esnet/iperf"
EGIT_REPO_URI="https://github.com/esnet/iperf"
S="${WORKDIR}/${P/_/}"
LICENSE="BSD"
SLOT="3"
IUSE="sctp static-libs"
DEPEND="
dev-libs/openssl:0=
sctp? ( net-misc/lksctp-tools )
"
RDEPEND="${DEPEND}"
DOCS=( README.md RELNOTES.md )
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_with sctp)
}
src_install() {
default
newconfd "${FILESDIR}"/iperf.confd iperf3
newinitd "${FILESDIR}"/iperf3.initd iperf3
find "${ED}" -name '*.la' -delete || die
}

View File

@ -1,14 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<use>
<flag name="sctp">Support for Stream Control Transmission Protocol</flag>
</use>
<maintainer type="person">
<email>sam@gentoo.org</email>
<name>Sam James</name>
</maintainer>
<maintainer type="project">
<email>netmon@gentoo.org</email>
<name>Gentoo network monitoring and analysis project</name>
</maintainer>
<upstream>
<remote-id type="cpe">cpe:/a:iperf_project:iperf</remote-id>
<remote-id type="github">esnet/iperf</remote-id>
<remote-id type="sourceforge">iperf</remote-id>
</upstream>

View File

@ -1,8 +1,3 @@
DIST nvme-cli-0.9.tar.gz 167565 SHA256 6b47087cba2ea3f0d53ed9316dc7a13d9a2ad618abaeeda23d7f520035a62b3c SHA512 ea9481b77aac14db60e75fb885360c91e548c61d2beacd3c0abf53acc080a9a0418c742f483b906a458109e1c4f226e7213ebba27e5bbdaee3a54222f03be71e WHIRLPOOL 8909194139634495f31ee286509f3da64ac4debe468731983339c4599111f1366a8846426918903c923e5020f4eb6af72569bef31e2024e9e8fb2c8daa85001c
DIST nvme-cli-1.0.tar.gz 191617 SHA256 1391bac6b8e1acf4f91c0b8b60d1055b142e7d3d041ea9799fc157517897439c SHA512 4aa7c33a966c25da36aaf17fdb0994fa3e6d3d20d59d444903d8269933565ed0b51941b27143a1533b8dfa307d21240eefa620ed041fcf38342d9d14298d5ad8 WHIRLPOOL 23289e4b5096ff69e06a7757b4e121e7490a016d636aaecc5fd671af90f9f0863c83637341d868d774f175b33e368efa5ca427d549ed10e04f6eab35ae797ac5
DIST nvme-cli-1.1.tar.gz 207679 SHA256 22883719cbab86d52e8d4755e86ebd70476416e87442385a79b31c981bd60de1 SHA512 339da4385c5e8659a8f3c2e11afadf437d9cdf02c294674e5cc569cd817174c8ccbd4fc8858ce6f5b8f63ccba68790b2140fc87fdf33b7d394b67999ac4afad0 WHIRLPOOL ae1225f7fad83cf2a8a00365cefdcccb251ad4779dd1194accfa4b0e38c4d2460723e4f7843a7cfe04fd2978f9ec507d14cdff8448f3860349eab578fb5d4b82
EBUILD nvme-cli-0.9.ebuild 754 SHA256 696474d3306b77e592981f2f7563214f69b802c1cb35a652a1a0723600e4ffe3 SHA512 fcb3922be98046262920ab876809b9a55ba8d96e98a2129f9324b956598663b667f2b32a5bd9808331c051e9303262da4969a51237dd86291043bc1da4474796 WHIRLPOOL bbbef03661a3803457ba2dc91edd0b560f63c71f570da272449e7fc81c0f0c88bd50969fb2e78e64245c8000ed7ee8c1af98cf3d93e423d44bd386424300884d
EBUILD nvme-cli-1.0.ebuild 754 SHA256 696474d3306b77e592981f2f7563214f69b802c1cb35a652a1a0723600e4ffe3 SHA512 fcb3922be98046262920ab876809b9a55ba8d96e98a2129f9324b956598663b667f2b32a5bd9808331c051e9303262da4969a51237dd86291043bc1da4474796 WHIRLPOOL bbbef03661a3803457ba2dc91edd0b560f63c71f570da272449e7fc81c0f0c88bd50969fb2e78e64245c8000ed7ee8c1af98cf3d93e423d44bd386424300884d
EBUILD nvme-cli-1.1.ebuild 579 SHA256 234e2166b933469b282b9430696eb78bcdd78fa96003c26e927d49d7ca472103 SHA512 cfc6f7bd2f6dbc070c604c4e72ca406e29e2e2d240b14559836054039ae71f5f0eda82e808558115e97e4ac19d29d178c9fa584045ecf60458f1dcb743a62358 WHIRLPOOL 66ecc2952cbcabd6e2128afacff19ff80fd232f7d6cabb88e7412445e05effbe3660413ffc1fc6b1ef3a2425203298af2c510f1be21f2d1e08f8d5f747e9da69
MISC ChangeLog 2331 SHA256 4c7f8e43874a05aef1f6924b03567be28384ed6dc5db8bdf34edf828eaf8aa45 SHA512 298e143843dead41c9494bae946b10f4f20f6eff92792832e22c759869be4ac830a0f18a6b299b7fd98d0e9cb8f2a81d70e76a2f8e7d3ec12ee5ea3d178e33d1 WHIRLPOOL 505d854292de48d4b20de7d7b291c94bd8e353eb136238f9fd4c6b02d5444eb0f4f3170389bf926f405e982c501e7a8b61bbac26fc4133e0cd25fe6c9ed55dbc
MISC metadata.xml 310 SHA256 0777b5fc46da6e0ae285ebd0038be86e581a7e2dd69db709587c1233c0964ba5 SHA512 f32474bd2f6daa3306a5bcea0ad742c51142823dd6a14a6bd18c8201016c0182d2e87762c66b95882a42d5ff9083813ff995b0774d615745c2a6666c444bf616 WHIRLPOOL 09d1850437b36400efe105068ad2493f5c56aa6aa728e9c0ef5cd137749592b4f628346b4faf6de5d13b4ea0bc68ec87c9a2380b7f9c33665e4563e2ddcc0ac0
DIST nvme-cli-1.14.tar.gz 579561 BLAKE2B e27dade228ee47d88ef5cbab4d9d6163e75af44fb3345ed2ae566e875b973355255a5aba1b1846e53006f9676922cf7901a5e6e4867fcf04c591bf372a119bca SHA512 b5e18708233fd37069d84ee34232d737ed6d6909b0ec523d82cc2c4940172f7ce769b9bbec0d8615ebee544a5174cb4d752ad6d96ea05cfaa1177efc760f0e9e
DIST nvme-cli-1.15.tar.gz 610927 BLAKE2B 66278904d49987d92083c1bb28a98d362adee8e85ee92e44e9dee381f3efcc76ac53ddf82957495ac7b2ef82e717c570d55e1b2052224740c1bc7e5af8af137e SHA512 0614105153edf7217d4c428927423628b63f6bee034c59926370a13d433c9c3af217338fb6fe2f8bbf781fc17ebae0102e8c072371b7ea4324c18dfdffd40305
DIST nvme-cli-1.16.tar.gz 598246 BLAKE2B 8aef6ae82ec9a2c67de6c69addd72c87ade6554e6d374c717f8e3c0585565974a2b2870eb172b3ebdc1ae307bd3a55a14a17d3feea8d437265db136b434b519f SHA512 c713eb15b979ad17791cf95717b42d5f638cb4803d646bca1f4825e6bb50f086226b44b108b61571709b2cb615ae6ba86dbad309f675b240ebd3968d1cf536ff

View File

@ -0,0 +1,37 @@
https://github.com/linux-nvme/nvme-cli/commit/4729b13f36d4713ce1162dc1d4425d44e1474078.patch
https://bugs.gentoo.org/829705
(and an additional hunk for https://bugs.gentoo.org/830744)
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Mon, 26 Apr 2021 00:41:20 -0600
Subject: [PATCH] nvme-rpmb: Add limits.h due to missing PATH_MAX definition
Commit 21f40f38b introduced new use of PATH_MAX, but did not add the
limits.h header. This resulted in nvme-cli failing to build on
ppc64le systems using the musl C library.
Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
[dwagner: removed nvme-topology.c bits]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
--- a/nvme-rpmb.c
+++ b/nvme-rpmb.c
@@ -25,6 +25,7 @@
#include <sys/socket.h>
#include <linux/if_alg.h>
#include <linux/socket.h>
+#include <limits.h>
#include "nvme.h"
#include "libnvme.h"
diff --git a/nvme-topology.c b/nvme-topology.c
index 0a22f6b..6d510f2 100644
--- a/nvme-topology.c
+++ b/nvme-topology.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
+#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>zmedico@gentoo.org</email>
@ -7,4 +7,9 @@
<upstream>
<remote-id type="github">linux-nvme/nvme-cli</remote-id>
</upstream>
<use>
<flag name="json">Support JSON output via <pkg>dev-libs/json-c</pkg></flag>
<flag name="hugepages">Use huge pages for memory allocations via <pkg>sys-libs/libhugetlbfs</pkg></flag>
<flag name="uuid">UUID support via <pkg>sys-apps/util-linux</pkg></flag>
</use>
</pkgmetadata>

View File

@ -1,36 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
DESCRIPTION="NVM-Express user space tooling for Linux"
HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="udev"
RDEPEND="sys-libs/libcap
udev? ( virtual/libudev:= )"
DEPEND="${RDEPEND}"
src_prepare() {
sed -i -E \
-e '/^CFLAGS/s: (-O2|-g|-Wall|-Werror)\>: :g' \
Makefile || die
sed -i \
-e '/^PREFIX/s|:=|?=|' \
Documentation/Makefile || die
default
}
src_configure() {
tc-export CC
export PREFIX="${EPREFIX}/usr"
MAKEOPTS+=" LIBUDEV=$(usex udev 0 1)"
}

View File

@ -1,36 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
DESCRIPTION="NVM-Express user space tooling for Linux"
HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="udev"
RDEPEND="sys-libs/libcap
udev? ( virtual/libudev:= )"
DEPEND="${RDEPEND}"
src_prepare() {
sed -i -E \
-e '/^CFLAGS/s: (-O2|-g|-Wall|-Werror)\>: :g' \
Makefile || die
sed -i \
-e '/^PREFIX/s|:=|?=|' \
Documentation/Makefile || die
default
}
src_configure() {
tc-export CC
export PREFIX="${EPREFIX}/usr"
MAKEOPTS+=" LIBUDEV=$(usex udev 0 1)"
}

View File

@ -1,25 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit toolchain-funcs
DESCRIPTION="NVM-Express user space tooling for Linux"
HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="udev"
RDEPEND="sys-libs/libcap:=
udev? ( virtual/libudev:= )"
DEPEND="${RDEPEND}"
src_configure() {
tc-export CC
export PREFIX="${EPREFIX}/usr"
MAKEOPTS+=" LIBUDEV=$(usex udev 0 1)"
}

View File

@ -0,0 +1,35 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd toolchain-funcs udev
DESCRIPTION="NVM-Express user space tooling for Linux"
HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="test"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm64 ppc64 ~riscv x86"
IUSE="+uuid"
RDEPEND="uuid? ( sys-apps/util-linux:= )"
DEPEND="${RDEPEND}"
src_prepare() {
default
sed -e 's|^LIBUUID =|LIBUUID ?=|' \
-e '/DESTDIROLD/d' \
-i Makefile || die
}
src_configure() {
tc-export CC
export PREFIX="${EPREFIX}/usr"
local unitdir="$(systemd_get_systemunitdir)"
export SYSTEMDDIR="${unitdir%/system}"
export UDEVDIR="${EPREFIX}$(get_udevdir)"
MAKEOPTS+=" LIBUUID=$(usex uuid 0 1)"
}

View File

@ -0,0 +1,50 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd toolchain-funcs udev
DESCRIPTION="NVM-Express user space tooling for Linux"
HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="test"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
IUSE="hugepages +json systemd +uuid"
RDEPEND="json? ( dev-libs/json-c:= )
hugepages? ( sys-libs/libhugetlbfs )
systemd? ( sys-apps/systemd:= )
uuid? ( sys-apps/util-linux:= )"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
sed -e 's|^LIBUUID =|LIBUUID ?=|' \
-e 's|^LIBJSONC =|LIBJSONC ?=|' \
-e 's|^LIBHUGETLBFS =|LIBHUGETLBFS ?=|' \
-e 's|^HAVE_SYSTEMD =|HAVE_SYSTEMD ?=|' \
-e '/DESTDIROLD/d' \
-i Makefile || die
}
src_configure() {
tc-export CC
export PREFIX="${EPREFIX}/usr"
local unitdir="$(systemd_get_systemunitdir)"
export SYSTEMDDIR="${unitdir%/system}"
export UDEVDIR="${EPREFIX}$(get_udevdir)"
MAKEOPTS+=" LIBUUID=$(usex uuid 0 1)"
MAKEOPTS+=" LIBJSONC=$(usex json 0 1)"
MAKEOPTS+=" LIBHUGETLBFS=$(usex hugepages 0 1)"
MAKEOPTS+=" HAVE_SYSTEMD=$(usex systemd 0 1)"
MAKEOPTS+=" V=1"
}

View File

@ -0,0 +1,54 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd toolchain-funcs udev
DESCRIPTION="NVM-Express user space tooling for Linux"
HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="test"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm64 ppc64 ~riscv x86"
IUSE="hugepages +json systemd +uuid"
RDEPEND="json? ( dev-libs/json-c:= )
hugepages? ( sys-libs/libhugetlbfs )
systemd? ( sys-apps/systemd:= )
uuid? ( sys-apps/util-linux:= )"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-musl-limits.patch
)
src_prepare() {
default
sed -e 's|^LIBUUID =|LIBUUID ?=|' \
-e 's|^LIBJSONC =|LIBJSONC ?=|' \
-e 's|^LIBHUGETLBFS =|LIBHUGETLBFS ?=|' \
-e 's|^HAVE_SYSTEMD =|HAVE_SYSTEMD ?=|' \
-e '/DESTDIROLD/d' \
-i Makefile || die
}
src_configure() {
tc-export CC
export PREFIX="${EPREFIX}/usr"
local unitdir="$(systemd_get_systemunitdir)"
export SYSTEMDDIR="${unitdir%/system}"
export UDEVDIR="${EPREFIX}$(get_udevdir)"
MAKEOPTS+=" LIBUUID=$(usex uuid 0 1)"
MAKEOPTS+=" LIBJSONC=$(usex json 0 1)"
MAKEOPTS+=" LIBHUGETLBFS=$(usex hugepages 0 1)"
MAKEOPTS+=" HAVE_SYSTEMD=$(usex systemd 0 1)"
MAKEOPTS+=" V=1"
}

View File

@ -1,82 +0,0 @@
# ChangeLog for x11-misc/shared-mime-info
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*shared-mime-info-1.4-r1 (09 Aug 2015)
*shared-mime-info-1.4 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org>
+files/shared-mime-info-1.4-iso-1.patch,
+files/shared-mime-info-1.4-iso-2.patch, +metadata.xml,
+shared-mime-info-1.4.ebuild, +shared-mime-info-1.4-r1.ebuild:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
*shared-mime-info-1.5 (05 Oct 2015)
05 Oct 2015; Manuel Rüger <mrueg@gentoo.org> +shared-mime-info-1.5.ebuild:
Version bump
Package-Manager: portage-2.2.22
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Replace all herds with appropriate projects (GLEP 67)
Replace all uses of herd with appropriate project maintainers, or no
maintainers in case of herds requested to be disbanded.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)
*shared-mime-info-1.6 (27 Feb 2016)
27 Feb 2016; Manuel Rüger <mrueg@gentoo.org> +shared-mime-info-1.6.ebuild:
Version bump
Package-Manager: portage-2.2.27

Some files were not shown because too many files have changed in this diff Show More