| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
%: |
| 4 |
dh $@ --buildsystem=golang --with=golang |
| 5 |
|
| 6 |
override_dh_auto_install: |
| 7 |
dh_auto_install -- --no-source |
| 8 |
# install config file |
| 9 |
install -D -m 644 etc/config.yaml \ |
| 10 |
debian/garagemq/etc/garagemq/config.yaml |
| 11 |
## ... change it to bind to localhost |
| 12 |
sed -i 's/ip: 0.0.0.0$$/ip: 127.0.0.1/' \ |
| 13 |
debian/garagemq/etc/garagemq/config.yaml |
| 14 |
## ... and use explicit db path |
| 15 |
sed -i 's,defaultPath: db$$,defaultPath: /var/lib/garagemq/db,' \ |
| 16 |
debian/garagemq/etc/garagemq/config.yaml |
| 17 |
# helper tool to generate amqp go source from amqp protocol description in xml |
| 18 |
-rm -f debian/*/usr/bin/protocol |
| 19 |
|
| 20 |
override_dh_auto_test: |
| 21 |
dh_auto_test || true |