| [57449c8] | 1 | #!/usr/bin/make -f
|
|---|
| 2 |
|
|---|
| [ef352a2] | 3 | #export DH_VERBOSE = 1
|
|---|
| [ce5244e] | 4 | export PYBUILD_NAME=gnuboat
|
|---|
| [57449c8] | 5 |
|
|---|
| 6 | %:
|
|---|
| [a921af9] | 7 | dh $@ --with systemd,python3,sphinxdoc --buildsystem=pybuild
|
|---|
| [57449c8] | 8 |
|
|---|
| [ce5244e] | 9 | override_dh_auto_clean:
|
|---|
| 10 | dh_auto_clean
|
|---|
| 11 |
|
|---|
| [a921af9] | 12 | make -C docs/app clean
|
|---|
| [ce5244e] | 13 | $(RM) -R .pytest_cache
|
|---|
| 14 | $(RM) -R *.egg-info
|
|---|
| [09ec621] | 15 | $(RM) -R .tox
|
|---|
| [ce5244e] | 16 |
|
|---|
| [22e657b] | 17 | # clean openapi-generator-cli-*.jar
|
|---|
| 18 | $(RM) buildhelpers/codegen/openapi-generator-cli-*.jar
|
|---|
| 19 |
|
|---|
| [c120922] | 20 | # clean generated code from APIs
|
|---|
| [d660d75] | 21 | # $(RM) -R src/mapservice-webclient/src-gen
|
|---|
| 22 | # $(RM) -R src/gnuboat/deviceservice
|
|---|
| 23 | # $(RM) -R src/gnuboat/mapservice_client
|
|---|
| [c120922] | 24 |
|
|---|
| 25 | # clean mapservice-webclient
|
|---|
| [69a144f] | 26 | (cd src/mapservice-webclient; $(RM) -R dist node_modules)
|
|---|
| [c120922] | 27 |
|
|---|
| [a921af9] | 28 | override_dh_auto_build:
|
|---|
| [d660d75] | 29 | # python3 buildhelpers/configure
|
|---|
| [a921af9] | 30 | dh_auto_build
|
|---|
| 31 | PYTHONPATH=$(CURDIR):$(CURDIR)/docs/app make -C docs/app html man
|
|---|
| [c120922] | 32 |
|
|---|
| [ce5244e] | 33 | override_dh_auto_install:
|
|---|
| 34 | dh_auto_install
|
|---|
| 35 |
|
|---|
| [a921af9] | 36 | # Move files into gnuboat-commmon package
|
|---|
| 37 | mkdir -p debian/gnuboat-common/usr/bin
|
|---|
| 38 | mv debian/python3-gnuboat/usr/bin/gnuboat-log-* debian/gnuboat-common/usr/bin
|
|---|
| 39 | mv debian/python3-gnuboat/usr/bin/gdal2tiles-gnuboat.py debian/gnuboat-common/usr/bin
|
|---|
| [ce5244e] | 40 |
|
|---|
| 41 | # Move files into gnuboat-device package
|
|---|
| [a921af9] | 42 | mkdir -p debian/gnuboat-device/usr/bin
|
|---|
| 43 | mkdir -p debian/gnuboat-device/lib/systemd/system
|
|---|
| 44 | mv debian/python3-gnuboat/usr/bin/gnuboat-device-daemon debian/gnuboat-device/usr/bin
|
|---|
| 45 | mv debian/python3-gnuboat/usr/bin/gnuboat-splashscreen debian/gnuboat-device/usr/bin
|
|---|
| 46 | cp src/gnuboat/device/config/gnuboat-device.service debian/gnuboat-device/lib/systemd/system
|
|---|
| [ce5244e] | 47 |
|
|---|
| 48 | # Move files into gnuboat-dev package
|
|---|
| 49 | mkdir -p debian/gnuboat-dev/usr/bin
|
|---|
| 50 | mv debian/python3-gnuboat/usr/bin/gnuboat-data-generator debian/gnuboat-dev/usr/bin
|
|---|
| [a921af9] | 51 | mv debian/python3-gnuboat/usr/bin/gnuboat-dev-deviceservice debian/gnuboat-dev/usr/bin
|
|---|
| 52 | mv debian/python3-gnuboat/usr/bin/gnuboat-dev-mapservice debian/gnuboat-dev/usr/bin
|
|---|
| 53 | mv debian/python3-gnuboat/usr/bin/gnuboat-dev-mapservice-worker debian/gnuboat-dev/usr/bin
|
|---|
| [ce5244e] | 54 |
|
|---|
| 55 | # Move files into gnuboat-puppet package
|
|---|
| 56 | mkdir -p debian/gnuboat-puppet/etc/puppet
|
|---|
| [3ae92ae] | 57 | cp src/puppetcode/gnuboat_hiera.yaml debian/gnuboat-puppet/etc/puppet/
|
|---|
| 58 | cp src/puppetcode/gnuboat_puppet.conf debian/gnuboat-puppet/etc/puppet/
|
|---|
| 59 | cp -r src/puppetcode/environments debian/gnuboat-puppet/etc/puppet/
|
|---|