Browse Source

net-misc/ipv6calc: New package

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
alarig-LibreTranslate
Alarig Le Lay 2 years ago
parent
commit
530076a331
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
  1. 5
      net-misc/ipv6calc/Manifest
  2. 34
      net-misc/ipv6calc/files/ipv6calc-2.2.0-gcc-10.patch
  3. 65
      net-misc/ipv6calc/ipv6calc-1.0.0.ebuild
  4. 67
      net-misc/ipv6calc/ipv6calc-2.1.0.ebuild
  5. 67
      net-misc/ipv6calc/ipv6calc-2.1.1.ebuild
  6. 69
      net-misc/ipv6calc/ipv6calc-2.2.0.ebuild
  7. 67
      net-misc/ipv6calc/ipv6calc-3.0.2.ebuild
  8. 11
      net-misc/ipv6calc/metadata.xml

5
net-misc/ipv6calc/Manifest

@ -0,0 +1,5 @@
DIST ipv6calc-1.0.0.tar.gz 1342987 BLAKE2B 0c5a28b8431a82669870c475c5a73c239368f3486c9d16e66918a110937ec134d79f9b3ce79edffe65ab2789b36b7ac9ecd90e57f891759ba4542d608bcc5380 SHA512 46e33697551c4bf0a472c7f2dd51c11ae21d49c7d78fe5213bce60c1d11f9230491c328e425f36733c7262a369644bcedb8392ffe2279031eb2552092a5ac209
DIST ipv6calc-2.1.0.tar.gz 1452903 BLAKE2B 52221e0ff08f6cffbf37900a750359b3e89fc7711ec0fc15b1dd974aa06a4e093ca53fb59e8d75e12824c60079bcefd9df5092365a375825fa9e2e583f0af6dd SHA512 b2ff8557a4af99e1d08b617b2d0a20652d23d80fb532104aefe3708c90fd42ed1309dc9697c7f405715140a2efdb460f4915b797fddf4a7966d165e74224695e
DIST ipv6calc-2.1.1.tar.gz 1453854 BLAKE2B c95f66c2f99cb4953a0c9a8416e294a08d4907e0c5df53616fd0d26c31070ca4727fcb6ebe3d9d84b147d8f24bc69a5c789564ef8e0f5e2fedb1af31a664ed85 SHA512 99dfc87c33c48722d75c98d7a4417b68b23da3d691629ebec65a18992d82a09fd01e55f829f4db4440e0becb746907669cb0bcab4a9ecb477bdcf8ecab675dac
DIST ipv6calc-2.2.0.tar.gz 1546946 BLAKE2B 90dc600c1e83affd6138bfc73ac77160e35d2f745213059ed2b0f36d7a9049a7a659d0419e6f684661247c7714d3e9886fe0a6782f5dd35895c46f2583310dcd SHA512 6e9acde56e245ffae0903305659881eb763524336da285d5048b655728c7d7b031ae7b4190f01f663e3d7134defbb8987c8f47ddd75bf8c8368ec1b918ee42e3
DIST ipv6calc-3.0.2.tar.gz 1608453 BLAKE2B 5097bc4393f94b9e986b8e01e42b132fd6d6c71d6980d435704f70772dab7b5af62d2b8f588218db99860c4e5f8bd74e74549d0e0d0aecd3feac5e8666291427 SHA512 3d424b11d0086ac95bcbcd47107bf9bab7ad279cb6cc3e4b14c8a7bef13469860c4012268ec1496f046225818e9d60a6374c2b4b85dc67007e6ad4fb6830801b

34
net-misc/ipv6calc/files/ipv6calc-2.2.0-gcc-10.patch

@ -0,0 +1,34 @@
https://bugs.gentoo.org/708056
From 8c7eea58f2034113ae91ff7adc2bda72465b7d1a Mon Sep 17 00:00:00 2001
From: Peter Bieringer <pb@bieringer.de>
Date: Fri, 24 Jan 2020 07:15:55 +0100
Subject: [PATCH] ipv6logconv/ipv6logconv.{h,c}: fix multiple definition of
'cache_lru_limit'
--- a/ipv6logconv/ipv6logconv.c
+++ b/ipv6logconv/ipv6logconv.c
@@ -58,7 +58,7 @@ static void lineparser(const long int outputtype);
/* LRU cache */
#define CACHE_LRU_SIZE 200
-
+int cache_lru_limit;
static int cache_lru_max = 0;
static int cache_lru_last = 0;
static char cache_lru_key_token[CACHE_LRU_SIZE][NI_MAXHOST];
--- a/ipv6logconv/ipv6logconv.h
+++ b/ipv6logconv/ipv6logconv.h
@@ -20,8 +20,7 @@
#define DEBUG_ipv6logconv_general 0x00000001l
#define DEBUG_ipv6logconv_processing 0x00000002l
-/* prototyping */
-int cache_lru_limit;
+extern int cache_lru_limit;
extern int feature_reg;
extern int feature_ieee;
--
2.27.0

