vnstat: re-add portable install patch, thanks Joe Roback (#9542)
authorStephen Walker <stephendwalker@gmail.com>
Sat, 11 Jun 2011 02:08:10 +0000 (02:08 +0000)
committerStephen Walker <stephendwalker@gmail.com>
Sat, 11 Jun 2011 02:08:10 +0000 (02:08 +0000)
SVN-Revision: 27154

net/vnstat/patches/004-install_bsd_fix.patch [new file with mode: 0644]

diff --git a/net/vnstat/patches/004-install_bsd_fix.patch b/net/vnstat/patches/004-install_bsd_fix.patch
new file mode 100644 (file)
index 0000000..6b2a792
--- /dev/null
@@ -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; \