blob: 2603b2d7cae75c1d09dae836e604e5e00443fc8d (
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
|
#!/usr/bin/make -f
DIR := debian/vyatta-cfg
VYOS_LIBEXEC_DIR := usr/libexec/vyos
SYSTEM_GENERATORS_DIR := lib/systemd/system-generators
export DH_OPTIONS
## uncomment to enable hardening
export DEB_BUILD_HARDENING=1
cfg_opts := --prefix=/opt/vyatta
cfg_opts += --libdir=/usr/lib
cfg_opts += --includedir=/usr/include
cfg_opts += --mandir=\$${prefix}/share/man
cfg_opts += --infodir=\$${prefix}/share/info
cfg_opts += --enable-unionfsfuse
cfg_opts += CFLAGS="$(CFLAGS)"
cfg_opts += LDFLAGS="-Wl,-z,defs"
cfg_opts += CXXFLAGS="$(CXXFLAGS)"
inst_opts := --sourcedir=debian/tmp
%:
dh $@ --with=autoreconf,systemd
autoreconf:
autoreconf -f -i
override_dh_perl:
rm -f debian/files
dh_perl /opt/vyatta/share/perl5 /opt/vyatta/share/perl5/Vyatta
override_dh_gencontrol:
rm -f debian/*/DEBIAN/conffiles
if [ -f "../.VYOS_DEV_BUILD" ]; then \
dh_gencontrol -- -v999.dev; \
else \
dh_gencontrol; \
fi
override_dh_auto_configure:
rm -f debian/*.debhelper*
./configure $(cfg_opts)
override_dh_auto_test:
override_dh_install:
dh_install $(inst_opts)
override_dh_systemd_enable:
dh_systemd_enable -pvyatta-cfg --name vyos-router vyos-router.service
dh_systemd_enable -pvyatta-cfg --name vyos vyos.target
|