summaryrefslogtreecommitdiff
path: root/net-analyzer/nload
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-15 23:36:27 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-15 23:36:27 +0000
commit31c69c39a3648b52dd931a40b198714249e8a5ec (patch)
treec7bfb4db01cf185b6b8f7bde72d9cc5d14d8db22 /net-analyzer/nload
parentdce60e5aa0a12ccc07c10a0a2c3f8f063393b32a (diff)
gentoo auto-resync : 15:02:2024 - 23:36:26
Diffstat (limited to 'net-analyzer/nload')
-rw-r--r--net-analyzer/nload/Manifest6
-rw-r--r--net-analyzer/nload/files/nload-0.7.5_pre-Makefile-spec-don-t-compress-man-page.patch63
-rw-r--r--net-analyzer/nload/files/nload-0.7.5_pre-tinfo.patch10
-rw-r--r--net-analyzer/nload/metadata.xml3
-rw-r--r--net-analyzer/nload/nload-0.7.5_pre20180309.ebuild36
5 files changed, 117 insertions, 1 deletions
diff --git a/net-analyzer/nload/Manifest b/net-analyzer/nload/Manifest
index 18e7a2efed87..e907d493e692 100644
--- a/net-analyzer/nload/Manifest
+++ b/net-analyzer/nload/Manifest
@@ -1,6 +1,10 @@
AUX nload-0.7.4-Eliminate-flicker-on-some-terminals.patch 624 BLAKE2B acf0b86e62d7b243ecc96fb73bb84800b4c738761c976f02ad785ddcae27399c64e413b67c7bd1cbe5818da549f8e653c58e7854334157dc5cf17093cda43187 SHA512 f761605b66cdda1e17a508b9c2d532a3ea955a86f4eb4dc61ca00c2b51c162e57bb2d292d9232144ab67e52162cb58e73b6cd1e4bf6f1de003a2f72ac93e7199
AUX nload-0.7.4-Makefile-spec-don-t-compress-man-page.patch 2166 BLAKE2B f2c5ba5a5924bcaefe67665721ff9224944ee9af53be51869f0c0d45f447fdb7041181a5040bade84f01c3c22585865f3ac420a7c6a7320099a8b9cfc884d825 SHA512 c728d1fbf5aa3c97ff38fa9684230d5af3ccaac1240a915cbe603d5c04cd649a26ef4f2a37125514c7e4fd0afbb85404bbe412d783e934eed89ebad4fe718220
AUX nload-0.7.4-tinfo.patch 264 BLAKE2B aa77538dd412c4956d61449e9c6494de70d42208d806e103a18d12e12751d7619483bb13dab1934b076e5aaf7ea7d3368c9a5b9403340dab7f03c5a0430b3bb0 SHA512 1191ef64ab895402a54d05e4b119627ddc6db884f8385493bf00c030d1c82b88fa77973e3d6ea0bf2e5e7211dc07ddec7d95e426a60d99f216b23b683fd8a83e
+AUX nload-0.7.5_pre-Makefile-spec-don-t-compress-man-page.patch 2096 BLAKE2B fcbbf03277416adc1be91bf16dfd59b51467b9f92e5a63e3ae4817f49f8d8698947229bd6a3fc1012967fe4124736dedcf031f4ef4577de506a77119284cc6bb SHA512 3c448817fbfb5b7be0bc0e459ec0664cfa22e52d495be913364b4ddb0e9d48a266bf18610d1c07df6f48bacf921d0592adf72d0ab288ea7bea92c9fe783297b0
+AUX nload-0.7.5_pre-tinfo.patch 264 BLAKE2B 2254acea32b1a4ac1a6e8af1e5ca91dfb7afd0be540c22559fbb6c3e5737977a444abcbd150e715121826e5ea89a303a21722d8cb061c901b96dcf1f46b5345f SHA512 7ea0265fc65dfd812bdc99e8f7cef74e87f0e2f8d227768e7fa8ac0da8ac8becae6cdce1560986c5277a224c1d0e27456a75b22729004922b5d01b032e9bf5d3
DIST nload-0.7.4.tar.gz 151005 BLAKE2B a98903652e21d2b9b2e446bfc8c8f5fc66559b6663893603f4040c6e80c8c977d305e952dc0108c9efa66490dfba91e42857337095ddb731ececf2e3747e0b97 SHA512 ca3e36d3f77c5a7994a3261042fb65a1458a29c769e6bebbe3b8e49b3045aca6f4d047065d11431b28368e0d881c24c92533fa24f0e54ac270f1f5bccfb5c0af
+DIST nload-0.7.5_pre20180309.tar.gz 43405 BLAKE2B b5d8aeffc5de52c8574a8d11f133b2c5a38d09fd5a1abb75e2a9ea99551b018947844348ab73a26d806c575a387f1d4a5354144612ac7ea0f45bab5bd7d05115 SHA512 5942d706ac1f8acf57c832ee832a6b96add3c3d80fb45d3a5f6eb2397d20d49c4cc52e754328259bb52b06bd4e4b15e92d86103a531ae4ac546fcb87e3e5131b
EBUILD nload-0.7.4-r1.ebuild 793 BLAKE2B 5d8ea1b075e9dc4a8a9a6cd96b73aab3d39fa357a18c50176bef28e4ed3faeeb446532baeaaa82653bf4ce91c9bb4c089e4841ea4a5b016c7eeed3448a21080d SHA512 769c1c492c1986127ab5201d7686e3144361d69de3c7eb36affb8c2338819fcb1e9bb25e470f7f9577c9010a106c17de20e957cbb0def5aea562b91ea34aa0c9
-MISC metadata.xml 546 BLAKE2B d78fd42a4fcaa7aea96d06569fc2fad4cc044ca71b1a8344c45f0795b46da9392728aed6a7ed6d1e61309acb502faf0c3903c9e32dfb72b71abc947e15a4facc SHA512 92f3ba3f7f8f4e87b6e45fa85aef7f3132f84893e0e064767669e5c8ae3965294d9e9dbeffc5e07f14c33d0e3a1d6a42ccb06374b0314555eaa0799c03ec6dcf
+EBUILD nload-0.7.5_pre20180309.ebuild 914 BLAKE2B 53998df7636768a0d9a2539e3ec1912cb3acf5af39fd31e41c5b39118e5955fa98e77eee4c3439fe55b70b4ed95dbc62ec656dfe2770de61ea3efca38e0b1b90 SHA512 be683b01984a4871f85fdf7e857b38abf234bd24dc1513d50faf2afda268db686b5b26c0ba694289bce051dbb25a16627d7f5605c0eb494c94924ab53b605d39
+MISC metadata.xml 633 BLAKE2B 500af61f87ae184f2545715a94aa5fcfba212b350e45a6b6b6b5c82a9148081bc15a094a387b989411f20c6ed5161a0e863bfc72609bf227b1c706c636a2e4ff SHA512 b7f8cffe82009df815e6dfb87976129b346e8e530a1277cb9b15f03d4a9a31d1eb8c143c1e2da65a2950dae541be39ee97a33ccb25b1471bdd81946238123e40
diff --git a/net-analyzer/nload/files/nload-0.7.5_pre-Makefile-spec-don-t-compress-man-page.patch b/net-analyzer/nload/files/nload-0.7.5_pre-Makefile-spec-don-t-compress-man-page.patch
new file mode 100644
index 000000000000..ff97f7004f94
--- /dev/null
+++ b/net-analyzer/nload/files/nload-0.7.5_pre-Makefile-spec-don-t-compress-man-page.patch
@@ -0,0 +1,63 @@
+Upstream: https://github.com/rolandriegel/nload/pull/4
+
+From 096df0d1282a8c8c535e730d28fe281ea290b58d Mon Sep 17 00:00:00 2001
+From: Andrey Mazo <ahippo@yandex.com>
+Date: Sun, 26 Aug 2018 00:00:35 +0300
+Subject: [PATCH 1/1] Makefile,spec: don't compress the man-page
+
+Package managers like to compress man-pages on their own,
+because the type of compression for man-pages is user-configurable.
+In particular, Gentoo [1] doesn't want packages to compress their man-pages.
+Gentoo Portage has workarounds for this,
+but this is not specified in Package Manager Specification and
+results in extra compression-decompression pass.
+
+RPM also compresses man-pages itself (in `brp-compress`)
+(and similarly recompresses them as needed)
+rather than relying on packages to install compressed man-pages.
+
+Automake can handle installation of man-pages without the explicit "install" target,
+so use the standard automake-provided way of installing man-pages.
+It's also smart enough to package `nload.1.in` automatically.
+
+Don't specify an explicit man-page extension in .spec file as recommended by Fedora.
+
+[1] https://github.com/gentoo/gentoo/pull/9543#issuecomment-415662844
+---
+ docs/Makefile.am | 10 +---------
+ nload.spec.in | 2 +-
+ 2 files changed, 2 insertions(+), 10 deletions(-)
+
+diff --git a/docs/Makefile.am b/docs/Makefile.am
+index 706636e..9032a02 100644
+--- a/docs/Makefile.am
++++ b/docs/Makefile.am
+@@ -1,11 +1,3 @@
+ ## Helder Correia <helder.correia@netcabo.pt>
+
+-man1_MAN = nload.1
+-
+-install:
+- $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
+- $(INSTALL_DATA) $(top_builddir)/docs/$(PACKAGE).1 $(DESTDIR)$(mandir)/man1
+- gzip -f $(DESTDIR)$(mandir)/man1/$(PACKAGE).1
+-
+-uninstall:
+- rm $(DESTDIR)$(mandir)/man1/$(PACKAGE).1.gz
++man1_MANS = nload.1
+diff --git a/nload.spec.in b/nload.spec.in
+index 794e5e7..29ab486 100644
+--- a/nload.spec.in
++++ b/nload.spec.in
+@@ -41,7 +41,7 @@ rm -rf %{buildroot}
+ %defattr(-,root,root)
+ %doc AUTHORS COPYING ChangeLog README.md
+ %attr(0755,root,root) %{_bindir}/%{name}
+-%{_mandir}/man1/%{name}.1.gz
++%{_mandir}/man1/%{name}.1*
+
+
+ %changelog
+--
+2.43.0
+
diff --git a/net-analyzer/nload/files/nload-0.7.5_pre-tinfo.patch b/net-analyzer/nload/files/nload-0.7.5_pre-tinfo.patch
new file mode 100644
index 000000000000..caf67cc76b8e
--- /dev/null
+++ b/net-analyzer/nload/files/nload-0.7.5_pre-tinfo.patch
@@ -0,0 +1,10 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -70,6 +70,7 @@
+ esac
+
+ dnl Checks for libraries.
++PKG_CHECK_MODULES([NCURSES],[ncurses],[LIBS="$LIBS $NCURSES_LIBS"],[AC_MSG_ERROR([ncurses was not found])])
+ AC_CHECK_LIB(ncurses, initscr)
+ AC_CHECK_LIB(form, new_form)
+
diff --git a/net-analyzer/nload/metadata.xml b/net-analyzer/nload/metadata.xml
index e65b0f97552c..501eefa5b6cf 100644
--- a/net-analyzer/nload/metadata.xml
+++ b/net-analyzer/nload/metadata.xml
@@ -13,4 +13,7 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
+ <upstream>
+ <remote-id type="github">rolandriegel/nload</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/net-analyzer/nload/nload-0.7.5_pre20180309.ebuild b/net-analyzer/nload/nload-0.7.5_pre20180309.ebuild
new file mode 100644
index 000000000000..6870ab429dd9
--- /dev/null
+++ b/net-analyzer/nload/nload-0.7.5_pre20180309.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+GIT_REV="8f92dc04fad283abdd2a4538cd4c2093d957d9da"
+
+DESCRIPTION="Real time network traffic monitor for the command line interface"
+HOMEPAGE="http://www.roland-riegel.de/nload/index.html https://github.com/rolandriegel/nload"
+SRC_URI="https://github.com/rolandriegel/nload/archive/${GIT_REV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
+
+RDEPEND=">=sys-libs/ncurses-5.2:0="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.7.5_pre-tinfo.patch
+ "${FILESDIR}"/${PN}-0.7.5_pre-Makefile-spec-don-t-compress-man-page.patch
+)
+
+S="${WORKDIR}/${PN}-${GIT_REV}"
+
+src_prepare() {
+ default
+ sed -i \
+ -e "/AC_INIT/ s/0\.7\.4/${PV} (Gentoo)/" \
+ configure.ac \
+ || die "Failed to patch configure.ac"
+ eautoreconf
+}