| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
# See debhelper(7) |
| 6 |
# output every command that modifies files on the build system. |
| 7 |
export DH_VERBOSE = 1 |
| 8 |
|
| 9 |
# see FEATURE AREAS in dpkg-buildflags(1) |
| 10 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 11 |
|
| 12 |
# see ENVIRONMENT in dpkg-buildflags(1) |
| 13 |
# package maintainers to append CFLAGS |
| 14 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 15 |
|
| 16 |
%: |
| 17 |
dh $@ |
| 18 |
|
| 19 |
# -- Overrides needed by the kernel modules -- |
| 20 |
|
| 21 |
override_dh_dkms: |
| 22 |
# -V enables us to use #MODULE_VERSION# in the jool-dkms.dkms file. |
| 23 |
dh_dkms -V |
| 24 |
|
| 25 |
execute_after_dh_install-indep: |
| 26 |
dh_install -X/usr/ -X.o -XMakefile.in -XMakefile.am \ |
| 27 |
src usr/src/jool-$(DEB_VERSION_UPSTREAM) |
| 28 |
|
| 29 |
# -- Overrides needed by the systemd unit files -- |
| 30 |
|
| 31 |
override_dh_installsystemd: |
| 32 |
dh_installsystemd --name=jool_siit |
| 33 |
dh_installsystemd --name=jool |
| 34 |
|
| 35 |
# TODO delete this once they fix the policy |
| 36 |
override_dh_installinit: |
| 37 |
dh_installinit --no-enable --no-start --name=jool_siit |
| 38 |
dh_installinit --no-enable --no-start --name=jool |