Created
June 6, 2015 21:20
-
-
Save dotStart/32a291905cb90b32d740 to your computer and use it in GitHub Desktop.
Provides an LXD package for Ach Linux which may be built with makepkg.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
groupadd lxd | |
} | |
post_remove() { | |
groupdel lxd | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=LXD Daemon | |
After=network.target | |
Requires=network.target | |
[Service] | |
ExecStart=/usr/bin/lxd --group lxd | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Johannes Donath <[email protected]> | |
pkgname=lxd-git | |
pkgver=0.9 | |
pkgrel=0 | |
pkgdesc="A container hypervisor and a new user experience for LXC." | |
provides=('lxd') | |
arch=('i686' 'x86_64') | |
url="https://linuxcontainers.org/lxd/" | |
license=('Apache') | |
groups=() | |
depends=('lxc' 'protobuf' 'go' 'xz' 'tar' 'acl') | |
makedepends=('mercurial' 'git' 'pkg-config') | |
source=('lxd.service') | |
install=lxd.install | |
md5sums=('85dc4ac2433bf76f98f4ab495cfd5e0d') | |
build() { | |
mkdir -p "$srcdir/go/$pkgname-$pkgver" | |
export GOPATH="$srcdir/$pkgname-$pkgver" | |
go get github.com/lxc/lxd | |
cd $GOPATH/src/github.com/lxc/lxd | |
go get -v -d ./... | |
make | |
} | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
mkdir -p "$pkgdir/usr/bin" | |
mkdir -p "$pkgdir/usr/lib/systemd/system" | |
cp "src/github.com/lxc/lxd/scripts/lxd-images" "$pkgdir/usr/bin" | |
cp "bin/fuidshift" "$pkgdir/usr/bin" | |
cp "bin/lxc" "$pkgdir/usr/bin" | |
cp "bin/lxd" "$pkgdir/usr/bin" | |
cp "$srcdir/lxd.service" "$pkgdir/usr/lib/systemd/system" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment