Сравнение open-isns-0.101 с open-isns-0.102
| /usr/portage/sys-block/open-isns/open-isns-0.102.ebuild 2024-12-25 14:59:52.783270183 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2022 Gentoo Authors |
|
| 1 |
# Copyright 1999-2023 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 |
EAPI=7 |
|
| 4 |
EAPI=8 |
|
| 5 | 5 | |
| 6 |
inherit autotools flag-o-matic |
|
| 6 |
inherit meson systemd |
|
| 7 | 7 | |
| 8 | 8 |
DESCRIPTION="iSNS server and client for Linux" |
| 9 | 9 |
HOMEPAGE="https://github.com/open-iscsi/open-isns" |
| ... | ... | |
| 12 | 12 |
LICENSE="LGPL-2.1" |
| 13 | 13 |
SLOT="0" |
| 14 | 14 |
KEYWORDS="~alpha amd64 arm arm64 ~mips ppc ppc64 ~riscv sparc x86" |
| 15 |
IUSE="debug ssl static" |
|
| 15 |
IUSE="ssl static" |
|
| 16 | 16 | |
| 17 | 17 |
DEPEND=" |
| 18 | 18 |
ssl? ( |
| 19 |
dev-libs/openssl:0= |
|
| 19 |
dev-libs/openssl:= |
|
| 20 | 20 |
) |
| 21 | 21 |
" |
| 22 | 22 |
RDEPEND="${DEPEND}"
|
| 23 | 23 | |
| 24 |
PATCHES=( |
|
| 25 |
"${FILESDIR}/${PN}-0.100-respect-AR.patch"
|
|
| 26 |
) |
|
| 27 | ||
| 28 |
src_prepare() {
|
|
| 29 |
default |
|
| 30 |
eautoreconf |
|
| 31 |
touch aclocal/ar-lib || die #775389 |
|
| 32 |
} |
|
| 33 | ||
| 34 | 24 |
src_configure() {
|
| 35 |
use debug && append-cppflags -DDEBUG_TCP -DDEBUG_SCSI |
|
| 36 |
append-lfs-flags |
|
| 37 |
local myeconfargs=( |
|
| 38 |
--without-slp |
|
| 39 |
$(use_with ssl security) |
|
| 40 |
$(use_enable !static shared) |
|
| 25 |
local emesonargs=( |
|
| 26 |
-Ddefault_library=$(usex static both shared) |
|
| 27 |
-Dslp=disabled |
|
| 28 |
-Dsystemddir=$(systemd_get_utildir) |
|
| 29 |
$(meson_feature ssl security) |
|
| 41 | 30 |
) |
| 42 |
econf "${myeconfargs[@]}"
|
|
| 31 | ||
| 32 |
meson_src_configure |
|
| 43 | 33 |
} |
| 44 | 34 | |
| 45 | 35 |
src_install() {
|
| 46 |
default |
|
| 47 |
emake DESTDIR="${D}" install_hdrs
|
|
| 48 |
emake DESTDIR="${D}" install_lib
|
|
| 36 |
meson_src_install |
|
| 37 | ||
| 49 | 38 |
keepdir /var/lib/${PN/open-}
|
| 50 |
if ! use static ; then |
|
| 51 |
find "${ED}" -type f -name "*.a" -delete || die
|
|
| 52 |
fi |
|
| 53 | 39 |
} |