| 1 | #!/usr/bin/make -f
|
|---|
| 2 |
|
|---|
| 3 | #export DH_VERBOSE = 1
|
|---|
| 4 | export PYBUILD_NAME=gnuboat
|
|---|
| 5 |
|
|---|
| 6 | %:
|
|---|
| 7 | dh $@ --with systemd,python3 --buildsystem=pybuild
|
|---|
| 8 |
|
|---|
| 9 | override_dh_auto_clean:
|
|---|
| 10 | dh_auto_clean
|
|---|
| 11 |
|
|---|
| 12 | $(RM) -R .pytest_cache
|
|---|
| 13 | $(RM) -R *.egg-info
|
|---|
| 14 | $(RM) -R .tox
|
|---|
| 15 |
|
|---|
| 16 | # clean generated code from APIs
|
|---|
| 17 | $(RM) -R src/mapservice-webclient/src-gen
|
|---|
| 18 | $(RM) -R src/gnuboat/deviceservice
|
|---|
| 19 | $(RM) -R src/gnuboat/mapservice_client
|
|---|
| 20 |
|
|---|
| 21 | # clean mapservice-webclient
|
|---|
| 22 | (cd src/mapsevice-webclient; ($RM) -R dist node_modules)
|
|---|
| 23 |
|
|---|
| 24 | override_dh_auto_build:
|
|---|
| 25 | buildhelpers/configure
|
|---|
| 26 |
|
|---|
| 27 | dh_auto_build
|
|---|
| 28 |
|
|---|
| 29 | override_dh_auto_install:
|
|---|
| 30 | dh_auto_install
|
|---|
| 31 |
|
|---|
| 32 | # Move files into gnuboat-commmon-bin package
|
|---|
| 33 | mkdir -p debian/gnuboat-common-bin/usr/bin
|
|---|
| 34 | mv debian/python3-gnuboat/usr/bin/gnuboat-log-* debian/gnuboat-common-bin/usr/bin
|
|---|
| 35 | mv debian/python3-gnuboat/usr/bin/gdal2tiles-gnuboat.py debian/gnuboat-common-bin/usr/bin
|
|---|
| 36 |
|
|---|
| 37 | # Move files into gnuboat-device package
|
|---|
| 38 | mkdir -p debian/gnuboat-device-bin/usr/bin
|
|---|
| 39 | mkdir -p debian/gnuboat-device-bin/lib/systemd/system
|
|---|
| 40 | mv debian/python3-gnuboat/usr/bin/gnuboat-device-daemon debian/gnuboat-device-bin/usr/bin
|
|---|
| 41 | mv debian/python3-gnuboat/usr/bin/gnuboat-splashscreen debian/gnuboat-device-bin/usr/bin
|
|---|
| 42 | mv src/python/device/config/gnuboat.service debian/gnuboat-device-bin/lib/systemd/system
|
|---|
| 43 |
|
|---|
| 44 | # Move files into gnuboat-dev package
|
|---|
| 45 | mkdir -p debian/gnuboat-dev/usr/bin
|
|---|
| 46 | mv debian/python3-gnuboat/usr/bin/gnuboat-data-generator debian/gnuboat-dev/usr/bin
|
|---|
| 47 |
|
|---|
| 48 | # Move files into gnuboat-puppet package
|
|---|
| 49 | mkdir -p debian/gnuboat-puppet/etc/puppet
|
|---|
| 50 | src/puppetcode/gnuboat_hiera.yaml debian/gnuboat-puppet/etc/puppet/
|
|---|
| 51 | src/puppetcode/gnuboat_puppet.conf debian/gnuboat-puppetetc/puppet/
|
|---|
| 52 | src/puppetcode/environments debian/gnuboat-puppetetc/puppet/
|
|---|