openbsd-ports/net/bwm-ng/patches/patch-Makefile_in
niallo 719dcd66f7 Import net/bwm-ng
DESCR:

Bandwidth Monitor NG is a small and simple console-based live
bandwidth monitor for Linux, BSD, Solaris, Mac OS X and others.

Short list of features:

* supports /proc/net/dev, netstat, getifaddr, sysctl, kstat and
        libstatgrab
* unlimited number of interfaces supported
* interfaces are added or removed dynamically from list
* white-/blacklist of interfaces
* output of KB/s, Kb/s, packets, errors, average, max
        and total sum
* output in curses, plain console, CSV or HTML
* configfile

From: Genadijus Paleckis <rwx@openbsd.lt>

ok alek@
2005-06-21 21:52:46 +00:00

28 lines
898 B
Plaintext

$OpenBSD: patch-Makefile_in,v 1.1.1.1 2005/06/21 21:52:46 niallo Exp $
--- /tmp/Makefile.in Tue Jun 21 14:33:35 2005
+++ Makefile.in Tue Jun 21 14:33:51 2005
@@ -8,19 +8,17 @@
mandir = @mandir@
BINARY = bwm-ng
TARGET = src/$(BINARY)
-STRIP = @STRIP@
all: bwm-ng
bwm-ng:
@( cd src ; $(MAKE) bwm-ng )
- ${STRIP}
install: all
- @(if [ ! -d $(bindir) ]; then mkdir -p $(bindir); fi )
- cp -p ${TARGET} $(bindir)/$(BINARY)
- @(if [ ! -d $(mandir)/man1 ]; then mkdir -p $(mandir)/man1; fi)
- cp -p bwm-ng.1 $(mandir)/man1/bwm-ng.1
+ install -o root -g wheel -m 555 src/bwm-ng ${DESTDIR}/${bindir}
+ install -o root -g wheel -m 444 bwm-ng.1 ${DESTDIR}/$(mandir)/man1
+ install -o root -g wheel -m 755 -d ${DESTDIR}/${LOCALBASE}/share/examples/bwm-ng
+ install -o root -g wheel -m 444 bwm-ng.conf-example ${DESTDIR}/${LOCALBASE}/share/examples/bwm-ng
clean:
@( cd src ; $(MAKE) clean )