65
net-misc/ipv6calc/ipv6calc-1.0.0.ebuild

@ -0,0 +1,65 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
DESCRIPTION="IPv6 address calculator"
HOMEPAGE="https://www.deepspace6.net/projects/ipv6calc.html"
SRC_URI="https://github.com/pbiering/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ppc sparc x86 ~amd64-linux ~x86-linux"
IUSE="geoip test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/openssl:=
geoip? ( >=dev-libs/geoip-1.4.7 )
"
DEPEND="${RDEPEND}
test? ( dev-perl/Digest-SHA1 )
"
#dev-perl/URI is needed for web interface, that is not installed now
src_configure() {
# These options are broken. You can't disable them. That's
# okay because we want then force enabled.
# --disable-db-as-registry
# --disable-db-cc-registry
if use geoip; then
myconf=$(use_enable geoip)
myconf+=" --with-geoip-db=${EPREFIX}/usr/share/GeoIP"
fi
econf \
--disable-bundled-getopt \
--disable-bundled-md5 \
--enable-shared \
--enable-dynamic-load \
--enable-db-ieee \
--enable-db-ipv4 \
--enable-db-ipv6 \
--disable-dbip \
--disable-external \
--disable-ip2location \
${myconf}
}
src_compile() {
# Disable default CFLAGS (-O2 and -g)
emake DEFAULT_CFLAGS=""
}
src_test() {
if [[ ${EUID} -eq 0 ]]; then
# Disable tests that fail as root
echo true > ipv6logstats/test_ipv6logstats.sh
fi
default
}
src_install() {
emake DESTDIR="${D}" install
dodoc ChangeLog CREDITS README TODO USAGE
}

67
net-misc/ipv6calc/ipv6calc-2.1.0.ebuild

@ -0,0 +1,67 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
DESCRIPTION="IPv6 address calculator"
HOMEPAGE="https://www.deepspace6.net/projects/ipv6calc.html"
SRC_URI="https://github.com/pbiering/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ppc ~sparc x86 ~amd64-linux ~x86-linux"
IUSE="geoip test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/openssl:=
geoip? ( >=dev-libs/geoip-1.4.7 )
"
DEPEND="${RDEPEND}
test? ( dev-perl/Digest-SHA1 )
"
#dev-perl/URI is needed for web interface, that is not installed now
src_configure() {
# These options are broken. You can't disable them. That's
# okay because we want then force enabled.
# --disable-db-as-registry
# --disable-db-cc-registry
if use geoip; then
myconf=$(use_enable geoip)
myconf+=" --with-geoip-db=${EPREFIX}/usr/share/GeoIP"
fi
econf \
--disable-bundled-getopt \
--disable-bundled-md5 \
--enable-shared \
--enable-dynamic-load \
--enable-db-ieee \
--enable-db-ipv4 \
--enable-db-ipv6 \
--disable-dbip \
--disable-dbip2 \
--disable-external \
--disable-ip2location \
${myconf}
}
src_compile() {
emake distclean
# Disable default CFLAGS (-O2 and -g)
emake DEFAULT_CFLAGS=""
}
src_test() {
if [[ ${EUID} -eq 0 ]]; then
# Disable tests that fail as root
echo true > ipv6logstats/test_ipv6logstats.sh
fi
default
}
src_install() {
emake DESTDIR="${D}" install
dodoc ChangeLog CREDITS README TODO USAGE
}

67
net-misc/ipv6calc/ipv6calc-2.1.1.ebuild

