File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
* .txz
2
+ * .deb
2
3
postforward
3
4
usr /
Original file line number Diff line number Diff line change @@ -15,10 +15,26 @@ EXTRA_ARGS :=
15
15
build :
16
16
go build -ldflags=" -s -w" * .go
17
17
18
+
19
+ .PHONY : debian
20
+ debian :
21
+ mkdir -p usr/bin
22
+ GOOS=linux GOARCH=amd64 go build -ldflags=" -s -w" -o usr/bin/postforward * .go
23
+
24
+ fpm -f -t deb -s dir \
25
+ --name "$(NAME)" \
26
+ --version "$(VERSION)-$(BUILDNUMBER)" \
27
+ --architecture "$(ARCH)" \
28
+ --maintainer "$(MAINTAINER)" \
29
+ --description "$(DESCRIPTION)" \
30
+ $(EXTRA_ARGS) \
31
+ usr/
32
+
33
+
18
34
.PHONY : freebsd
19
35
freebsd :
20
36
mkdir -p usr/local/bin
21
- GOOS=freebsd go build -ldflags=" -s -w" -o usr/local/bin/postforward * .go
37
+ GOOS=freebsd GOARCH=amd64 go build -ldflags=" -s -w" -o usr/local/bin/postforward * .go
22
38
23
39
fpm -f -t freebsd -s dir \
24
40
--name "$(NAME)" \
You can’t perform that action at this time.
0 commit comments