summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 526fb8537d763b23dd10bd85b907d3029a9d3905 (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
#!/usr/bin/make -f

DIR := debian/vyos-smoketest
VYOS_BIN_DIR := usr/bin/
VYOS_LIBEXEC_DIR := usr/libexec/vyos
VYOS_DATA_DIR := /usr/share/vyos
VYOS_CFG_TMPL_DIR := /opt/vyatta/share/vyatta-cfg/templates
VYOS_OP_TMPL_DIR := /opt/vyatta/share/vyatta-op/templates

MIGRATION_SCRIPTS_DIR := /opt/vyatta/etc/config-migrate/migrate/

%:
	dh $@ --with python3, --with quilt

override_dh_auto_build:
	make all

override_dh_auto_install:
	# Install smoke test scripts
	mkdir -p $(DIR)/$(VYOS_LIBEXEC_DIR)/tests/smoke/
	cp -r scripts/* $(DIR)/$(VYOS_LIBEXEC_DIR)/tests/smoke

	# Install system programs
	mkdir -p $(DIR)/$(VYOS_BIN_DIR)
	cp -r bin/* $(DIR)/$(VYOS_BIN_DIR)