[arch-commits] Commit in iftop/repos/community-x86_64 (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Aug 25 20:33:16 UTC 2022


    Date: Thursday, August 25, 2022 @ 20:33:16
  Author: felixonmars
Revision: 1280247

archrelease: copy trunk to community-x86_64

Added:
  iftop/repos/community-x86_64/PKGBUILD
    (from rev 1280246, iftop/trunk/PKGBUILD)
  iftop/repos/community-x86_64/mac-address-fix.patch
    (from rev 1280246, iftop/trunk/mac-address-fix.patch)
Deleted:
  iftop/repos/community-x86_64/PKGBUILD

-----------------------+
 PKGBUILD              |   71 ++++++++++++++++++++++++++----------------------
 mac-address-fix.patch |   11 +++++++
 2 files changed, 50 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-25 20:32:59 UTC (rev 1280246)
+++ PKGBUILD	2022-08-25 20:33:16 UTC (rev 1280247)
@@ -1,32 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daenyth <Daenyth+Arch at gmail dot com>
-# Contributor: Jeff Mickey <jeff at archlinux.org>
-# Contributor: Alexander Mieland (dma147) <dma147 at linux-stats.org>
-# Contributor: slubman <slubman at slubman.net>
-
-pkgname=iftop
-pkgver=1.0pre4
-pkgrel=4
-pkgdesc="Display bandwidth usage on an interface"
-arch=('x86_64')
-url="http://www.ex-parrot.com/~pdw/iftop/"
-license=('GPL')
-depends=('libpcap' 'ncurses')
-source=("http://www.ex-parrot.com/~pdw/$pkgname/download/$pkgname-$pkgver.tar.gz")
-
-build() {
-  cd $pkgname-$pkgver
-
-  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
-
-  ./configure --prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man
-  make
-}
-
-package() {
-  cd $pkgname-$pkgver
-
-  make DESTDIR="$pkgdir" install
-}
-
-sha512sums=('abd74e8025bb82fef9ebab4997b1d018201a523d47c0128128ca37797490046538d74758dc4471735c22b890e5bd238ad6b2a30776d465138ede367cdd263d22')

Copied: iftop/repos/community-x86_64/PKGBUILD (from rev 1280246, iftop/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-25 20:33:16 UTC (rev 1280247)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daenyth <Daenyth+Arch at gmail dot com>
+# Contributor: Jeff Mickey <jeff at archlinux.org>
+# Contributor: Alexander Mieland (dma147) <dma147 at linux-stats.org>
+# Contributor: slubman <slubman at slubman.net>
+
+pkgname=iftop
+pkgver=1.0pre4
+pkgrel=5
+pkgdesc="Display bandwidth usage on an interface"
+arch=('x86_64')
+url="http://www.ex-parrot.com/~pdw/iftop/"
+license=('GPL')
+depends=('libpcap' 'ncurses')
+source=("http://www.ex-parrot.com/~pdw/$pkgname/download/$pkgname-$pkgver.tar.gz"
+        mac-address-fix.patch)
+sha512sums=('abd74e8025bb82fef9ebab4997b1d018201a523d47c0128128ca37797490046538d74758dc4471735c22b890e5bd238ad6b2a30776d465138ede367cdd263d22'
+            '6906bae0eb6beb2e8245648a74601af3024b82d7e826fe49c40a272f98a14b52c39e3caf5985b5f16c460e3096bf6d87e6eb84c166e577f67596f887d997250c')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # FS#75357
+  patch -p0 -i ../mac-address-fix.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+
+  ./configure --prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+}

Copied: iftop/repos/community-x86_64/mac-address-fix.patch (from rev 1280246, iftop/trunk/mac-address-fix.patch)
===================================================================
--- mac-address-fix.patch	                        (rev 0)
+++ mac-address-fix.patch	2022-08-25 20:33:16 UTC (rev 1280247)
@@ -0,0 +1,11 @@
+--- iftop.c.old 2014-01-20 04:21:19.000000000 +0800
++++ iftop.c 2014-03-03 12:49:57.383335066 +0800
+@@ -713,7 +713,7 @@ void packet_init() {
+     if(have_hw_addr) {
+       fprintf(stderr, "MAC address is:");
+       for (i = 0; i < 6; ++i)
+-	fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned int)if_hw_addr[i]);
++	fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned char)if_hw_addr[i]);
+       fprintf(stderr, "\n");
+     }
+ 



More information about the arch-commits mailing list