blob: d6c51a0b73d3d2f4c49b4a0cb54a7efa73d533ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$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
|