Browse Source

make state dirs on install if the don't exist

OPENBSD_5_7
Brent Cook 9 years ago
committed by Brent Cook
parent
commit
76f582f5f0
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      Makefile.am

+ 6
- 0
Makefile.am View File

@ -56,6 +56,12 @@ install-exec-hook:
@if [ ! -d "$(DESTDIR)$(sysconfdir)" ]; then \
$(INSTALL) -m 755 -d "$(DESTDIR)$(sysconfdir)"; \
fi
@if [ ! -d "$(DESTDIR)$(localstatedir)/run" ]; then \
$(INSTALL) -m 755 -d "$(DESTDIR)$(localstatedir)/run"; \
fi
@if [ ! -d "$(DESTDIR)$(localstatedir)/db" ]; then \
$(INSTALL) -m 755 -d "$(DESTDIR)$(localstatedir)/db"; \
fi
@if [ ! -f "$(DESTDIR)$(sysconfdir)/ntpd.conf" ]; then \
$(INSTALL) -m 644 "$(srcdir)/ntpd.conf" "$(DESTDIR)$(sysconfdir)/ntpd.conf"; \
else \


Loading…
Cancel
Save