From: Stephen Walker Date: Sat, 11 Jun 2011 02:08:10 +0000 (+0000) Subject: [packages] vnstat: re-add portable install patch, thanks Joe Roback (#9542) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3e36d4176abf26202fdb693095934ab355184301;p=openwrt%2Fsvn-archive%2Farchive.git [packages] vnstat: re-add portable install patch, thanks Joe Roback (#9542) SVN-Revision: 27154 --- 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 0000000000..6b2a792731 --- /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; \