From 44fcebb5c445a7714769622bd80bd06b31603192 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sun, 19 Jun 2016 00:00:36 +0200 Subject: [PATCH] New package: ifstatus-1.1.0 --- .../patches/ifstatus-1.1.0-gcc43.patch | 10 +++++++++ .../patches/ifstatus-1.1.0-tinfo.patch | 22 +++++++++++++++++++ srcpkgs/ifstatus/template | 19 ++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc43.patch create mode 100644 srcpkgs/ifstatus/patches/ifstatus-1.1.0-tinfo.patch create mode 100644 srcpkgs/ifstatus/template diff --git a/srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc43.patch b/srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc43.patch new file mode 100644 index 0000000000..27111d7576 --- /dev/null +++ b/srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc43.patch @@ -0,0 +1,10 @@ +--- a/Main.h ++++ b/Main.h +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + + #include + #include diff --git a/srcpkgs/ifstatus/patches/ifstatus-1.1.0-tinfo.patch b/srcpkgs/ifstatus/patches/ifstatus-1.1.0-tinfo.patch new file mode 100644 index 0000000000..b618f4f638 --- /dev/null +++ b/srcpkgs/ifstatus/patches/ifstatus-1.1.0-tinfo.patch @@ -0,0 +1,22 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,9 +1,7 @@ + # Makefile for IFStatus + # Gabriel Montenegro + +-GCC = g++ +-LDFLAGS = -lncurses +-CFLAGS = -O2 -Wall ++LDLIBS = $(shell pkg-config --libs ncursesw) + + BIN = ifstatus + OBJ = BorderDecorator.o\ +@@ -30,7 +28,7 @@ + all : ifstatus printdone + + ifstatus : $(OBJ) +- $(GCC) $(CFLAGS) $(LDFLAGS) $^ -o $@ ++ $(LINK.cc) $^ $(LDLIBS) -o $@ + + printdone: + @if [ -e "./${BIN}" ]; then echo "Compiled.."; else echo "Error compiling!"; fi diff --git a/srcpkgs/ifstatus/template b/srcpkgs/ifstatus/template new file mode 100644 index 0000000000..a35a6bed80 --- /dev/null +++ b/srcpkgs/ifstatus/template @@ -0,0 +1,19 @@ +# Template file for 'ifstatus' +pkgname=ifstatus +version=1.1.0 +revision=1 +wrksrc=ifstatus +build_style=gnu-makefile +patch_args="-Np1" +hostmakedepends="pkg-config" +makedepends="ncurses-devel" +short_desc="Display network traffic on console" +maintainer="lemmi " +license="GPL-2" +homepage="http://ifstatus.sourceforge.net/graphic/index.html" +distfiles="${SOURCEFORGE_SITE}/ifstatus/ifstatus/ifstatus%20v${version}/ifstatus-v${version}.tar.gz" +checksum=0ca8a8655a1edf07698efbd5e1d4adc962dbb1bfb078b4899062e89bb05eac10 + +do_install() { + vbin ifstatus +}