@enihcam Thanks for you advice. But this package use xcaddy to build and the compiled executable is statically linked, which is different from the official one. Besides xcaddy disable CGO by default, see: https://github.com/caddyserver/xcaddy/blob/c548f44e2d9290d6c490868336699d65f43dd36e/platforms.go#L18 unless you set the environment variable CGO_ENABLED to 1 manually. So I think there is no need to add these flags.
Search Criteria
Package Details: caddy-custom 2.8.4-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/caddy-custom.git (read-only, click to copy) |
---|---|
Package Base: | caddy-custom |
Description: | Caddy web server with plugins |
Upstream URL: | https://github.com/caddyserver/caddy |
Keywords: | caddy |
Licenses: | Apache-2.0 |
Conflicts: | caddy |
Provides: | caddy |
Submitter: | BryanLiang |
Maintainer: | BryanLiang |
Last Packager: | BryanLiang |
Votes: | 1 |
Popularity: | 0.61 |
First Submitted: | 2024-05-16 12:18 (UTC) |
Last Updated: | 2024-08-30 12:28 (UTC) |
Dependencies (2)
- go (go-gitAUR, gcc-go-gitAUR, gcc-go-snapshotAUR, gcc-go) (make)
- xcaddyAUR (xcaddy-binAUR) (make)
Required by (14)
- aria-ng-deploy (requires caddy) (optional)
- ariang-git (requires caddy) (optional)
- bandwidthd (requires caddy)
- caddy-runit (requires caddy)
- concrnt-webui (requires caddy) (optional)
- concrnt-webui-bin (requires caddy) (optional)
- gopanel (requires caddy)
- gopanel-bin (requires caddy)
- gopanel-git (requires caddy)
- nodejs-mumble-web (requires caddy) (optional)
- officelife-git (requires caddy) (optional)
- preserve (requires caddy) (optional)
- preserve-git (requires caddy) (optional)
- tieba-cloud-sign (requires caddy) (optional)
Sources (4)
Latest Comments
BryanLiang commented on 2024-11-23 17:23 (UTC)
enihcam commented on 2024-11-23 17:05 (UTC)
Please add CGO flags in build()
, as defined in official caddy package:
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
BryanLiang commented on 2024-08-30 12:30 (UTC) (edited on 2024-10-14 15:38 (UTC) by BryanLiang)
@bugscze I added a detection for environment variable PLUGIN_LIST_PATH
just now. You can try setting variable like export PLUGIN_LIST_PATH=/path/to/plugin-list
before building.
bugscze commented on 2024-08-30 09:55 (UTC)
How to add packages into plugin-list ? If I add packages into "/var/cache/yay/caddy-custom/plugin-list", file gets overwrited with empty default.
It would be nice to have it read from /etc/caddy/plugin-list
NCRonB commented on 2024-07-13 05:48 (UTC)
Thank you for this!
BryanLiang commented on 2024-05-16 12:20 (UTC) (edited on 2024-05-16 15:45 (UTC) by BryanLiang)
Before building this package, please put all the plugins that you need into plugin-list
, one plugin per line.
Pinned Comments
BryanLiang commented on 2024-08-30 12:30 (UTC) (edited on 2024-10-14 15:38 (UTC) by BryanLiang)
@bugscze I added a detection for environment variable
PLUGIN_LIST_PATH
just now. You can try setting variable likeexport PLUGIN_LIST_PATH=/path/to/plugin-list
before building.BryanLiang commented on 2024-05-16 12:20 (UTC) (edited on 2024-05-16 15:45 (UTC) by BryanLiang)
Before building this package, please put all the plugins that you need into
plugin-list
, one plugin per line.