diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/libnids |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/libnids')
-rw-r--r-- | net-libs/libnids/Manifest | 7 | ||||
-rw-r--r-- | net-libs/libnids/files/libnids-1.24-ldflags.patch | 11 | ||||
-rw-r--r-- | net-libs/libnids/files/libnids-1.24-static-libs.patch | 29 | ||||
-rw-r--r-- | net-libs/libnids/libnids-1.24-r6.ebuild | 53 | ||||
-rw-r--r-- | net-libs/libnids/metadata.xml | 16 |
5 files changed, 116 insertions, 0 deletions
diff --git a/net-libs/libnids/Manifest b/net-libs/libnids/Manifest new file mode 100644 index 000000000000..7c26728dc4d3 --- /dev/null +++ b/net-libs/libnids/Manifest @@ -0,0 +1,7 @@ +AUX libnids-1.24-ldflags.patch 422 SHA256 5fea148d998e57da6197e46fdb6a063f1d59ed857b60995113bbf3b36a2abd28 SHA512 080a982ee45d69419fb45f8fc35eb53febfc098d24f5c52476933dae1333a11ffe3bffafa5dde302af308840ce17a4ed8fa210a87d6c65e16f78993d23492481 WHIRLPOOL 36aef4d6b4485fbd00a2a145c219ffe9fb006f2d754dbab842976055a28aba3c4ed0fb54025d49f0c27334b15351a322c204733aa3665af2e2b5a0391493c2a3 +AUX libnids-1.24-static-libs.patch 1018 SHA256 2a800ac6aec848081cb399db10331fbe69907deb7b5210c6f8f31f85b2dd0fae SHA512 975354be03729c54f33340c7aa8ddd7d6d4f1eba19ee6096433a7e69b90ed84ab20f654ee28877b6db3b7f07cbdf29a20229784f69f1d7d8a29a81128554179e WHIRLPOOL b0fa3d3779f728f7fa34ba1806d7bff3471dcc10e7708dc2a308113fdd7c6e16b722f01653b7702cce6f402cd467aeb8f88f737ca8e3a56df45cefea3e89b67a +DIST libnids-1.24.tar.gz 151021 SHA256 314b4793e0902fbf1fdb7fb659af37a3c1306ed1aad5d1c84de6c931b351d359 SHA512 2046900023e853d7dbd7061c9f47d8a8ba26320991ca34198249019c1b9a6f75010574f9f022d02976272a384cf769394c4cc3ae536fc6164716cadc4770bb53 WHIRLPOOL c012e724c0f724cd817db4726a4ee1c0a438d717fe8534f96c41829e5574a3edaf4fd287c3acd65da4ee6591bb55dcd0f0bb71da7302e7b8ba43992ba85a1455 +EBUILD libnids-1.24-r6.ebuild 1106 SHA256 03df2429b4367acd695609b06888276ccab289241e38960d069e43682ce5ee18 SHA512 4adc9b043dcd077cab15ad56997900ddf076b51d1f5519c9022838d5417f0885baa43490986cca202e21a94370b71befde01a488451cd06a134ffe3ce987bd7a WHIRLPOOL 6d2ff654b9308311adb3bf28a799ff78892fe06875f20fdfbd48ab58b84f8c9a3c62cf7a2a039f2fe4ebc77c92757147560e824472f94c1eeffa486a32561781 +MISC ChangeLog 2507 SHA256 48b7daa443d8b84a5d53bb25c4655ebb8cea13a4378279a370a58d8092c626ba SHA512 761e9fbee9935cc4c6fcbe6abc2d6f3a8872650d33306ffc0343e059b4b37f198dc2ea51b21a973554c278957877f55750f82172a807acad2de2df531df82af9 WHIRLPOOL dfd66660408dbb255345dedd6e633bbab91f3c0a58beaf999360ae969fac40b9ba476725d01b2810b30c982efb93e383558e496d0a2883d044b761fe403ce723 +MISC ChangeLog-2015 10771 SHA256 aedb4fdfe49323858c82b2e7001b1f1cdf2351c0df4843ffa36802a29f44e64b SHA512 b079a3dc29f91226ff13c8e98023c0adebb3a03cb00434f3ae394f0625bbb01bf0a87b1e7a30404364c5b98b16a5a6fbbea902885b0d65fb946a975c3a3206ef WHIRLPOOL c3b5783c272d464196aea7607b5b196e33cc1b2feccad22609fcdc1b29dd076ac13fca83c9e1526bb0c248c9163412392ffc2dd6dd19d690555429cdf931baf2 +MISC metadata.xml 688 SHA256 8245b9a308231bd5170f28c4ee4e909038172f02c046ccf20bf8ef12881f9589 SHA512 c70e24c21ba36ff9acff4d4b4290c8087a56e082ca520a7aabf7f0ffca5f03ee49f1bb5ac093304a2cb744241ad749e39022fce7c1a20c28ef08b65da911791a WHIRLPOOL 0b717fb2596a64250e354415446c20aa0e6520a7e7d07024fafa230fe2437ac7668a11e5d197fd2421f950ed05c272c77a133fe545b6394158c42786bdced946 diff --git a/net-libs/libnids/files/libnids-1.24-ldflags.patch b/net-libs/libnids/files/libnids-1.24-ldflags.patch new file mode 100644 index 000000000000..0f3daca463b6 --- /dev/null +++ b/net-libs/libnids/files/libnids-1.24-ldflags.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -65,7 +65,7 @@ + ar -cr $@ $(OBJS) + $(RANLIB) $@ + $(LIBSHARED): $(OBJS_SHARED) +- $(CC) -shared -Wl,-soname,$(LIBSHARED) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB) ++ $(CC) -shared -Wl,-soname,$(LIBSHARED) $(LDFLAGS) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB) + + _install install: $(LIBSTATIC) + ../mkinstalldirs $(install_prefix)$(libdir) diff --git a/net-libs/libnids/files/libnids-1.24-static-libs.patch b/net-libs/libnids/files/libnids-1.24-static-libs.patch new file mode 100644 index 000000000000..7bf9a0f1b629 --- /dev/null +++ b/net-libs/libnids/files/libnids-1.24-static-libs.patch @@ -0,0 +1,29 @@ +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -62,19 +62,22 @@ + + + $(LIBSTATIC): $(OBJS) +- ar -cr $@ $(OBJS) ++ $(AR) -cr $@ $(OBJS) + $(RANLIB) $@ + $(LIBSHARED): $(OBJS_SHARED) + $(CC) -shared -Wl,-soname,$(LIBSHARED) $(LDFLAGS) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB) + +-_install install: $(LIBSTATIC) ++installbase: + ../mkinstalldirs $(install_prefix)$(libdir) + ../mkinstalldirs $(install_prefix)$(includedir) + ../mkinstalldirs $(install_prefix)$(mandir)/man3 +- $(INSTALL) -c -m 644 libnids.a $(install_prefix)$(libdir) + $(INSTALL) -c -m 644 nids.h $(install_prefix)$(includedir) + $(INSTALL) -c -m 644 libnids.3 $(install_prefix)$(mandir)/man3 +-_installshared installshared: install $(LIBSHARED) ++ ++_install install: $(LIBSTATIC) installbase ++ $(INSTALL) -c -m 644 libnids.a $(install_prefix)$(libdir) ++ ++_installshared installshared: $(LIBSHARED) installbase + $(INSTALL) -c -m 755 $(LIBSHARED) $(install_prefix)$(libdir) + ln -s -f $(LIBSHARED) $(install_prefix)$(libdir)/libnids.so + diff --git a/net-libs/libnids/libnids-1.24-r6.ebuild b/net-libs/libnids/libnids-1.24-r6.ebuild new file mode 100644 index 000000000000..d4a4fe94a92d --- /dev/null +++ b/net-libs/libnids/libnids-1.24-r6.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="an implementation of an E-component of Network Intrusion Detection System" +HOMEPAGE="http://libnids.sourceforge.net/" +SRC_URI="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 + glib? ( dev-libs/glib:2 ) + libnet? ( >=net-libs/libnet-1.1.0-r3 ) + net-libs/libpcap +" +DEPEND=" + ${RDEPEND} + glib? ( virtual/pkgconfig ) +" + +src_prepare() { + epatch "${FILESDIR}/${P}-ldflags.patch" + epatch "${FILESDIR}/${P}-static-libs.patch" +} + +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/* +} diff --git a/net-libs/libnids/metadata.xml b/net-libs/libnids/metadata.xml new file mode 100644 index 000000000000..ef5b85f7e9f8 --- /dev/null +++ b/net-libs/libnids/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> + <longdescription>emulates the IP stack of Linux 2.0.x and offers IP defragmentation, TCP stream assembly and TCP port scan detection.</longdescription> + <use> + <flag name="glib">Use <pkg>dev-libs/glib</pkg> for multiprocessing support</flag> + <flag name="libnet">Include code requiring <pkg>net-libs/libnet</pkg></flag> + </use> + <upstream> + <remote-id type="sourceforge">libnids</remote-id> + </upstream> +</pkgmetadata> |