[packages] vnstat: re-add portable install patch, thanks Joe Roback (#9542)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@27154 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bfe08b8f29
commit
4f5ee21a23
21
net/vnstat/patches/004-install_bsd_fix.patch
Normal file
21
net/vnstat/patches/004-install_bsd_fix.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -43,7 +43,8 @@ install:
|
||||
# install default config if such doesn't exist
|
||||
@if [ ! -f "$(DESTDIR)/etc/vnstat.conf" ]; \
|
||||
then echo "Installing config to $(DESTDIR)/etc/vnstat.conf"; \
|
||||
- install -D -m 644 cfg/vnstat.conf $(DESTDIR)/etc/vnstat.conf; \
|
||||
+ install -d -m 755 $(DESTDIR)/etc; \
|
||||
+ install -m 644 cfg/vnstat.conf $(DESTDIR)/etc/vnstat.conf; \
|
||||
fi
|
||||
|
||||
# install everything else
|
||||
@@ -63,7 +64,7 @@ install:
|
||||
then echo install -m 644 man/vnstati.1 $(MAN)/man1; \
|
||||
install -m 644 man/vnstati.1 $(MAN)/man1; \
|
||||
fi
|
||||
-
|
||||
+
|
||||
@if [ -f $(MAN)/man1/vnstat.1.gz ]; \
|
||||
then gzip -f9 $(MAN)/man1/vnstat.1; \
|
||||
gzip -f9 $(MAN)/man1/vnstatd.1; \
|
Loading…
x
Reference in New Issue
Block a user