source: packages/net/vnstat/patches/004-install_bsd_fix.patch @ 27154

Last change on this file since 27154 was 27154, checked in by swalker, 5 years ago

[packages] vnstat: re-add portable install patch, thanks Joe Roback (#9542)

File size: 673 bytes
  • Makefile

    a b install: 
    4343# install default config if such doesn't exist 
    4444        @if [ ! -f "$(DESTDIR)/etc/vnstat.conf" ]; \ 
    4545        then echo "Installing config to $(DESTDIR)/etc/vnstat.conf"; \ 
    46         install -D -m 644 cfg/vnstat.conf $(DESTDIR)/etc/vnstat.conf; \ 
     46        install -d -m 755 $(DESTDIR)/etc; \ 
     47        install -m 644 cfg/vnstat.conf $(DESTDIR)/etc/vnstat.conf; \ 
    4748        fi 
    4849 
    4950# install everything else 
    install: 
    6364        then echo install -m 644 man/vnstati.1 $(MAN)/man1; \ 
    6465        install -m 644 man/vnstati.1 $(MAN)/man1; \ 
    6566        fi 
    66          
     67 
    6768        @if [ -f $(MAN)/man1/vnstat.1.gz ]; \ 
    6869        then gzip -f9 $(MAN)/man1/vnstat.1; \ 
    6970        gzip -f9 $(MAN)/man1/vnstatd.1; \ 
Note: See TracBrowser for help on using the repository browser.