[GH-ISSUE #641] FreeBSD releases #499

Closed
opened 2026-05-05 12:19:33 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @travisghansen on GitHub (Feb 24, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/641

I'm newly introduced to this project, but it seems quite nice. Any chance you could produce freebsd binaries? I'd like to see this included as a package on something like pfSense.

Originally created by @travisghansen on GitHub (Feb 24, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/641 I'm newly introduced to this project, but it seems quite nice. Any chance you could produce freebsd binaries? I'd like to see this included as a package on something like pfSense.
Author
Owner

@travisghansen commented on GitHub (Feb 25, 2018):

Here's a patch:

diff --git a/Makefile.cross-compiles b/Makefile.cross-compiles
index 086d8b6..2b2ec0b 100644
--- a/Makefile.cross-compiles
+++ b/Makefile.cross-compiles
@@ -9,6 +9,10 @@ build: app
 app:
        env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frpc_darwin_amd64 ./cmd/frpc
        env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frps_darwin_amd64 ./cmd/frps
+       env CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags "$(LDFLAGS)" -o ./frpc_freebsd_386 ./cmd/frpc
+       env CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags "$(LDFLAGS)" -o ./frps_freebsd_386 ./cmd/frps
+       env CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frpc_freebsd_amd64 ./cmd/frpc
+       env CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frps_freebsd_amd64 ./cmd/frps
        env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "$(LDFLAGS)" -o ./frpc_linux_386 ./cmd/frpc
        env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "$(LDFLAGS)" -o ./frps_linux_386 ./cmd/frps
        env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frpc_linux_amd64 ./cmd/frpc
diff --git a/package.sh b/package.sh
index a5c55f1..65d1446 100755
--- a/package.sh
+++ b/package.sh
@@ -14,7 +14,7 @@ make -f ./Makefile.cross-compiles
 rm -rf ./packages
 mkdir ./packages
 
-os_all='linux windows darwin'
+os_all='linux windows darwin freebsd'
 arch_all='386 amd64 arm mips64 mips64le mips mipsle'
 
 for os in $os_all; do
<!-- gh-comment-id:368323073 --> @travisghansen commented on GitHub (Feb 25, 2018): Here's a patch: ``` diff --git a/Makefile.cross-compiles b/Makefile.cross-compiles index 086d8b6..2b2ec0b 100644 --- a/Makefile.cross-compiles +++ b/Makefile.cross-compiles @@ -9,6 +9,10 @@ build: app app: env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frpc_darwin_amd64 ./cmd/frpc env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frps_darwin_amd64 ./cmd/frps + env CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags "$(LDFLAGS)" -o ./frpc_freebsd_386 ./cmd/frpc + env CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags "$(LDFLAGS)" -o ./frps_freebsd_386 ./cmd/frps + env CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frpc_freebsd_amd64 ./cmd/frpc + env CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frps_freebsd_amd64 ./cmd/frps env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "$(LDFLAGS)" -o ./frpc_linux_386 ./cmd/frpc env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "$(LDFLAGS)" -o ./frps_linux_386 ./cmd/frps env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o ./frpc_linux_amd64 ./cmd/frpc diff --git a/package.sh b/package.sh index a5c55f1..65d1446 100755 --- a/package.sh +++ b/package.sh @@ -14,7 +14,7 @@ make -f ./Makefile.cross-compiles rm -rf ./packages mkdir ./packages -os_all='linux windows darwin' +os_all='linux windows darwin freebsd' arch_all='386 amd64 arm mips64 mips64le mips mipsle' for os in $os_all; do ```
Author
Owner

@fatedier commented on GitHub (Feb 26, 2018):

You could send a PR to dev branch.

<!-- gh-comment-id:368525923 --> @fatedier commented on GitHub (Feb 26, 2018): You could send a PR to dev branch.
Author
Owner

@travisghansen commented on GitHub (Feb 27, 2018):

#646 Up for review.

<!-- gh-comment-id:368741900 --> @travisghansen commented on GitHub (Feb 27, 2018): #646 Up for review.
Author
Owner

@travisghansen commented on GitHub (Feb 27, 2018):

Thanks!

<!-- gh-comment-id:368913274 --> @travisghansen commented on GitHub (Feb 27, 2018): Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#499
No description provided.