From a17bc05b5f9ffbfaf5ab93fe623c4b778dac95aa Mon Sep 17 00:00:00 2001 From: Stephen Walker Date: Sat, 11 Jun 2011 02:08:10 +0000 Subject: [PATCH] vnstat: re-add portable install patch, thanks Joe Roback (#9542) SVN-Revision: 27154 --- net/vnstat/patches/004-install_bsd_fix.patch | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 net/vnstat/patches/004-install_bsd_fix.patch diff --git a/net/vnstat/patches/004-install_bsd_fix.patch b/net/vnstat/patches/004-install_bsd_fix.patch new file mode 100644 index 000000000..6b2a79273 --- /dev/null +++ b/net/vnstat/patches/004-install_bsd_fix.patch @@ -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; \ -- 2.30.2