From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 757A3158086 for ; Mon, 13 Dec 2021 23:45:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E8FC2BC003; Mon, 13 Dec 2021 23:45:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1D9F52BC003 for ; Mon, 13 Dec 2021 23:45:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CA996342F5F for ; Mon, 13 Dec 2021 23:45:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 59CBF1BF for ; Mon, 13 Dec 2021 23:45:05 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1639439089.9c3599ecfad6d11d77c76c8c43f1b7580406d1fa.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libnids/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libnids/Manifest net-libs/libnids/libnids-1.26.ebuild X-VCS-Directories: net-libs/libnids/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9c3599ecfad6d11d77c76c8c43f1b7580406d1fa X-VCS-Branch: master Date: Mon, 13 Dec 2021 23:45:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 304fa21a-f086-4ddf-a0ee-746a17c7c866 X-Archives-Hash: d3750ac025051e248f80184799fad1a0 commit: 9c3599ecfad6d11d77c76c8c43f1b7580406d1fa Author: Sam James gentoo org> AuthorDate: Mon Dec 13 23:44:49 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Dec 13 23:44:49 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c3599ec net-libs/libnids: add 1.26 Signed-off-by: Sam James gentoo.org> net-libs/libnids/Manifest | 1 + net-libs/libnids/libnids-1.26.ebuild | 59 ++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/net-libs/libnids/Manifest b/net-libs/libnids/Manifest index a12c6bfcb8d3..9469393608ac 100644 --- a/net-libs/libnids/Manifest +++ b/net-libs/libnids/Manifest @@ -1 +1,2 @@ DIST libnids-1.24.tar.gz 151021 BLAKE2B ce545a8e3f4b61284ef7f2e6d1ce37aa537adef2686281468b4aaa509479d58073b9f6a5fbb7f03e33fa28ec18c01c8af49e0ce8a2d314ba5da5cbbba0fd7dcc SHA512 2046900023e853d7dbd7061c9f47d8a8ba26320991ca34198249019c1b9a6f75010574f9f022d02976272a384cf769394c4cc3ae536fc6164716cadc4770bb53 +DIST libnids-1.26.tar.gz 146172 BLAKE2B c84329a8da493f49d340d263835070c948a00d8400cd3e7a2a727b567f672b7af8017446281879ec19cb6d9e89eb07564c463fdf0521aa441ad5dc6ac2b97c73 SHA512 d582287f2c64241895ae437e501e92ef68adc8eac1a3df597d089634b994faee35d8b1cc018bbf20ced440bcd286af28f48c6f88da740a7c3de935ce3723561d diff --git a/net-libs/libnids/libnids-1.26.ebuild b/net-libs/libnids/libnids-1.26.ebuild new file mode 100644 index 000000000000..fa141da12665 --- /dev/null +++ b/net-libs/libnids/libnids-1.26.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic toolchain-funcs + +DESCRIPTION="An implementation of an E-component of Network Intrusion Detection System" +HOMEPAGE="https://github.com/MITRECND/libnids http://libnids.sourceforge.net/" +SRC_URI="https://github.com/MITRECND/libnids/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz + mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="1.2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="+glib +libnet static-libs" + +RDEPEND="!net-libs/libnids:1.1 + net-libs/libpcap + glib? ( dev-libs/glib:2 ) + libnet? ( >=net-libs/libnet-1.1.0-r3 )" +DEPEND="${RDEPEND}" +BDEPEND="glib? ( virtual/pkgconfig )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.24-ldflags.patch + "${FILESDIR}"/${PN}-1.24-libdir.patch + "${FILESDIR}"/${PN}-1.24-static-libs.patch + "${FILESDIR}"/${PN}-1.24-no-inline.patch +) + +src_prepare() { + default + eautoconf +} + +src_configure() { + tc-export AR + + append-flags -fno-strict-aliasing + + econf \ + --enable-shared \ + $(usex glib '' --disable-libglib) \ + $(use_enable libnet) +} + +src_compile() { + emake shared $(usex static-libs static '') +} + +src_install() { + local tgt + for tgt in _installshared $(usex static-libs _install ''); do + emake install_prefix="${D}" ${tgt} + done + + dodoc CHANGES CREDITS MISC README doc/* +}