New package: gnome-nettool-3.8.0.

This commit is contained in:
Juan RP 2013-05-03 09:58:36 +02:00
parent 9d0e87bfba
commit 7814cd00d9
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,32 @@
--- src/info.c 2013-05-02 13:58:40.000000000 +0200
+++ src/info.c 2013-05-03 05:20:04.684921458 +0200
@@ -232,13 +232,13 @@
text_rx_bytes = util_legible_bytes (netload.bytes_in);
text_tx_bytes = util_legible_bytes (netload.bytes_out);
- g_sprintf (rx_pkt, "%lld", netload.packets_in);
- g_sprintf (tx_pkt, "%lld", netload.packets_out);
+ g_sprintf (rx_pkt, "%" G_GUINT64_FORMAT, netload.packets_in);
+ g_sprintf (tx_pkt, "%" G_GUINT64_FORMAT, netload.packets_out);
- g_sprintf (rx_error, "%lld", netload.errors_in);
- g_sprintf (tx_error, "%lld", netload.errors_out);
+ g_sprintf (rx_error, "%" G_GUINT64_FORMAT, netload.errors_in);
+ g_sprintf (tx_error, "%" G_GUINT64_FORMAT, netload.errors_out);
- g_sprintf (collisions, "%lld", netload.collisions);
+ g_sprintf (collisions, "%" G_GUINT64_FORMAT, netload.collisions);
gtk_label_set_text (GTK_LABEL (info->tx_bytes), text_tx_bytes);
gtk_label_set_text (GTK_LABEL (info->tx), tx_pkt);
--- src/utils.c 2013-05-02 13:58:40.000000000 +0200
+++ src/utils.c 2013-05-03 05:21:45.704202804 +0200
@@ -272,7 +272,7 @@
unit = "KiB";
}
- result = g_strdup_printf ("%lld.%lld %s", short_rx / 10,
+ result = g_strdup_printf ("%" G_GUINT64_FORMAT ".%" G_GUINT64_FORMAT " %s", short_rx / 10,
short_rx % 10, unit);
return result;
}

View File

@ -0,0 +1,22 @@
# Template file for 'gnome-nettool'
pkgname=gnome-nettool
version=3.8.0
revision=1
build_style=gnu-configure
hostmakedepends="which pkg-config intltool itstool gnome-doc-utils"
makedepends="gtk+3-devel gsettings-desktop-schemas-devel>=3.8.0 libgtop-devel
hicolor-icon-theme desktop-file-utils traceroute iputils bind-utils net-tools"
short_desc="A Collection of GNOME3 Networking Tools"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnome.org"
license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/3.8/$pkgname-$version.tar.xz"
checksum=3a3480dcef181684f3e37d779cfd43f9b21920412aff78501de1695faf194a28
gnome-nettool_package() {
depends="hicolor-icon-theme desktop-file-utils
traceroute iputils bind-utils net-tools"
pkg_install() {
vmove usr
}
}