summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 4753434e3246ff6bbdf1f0de48b00d7adaeb0a1f (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
cfgdir = $(datadir)/vyatta-cfg/templates
opdir = $(datadir)/vyatta-op/templates
share_perl5dir	  = $(datarootdir)/perl5/Vyatta/Conntrack
modprobedir = /etc/modprobe.d

vprefix = /opt/vyatta
vsbindir = $(vprefix)/sbin

vsbin_PROGRAMS = src/vyatta-conntrack-logging
vyatta_conntrack_logging_SOURCES = vyatta-conntrack-logging.c

checkparamsonrebootdir = $(bindir)/sudo-users/check-params-on-reboot.d
checkparamsonreboot_SCRIPTS =
checkparamsonreboot_SCRIPTS += scripts/check-params-on-reboot.d/conntrack-hash-size

share_perl5_DATA = lib/Vyatta/Conntrack/Config.pm
share_perl5_DATA  += lib/Vyatta/Conntrack/ConntrackUtil.pm
share_perl5_DATA  += lib/Vyatta/Conntrack/RuleCT.pm
share_perl5_DATA  += lib/Vyatta/Conntrack/RuleIgnore.pm

sbin_SCRIPTS = scripts/vyatta-update-conntrack-log.pl
bin_sudo_usersdir = $(bindir)/sudo-users
bin_sudo_users_SCRIPTS = scripts/vyatta-show-conntrack.pl
bin_sudo_users_SCRIPTS += scripts/vyatta-delete-conntrack.pl
bin_sudo_users_SCRIPTS += scripts/vyatta-conntrack-timeouts.pl
bin_sudo_users_SCRIPTS += scripts/vyatta-cthelper.pl
bin_sudo_users_SCRIPTS += scripts/vyatta-conntrack-ignore.pl
bin_sudo_users_SCRIPTS += scripts/vyatta-show-ignore.pl

modprobe_DATA  = etc/modprobe.d/vyatta_nf_conntrack.conf

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)