[packages] vnstat: fix compilation on non-linux hosts (#6656)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19703 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bd790c4e0e
commit
63a6ab878d
@ -1,7 +1,6 @@
|
||||
diff -urN vnstat-1.10/Makefile vnstat-1.10.new/Makefile
|
||||
--- vnstat-1.10/Makefile 2009-08-01 21:23:43.000000000 +0200
|
||||
+++ vnstat-1.10.new/Makefile 2010-01-03 21:51:31.000000000 +0100
|
||||
@@ -54,11 +54,11 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -54,11 +54,11 @@ install:
|
||||
|
||||
# install everything else
|
||||
install -d -m 755 $(BIN) $(SBIN) $(MAN)/man1 $(MAN)/man5 $(DESTDIR)/var/lib/vnstat
|
||||
@ -17,7 +16,7 @@ diff -urN vnstat-1.10/Makefile vnstat-1.10.new/Makefile
|
||||
fi
|
||||
|
||||
# update man pages, gzip it if previous version was done so
|
||||
@@ -127,12 +127,12 @@
|
||||
@@ -127,12 +127,12 @@ bsdinstall:
|
||||
|
||||
# install binaries
|
||||
install -dm 755 $(DESTDIR)/var/db/vnstat
|
||||
|
15
net/vnstat/patches/003-no_install_uname.patch
Normal file
15
net/vnstat/patches/003-no_install_uname.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -22,12 +22,6 @@ clean:
|
||||
install:
|
||||
@echo "Installing vnStat..."
|
||||
|
||||
-# check that system is really Linux
|
||||
- @if [ `uname` != "Linux" ]; \
|
||||
- then echo "This isn't a Linux system. Maybe 'make bsdinstall' is what you need?"; \
|
||||
- false; \
|
||||
- fi
|
||||
-
|
||||
# check that there's something to install
|
||||
@if [ ! -f "src/vnstat" ] || [ ! -f "src/vnstatd" ]; \
|
||||
then echo "Nothing to install, run make first."; \
|
Loading…
x
Reference in New Issue
Block a user