summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 3d5f4756c3243e4ad95ae5d6b286fee31dc7aedc (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
defaultdir	 = /etc/default
default_DATA	 = etc/default/vyatta
completiondir	 = /etc/bash_completion.d
completion_DATA	 = etc/bash_completion.d/vyatta-op
opdir		 = $(datadir)/vyatta-op/templates
bin_sudo_usersdir = $(bindir)/sudo-users
etc_shell_leveldir = $(sysconfdir)/shell/level

funcdir		 = $(datadir)/vyatta-op/functions
func_DATA	 = functions/tech-support
func_DATA	+= functions/tech-support-brief

interpdir = $(datadir)/vyatta-op/functions/interpreter
interp_DATA = functions/interpreter/vyatta-op-run
interp_DATA += functions/interpreter/vyatta-unpriv
interp_DATA += functions/interpreter/vyatta-common
interp_DATA += functions/interpreter/vyatta-image-complete


bin_SCRIPTS	 = scripts/vyatta-show-interfaces
bin_SCRIPTS	+= scripts/vyatta-show-interfaces.pl
bin_SCRIPTS     += scripts/vyatta-show-dhclient.pl
bin_SCRIPTS	+= scripts/vyatta-show-dmi
bin_SCRIPTS	+= scripts/vyatta-show-bonding.pl
bin_SCRIPTS     += scripts/vyatta-gettime.pl
bin_SCRIPTS     += scripts/show-dhcp-leases.pl
bin_SCRIPTS     += scripts/vyatta-boot-image.pl
bin_SCRIPTS	+= scripts/rename-image.pl
bin_SCRIPTS	+= scripts/show-image-storage.pl
bin_SCRIPTS	+= scripts/vyatta-remote-copy.pl
bin_SCRIPTS	+= scripts/vyatta-show-current-user
bin_SCRIPTS	+= scripts/tech-support-archive
bin_SCRIPTS	+= scripts/vyatta-op-cmd-wrapper
bin_SCRIPTS += scripts/vyatta-monitor
bin_SCRIPTS += scripts/vyatta-monitor-list
bin_SCRIPTS += scripts/vyatta-monitor-cleanup
bin_SCRIPTS += scripts/vyatta-monitor-background
bin_SCRIPTS += scripts/vyatta-monitor-background-stop
bin_SCRIPTS += scripts/vyatta-monitor-check-rule-log

sbin_SCRIPTS     = scripts/vyatta-image-tools.pl
sbin_SCRIPTS    += scripts/vyatta-regen-unpriv-commands.sh
sbin_SCRIPTS    += scripts/vyos-openvpn-remoteconfig.pl

bin_sudo_users_SCRIPTS     = scripts/vyatta-delete-log-file.sh

all-local:
	./gen-unpriv-commands.sh

clean-local:
	$(RM) -r generated-templates

cpiop = find  . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \
	cpio -0pd

install-exec-hook:
	mkdir -p $(DESTDIR)$(opdir)
	cd templates; $(cpiop) $(DESTDIR)$(opdir)
	mkdir -p $(DESTDIR)$(etc_shell_leveldir)
	cd etc/shell/level; $(cpiop) $(DESTDIR)$(etc_shell_leveldir)
	mkdir -p $(DESTDIR)/etc/
	cp etc/bash.bash_logout $(DESTDIR)/etc/