| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
include /usr/share/dpkg/buildflags.mk |
| 5 |
|
| 6 |
include /usr/share/dpkg/architecture.mk |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
override_dh_auto_configure: |
| 12 |
dh_auto_configure -- --libdir=/usr/lib \ |
| 13 |
--enable-bluetooth \ |
| 14 |
--enable-dundee \ |
| 15 |
--with-systemdunitdir=/usr/lib/systemd/system |
| 16 |
|
| 17 |
override_dh_auto_build: |
| 18 |
dh_auto_build |
| 19 |
sed -e "s/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/" < debian/bin/ofono-fcc-unlock.in > debian/bin/ofono-fcc-unlock |
| 20 |
|
| 21 |
override_dh_installinit: |
| 22 |
dh_installinit --name=dundee |
| 23 |
dh_installinit |
| 24 |
|
| 25 |
override_dh_install: |
| 26 |
install -D -m 0644 plugins/ofono.rules debian/tmp/usr/lib/udev/rules.d/97-ofono.rules |
| 27 |
install -D -m 0644 plugins/ofono-speedup.rules debian/tmp/usr/lib/udev/rules.d/97-ofono-speedup.rules |
| 28 |
|
| 29 |
# Obtain various FCC unlock vendor scripts from modemmanager at build-time. Unfortunately, we can't |
| 30 |
# do this at runtime as ofono and modemmanager installed in parallel compete for modem hardware control. |
| 31 |
mkdir -p debian/tmp/usr/share/ofono/fcc-unlock.available.d/ |
| 32 |
cp -av /usr/share/ModemManager/fcc-unlock.available.d/* debian/tmp/usr/share/ofono/fcc-unlock.available.d/ |
| 33 |
|
| 34 |
dh_install |
| 35 |
|
| 36 |
override_dh_installsystemd: |
| 37 |
dh_installsystemd |
| 38 |
dh_installsystemd --no-start --name ofono-fcc-unlock |
| 39 |
|
| 40 |
override_dh_fixperms-indep: |
| 41 |
chmod 0755 debian/ofono-scripts/usr/share/ofono/scripts/set-sms-alphabet |
| 42 |
chmod 0755 debian/ofono-scripts/usr/share/ofono/scripts/test-serving-cell-info |
| 43 |
dh_fixperms -i |
| 44 |
|
| 45 |
override_dh_auto_test: |
| 46 |
dh_auto_test --no-parallel |
| 47 |
|
| 48 |
override_dh_clean: |
| 49 |
dh_clean |
| 50 |
-rm debian/bin/ofono-fcc-unlock |