Changeset View
Changeset View
Standalone View
Standalone View
package.yml
- This file was added.
name : lxd | |||||
version : 4.16 | |||||
release : 1 | |||||
source : | |||||
- https://linuxcontainers.org/downloads/lxd/lxd-4.16.tar.gz : f9e0bf2805ac6384b24fc8bd8f0a55b920d385cfaf659b9a485e23ddeb5649b5 | |||||
license : Apache-2.0 | |||||
homepage : https://linuxcontainers.org/lxd/introduction/ | |||||
component : virt | |||||
summary : Daemon based on liblxc offering a REST API to manage containers | |||||
description: | | |||||
LXD is a next generation system container and virtual machine manager. It offers a unified user experience around full Linux systems running inside containers or virtual machines. | |||||
builddeps : | |||||
- pkgconfig(dqlite) | |||||
- pkgconfig(libacl) | |||||
JoshStrobl: This shouldn't be in the description. Documentation like this is more appropriate for our Help… | |||||
- pkgconfig(libcap) | |||||
- pkgconfig(libuv) | |||||
- pkgconfig(lxc) | |||||
- pkgconfig(raft) | |||||
- pkgconfig(sqlite3) | |||||
- golang | |||||
rundeps : | |||||
- ebtables | |||||
- lxcfs | |||||
- rsync | |||||
setup : | | |||||
mkdir -p $PKG_BUILD_DIR/go/src/github.com/lxc | |||||
ln -rTsf $workdir $PKG_BUILD_DIR/go/src/github.com/lxc/lxd | |||||
build : | | |||||
export GOPATH="$workdir/_dist" | |||||
Done ReplyShould be using $workdir not PKG_BUILD_DIR JoshStrobl: Should be using $workdir not PKG_BUILD_DIR | |||||
cd $GOPATH/src/github.com/lxc/lxd | |||||
export GOFLAGS="-buildmode=pie -trimpath" | |||||
export CGO_LDFLAGS_ALLOW="-Wl,-z,now" | |||||
export GO111MODULE=off | |||||
mkdir -p bin | |||||
go build -v -tags "netgo" -o bin/ ./lxd-p2c/... | |||||
CGO_LDFLAGS="$LDFLAGS -static" go build -v -tags "agent" -o bin/ ./lxd-agent/... | |||||
for tool in fuidshift lxc lxc-to-lxd lxd lxd-benchmark; do | |||||
go build -v -tags "libsqlite3" -o bin/ ./$tool/... | |||||
done | |||||
install : | | |||||
for tool in fuidshift lxc lxc-to-lxd lxd lxd-agent lxd-benchmark lxd-p2c; do | |||||
Done ReplyUnnecessary indentation JoshStrobl: Unnecessary indentation | |||||
install -p -Dm00755 bin/$tool $installdir/usr/bin/$tool | |||||
Done ReplyUnnecessary indentation JoshStrobl: Unnecessary indentation | |||||
done | |||||
# Bash completions | |||||
install -p -Dm00644 scripts/bash/lxd-client $installdir/usr/share/bash-completion/completions/lxd | |||||
install -Dm00644 $pkgfiles/lxd.sysusers $installdir/%libdir%/sysusers.d/lxd.conf | |||||
install -Dm00644 $pkgfiles/lxd.tmpfiles $installdir/%libdir%/tmpfiles.d/lxd.conf | |||||
install -Dm00644 $pkgfiles/lxd.service $installdir/%libdir%/systemd/system/lxd.service | |||||
Done ReplyYou don't need to do ${pkgfiles}, it is really only applicable during string interpolation. $pkgfiles works. JoshStrobl: You don't need to do `${pkgfiles}`, it is really only applicable during string interpolation. | |||||
install -Dm00644 $pkgfiles/lxd.socket $installdir/%libdir%/systemd/system/lxd.socket | |||||
Done ReplyDoubtful anyone is going to be reading the shipped docs instead of the up-to-date web documentation. Can be removed. JoshStrobl: Doubtful anyone is going to be reading the shipped docs instead of the up-to-date web… |
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.
This shouldn't be in the description. Documentation like this is more appropriate for our Help Center if it is specific to Solus, otherwise folks should read documentation. This isn't a commonly used, "normal user" utility, it is a developer-oriented containerization daemon. I would like to think devs know how to read docs.