diff options
Diffstat (limited to 'net/openbgpd/files/patch-Makefile.am')
-rw-r--r-- | net/openbgpd/files/patch-Makefile.am | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/openbgpd/files/patch-Makefile.am b/net/openbgpd/files/patch-Makefile.am new file mode 100644 index 000000000000..da85a8ad6103 --- /dev/null +++ b/net/openbgpd/files/patch-Makefile.am @@ -0,0 +1,20 @@ +--- Makefile.am.orig 2019-05-01 11:22:14 UTC ++++ Makefile.am +@@ -19,13 +19,14 @@ + EXTRA_DIST = README.md VERSION bgpd.conf + + install-data-hook: +- @if [ ! -d "$(DESTDIR)$(localstatedir)/run" ]; then \ ++ if [ ! -d "$(DESTDIR)$(localstatedir)/run" ]; then \ + $(INSTALL) -m 755 -d "$(DESTDIR)$(localstatedir)/run"; \ + fi +- @if [ ! -d "$(DESTDIR)$(sysconfdir)" ]; then \ ++ if [ ! -d "$(DESTDIR)$(sysconfdir)" ]; then \ + $(INSTALL) -m 755 -d "$(DESTDIR)$(sysconfdir)"; \ + fi +- @if [ ! -f "$(DESTDIR)$(sysconfdir)/bgpd.conf" ]; then \ ++ $(INSTALL) -m 644 "$(srcdir)/bgpd.conf" "$(DESTDIR)$(sysconfdir)/bgpd.conf.sample"; \ ++ if [ ! -f "$(DESTDIR)$(sysconfdir)/bgpd.conf" ]; then \ + $(INSTALL) -m 644 "$(srcdir)/bgpd.conf" "$(DESTDIR)$(sysconfdir)/bgpd.conf"; \ + else \ + echo; \ |