Skip to content

Commit 60d9e28

Browse files
authored
Merge pull request mackerelio#676 from mackerelio/fix-packaging
added compile option, fix packaging format
2 parents 5ad59cd + 03fcce6 commit 60d9e28

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ testconvention:
2929
build:
3030
mkdir -p build
3131
for i in $(filter-out check-windows-%, $(wildcard check-*)); do \
32-
go build -ldflags "-s -w" -o build/$$i \
32+
CGO_ENABLED=0 go build -ldflags "-s -w" -o build/$$i \
3333
`pwd | sed -e "s|${GOPATH_ROOT}/src/||"`/$$i; \
3434
done
3535

packaging/deb-v2/debian/rules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
# This variable must be the same as the value of the `Package:` field in the control file.
77
package=mackerel-check-plugins
88

9+
override_dh_builddeb:
10+
dh_builddeb -- -Zxz
11+
912
override_dh_auto_install:
1013
dh_auto_install
1114
install -d -m 755 debian/${package}/usr/bin

packaging/deb/debian/rules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
package=mackerel-check-plugins
77

8+
override_dh_builddeb:
9+
dh_builddeb -- -Zxz
10+
811
override_dh_auto_install:
912
dh_auto_install
1013
install -d -m 755 debian/${package}/usr/bin

0 commit comments

Comments
 (0)