31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
$NetBSD: patch-aj,v 1.1 2003/12/29 21:59:01 heas Exp $
|
|
|
|
--- vtysh/Makefile.am.orig 2003-11-04 18:00:42.000000000 +0000
|
|
+++ vtysh/Makefile.am 2003-12-24 19:40:34.000000000 +0000
|
|
@@ -12,6 +12,7 @@
|
|
vtysh_LDADD = ../lib/libzebra.a
|
|
|
|
sysconf_DATA = vtysh.conf.sample
|
|
+INSTALL_SDATA=@INSTALL@ -m 600
|
|
|
|
EXTRA_DIST = extract.pl vtysh.conf.sample
|
|
|
|
@@ -20,3 +21,18 @@
|
|
|
|
rebuild:
|
|
./extract.pl ../zebra/*.c ../ripd/*.c ../ripngd/*.c ../ospfd/*.c ../ospf6d/*.c ../bgpd/*.c ../lib/keychain.c ../lib/routemap.c ../lib/filter.c ../lib/plist.c ../lib/distribute.c > vtysh_cmd.c
|
|
+
|
|
+sysconfdatadir=$(datadir)/examples/zebra
|
|
+
|
|
+install-sysconfDATA: $(sysconf_DATA)
|
|
+ @$(NORMAL_INSTALL)
|
|
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdatadir)
|
|
+ @list='$(sysconf_DATA)'; for p in $$list; do \
|
|
+ if test -f $(srcdir)/$$p; then \
|
|
+ echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
|
|
+ $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdatadir)/$$p; \
|
|
+ else if test -f $$p; then \
|
|
+ echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p"; \
|
|
+ $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdatadir)/$$p; \
|
|
+ fi; fi; \
|
|
+ done
|