mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
net-libs/libmicrohttpd: Sync with Gentoo
It's from Gentoo commit e828e60c489c9df6bb636b6f67e46657cd935c71.
This commit is contained in:
parent
76d49e403a
commit
899d8e4d21
@ -1,3 +1,2 @@
|
||||
DIST libmicrohttpd-0.9.75.tar.gz 1952076 BLAKE2B 419d7b7113edbcc54eec3e3b6da92d040e15b451bde4e1372b368fdd87277c85daddc295bc71d25bf02135921a8716876e9536c9dee286fa29b66bfb8167ebd2 SHA512 4dc62ed191342a61cc2767171bb1ff4050f390db14ef7100299888237b52ea0b04b939c843878fe7f5daec2b35a47b3c1b7e7c11fb32d458184fe6b19986a37c
|
||||
DIST libmicrohttpd-0.9.76.tar.gz 2199858 BLAKE2B 2c2de77d731ff130bb1491733b91e9e0b0c68bc30ea1a826f7f1d97aaf83fa7f6bec3c219f81c5293de72595b26d1e6eb66cdd4bfe3b16bd37a10e3acd3c6446 SHA512 9ff8a837892142376eaeaf50c0b0dba76697d0ff44b908434cba8db4324c57dfb8bbcc1a922b97d825891ac10f50693dee9388531856e0fa81fa2cfeac538581
|
||||
DIST libmicrohttpd-0.9.77.tar.gz 1896679 BLAKE2B 09a07c7da77d6072e5aa0fb121aedffb66b6cfdb2da30d1809583469282365832beb935417e779ddb31876949358d25c10bf79616079393503ca5860d88ac052 SHA512 001025c023dd94c4a0cf017ed575e65a577b5ce595e7e450346bfb75def77eaa8a4cfbeffb9f4b912e34165c2cfca147c02c895e067a4f6c5a321a12035758a5
|
||||
|
||||
@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
MY_P="${P/_/}"
|
||||
|
||||
DESCRIPTION="Small C library to run an HTTP server as part of another application"
|
||||
HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
|
||||
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
LICENSE="|| ( LGPL-2.1+ !ssl? ( GPL-2+-with-eCos-exception-2 ) )"
|
||||
SLOT="0/12"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
IUSE="+epoll ssl static-libs test +thread-names"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="ssl? ( >net-libs/gnutls-2.12.20:=[${MULTILIB_USEDEP}] )"
|
||||
# libcurl and the curl binary are used during tests on CHOST
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( net-misc/curl[ssl?] )"
|
||||
BDEPEND="ssl? ( virtual/pkgconfig )"
|
||||
|
||||
DOCS=( AUTHORS NEWS COPYING README ChangeLog )
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-fix-testsuite-with-lto.patch )
|
||||
|
||||
# All checks in libmicrohttpd's configure are correct
|
||||
# Gentoo Bug #898662
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
'pthread_sigmask'
|
||||
'CreateThread'
|
||||
'pthread_attr_init'
|
||||
'pthread_attr_setname_np'
|
||||
'pthread_setname_np'
|
||||
'__builtin_bswap32'
|
||||
'__builtin_bswap64'
|
||||
'WSAPoll'
|
||||
'epoll_create1'
|
||||
'eventfd'
|
||||
'pipe'
|
||||
'pipe2'
|
||||
'socketpair'
|
||||
'gmtime_s'
|
||||
'host_get_clock_service'
|
||||
'clock_get_time'
|
||||
'mach_port_deallocate'
|
||||
'gethrtime'
|
||||
'timespec_get'
|
||||
'gettimeofday'
|
||||
'sendfile'
|
||||
'gnutls_privkey_import_x509_raw'
|
||||
'calloc'
|
||||
'fork'
|
||||
'waitpid'
|
||||
'random'
|
||||
'rand'
|
||||
'getsockname'
|
||||
'sysconf'
|
||||
'sysctl'
|
||||
'sysctlbyname'
|
||||
'usleep'
|
||||
'nanosleep'
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" \
|
||||
econf \
|
||||
--enable-shared \
|
||||
$(use_enable static-libs static) \
|
||||
--disable-nls \
|
||||
--enable-bauth \
|
||||
--enable-dauth \
|
||||
--disable-examples \
|
||||
--enable-messages \
|
||||
--enable-postprocessor \
|
||||
--enable-httpupgrade \
|
||||
--disable-experimental \
|
||||
--disable-heavy-tests \
|
||||
$(use_enable thread-names) \
|
||||
$(use_enable epoll) \
|
||||
$(use_enable test curl) \
|
||||
$(use_enable ssl https) \
|
||||
$(use_with ssl gnutls)
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
default
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
fi
|
||||
}
|
||||
@ -14,7 +14,7 @@ S="${WORKDIR}"/${MY_P}
|
||||
|
||||
LICENSE="|| ( LGPL-2.1+ !ssl? ( GPL-2+-with-eCos-exception-2 ) )"
|
||||
SLOT="0/12"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 ~riscv ~s390 sparc x86"
|
||||
IUSE="+epoll +eventfd ssl static-libs test +thread-names"
|
||||
REQUIRED_USE="epoll? ( kernel_linux )"
|
||||
RESTRICT="!test? ( test )"
|
||||
@ -33,7 +33,7 @@ pkg_pretend() {
|
||||
use epoll && CONFIG_CHECK+=" ~EPOLL"
|
||||
ERROR_EPOLL="EPOLL is not enabled in kernel, but enabled in libmicrohttpd."
|
||||
ERROR_EPOLL+=" libmicrohttpd will fail to start with 'automatic' configuration."
|
||||
use eventfd && CONFIG_CHECK+=" EVENTFD"
|
||||
use eventfd && CONFIG_CHECK+=" ~EVENTFD"
|
||||
ERROR_EVENTFD="EVENTFD is not enabled in kernel, but enabled in libmicrohttpd."
|
||||
ERROR_EVENTFD+=" libmicrohttpd will not work."
|
||||
check_extra_config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user