mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
Merge pull request #4346 from lemmi/ifstatus
New package: ifstatus-1.1.0
This commit is contained in:
commit
972bc2ae81
3 changed files with 51 additions and 0 deletions
10
srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc43.patch
Normal file
10
srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc43.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/Main.h
|
||||||
|
+++ b/Main.h
|
||||||
|
@@ -38,6 +38,7 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <curses.h>
|
||||||
|
+#include <stdlib.h>
|
||||||
|
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <sys/types.h>
|
22
srcpkgs/ifstatus/patches/ifstatus-1.1.0-tinfo.patch
Normal file
22
srcpkgs/ifstatus/patches/ifstatus-1.1.0-tinfo.patch
Normal file
|
@ -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
|
19
srcpkgs/ifstatus/template
Normal file
19
srcpkgs/ifstatus/template
Normal file
|
@ -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 <lemmi@nerd2nerd.org>"
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue