Skip to content

Commit

Permalink
net-misc/lksctp-tools: Bump v.1.0.21+1
Browse files Browse the repository at this point in the history
  • Loading branch information
geaaru committed Nov 9, 2024
1 parent 8a10c1f commit 77182ba
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/atoms/lang/net-misc/lksctp-tools/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
prelude:
- >-
cp lksctp-tools-1.0.21.ebuild
/var/git/meta-repo/kits/net-kit/net-misc/lksctp-tools/lksctp-tools-1.0.21.ebuild
- |-
export FEATURES="-sandbox -usersandbox -ipc-sandbox -pid-sandbox -network-sandbox" && \
export JOBS={{ ( index .Values.labels "jobs" ) | default "3" }} && \
Expand Down
2 changes: 1 addition & 1 deletion packages/atoms/lang/net-misc/lksctp-tools/definition.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: lksctp-tools
version: 1.0.21
version: 1.0.21+1
category: net-misc
annotations:
subsets:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit flag-o-matic autotools linux-info

DESCRIPTION="Tools for Linux Kernel Stream Control Transmission Protocol implementation"
HOMEPAGE="http://lksctp.sourceforge.net/"
SRC_URI="https://github.com/sctp/lksctp-tools/tarball/37d5f1225573b91d706a5e547d081f79963a9deb -> lksctp-tools-1.0.21-37d5f12.tar.gz"

LICENSE="|| ( GPL-2+ LGPL-2.1 )"
SLOT="0"
KEYWORDS="*"
IUSE="kernel_linux 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 )

post_src_unpack() {
mv sctp-lksctp-tools-* "${S}"
}

src_prepare() {
default

eautoreconf
}

src_configure() {
append-flags -fno-strict-aliasing

local myeconfargs=(
--docdir="${EPREFIX%/}"/usr/share/doc/${PF}
--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
}

# vim: filetype=ebuild

0 comments on commit 77182ba

Please sign in to comment.