Package Details: caddy 0.10.10-1

Git Clone URL: https://aur.archlinux.org/caddy.git (read-only)
Package Base: caddy
Description: HTTP/2 Web Server with Automatic HTTPS
Upstream URL: https://caddyserver.com
Licenses: Apache
Submitter: crvv
Maintainer: crvv (carlwgeorge)
Last Packager: crvv
Votes: 18
Popularity: 1.587262
First Submitted: 2016-09-22 04:09
Last Updated: 2017-10-09 06:12

Latest Comments

S13ntist commented on 2017-11-18 13:11

Why do you install assets just to provide a dummy page?
It isn't needed in my opinion and pollutes the package build.

What's the motivation?

crvv commented on 2017-06-29 11:17

@nelsonc
There is an array at the end of PKGBUILD. Plugins in that array will be compiled into the caddy binary.

@carlwgeorge
Because plugins can be configured in PKGBUILD, I removed those DNS provider plugins.

mytbk commented on 2017-06-29 00:27

Caddy 0.10.4 doesn't need `go get` now, dependencies are all in vendor directory.

crvv commented on 2017-05-16 04:37

@carlwgeorge
Thanks for these improvements. I have added you as maintainer.

carlwgeorge commented on 2017-05-15 23:38

Can I be added as a co-maintainer? I would like to make a few improvements to this package. Check out what I've done with caddy-bin to see the implementation of some of these.

* build from GitHub tarball, not git clone
* build using `go build` directly, not build.bash
* run as the existing http user
* store tls things in /var/lib/caddy (created by a tmpfiles config)
* include a default example page (index.html and svg image)
* include a default Caddyfile
* run appropriate systemctl commands in caddy.install

carlwgeorge commented on 2017-05-13 23:31

Both apache and nginx Arch packages use the existing "http" user. Why create a separate "www-data" user?

nelsonc commented on 2017-05-06 09:42

Neat potential feature: include a script that generates a patch to include plugins; so one might do `./plugins.sh http.filemanager http.git` before running the build and the filemanager and git plugins would be included. (It's really quite easy to do; I've whipped up something effective in about 10 min.)

carlwgeorge commented on 2016-12-18 17:33

This fails to build.

```
/startdir/PKGBUILD: line 18: ../setcap.patch: No such file or directory
```

The file setcap.patch isn't listed in the sources array.

```
-source=("git+https://github.com/mholt/caddy")
-md5sums=('SKIP')
+source=("git+https://github.com/mholt/caddy"
+ "setcap.patch")
+md5sums=('SKIP'
+ '1a59df0968f780b3689a840a3ced5db6')
```

Once you add it, it will be inside $srcdir during the build, so you need to fix the path on the patch command.

```
- patch -Np1 < ../setcap.patch
+ patch -Np1 < setcap.patch
```

Also, don't install things to /usr/local/bin, that is reserved for local use.

```
- install -Dm755 "$builddir/caddy/caddy" "${pkgdir}/usr/local/bin/caddy"
+ install -Dm755 "$builddir/caddy/caddy" "${pkgdir}/usr/bin/caddy"
```

Luchs commented on 2016-10-05 10:30

`makepkg -e` fails here as $GOPATH is only set in prepare(). Can you please add `export GOPATH="$srcdir/build"` to build() as well?