summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: d56ca9d89fe52c41fb461c88066715bf3c4a0439 (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
cfgdir = $(datadir)/vyatta-cfg/templates
opdir = $(datadir)/vyatta-op/templates
share_perl5dir = $(datadir)/perl5/Vyatta
share_vyos_perl5dir = $(datadir)/perl5/VyOS
bin_sudo_usersdir = $(bindir)/sudo-users
curverdir = $(sysconfdir)/config-migrate/current

sbin_SCRIPTS = scripts/vyatta-update-dst-nat.pl
sbin_SCRIPTS += scripts/vyatta-update-src-nat.pl
sbin_SCRIPTS += scripts/vyatta-show-nat-statistics.pl
sbin_SCRIPTS += scripts/vyatta-show-nat-rules.pl
sbin_SCRIPTS += scripts/vyatta-clear-nat-counters.pl
sbin_SCRIPTS += scripts/vyos-update-nptv6.pl

bin_sudo_users_SCRIPTS = scripts/vyatta-nat-translations.pl

share_perl5_DATA = lib/Vyatta/NatRuleCommon.pm
share_perl5_DATA += lib/Vyatta/DstNatRule.pm
share_perl5_DATA += lib/Vyatta/SrcNatRule.pm

share_vyos_perl5_DATA = lib/VyOS/Nptv6Rule.pm
curver_DATA = cfg-version/nat@4

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

install-exec-hook:
	mkdir -p $(DESTDIR)$(cfgdir)
	cd templates-cfg; $(cpiop) $(DESTDIR)$(cfgdir)
	mkdir -p $(DESTDIR)$(opdir)
	cd templates-op; $(cpiop) $(DESTDIR)$(opdir)