commit:     8121b6de469ae84ac1400a56c109d85ec963b7c1
Author:     Luca Barbato <lu_zero <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  5 12:30:27 2025 +0000
Commit:     Luca Barbato <lu_zero <AT> gentoo <DOT> org>
CommitDate: Sat Jul  5 12:33:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8121b6de

net-misc/lksctp-tools: add 1.0.21

Signed-off-by: Luca Barbato <lu_zero <AT> gentoo.org>

 net-misc/lksctp-tools/Manifest                   |  1 +
 net-misc/lksctp-tools/lksctp-tools-1.0.21.ebuild | 56 ++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/net-misc/lksctp-tools/Manifest b/net-misc/lksctp-tools/Manifest
index 982d4df4aeca..740e3ad11d0a 100644
--- a/net-misc/lksctp-tools/Manifest
+++ b/net-misc/lksctp-tools/Manifest
@@ -1 +1,2 @@
 DIST lksctp-tools-1.0.19.tar.gz 561962 BLAKE2B 
ae6a5b7c30413dadac736bd17dd1ac3f97bd34f74323959f4e9cb60186db735b4e79b101ad550bdb2975350951fd6ae8bb27b165c6dc86fc7c822fce30f49d05
 SHA512 
e56a4b00206acfb88cab1b8fc7424a1a4996f67ef925c29a97395c44c57f2cbcb3fc36ec2648f5e5a5ce29d8d61ee1f7a5e7869e6bbd68bff85590b6ec521883
+DIST lksctp-tools-1.0.21.tar.gz 569526 BLAKE2B 
789ff26e70dd1c87e28c6357dcbf88fad0014b89677ead479aba15be933d1b4c5ece61c653044494a59540b1727215db8f479f6210826f9edac0dc4a766f768e
 SHA512 
0c45a953e3a126508fcac78dd8c57fb20e3d04059cf7dc853453ffaaaa6dcff785177390a248d0dcaf363b26ea2d51f713c34e6773bce4c81fc8594bf20677e0

diff --git a/net-misc/lksctp-tools/lksctp-tools-1.0.21.ebuild 
b/net-misc/lksctp-tools/lksctp-tools-1.0.21.ebuild
new file mode 100644
index 000000000000..d91f3879405d
--- /dev/null
+++ b/net-misc/lksctp-tools/lksctp-tools-1.0.21.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic autotools linux-info
+
+DESCRIPTION="Tools for Linux Kernel Stream Control Transmission Protocol 
implementation"
+HOMEPAGE="https://github.com/sctp/lksctp-tools/wiki";
+SRC_URI="https://github.com/sctp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( GPL-2+ LGPL-2.1 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+IUSE="static-libs"
+
+# This is only supposed to work with Linux to begin with.
+DEPEND=">=sys-kernel/linux-headers-2.6"
+RDEPEND=""
+
+REQUIRED_USE="kernel_linux"
+
+CONFIG_CHECK="~IP_SCTP"
+WARNING_IP_SCTP="CONFIG_IP_SCTP:\tis not set when it should be."
+
+DOCS=( AUTHORS ChangeLog INSTALL NEWS README ROADMAP )
+
+src_prepare() {
+       default
+
+       eautoreconf
+}
+
+src_configure() {
+       append-flags -fno-strict-aliasing
+
+       local myeconfargs=(
+               --enable-shared
+               $(use_enable static-libs static)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+
+       dodoc doc/*txt
+       newdoc src/withsctp/README README.withsctp
+
+       find "${ED}" -name '*.la' -delete || die
+
+       if ! use static-libs ; then
+               find "${ED}" -name "*.a" -delete || die
+       fi
+}

Reply via email to