Browse Source

Add ipcalc

master
Pekka Helenius 5 years ago
parent
commit
0aa9ff9d27
3 changed files with 43 additions and 0 deletions
  1. +6
    -0
      Readme.md
  2. +26
    -0
      ipcalc/PKGBUILD
  3. +11
    -0
      ipcalc/patch_colors.patch

+ 6
- 0
Readme.md View File

@ -36,6 +36,12 @@ Graphical front-end for LogMeIn Hamachi by Stephen Brandt. Version 1.0.26 (GTK2)
**FORMAT:** Arch Linux PKGBUILD script + source archive.
## [ipcalc](ipcalc)
Apply brighter colors to `ipcalc` output.
**FORMAT:** Arch Linux PKGBUILD script + patch file.
## [kbd-fi-nbsp](kbd-fi-nbsp)
Custom Finnish keyboard settings and recommendations to eliminate non-breaking space character which is usually typed unintentionally in commands.


+ 26
- 0
ipcalc/PKGBUILD View File

@ -0,0 +1,26 @@
# Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
# Contributor: K. Piche <kpiche@rogers.com>
pkgname=ipcalc
pkgver=0.41
pkgrel=6
pkgdesc="Calculates IP broadcast, network, Cisco wildcard mask, and host ranges"
arch=('any')
url="http://jodies.de/ipcalc"
license=('GPL')
depends=('perl')
source=(
"https://jodies.de/ipcalc-archive/${pkgname}-${pkgver}.tar.gz"
"patch_colors.patch"
)
sha512sums=('089eb2b9a38b07caa182ff11547a93d86aed570311fc8cd9e636c7546ab4d15acc854b9d79bbba9c797dcfbbedd1d6f4d521aec97bf613905fe5198a29c9889d'
'd6ff83fdc7c512ed80ce08cc7dcba5a818b29c1bafb52cb60f38b00d4efdf7428b35835b9d4e42c19317e539ef32fea18f2dbcce211782a40c83828b27003fb9')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i ../patch_colors.patch
}
package() {
install -D -m755 ${srcdir}/${pkgname}-${pkgver}/ipcalc ${pkgdir}/usr/bin/ipcalc
}

+ 11
- 0
ipcalc/patch_colors.patch View File

@ -0,0 +1,11 @@
--- a/ipcalc
+++ b/ipcalc
@@ -25,7 +25,7 @@
my @class = qw (0 8 16 24 4 5 5);
-my $quads_color = "\033[34m"; # dotted quads, blue
+my $quads_color = "\033[94m"; # dotted quads, blue
my $norml_color = "\033[m"; # normal, black
#my $binry_color = "\033[1m\033[46m\033[37m"; # binary, yellow
my $binry_color = "\033[33m"; # binary, yellow

Loading…
Cancel
Save