@ -0,0 +1,67 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
DESCRIPTION="IPv6 address calculator"
HOMEPAGE="https://www.deepspace6.net/projects/ipv6calc.html"
SRC_URI="https://github.com/pbiering/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="geoip test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/openssl:=
geoip? ( >=dev-libs/geoip-1.4.7 )
"
DEPEND="${RDEPEND}
test? ( dev-perl/Digest-SHA1 )
"
#dev-perl/URI is needed for web interface, that is not installed now
src_configure() {
# These options are broken. You can't disable them. That's
# okay because we want then force enabled.
# --disable-db-as-registry
# --disable-db-cc-registry
if use geoip; then
myconf=$(use_enable geoip)
myconf+=" --with-geoip-db=${EPREFIX}/usr/share/GeoIP"
fi
econf \
--disable-bundled-getopt \
--disable-bundled-md5 \
--enable-shared \
--enable-dynamic-load \
--enable-db-ieee \
--enable-db-ipv4 \
--enable-db-ipv6 \
--disable-dbip \
--disable-dbip2 \
--disable-external \
--disable-ip2location \
${myconf}
}
src_compile() {
emake distclean
# Disable default CFLAGS (-O2 and -g)
emake DEFAULT_CFLAGS=""
}
src_test() {
if [[ ${EUID} -eq 0 ]]; then
# Disable tests that fail as root
echo true > ipv6logstats/test_ipv6logstats.sh
fi
default
}
src_install() {
emake DESTDIR="${D}" install
dodoc ChangeLog CREDITS README TODO USAGE
}

69
net-misc/ipv6calc/ipv6calc-2.2.0.ebuild

@ -0,0 +1,69 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
DESCRIPTION="IPv6 address calculator"
HOMEPAGE="https://www.deepspace6.net/projects/ipv6calc.html"
SRC_URI="https://github.com/pbiering/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux"
IUSE="geoip test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/openssl:=
geoip? ( >=dev-libs/geoip-1.4.7 )
"
DEPEND="${RDEPEND}
test? ( dev-perl/Digest-SHA1 )
"
PATCHES=("${FILESDIR}"/${P}-gcc-10.patch)
#dev-perl/URI is needed for web interface, that is not installed now
src_configure() {
# These options are broken. You can't disable them. That's
# okay because we want then force enabled.
# --disable-db-as-registry
# --disable-db-cc-registry
if use geoip; then
myconf=$(use_enable geoip)
myconf+=" --with-geoip-db=${EPREFIX}/usr/share/GeoIP"
fi
econf \
--disable-bundled-getopt \
--disable-bundled-md5 \
--enable-shared \
--enable-dynamic-load \
--enable-db-ieee \
--enable-db-ipv4 \
--enable-db-ipv6 \
--disable-dbip \
--disable-dbip2 \
--disable-external \
--disable-ip2location \
${myconf}
}
src_compile() {
emake distclean
# Disable default CFLAGS (-O2 and -g)
emake DEFAULT_CFLAGS=""
}
src_test() {
if [[ ${EUID} -eq 0 ]]; then
# Disable tests that fail as root
echo true > ipv6logstats/test_ipv6logstats.sh
fi
default
}
src_install() {
emake DESTDIR="${D}" install
dodoc ChangeLog CREDITS README TODO USAGE
}

67
net-misc/ipv6calc/ipv6calc-3.0.2.ebuild

@ -0,0 +1,67 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
DESCRIPTION="IPv6 address calculator"
HOMEPAGE="https://www.deepspace6.net/projects/ipv6calc.html"
SRC_URI="ftp://ftp.bieringer.de/pub/linux/IPv6/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux"
IUSE="geoip test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/openssl:=
geoip? ( >=dev-libs/geoip-1.4.7 )
"
DEPEND="${RDEPEND}
test? ( dev-perl/Digest-SHA1 )
"
#dev-perl/URI is needed for web interface, that is not installed now
src_configure() {
# These options are broken. You can't disable them. That's
# okay because we want then force enabled.
# --disable-db-as-registry
# --disable-db-cc-registry
if use geoip; then
myconf=$(use_enable geoip)
myconf+=" --with-geoip-db=${EPREFIX}/usr/share/GeoIP"
fi
econf \
--disable-bundled-getopt \
--disable-bundled-md5 \
--enable-shared \
--enable-dynamic-load \
--enable-db-ieee \
--enable-db-ipv4 \
--enable-db-ipv6 \
--disable-dbip \
--disable-dbip2 \
--disable-external \
--disable-ip2location \
${myconf}
}
src_compile() {
emake distclean
# Disable default CFLAGS (-O2 and -g)
emake DEFAULT_CFLAGS=""
}
src_test() {
if [[ ${EUID} -eq 0 ]]; then
# Disable tests that fail as root
echo true > ipv6logstats/test_ipv6logstats.sh
fi
default
}
src_install() {
emake DESTDIR="${D}" install
dodoc ChangeLog CREDITS README TODO USAGE
}

11
net-misc/ipv6calc/metadata.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>blueness@gentoo.org</email>
<name>Anthony G. Basile</name>
</maintainer>
<upstream>
<remote-id type="github">pbiering/ipv6calc</remote-id>
</upstream>
</pkgmetadata>
Loading…
Cancel
Save