File: rules

package info (click to toggle)
garagemq 0.0~git20200204.15e6a9d%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,828 kB
  • sloc: xml: 4,990; javascript: 989; makefile: 29
file content (21 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

%:
	dh $@ --buildsystem=golang --with=golang

override_dh_auto_install:
	dh_auto_install -- --no-source
	# install config file
	install -D -m 644 etc/config.yaml \
		debian/garagemq/etc/garagemq/config.yaml
	## ... change it to bind to localhost
	sed -i 's/ip: 0.0.0.0$$/ip: 127.0.0.1/' \
		debian/garagemq/etc/garagemq/config.yaml
	## ... and use explicit db path
	sed -i 's,defaultPath: db$$,defaultPath: /var/lib/garagemq/db,' \
		debian/garagemq/etc/garagemq/config.yaml
	# helper tool to generate amqp go source from amqp protocol description in xml
	-rm -f debian/*/usr/bin/protocol

override_dh_auto_test:
	dh_auto_test || true